MCPcopy Create free account
hub / github.com/cockroachdb/apd / SetBytes

Method SetBytes

bigint.go:868–874  ·  view source on GitHub ↗

SetBytes calls (big.Int).SetBytes.

(buf []byte)

Source from the content-addressed store, hash-verified

866
867// SetBytes calls (big.Int).SetBytes.
868func (z *BigInt) SetBytes(buf []byte) *BigInt {
869 var tmp1 big.Int //gcassert:noescape
870 zi := z.inner(&tmp1)
871 zi.SetBytes(buf)
872 z.updateInner(zi)
873 return z
874}
875
876// SetInt64 calls (big.Int).SetInt64.
877func (z *BigInt) SetInt64(x int64) *BigInt {

Callers 10

checkMulFunction · 0.95
TestBigIntFillBytesFunction · 0.80
checkSetBytesFunction · 0.80
checkBytesFunction · 0.80
checkQuoFunction · 0.80
checkGcdFunction · 0.80
ComposeMethod · 0.80

Calls 2

innerMethod · 0.95
updateInnerMethod · 0.95

Tested by 9

checkMulFunction · 0.76
TestBigIntFillBytesFunction · 0.64
checkSetBytesFunction · 0.64
checkBytesFunction · 0.64
checkQuoFunction · 0.64
checkGcdFunction · 0.64