fn readBits(self: *Self, comptime U: type, bits: usize, out_bits: *usize) Error!U

Reads bits bits from the stream and returns a specified unsigned int type containing them in the least significant end. The number of bits successfully read is placed in out_bits, as reaching the end of the stream is not an error.

Parameters

self: *Self,
U: type,
bits: usize,
out_bits: *usize,