Documentation ¶
Index ¶
- type Deserializer
- func (a *Deserializer) Byte() (byte, error)
- func (a *Deserializer) ByteStringWithUint16Len() ([]byte, error)
- func (a *Deserializer) Bytes(length uint) ([]byte, error)
- func (a *Deserializer) Digest() (crypto.Digest, error)
- func (a *Deserializer) Len() int
- func (a *Deserializer) PublicKey() (crypto.PublicKey, error)
- func (a *Deserializer) Signature() (crypto.Signature, error)
- func (a *Deserializer) Uint16() (uint16, error)
- func (a *Deserializer) Uint32() (uint32, error)
- func (a *Deserializer) Uint64() (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deserializer ¶
type Deserializer struct {
// contains filtered or unexported fields
}
func NewDeserializer ¶
func NewDeserializer(b []byte) *Deserializer
func (*Deserializer) Byte ¶
func (a *Deserializer) Byte() (byte, error)
func (*Deserializer) ByteStringWithUint16Len ¶ added in v0.8.0
func (a *Deserializer) ByteStringWithUint16Len() ([]byte, error)
func (*Deserializer) Digest ¶ added in v0.5.0
func (a *Deserializer) Digest() (crypto.Digest, error)
func (*Deserializer) Len ¶ added in v0.8.0
func (a *Deserializer) Len() int
Length of the rest bytes.
func (*Deserializer) Uint16 ¶ added in v0.8.0
func (a *Deserializer) Uint16() (uint16, error)
func (*Deserializer) Uint32 ¶
func (a *Deserializer) Uint32() (uint32, error)
func (*Deserializer) Uint64 ¶ added in v0.8.0
func (a *Deserializer) Uint64() (uint64, error)
Click to show internal directories.
Click to hide internal directories.