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.

Synopsis

Declared in <balber_berutil.h>

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

Description

bytes as the contents octets of a BER-encoded integer value according to the specification. Return 0 if successful, and a non-zero value otherwise.

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