Documentation ¶
Index ¶
- Variables
- func Recover(errp *error)
- type Decoder
- func (d *Decoder) Advance(fun, field string, n int)
- func (d *Decoder) Available(fun, field string, num int) []byte
- func (d *Decoder) Buffer() []byte
- func (d *Decoder) ByteSlice(field string) []byte
- func (d *Decoder) Bytes(field string, num int) []byte
- func (d *Decoder) CheckCRC(field string)
- func (d *Decoder) Len() int
- func (d *Decoder) StartCRC()
- func (d *Decoder) String(field string) string
- func (d *Decoder) Uint16(field string) uint16
- func (d *Decoder) Uint32(field string) uint32
- func (d *Decoder) Uint64(field string) uint64
- func (d *Decoder) Uint8(field string) uint8
- func (d *Decoder) VarInt(field string) int
- func (d *Decoder) VarInt64(field string) int64
- func (d *Decoder) VarUint64(field string) uint64
- type Encoder
- func (e *Encoder) Advance(size int)
- func (e *Encoder) Buffer() []byte
- func (e *Encoder) ByteSlice(b []byte)
- func (e *Encoder) Bytes(b []byte)
- func (e *Encoder) Copy() []byte
- func (e *Encoder) Grow(required int) []byte
- func (e *Encoder) PutCRC()
- func (e *Encoder) StartCRC()
- func (e *Encoder) String(s string)
- func (e *Encoder) Uint16(i uint16)
- func (e *Encoder) Uint32(i uint32)
- func (e *Encoder) Uint64(i uint64)
- func (e *Encoder) Uint8(i uint8)
- func (e *Encoder) VarInt(i int)
- func (e *Encoder) VarInt64(i int64)
- func (e *Encoder) VarUint64(u uint64)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidCRC = fmt.Errorf("invalid CRC")
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.