Read the specified number of bits from the stream. The data is returned in the nbits least significant bits of a 64-bit uint.
Declared in <streams.h>
uint64_t
Read(int nbits);
The bits read, right-aligned in the low nbits bits of the result.
| Name | Description |
|---|---|
| nbits | Number of bits to read, between 0 and 64. |