Documentation
¶
Index ¶
- func Int64ToInt(value int64) (int, error)
- func Int64ToUint32(value int64) (uint32, error)
- func Int64ToUint64(value int64) (uint64, error)
- func IntToUint32(value int) (uint32, error)
- func IntToUint64(value int) (uint64, error)
- func Uint32ToInt64(value uint32) int64
- func Uint64ToInt(value uint64) (int, error)
- func Uint64ToInt64(value uint64) (int64, error)
- func Uint64ToUint32(value uint64) (uint32, error)
- func VarIntToInt(varInt *sdk.VarInt) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int64ToInt ¶
Int64ToInt will convert an int64 to an int, with range checks
func Int64ToUint32 ¶
Int64ToUint32 will convert an int64 to a uint32, with range checks
func Int64ToUint64 ¶
Int64ToUint64 will convert an int64 to a uint64, with range checks
func IntToUint32 ¶
IntToUint32 will convert an int to a uint32, with range checks
func IntToUint64 ¶
IntToUint64 will convert an int to a uint64, with range checks
func Uint32ToInt64 ¶
Uint32ToInt64 will convert a uint32 to an int64 (safe as uint32 fits into int64)
func Uint64ToInt ¶
Uint64ToInt will convert a uint64 to an int, with range checks
func Uint64ToInt64 ¶
Uint64ToInt64 will convert a uint64 to an int64, with range checks
func Uint64ToUint32 ¶
Uint64ToUint32 will convert a uint64 to an uint32, with range checks
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.