Versions in this module Expand all Collapse all v0 v0.9.0 Sep 7, 2023 v0.8.0 Apr 17, 2023 Changes in this version + const IndexSize + var ErrBufferNotEnough = errors.New("vsb.codec: buffer not enough") + var ErrCorruptedPacket = errors.New("vsb.codec: corrupted packet") + var ErrCorruptedRecord = errors.New("vsb.codec: corrupted record") + var ErrIncompletePacket = errors.New("vsb.codec: incomplete packet") + var ErrInvalid = errors.New("vsb.codec: invalid argument") + var ErrUnknownRecord = errors.New("vsb.codec: unknown record") + type EntryDecoder interface + Unmarshal func(data []byte) (int, block.Entry, error) + UnmarshalLast func(data []byte) (int, block.Entry, error) + UnmarshalReader func(r io.ReadSeeker) (int, block.Entry, error) + func NewDecoder(checkCRC bool, indexSize int) (EntryDecoder, error) + type EntryEncoder interface + MarshalTo func(entry block.Entry, buf []byte) (int, error) + Size func(entry block.Entry) int + func NewEncoder() EntryEncoder + type PacketDataDecoder interface + Unmarshal func(data []byte) (block.Entry, error) + type PacketDataEncoder interface + MarshalTo func(entry block.Entry, buf []byte) (int, error) + Size func(entry block.Entry) int + type RecordDataDecoder interface + Unmarshal func(t uint16, offset int, data []byte) (block.Entry, error) + type RecordDataEncoder interface + MarshalTo func(entry block.Entry, buf []byte) (int, int, error) + Size func(entry block.Entry) int