Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesTo20B ¶
BytesTo20B converts a byte slice to 20-Byte array
func BytesTo32B ¶
BytesTo32B converts a byte slice to 32-Byte array
func BytesToUint64 ¶
BytesToUint64 converts 8 bytes with the machine endian to uint64
func Must ¶ added in v0.4.4
Must is a helper wraps a call to a function returing ([]byte, error) and panics if the error is not nil.
func Uint32ToBytes ¶
Uint32ToBytes converts a uint32 to 4 bytes with the machine endian
func Uint64ToBytes ¶
Uint64ToBytes converts a uint64 to 8 bytes with the machine endian
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.