MCPcopy Create free account
hub / github.com/DOSNetwork/core / NewInt

Function NewInt

group/mod/int.go:55–57  ·  view source on GitHub ↗

NewInt creaters a new Int with a given big.Int and a big.Int modulus.

(v *big.Int, m *big.Int)

Source from the content-addressed store, hash-verified

53
54// NewInt creaters a new Int with a given big.Int and a big.Int modulus.
55func NewInt(v *big.Int, m *big.Int) *Int {
56 return new(Int).Init(v, m)
57}
58
59// NewInt64 creates a new Int with a given int64 value and big.Int modulus.
60func NewInt64(v int64, M *big.Int) *Int {

Callers 1

TestInitsFunction · 0.85

Calls 1

InitMethod · 0.45

Tested by 1

TestInitsFunction · 0.68