[#BloombergLP-balber-BerUtil_IntegerImpUtil-getNumOctetsToStream-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_IntegerImpUtil.adoc[BerUtil_IntegerImpUtil]::getNumOctetsToStream :relfileprefix: ../../../ :mrdocs: Return the number of octets required to provide a BER encoding of the specified `value` according to the specification. The program is ill‐formed unless the specified `INTEGRAL_TYPE` is a fundamental integral type. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename INTEGRAL_TYPE> static int getNumOctetsToStream(INTEGRAL_TYPE value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#