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

Function NewInt64

group/mod/int.go:60–62  ·  view source on GitHub ↗

NewInt64 creates a new Int with a given int64 value and big.Int modulus.

(v int64, M *big.Int)

Source from the content-addressed store, hash-verified

58
59// NewInt64 creates a new Int with a given int64 value and big.Int modulus.
60func NewInt64(v int64, M *big.Int) *Int {
61 return new(Int).Init64(v, M)
62}
63
64// NewIntBytes creates a new Int with a given slice of bytes and a big.Int
65// modulus.

Callers 2

TestIntEndiannessFunction · 0.85
TestInitsFunction · 0.85

Calls 1

Init64Method · 0.80

Tested by 2

TestIntEndiannessFunction · 0.68
TestInitsFunction · 0.68