Module dsi_bitstream::utils

source ·
Expand description

Debug helpers.

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.

Structs

  • 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.
  • 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.
  • A wrapper over a BitRead that report on standard error all operations performed, including all code reads.
  • A wrapper over a BitWrite that report on standard error all operations performed, including all code writes.