Documentation
¶
Index ¶
- func Register(strct interface{})
- type BPReader
- type BytePack
- type Packable
- type Packer
- func (s *Packer) Pack(obj interface{}) ([]byte, error)
- func (s *Packer) PackBool(bval bool) error
- func (s *Packer) PackFloat32(fval float32) error
- func (s *Packer) PackFloat64(fval float64) error
- func (s *Packer) PackInt(ival int) error
- func (s *Packer) PackInt16(ival int16) error
- func (s *Packer) PackInt32(ival int32) error
- func (s *Packer) PackInt64(ival int64) error
- func (s *Packer) PackInt8(ival int8) error
- func (s *Packer) PackMap(m interface{}) error
- func (s *Packer) PackSlice(slice interface{}) error
- func (s *Packer) PackString(str string) error
- func (s *Packer) PackStruct(obj interface{}) error
- func (s *Packer) PackUint(ival uint) error
- func (s *Packer) PackUint16(uival uint16) error
- func (s *Packer) PackUint32(uival uint32) error
- func (s *Packer) PackUint64(uival uint64) error
- func (s *Packer) PackUint8(uival uint8) error
- func (s *Packer) Unpack(data []byte, obj interface{}) error
- func (s *Packer) UnpackArray(arrayType reflect.Type, buf BPReader) (*reflect.Value, error)
- func (s *Packer) UnpackBool(buf BPReader) (bool, error)
- func (s *Packer) UnpackFloat32(buf BPReader) (float32, error)
- func (s *Packer) UnpackFloat64(buf BPReader) (float64, error)
- func (s *Packer) UnpackFromReader(buf BPReader, obj interface{}) error
- func (s *Packer) UnpackInt(buf BPReader) (int, error)
- func (s *Packer) UnpackInt16(buf BPReader) (int16, error)
- func (s *Packer) UnpackInt32(buf BPReader) (int32, error)
- func (s *Packer) UnpackInt64(buf BPReader) (int64, error)
- func (s *Packer) UnpackInt8(buf BPReader) (int8, error)
- func (s *Packer) UnpackMap(mapType reflect.Type, buf BPReader) (*reflect.Value, error)
- func (s *Packer) UnpackSlice(sliceType reflect.Type, buf BPReader) (*reflect.Value, error)
- func (s *Packer) UnpackString(buf BPReader) (string, error)
- func (s *Packer) UnpackStruct(buf BPReader, i interface{}) error
- func (s *Packer) UnpackUint(buf BPReader) (uint, error)
- func (s *Packer) UnpackUint16(buf BPReader) (uint16, error)
- func (s *Packer) UnpackUint32(buf BPReader) (uint32, error)
- func (s *Packer) UnpackUint64(buf BPReader) (uint64, error)
- func (s *Packer) UnpackUint8(buf BPReader) (uint8, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BytePack ¶
type BytePack struct {
// contains filtered or unexported fields
}
func NewBytePack ¶
func (*BytePack) UnpackFromIOReader ¶
func (*BytePack) UnpackFromReader ¶
type Packable ¶
Packable
Packable interface allows struct to implement own Pack and Unpack methods for data serialization and deserialization.
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
func (*Packer) PackFloat32 ¶
func (*Packer) PackFloat64 ¶
func (*Packer) PackString ¶
func (*Packer) PackStruct ¶
func (*Packer) PackUint16 ¶
func (*Packer) PackUint32 ¶
func (*Packer) PackUint64 ¶
func (*Packer) UnpackArray ¶
func (*Packer) UnpackFromReader ¶
func (*Packer) UnpackSlice ¶
func (*Packer) UnpackStruct ¶
Click to show internal directories.
Click to hide internal directories.