Documentation ¶
Index ¶
- func ReadInt32(r io.Reader) (int32, error)
- func ReadN(r io.Reader, n int32) ([]byte, error)
- func ReadUint64(r io.Reader) (uint64, error)
- func ReadVarBytes(r ByteMultiReader) ([]byte, error)
- func WriteVarBytes(w io.Writer, b []byte) error
- type ByteMultiReader
- type PbBuffer
- func (b *PbBuffer) Bytes() []byte
- func (b *PbBuffer) PrependSize() error
- func (b *PbBuffer) Write(d []byte) (int, error)
- func (b *PbBuffer) WriteByte(d byte) error
- func (b *PbBuffer) WriteDelimitedBuffers(bufs ...*PbBuffer) error
- func (b *PbBuffer) WriteFloat32(d float32) error
- func (b *PbBuffer) WriteFloat64(d float64) error
- func (b *PbBuffer) WriteInt32(d int32) error
- func (b *PbBuffer) WriteInt64(d int64) error
- func (b *PbBuffer) WritePBMessage(d pb.Message) error
- func (b *PbBuffer) WriteString(d string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadVarBytes ¶
func ReadVarBytes(r ByteMultiReader) ([]byte, error)
Types ¶
type ByteMultiReader ¶
type ByteMultiReader interface { io.ByteReader io.Reader }
type PbBuffer ¶
type PbBuffer struct {
// contains filtered or unexported fields
}
func NewPbBuffer ¶
func NewPbBuffer() *PbBuffer
func (*PbBuffer) PrependSize ¶
func (*PbBuffer) WriteDelimitedBuffers ¶
func (*PbBuffer) WriteFloat32 ¶
func (*PbBuffer) WriteFloat64 ¶
func (*PbBuffer) WriteInt32 ¶
func (*PbBuffer) WriteInt64 ¶
func (*PbBuffer) WriteString ¶
Click to show internal directories.
Click to hide internal directories.