MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / MustParseBig256

Function MustParseBig256

utils/big.go:96–102  ·  view source on GitHub ↗

MustParseBig256 parses s as a 256 bit big integer and panics if the string is invalid.

(s string)

Source from the content-addressed store, hash-verified

94
95// MustParseBig256 parses s as a 256 bit big integer and panics if the string is invalid.
96func MustParseBig256(s string) *big.Int {
97 v, ok := ParseBig256(s)
98 if !ok {
99 panic("invalid 256 bit integer: " + s)
100 }
101 return v
102}
103
104// BigPow returns a ** b as a big integer.
105func BigPow(a, b int64) *big.Int {

Callers 8

TestMustParseBig256Function · 0.85
BenchmarkByteAtBrandNewFunction · 0.85
BenchmarkByteAtFunction · 0.85
BenchmarkByteAtOldFunction · 0.85
TestExpFunction · 0.85

Calls 1

ParseBig256Function · 0.85

Tested by 8

TestMustParseBig256Function · 0.68
BenchmarkByteAtBrandNewFunction · 0.68
BenchmarkByteAtFunction · 0.68
BenchmarkByteAtOldFunction · 0.68
TestExpFunction · 0.68