BloombergLP::balber::BerUtil::getIdentifierOctets

Decode BER identifier octets from streamBuf.

Synopsis

Declared in <balber_berutil.h>

static
int
getIdentifierOctets(
    std::streambuf* streamBuf,
    BerConstants::TagClass* tagClass,
    BerConstants::TagType* tagType,
    int* tagNumber,
    int* accumNumBytesConsumed);

Description

tagNumber respectively. Add the number of bytes consumed to the specified accumNumBytesConsumed. Return 0 on success, and a non-zero value otherwise.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamBufinput stream buffer
tagClassdestination for the BER tag class
tagTypedestination for the BER tag type
tagNumberdestination for the BER tag number
accumNumBytesConsumedrunning total of bytes consumed; incremented by this call