Documentation ¶
Index ¶
- type Decoder
- type DecoderCommon
- func (cd *DecoderCommon) ReadSize1(index int, d *[]byte) (byte, int)
- func (cd *DecoderCommon) ReadSize2(index int, d *[]byte) ([]byte, int)
- func (cd *DecoderCommon) ReadSize4(index int, d *[]byte) ([]byte, int)
- func (cd *DecoderCommon) ReadSize8(index int, d *[]byte) ([]byte, int)
- func (cd *DecoderCommon) ReadSizeN(index, n int, d *[]byte) ([]byte, int)
- type DecoderStreamCommon
- func (d *DecoderStreamCommon) ReadSize1(r io.Reader, buf *common.Buffer) (byte, error)
- func (d *DecoderStreamCommon) ReadSize2(r io.Reader, buf *common.Buffer) ([]byte, error)
- func (d *DecoderStreamCommon) ReadSize4(r io.Reader, buf *common.Buffer) ([]byte, error)
- func (d *DecoderStreamCommon) ReadSize8(r io.Reader, buf *common.Buffer) ([]byte, error)
- func (d *DecoderStreamCommon) ReadSizeN(r io.Reader, buf *common.Buffer, n int) ([]byte, error)
- type Encoder
- type EncoderCommon
- func (c *EncoderCommon) SetByte1Int(code, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte1Int64(value int64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte1Uint64(value uint64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte2Int(value int, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte2Int64(value int64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte2Uint64(value uint64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte4Int(value int, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte4Int64(value int64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte4Uint32(value uint32, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte4Uint64(value uint64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte8Int64(value int64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetByte8Uint64(value uint64, offset int, d *[]byte) int
- func (c *EncoderCommon) SetBytes(bs []byte, offset int, d *[]byte) int
- type StreamDecoder
- type StreamEncoder
- type StreamEncoderCommon
- func (c *StreamEncoderCommon) WriteByte1Int(w io.Writer, value int, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte1Int64(w io.Writer, value int64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte1Uint64(w io.Writer, value uint64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte2Int(w io.Writer, value int, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte2Int64(w io.Writer, value int64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte2Uint64(w io.Writer, value uint64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte4Int(w io.Writer, value int, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte4Int64(w io.Writer, value int64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte4Uint32(w io.Writer, value uint32, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte4Uint64(w io.Writer, value uint64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte8Int64(w io.Writer, value int64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteByte8Uint64(w io.Writer, value uint64, buf *common.Buffer) error
- func (c *StreamEncoderCommon) WriteBytes(w io.Writer, bs []byte, buf *common.Buffer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecoderCommon ¶
type DecoderCommon struct { }
func (*DecoderCommon) ReadSize1 ¶
func (cd *DecoderCommon) ReadSize1(index int, d *[]byte) (byte, int)
func (*DecoderCommon) ReadSize2 ¶
func (cd *DecoderCommon) ReadSize2(index int, d *[]byte) ([]byte, int)
func (*DecoderCommon) ReadSize4 ¶
func (cd *DecoderCommon) ReadSize4(index int, d *[]byte) ([]byte, int)
type DecoderStreamCommon ¶
type DecoderStreamCommon struct { }
type EncoderCommon ¶
type EncoderCommon struct { }
func (*EncoderCommon) SetByte1Int ¶
func (c *EncoderCommon) SetByte1Int(code, offset int, d *[]byte) int
func (*EncoderCommon) SetByte1Int64 ¶
func (c *EncoderCommon) SetByte1Int64(value int64, offset int, d *[]byte) int
func (*EncoderCommon) SetByte1Uint64 ¶
func (c *EncoderCommon) SetByte1Uint64(value uint64, offset int, d *[]byte) int
func (*EncoderCommon) SetByte2Int ¶
func (c *EncoderCommon) SetByte2Int(value int, offset int, d *[]byte) int
func (*EncoderCommon) SetByte2Int64 ¶
func (c *EncoderCommon) SetByte2Int64(value int64, offset int, d *[]byte) int
func (*EncoderCommon) SetByte2Uint64 ¶
func (c *EncoderCommon) SetByte2Uint64(value uint64, offset int, d *[]byte) int
func (*EncoderCommon) SetByte4Int ¶
func (c *EncoderCommon) SetByte4Int(value int, offset int, d *[]byte) int
func (*EncoderCommon) SetByte4Int64 ¶
func (c *EncoderCommon) SetByte4Int64(value int64, offset int, d *[]byte) int
func (*EncoderCommon) SetByte4Uint32 ¶
func (c *EncoderCommon) SetByte4Uint32(value uint32, offset int, d *[]byte) int
func (*EncoderCommon) SetByte4Uint64 ¶
func (c *EncoderCommon) SetByte4Uint64(value uint64, offset int, d *[]byte) int
func (*EncoderCommon) SetByte8Int64 ¶
func (c *EncoderCommon) SetByte8Int64(value int64, offset int, d *[]byte) int
func (*EncoderCommon) SetByte8Uint64 ¶
func (c *EncoderCommon) SetByte8Uint64(value uint64, offset int, d *[]byte) int
type StreamDecoder ¶
type StreamEncoder ¶
type StreamEncoderCommon ¶
type StreamEncoderCommon struct{}
func (*StreamEncoderCommon) WriteByte1Int ¶
func (*StreamEncoderCommon) WriteByte1Int64 ¶
func (*StreamEncoderCommon) WriteByte1Uint64 ¶
func (*StreamEncoderCommon) WriteByte2Int ¶
func (*StreamEncoderCommon) WriteByte2Int64 ¶
func (*StreamEncoderCommon) WriteByte2Uint64 ¶
func (*StreamEncoderCommon) WriteByte4Int ¶
func (*StreamEncoderCommon) WriteByte4Int64 ¶
func (*StreamEncoderCommon) WriteByte4Uint32 ¶
func (*StreamEncoderCommon) WriteByte4Uint64 ¶
func (*StreamEncoderCommon) WriteByte8Int64 ¶
func (*StreamEncoderCommon) WriteByte8Uint64 ¶
func (*StreamEncoderCommon) WriteBytes ¶
Click to show internal directories.
Click to hide internal directories.