Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + const BoolLen + const ByteLen + const IPLen + const IntLen + const LongLen + const MaxStringLen + const ShortLen + func TryPack2DBytes(packer *Packer, valIntf interface{}) + 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 TryPackIPCert(packer *Packer, valIntf interface{}) + func TryPackIPCertList(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 TryPackX509Certificate(packer *Packer, valIntf interface{}) + func TryUnpack2DBytes(packer *Packer) 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 TryUnpackIPCert(packer *Packer) interface + func TryUnpackIPCertList(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 + func TryUnpackX509Certificate(packer *Packer) interface + type Closer struct + func (c *Closer) Add(closer io.Closer) + func (c *Closer) Close() error + 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) Pack2DByteSlice(byteSlices [][]byte) + 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) PackIPCert(ipCert utils.IPCertDesc) + 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) PackX509Certificate(cert *x509.Certificate) + func (p *Packer) Unpack2DByteSlice() [][]byte + 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) UnpackIPCert() utils.IPCertDesc + 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 + func (p *Packer) UnpackX509Certificate() *x509.Certificate