Documentation ¶
Index ¶
- func Decode(source []byte) (*big.Int, error)
- func DecodeHex(source string) (*big.Int, error)
- func DecodeSigned(source []byte) (*big.Int, error)
- func DecodeSignedHex(source string) (*big.Int, error)
- func Encode(value *big.Int) ([]byte, error)
- func EncodeSigned(value *big.Int) []byte
- func EncodeSignedToHex(value *big.Int) string
- func EncodeToHex(value *big.Int) (string, error)
- func ReadNext(byteStream []byte) (*big.Int, int, error)
- func ReadNextSigned(byteStream []byte) (*big.Int, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode decodes a zarith encoded unsigned integer from the entire input byte array. Assumes the input contains no extra trailing bytes.
func DecodeHex ¶
DecodeHex decodes a zarith encoded unsigned integer from the entire input hex string. Assumes the input contains no extra trailing bytes.
func DecodeSigned ¶ added in v2.1.0
DecodeSigned decodes a zarith encoded signed integer from the entire input byte array. Assumes the input contains no extra trailing bytes.
func DecodeSignedHex ¶ added in v2.1.0
DecodeSignedHex decodes a zarith encoded signed integer from the entire input hex string. Assumes the input contains no extra trailing bytes.
func EncodeSigned ¶ added in v2.1.0
EncodeSigned encodes a signed integer to zarith
func EncodeSignedToHex ¶ added in v2.1.0
EncodeSignedToHex encodes a signed integer to zarith
func EncodeToHex ¶
EncodeToHex encodes an unsigned integer to zarith
Types ¶
This section is empty.