Documentation ¶
Index ¶
- type Bytes
- func (s Bytes) AsBytes32() (ret Bytes32)
- func (s *Bytes) Bytes() []byte
- func (s *Bytes) MarshalBinary() ([]byte, error)
- func (s *Bytes) MarshalJSON() ([]byte, error)
- func (s *Bytes) Size(varintbuf *[8]byte) int
- func (s *Bytes) UnmarshalBinary(data []byte) (err error)
- func (s *Bytes) UnmarshalJSON(data []byte) error
- type Bytes32
- type String
- func (s *String) AsString() *string
- func (s *String) Bytes() []byte
- func (s *String) MarshalBinary() ([]byte, error)
- func (s *String) MarshalJSON() ([]byte, error)
- func (s *String) Size(varintbuf *[8]byte) int
- func (s *String) UnmarshalBinary(data []byte) error
- func (s *String) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes []byte
func (*Bytes) MarshalBinary ¶
func (*Bytes) MarshalJSON ¶
MarshalJSON serializes ByteArray to hex
func (*Bytes) UnmarshalBinary ¶
func (*Bytes) UnmarshalJSON ¶
UnmarshalJSON serializes ByteArray to hex
type Bytes32 ¶
type Bytes32 [32]byte
Bytes32 is a fixed array of 32 bytes
func (*Bytes32) AsByteArray ¶
func (*Bytes32) FromString ¶
FromString takes a hex encoded string and sets the byte array. The input parameter, str, must be 64 hex characters in length
func (*Bytes32) MarshalJSON ¶
MarshalJSON serializes ByteArray to hex
func (*Bytes32) ToString ¶
ToString will convert the 32 byte array into a hex string that is 64 hex characters in length
func (*Bytes32) UnmarshalJSON ¶
UnmarshalJSON serializes ByteArray to hex
type String ¶
type String string
func (*String) MarshalBinary ¶
func (*String) MarshalJSON ¶
func (*String) UnmarshalBinary ¶
func (*String) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.