Versions in this module Expand all Collapse all v0 v0.2.0 Feb 25, 2024 Changes in this version + func WriteNum(w io.Writer, n uint32) (cnt uint32, err error) + type Constructor struct + func NewWriter(buf []byte) (c Constructor) + func (c *Constructor) Cap() uint32 + func (c *Constructor) Len() uint32 + func (c *Constructor) WriteString(s string, cap uint32) error + func (c *Constructor) WriteTo(w io.Writer) (int64, error) + type Iterator struct + func NewReader(r io.Reader) (it Iterator, err error) + func (it *Iterator) Bytes() []byte + func (it *Iterator) Cap() uint32 + func (it *Iterator) Len() uint32 + func (it *Iterator) Next() bool + func (it *Iterator) String() string v0.1.0 Oct 27, 2022 Changes in this version + var ErrInvalidDataLen = errors.New("invalid data_len") + var ErrInvalidStructLen = errors.New("invalid struct_len") + func ReadNum(r io.Reader) (n uint32, cnt int, err error) + type SimplePB struct + RealLen uint32 + StructLen uint32 + Target [][]byte + func NewSimplePB(r io.Reader) (s SimplePB, err error)