Module dsi_bitstream::utils
source · Expand description
Debug helpers and statistics.
CountBitReader and CountBitWriter keep track of the number
of bits read or written to a BitRead
and BitWrite, respectively,
optionally printing on standard error the operations performed on the stream.
DbgBitReader and DbgBitWriter print on standard error all
operation beformed by a BitRead or
BitWrite.
CodesStats keeps track of the space needed to store a stream of
integers using different codes.
Structs§
- Keeps track of the space needed to store a stream of integers using different codes.
- A wrapper around a
BitReadthat keeps track of the number of bits read and optionally prints on standard error the operations performed on the stream. - A wrapper around a
BitWritethat keeps track of the number of bits written and optionally prints on standard error the operations performed on the stream. - A wrapper over a
BitReadthat report on standard error all operations performed, including all code reads. - A wrapper over a
BitWritethat report on standard error all operations performed, including all code writes.