wrappers
Package wrappers
import "github.com/luxfi/node/utils/wrappers"Functions
StringLen
func StringLen(str string) intTypes
Closer
Closer is a nice utility for closing a group of objects while reporting an error if one occurs.
func (c *Closer) Add(closer io.Closer)func (c *Closer) Close() errorErrs
func (errs *Errs) Add(errors ...error)func (errs *Errs) Errored() boolPacker
Packer packs and unpacks a byte array from/to standard values
func (p *Packer) PackBool(b bool)func (p *Packer) PackByte(val byte)func (p *Packer) PackBytes(bytes []byte)func (p *Packer) PackFixedBytes(bytes []byte)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() boolfunc (p *Packer) UnpackByte() bytefunc (p *Packer) UnpackBytes() []bytefunc (p *Packer) UnpackFixedBytes(size int) []bytefunc (p *Packer) UnpackInt() uint32func (p *Packer) UnpackLimitedBytes(limit uint32) []bytefunc (p *Packer) UnpackLimitedStr(limit uint16) stringfunc (p *Packer) UnpackLong() uint64func (p *Packer) UnpackShort() uint16func (p *Packer) UnpackStr() string