BloombergLP::balber::BerUtil_IntegerImpUtil::getNumOctetsToStream

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>

template<typename INTEGRAL_TYPE>
static
int
getNumOctetsToStream(INTEGRAL_TYPE value);