good morning!!!!

Skip to content
Snippets Groups Projects
Commit a4428c50 authored by Eugene Valeyev's avatar Eugene Valeyev Committed by Péter Szilágyi
Browse files

mobile: added constructor for BigInts (#17828)

parent 55a4ff80
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,13 @@ func (bi *BigInt) SetString(x string, base int) {
// BigInts represents a slice of big ints.
type BigInts struct{ bigints []*big.Int }
// NewBigInts creates a slice of uninitialized big numbers.
func NewBigInts(size int) *BigInts {
return &BigInts{
bigints: make([]*big.Int, size),
}
}
// Size returns the number of big ints in the slice.
func (bi *BigInts) Size() int {
return len(bi.bigints)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment