Documentation ¶
Index ¶
- func Bytes1(val uint64) []byte
- func Bytes16(x uint64) []byte
- func Bytes2(val uint64) []byte
- func Bytes32(x uint64) []byte
- func Bytes4(x uint64) []byte
- func Bytes64(x uint64) []byte
- func Bytes8(x uint64) []byte
- func FromHexString(data string) ([]byte, error)
- func ToBytes16(val []byte) [16]byte
- func ToBytes32(val []byte) [32]byte
- func ToBytes48(val []byte) [48]byte
- func ToBytes64(val []byte) [64]byte
- func ToBytes8(val []byte) [8]byte
- func ToBytes96(val []byte) [96]byte
- func XOR(data []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes1 ¶
Bytes1 returns the first byte of the little-endian representation of the supplied value.
func Bytes16 ¶
Bytes16 returns the first sixteen bytes of the little-endian representation of the supplied value.
func Bytes2 ¶
Bytes2 returns the first two bytes of the little-endian representation of the supplied value.
func Bytes32 ¶
Bytes32 returns the first thirty-two bytes of the little-endian representation of the supplied value.
func Bytes4 ¶
Bytes4 returns the first four bytes of the little-endian representation of the supplied value.
func Bytes64 ¶ added in v1.1.1
Bytes64 returns the first thirty-two bytes of the little-endian representation of the supplied value.
func Bytes8 ¶
Bytes8 returns the first eight bytes of the little-endian representation of the supplied value.
func FromHexString ¶ added in v1.1.0
FromHexString returns a byte array given a hex string
func ToBytes16 ¶
ToBytes16 returns a 16-byte array with the supplied value placed in the low-order indices.
func ToBytes32 ¶
ToBytes32 returns a 32-byte array with the supplied value placed in the low-order indices.
func ToBytes48 ¶
ToBytes48 returns a 48-byte array with the supplied value placed in the low-order indices.
func ToBytes64 ¶
ToBytes64 returns a 64-byte array with the supplied value placed in the low-order indices.
func ToBytes8 ¶
ToBytes8 returns an 8-byte array with the supplied value placed in the low-order indices.
Types ¶
This section is empty.