Documentation ¶
Index ¶
- Variables
- func Receive(conn io.Reader, m M) error
- func Send(m M, conn io.Writer) error
- type M
- type Reader
- func (r *Reader) Grow(n int)
- func (r *Reader) ReadBytes() []byte
- func (r *Reader) ReadInt16() int16
- func (r *Reader) ReadInt32() int32
- func (r *Reader) ReadInt64() int64
- func (r *Reader) ReadInt8() int8
- func (r *Reader) ReadString() string
- func (r *Reader) ReadUint32() uint32
- func (r *Reader) Reset()
- type Writer
- func (w *Writer) SetInt32(offset int, i int32)
- func (w *Writer) SetUint32(offset int, i uint32)
- func (w *Writer) WriteBytes(bs []byte)
- func (w *Writer) WriteInt16(i int16)
- func (w *Writer) WriteInt32(i int32)
- func (w *Writer) WriteInt64(i int64)
- func (w *Writer) WriteInt8(i int8)
- func (w *Writer) WriteString(s string)
- func (w *Writer) WriteUint32(i uint32)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPrefix = "proto: " ErrUnexpectedEOF = errors.New(ErrPrefix + "unexpected EOF") )
Functions ¶
Types ¶
type Writer ¶
type Writer struct {
B []byte
}
func (*Writer) WriteBytes ¶
func (*Writer) WriteInt16 ¶
func (*Writer) WriteInt32 ¶
func (*Writer) WriteInt64 ¶
func (*Writer) WriteString ¶
func (*Writer) WriteUint32 ¶
Click to show internal directories.
Click to hide internal directories.