Documentation ¶
Index ¶
- Variables
- func BigIntSetBytes(i *big.Int, bs []byte) *big.Int
- func BigIntToBytes(i *big.Int) []byte
- func BytesForZero() []byte
- func BytesToInt64(bs []byte) int64
- func BytesToUint64(bs []byte) uint64
- func FormatBigInt(i *big.Int) string
- func FormatInt(v int64) string
- func FormatUint(v uint64) string
- func Int64ToBytes(v int64) []byte
- func ParseBigInt(i *big.Int, s string) error
- func ParseInt(s string, bits int) (int64, error)
- func ParseUint(s string, bits int) (uint64, error)
- func SafeBytesToInt64(bs []byte) (int64, bool)
- func SafeBytesToSize(bs []byte) (int, bool)
- func SafeBytesToSize64(bs []byte) (uint64, bool)
- func SafeBytesToUint64(bs []byte) (uint64, bool)
- func SizeToBytes(v uint64) []byte
- func Uint64ToBytes(v uint64) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var BigIntOne = big.NewInt(1)
Functions ¶
func BigIntToBytes ¶
func BytesForZero ¶
func BytesForZero() []byte
func BytesToInt64 ¶
func BytesToUint64 ¶
func FormatBigInt ¶
func FormatUint ¶
func Int64ToBytes ¶
func SafeBytesToInt64 ¶ added in v1.3.1
func SafeBytesToSize ¶ added in v1.3.1
func SafeBytesToSize64 ¶ added in v1.3.1
func SafeBytesToUint64 ¶ added in v1.3.1
func SizeToBytes ¶
func Uint64ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.