[#BloombergLP-balber-BerUtil_IntegerImpUtil-getNumOctetsToStream-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_IntegerImpUtil.adoc[BerUtil&lowbar;IntegerImpUtil]::getNumOctetsToStream
:relfileprefix: ../../../
:mrdocs:

Return the number of octets required to provide a BER encoding of the specified `value` according to the specification&period; The program is ill&hyphen;formed unless the specified `INTEGRAL&lowbar;TYPE` is a fundamental integral type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename INTEGRAL&lowbar;TYPE&gt;
static
int
getNumOctetsToStream(INTEGRAL&lowbar;TYPE value);
----


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