Module 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ยง

CodesStats
Keeps track of the space needed to store a stream of integers using different codes.
CountBitReader
A wrapper around a BitRead that keeps track of the number of bits read and optionally prints on standard error the operations performed on the stream.
CountBitWriter
A wrapper around a BitWrite that keeps track of the number of bits written and optionally prints on standard error the operations performed on the stream.
DbgBitReader
A wrapper over a BitRead that report on standard error all operations performed, including all code reads.
DbgBitWriter
A wrapper over a BitWrite that report on standard error all operations performed, including all code writes.