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

Method SetInt64

group/mod/int.go:182–185  ·  view source on GitHub ↗

SetInt64 sets the Int to an arbitrary 64-bit "small integer" value. The modulus must already be initialized.

(v int64)

Source from the content-addressed store, hash-verified

180// SetInt64 sets the Int to an arbitrary 64-bit "small integer" value.
181// The modulus must already be initialized.
182func (i *Int) SetInt64(v int64) kyber.Scalar {
183 i.V.SetInt64(v).Mod(&i.V, i.M)
184 return i
185}
186
187// Int64 returns the int64 representation of the value.
188// If the value is not representable in an int64 the result is undefined.

Callers 15

HideEncodeMethod · 0.95
dkgTestMethod · 0.95
queryTestMethod · 0.95
Init64Method · 0.45
ZeroMethod · 0.45
OneMethod · 0.45
JacobiMethod · 0.45
TestPairingCheckFunction · 0.45
NullMethod · 0.45
NewBlakeSHA256QR512Function · 0.45
NullMethod · 0.45
EvalMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestPairingCheckFunction · 0.36