Documentation ¶
Index ¶
- func ReadLength(r io.Reader) (int, error)
- type Decoder
- func (dec *Decoder) Byte() byte
- func (dec *Decoder) Int32() int32
- func (dec *Decoder) Int64() int64
- func (dec *Decoder) Read(r io.Reader) error
- func (dec *Decoder) Reset(data []byte)
- func (dec *Decoder) String() string
- func (dec *Decoder) Uint32() uint32
- func (dec *Decoder) Uint64() uint64
- func (dec *Decoder) Uintptr() uintptr
- type Encoder
- func (enc *Encoder) Byte(v byte)
- func (enc *Encoder) BytesLen() int
- func (enc *Encoder) Int32(v int32)
- func (enc *Encoder) Int64(v int64)
- func (enc *Encoder) LengthAndBytes() []byte
- func (enc *Encoder) Reset()
- func (enc *Encoder) String(v string)
- func (enc *Encoder) Uint32(v uint32)
- func (enc *Encoder) Uint64(v uint64)
- func (enc *Encoder) Uintptr(v uintptr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) LengthAndBytes ¶
Click to show internal directories.
Click to hide internal directories.