Documentation
¶
Index ¶
- func ClearBytes(b []byte)
- func Compare(h1, h2 HexBytes) int
- func RandBytes(n int) []byte
- func RandHexString(n int) string
- func RandInt64N(cap int64) int64
- func RandU256Int() *uint256.Int
- func RandU256IntN(cap *uint256.Int) *uint256.Int
- func RandUint64N(cap uint64) uint64
- func ZeroBytes(n int) []byte
- type HexBytes
- func (hb HexBytes) Array20() [20]byte
- func (hb HexBytes) Array32() [32]byte
- func (hb HexBytes) Bytes() []byte
- func (hb HexBytes) Compare(o HexBytes) int
- func (hb HexBytes) Format(s fmt.State, verb rune)
- func (hb HexBytes) Marshal() ([]byte, error)
- func (hb HexBytes) MarshalJSON() ([]byte, error)
- func (hb HexBytes) String() string
- func (hb *HexBytes) Unmarshal(data []byte) error
- func (hb *HexBytes) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearBytes ¶
func ClearBytes(b []byte)
func RandHexString ¶
func RandInt64N ¶
func RandU256Int ¶
func RandUint64N ¶
Types ¶
type HexBytes ¶
HexBytes enables HEX-encoding for json/encoding.
func RandHexBytes ¶
func (HexBytes) Format ¶
Format writes either address of 0th element in a slice in base 16 notation, with leading 0x (%p), or casts HexBytes to bytes and writes as hexadecimal string to s.
func (HexBytes) MarshalJSON ¶
This is the point of Bytes.
func (*HexBytes) UnmarshalJSON ¶
This is the point of Bytes.
Click to show internal directories.
Click to hide internal directories.