BloombergLP::balber::BerUtil_IntegerImpUtil::getIntegerValue

Read the specified length number of bytes from the input sequence of the specified streamBuf and load to the specified value the interpretation of those.

Synopses

Declared in <balber_berutil.h>

Read the specified length number of bytes from the input sequence of the specified streamBuf and load to the specified value the interpretation of those.

static
int
getIntegerValue(
    long long* value,
    std::streambuf* streamBuf,
    int length);
» more...

Read the specified length number of bytes from the input sequence of the specified streamBuf and load to the specified value the interpretation of those.

template<typename INTEGRAL_TYPE>
static
int
getIntegerValue(
    INTEGRAL_TYPE* value,
    std::streambuf* streamBuf,
    int length);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valuedestination for the decoded value
streamBufinput stream buffer
lengthnumber of content octets