Documentation ¶
Overview ¶
Package packstream handles serialization of data sent to database server and deserialization of data received from database server.
Index ¶
- Constants
- type IoError
- type OverflowError
- type Packer
- func (p *Packer) ArrayHeader(l int)
- func (p *Packer) Begin(buf []byte)
- func (p *Packer) Bool(b bool)
- func (p *Packer) Bytes(b []byte)
- func (p *Packer) End() ([]byte, error)
- func (p *Packer) Float32(f float32)
- func (p *Packer) Float64(f float64)
- func (p *Packer) Float64s(ii []float64)
- func (p *Packer) Int(i int)
- func (p *Packer) Int16(i int16)
- func (p *Packer) Int32(i int32)
- func (p *Packer) Int64(i int64)
- func (p *Packer) Int64s(ii []int64)
- func (p *Packer) Int8(i int8)
- func (p *Packer) IntMap(m map[string]int)
- func (p *Packer) Ints(ii []int)
- func (p *Packer) MapHeader(l int)
- func (p *Packer) Nil()
- func (p *Packer) String(s string)
- func (p *Packer) StringMap(m map[string]string)
- func (p *Packer) Strings(ss []string)
- func (p *Packer) StructHeader(tag byte, num int)
- func (p *Packer) Uint16(i uint16)
- func (p *Packer) Uint32(i uint32)
- func (p *Packer) Uint64(i uint64)
- func (p *Packer) Uint8(i uint8)
- type UnpackError
- type Unpacker
- func (u *Unpacker) Bool() bool
- func (u *Unpacker) ByteArray() []byte
- func (u *Unpacker) Float() float64
- func (u *Unpacker) Int() int64
- func (u *Unpacker) Len() uint32
- func (u *Unpacker) Next()
- func (u *Unpacker) Reset(buf []byte)
- func (u *Unpacker) String() string
- func (u *Unpacker) StructTag() byte
Constants ¶
View Source
const ( PackedUndef = iota // Undefined must be zero! PackedInt PackedFloat PackedStr PackedStruct PackedByteArray PackedArray PackedMap PackedNil PackedTrue PackedFalse )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OverflowError ¶
type OverflowError struct {
// contains filtered or unexported fields
}
func (*OverflowError) Error ¶
func (e *OverflowError) Error() string
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
func (*Packer) ArrayHeader ¶
func (*Packer) StructHeader ¶
type UnpackError ¶
type UnpackError struct {
// contains filtered or unexported fields
}
func (*UnpackError) Error ¶
func (e *UnpackError) Error() string
Click to show internal directories.
Click to hide internal directories.