Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + const BoolLen + const ByteLen + const IntLen + const LongLen + const MaxStringLen + const ShortLen + func TryPackAddr(packer *Packer, valIntf interface{}) + func TryPackAddrList(packer *Packer, valIntf interface{}) + func TryPackByte(packer *Packer, valIntf interface{}) + func TryPackBytes(packer *Packer, valIntf interface{}) + func TryPackHash(packer *Packer, valIntf interface{}) + func TryPackHashes(packer *Packer, valIntf interface{}) + func TryPackIP(packer *Packer, valIntf interface{}) + func TryPackIPList(packer *Packer, valIntf interface{}) + func TryPackInt(packer *Packer, valIntf interface{}) + func TryPackLong(packer *Packer, valIntf interface{}) + func TryPackShort(packer *Packer, valIntf interface{}) + func TryPackStr(packer *Packer, valIntf interface{}) + func TryUnpackAddr(packer *Packer) interface + func TryUnpackAddrList(packer *Packer) interface + func TryUnpackByte(packer *Packer) interface + func TryUnpackBytes(packer *Packer) interface + func TryUnpackHash(packer *Packer) interface + func TryUnpackHashes(packer *Packer) interface + func TryUnpackIP(packer *Packer) interface + func TryUnpackIPList(packer *Packer) interface + func TryUnpackInt(packer *Packer) interface + func TryUnpackLong(packer *Packer) interface + func TryUnpackShort(packer *Packer) interface + func TryUnpackStr(packer *Packer) interface + type Errs struct + Err error + func (errs *Errs) Add(errors ...error) + func (errs *Errs) Errored() bool + type Packer struct + Bytes []byte + MaxSize int + Offset int + func (p *Packer) CheckSpace(bytes int) + func (p *Packer) Expand(bytes int) + func (p *Packer) PackBool(b bool) + func (p *Packer) PackByte(val byte) + func (p *Packer) PackBytes(bytes []byte) + func (p *Packer) PackFixedByteSlices(byteSlices [][]byte) + func (p *Packer) PackFixedBytes(bytes []byte) + func (p *Packer) PackIP(ip utils.IPDesc) + func (p *Packer) PackIPs(ips []utils.IPDesc) + func (p *Packer) PackInt(val uint32) + func (p *Packer) PackLong(val uint64) + func (p *Packer) PackShort(val uint16) + func (p *Packer) PackStr(str string) + func (p *Packer) UnpackBool() bool + func (p *Packer) UnpackByte() byte + func (p *Packer) UnpackBytes() []byte + func (p *Packer) UnpackFixedByteSlices(size int) [][]byte + func (p *Packer) UnpackFixedBytes(size int) []byte + func (p *Packer) UnpackIP() utils.IPDesc + func (p *Packer) UnpackIPs() []utils.IPDesc + func (p *Packer) UnpackInt() uint32 + func (p *Packer) UnpackLong() uint64 + func (p *Packer) UnpackShort() uint16 + func (p *Packer) UnpackStr() string