[#BitStreamReader]
= BitStreamReader
:mrdocs:

Reads individual bits, most significant first, from an underlying byte stream&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename IStream&gt;
class BitStreamReader;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BitStreamReader/2constructor.adoc[`BitStreamReader`]         [.small]#[constructor]#
| Construct a bit reader over the given input byte stream&period;
| xref:BitStreamReader/Read.adoc[`Read`] 
| Read the specified number of bits from the stream&period; The data is returned in the nbits least significant bits of a 64&hyphen;bit uint&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:GolombRiceDecode.adoc[`GolombRiceDecode`]
| Golomb&hyphen;Rice decode a value from a bit stream&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
