We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a4ff8 commit a4428c5Copy full SHA for a4428c5
mobile/big.go
@@ -84,6 +84,13 @@ func (bi *BigInt) SetString(x string, base int) {
84
// BigInts represents a slice of big ints.
85
type BigInts struct{ bigints []*big.Int }
86
87
+// NewBigInts creates a slice of uninitialized big numbers.
88
+func NewBigInts(size int) *BigInts {
89
+ return &BigInts{
90
+ bigints: make([]*big.Int, size),
91
+ }
92
+}
93
+
94
// Size returns the number of big ints in the slice.
95
func (bi *BigInts) Size() int {
96
return len(bi.bigints)
0 commit comments