Documentation
¶
Index ¶
- type Decoder
- func (d *Decoder) EOF() bool
- func (d *Decoder) PeekTag() (uint32, protowire.Type, int)
- func (d *Decoder) ReadBytes() ([]byte, int)
- func (d *Decoder) ReadFixed32() (uint32, int)
- func (d *Decoder) ReadFixed64() (uint64, int)
- func (d *Decoder) ReadTag() (uint32, protowire.Type, int)
- func (d *Decoder) ReadVarint() (uint64, int)
- func (d *Decoder) ReadZigzag() (int64, int)
- type Encoder
- func (e *Encoder) Bytes() []byte
- func (e *Encoder) Clear()
- func (e *Encoder) EmitBytes(tag uint32, s []byte)
- func (e *Encoder) EmitFixed32(tag uint32, v uint32)
- func (e *Encoder) EmitFixed64(tag uint32, v uint64)
- func (e *Encoder) EmitString(tag uint32, s string)
- func (e *Encoder) EmitVarint(tag uint32, v uint64)
- func (e *Encoder) EmitZigzag(tag uint32, x int64)
- func (e *Encoder) Len() int
- func (e *Encoder) WriteBytes(s []byte)
- func (e *Encoder) WriteFixed32(v uint32)
- func (e *Encoder) WriteFixed64(v uint64)
- func (e *Encoder) WriteVarint(v uint64)
- func (e *Encoder) WriteZigzag(x int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) ReadFixed32 ¶
func (*Decoder) ReadFixed64 ¶
func (*Decoder) ReadVarint ¶
func (*Decoder) ReadZigzag ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) EmitFixed32 ¶
func (*Encoder) EmitFixed64 ¶
func (*Encoder) EmitString ¶
func (*Encoder) EmitVarint ¶
func (*Encoder) EmitZigzag ¶
func (*Encoder) WriteBytes ¶
func (*Encoder) WriteFixed32 ¶
func (*Encoder) WriteFixed64 ¶
func (*Encoder) WriteVarint ¶
func (*Encoder) WriteZigzag ¶
Click to show internal directories.
Click to hide internal directories.