[#GolombRiceEncode]
= GolombRiceEncode
:mrdocs:

Golomb&hyphen;Rice encode a value into a bit stream&period;

== Synopsis

Declared in `&lt;util&sol;golombrice&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename OStream&gt;
void
GolombRiceEncode(
    xref:BitStreamWriter.adoc[BitStreamWriter&lt;OStream&gt;]& bitwriter,
    uint8&lowbar;t P,
    uint64&lowbar;t x);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bitwriter*
| The bit stream writer to append to&period;
| *P*
| The Golomb&hyphen;Rice parameter (number of remainder bits)&period;
| *x*
| The value to encode&period;
|===


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