Write the length and contents octets of the BER encoding of the specified integer value (as defined in the specification) to the output sequence of the specified streamBuf. Return 0 if successful, and a non-zero value otherwise. The operation succeeds if all bytes corresponding to the length and contents octets are written to the streamBuf without the write position becoming unavailable. The program is ill-formed unless the specified INTEGRAL_TYPE is a fundamental integral type.
Declared in <balber_berutil.h>
template<typename INTEGRAL_TYPE>
static
int
putIntegerValue(
std::streambuf* streamBuf,
INTEGRAL_TYPE value);