bigint

package
v2.9.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigInt

type BigInt struct {
	*big.Int
}

func Wrap

func Wrap(i *big.Int) *BigInt

Wrap wraps big.Int pointer into BigInt struct.

func (*BigInt) MarshalBinary

func (i *BigInt) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler using Gob encoding. Panics if the underlying *big.Int is nil, as this indicates a programmer error.

func (*BigInt) MarshalJSON

func (i *BigInt) MarshalJSON() ([]byte, error)

func (*BigInt) UnmarshalBinary

func (i *BigInt) UnmarshalBinary(data []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler using Gob decoding.

func (*BigInt) UnmarshalJSON

func (i *BigInt) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL