[#BloombergLP-balber-BerUtil_RawIntegerImpUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerUtil&lowbar;RawIntegerImpUtil
:relfileprefix: ../../
:mrdocs:

This component&hyphen;private utility `struct` provides a namespace for a suite of functions used by `BerUtil` to implement BER integer encoding&period; This `struct` is separate from `BerUtil&lowbar;IntegerImpUtil` to break a dependency cycle between `BerUtil&lowbar;IntegerImpUtil` and `BerUtil&lowbar;LengthImpUtil`&period;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct BerUtil&lowbar;RawIntegerImpUtil;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balber/BerUtil_RawIntegerImpUtil/Constants.adoc[`Constants`] 
| `Constants` is an alias to a namespace for a suite of general&hyphen;purpose constants that occur when encoding or decoding BER data&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balber/BerUtil_RawIntegerImpUtil/putIntegerGivenLength.adoc[`putIntegerGivenLength`] 
| Encode the octets used in the BER encoding of the specified `value` of the specified `INTEGRAL&lowbar;TYPE` to the specified `streamBuf`, using exactly the specified `length` number of octets&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; The behavior is undefined unless `INTEGRAL&lowbar;TYPE` is fundamental integral type and exactly `length` number of octets is used in the BER encoding of the specified `value`&period;
|===



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