Documentation ¶
Index ¶
- Constants
- func Pack(tos int16, tbl interface{}, writer *Packet) []byte
- type FastPack
- type Packet
- func (p *Packet) Data() []byte
- func (p *Packet) Length() int
- func (p *Packet) ReadBool() (ret bool, err error)
- func (p *Packet) ReadByte() (ret byte, err error)
- func (p *Packet) ReadBytes() (ret []byte, err error)
- func (p *Packet) ReadFloat32() (ret float32, err error)
- func (p *Packet) ReadFloat64() (ret float64, err error)
- func (p *Packet) ReadS16() (ret int16, err error)
- func (p *Packet) ReadS24() (ret int32, err error)
- func (p *Packet) ReadS32() (ret int32, err error)
- func (p *Packet) ReadS64() (ret int64, err error)
- func (p *Packet) ReadString() (ret string, err error)
- func (p *Packet) ReadU16() (ret uint16, err error)
- func (p *Packet) ReadU24() (ret uint32, err error)
- func (p *Packet) ReadU32() (ret uint32, err error)
- func (p *Packet) ReadU64() (ret uint64, err error)
- func (p *Packet) WriteBool(v bool)
- func (p *Packet) WriteByte(v byte)
- func (p *Packet) WriteBytes(v []byte)
- func (p *Packet) WriteFloat32(f float32)
- func (p *Packet) WriteFloat64(f float64)
- func (p *Packet) WriteRawBytes(v []byte)
- func (p *Packet) WriteS16(v int16)
- func (p *Packet) WriteS32(v int32)
- func (p *Packet) WriteS64(v int64)
- func (p *Packet) WriteString(v string)
- func (p *Packet) WriteU16(v uint16)
- func (p *Packet) WriteU24(v uint32)
- func (p *Packet) WriteU32(v uint32)
- func (p *Packet) WriteU64(v uint64)
- func (p *Packet) WriteZeros(n int)
Constants ¶
View Source
const ( PACKET_LIMIT = 65535 PACKET_POOL = 10000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Packet ¶
type Packet struct {
// contains filtered or unexported fields
}
func (*Packet) ReadFloat32 ¶
func (*Packet) ReadFloat64 ¶
func (*Packet) ReadString ¶
func (*Packet) WriteBytes ¶
func (*Packet) WriteFloat32 ¶
func (*Packet) WriteFloat64 ¶
func (*Packet) WriteRawBytes ¶
func (*Packet) WriteString ¶
func (*Packet) WriteZeros ¶
================================================ Writers
Click to show internal directories.
Click to hide internal directories.