Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2023 v1.1.0 Aug 8, 2023 Changes in this version + type Reader struct + func New(data []byte) *Reader + func (r *Reader) Align() (skipped byte) + func (r *Reader) BitPosition() int + func (r *Reader) ConsumeRemainingBits() + func (r *Reader) Length() uint64 + func (r *Reader) Mark() + func (r *Reader) Read(p []byte) (n int, err error) + func (r *Reader) ReadBit() (bit int, err error) + func (r *Reader) ReadBits(n byte) (u uint64, err error) + func (r *Reader) ReadBool() (bool, error) + func (r *Reader) ReadByte() (byte, error) + func (r *Reader) ReadUint32() (uint32, error) + func (r *Reader) Reset() + func (r *Reader) Seek(offset int64, whence int) (int64, error) + func (r *Reader) StreamPosition() int64 + type StreamReader interface + Align func() byte + BitPosition func() int + Length func() uint64 + Mark func() + ReadBit func() (int, error) + ReadBits func(n byte) (uint64, error) + ReadBool func() (bool, error) + ReadUint32 func() (uint32, error) + Reset func() + StreamPosition func() int64 + type SubstreamReader struct + func NewSubstreamReader(r StreamReader, offset, length uint64) (*SubstreamReader, error) + func (s *SubstreamReader) Align() (skipped byte) + func (s *SubstreamReader) BitPosition() int + func (s *SubstreamReader) Length() uint64 + func (s *SubstreamReader) Mark() + func (s *SubstreamReader) Offset() uint64 + func (s *SubstreamReader) Read(b []byte) (n int, err error) + func (s *SubstreamReader) ReadBit() (bit int, err error) + func (s *SubstreamReader) ReadBits(n byte) (u uint64, err error) + func (s *SubstreamReader) ReadBool() (bool, error) + func (s *SubstreamReader) ReadByte() (byte, error) + func (s *SubstreamReader) ReadUint32() (uint32, error) + func (s *SubstreamReader) Reset() + func (s *SubstreamReader) Seek(offset int64, whence int) (int64, error) + func (s *SubstreamReader) StreamPosition() int64