BloombergLP::balber::BerUtil::getValue

getValue overloads

Synopses

Declared in <balber_berutil.h>

Decode the specified value from the specified streamBuf, consuming exactly the specified length bytes.

template<typename TYPE>
static
int
getValue(
    std::streambuf* streamBuf,
    TYPE* value,
    int length,
    BerDecoderOptions const& options = BerDecoderOptions());
» more...

Decode the specified value from the specified streamBuf and add the number of bytes consumed to the specified accumNumBytesConsumed.

template<typename TYPE>
static
int
getValue(
    std::streambuf* streamBuf,
    TYPE* value,
    int* accumNumBytesConsumed,
    BerDecoderOptions const& options = BerDecoderOptions());
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamBufinput stream buffer
valuedestination for the decoded value
lengthnumber of content octets
optionsdecoder options controlling decoding behavior
accumNumBytesConsumedrunning total of bytes consumed; incremented by this call