Versions in this module Expand all Collapse all v0 v0.1.2 Oct 21, 2026 v0.1.1 Oct 19, 2026 v0.1.0 Oct 19, 2026 Changes in this version + var ErrCRC = errors.New("yencsimd: crc32 mismatch") + var ErrDstTooSmall = errors.New("yencsimd: destination must be at least the length of source") + var ErrNoYbegin = errors.New("yencsimd: no =ybegin line") + var ErrSize = errors.New("yencsimd: size mismatch") + var ErrTruncated = errors.New("yencsimd: article ends before =yend") + func Kernel() string + func Kernels() []string + func SetKernel(name string) error + type End int + const EndArticle + const EndControl + const EndNone + func DecodeIncremental(dst, src []byte, state *State) (nDst, nSrc int, end End, err error) + type Meta struct + Begin int64 + CRC32 uint32 + End int64 + HasCRC bool + Name string + Part int + Size int64 + Total int + func Decode(article []byte) ([]byte, Meta, error) + type Reader struct + func NewReader(r io.Reader) *Reader + func (d *Reader) Meta() Meta + func (d *Reader) Read(p []byte) (int, error) + type State int + const StateCR + const StateCRLF + const StateCRLFDT + const StateCRLFDTCR + const StateCRLFEQ + const StateEQ + const StateNone