Quick Links: |
#include <balber_berutil.h>
Public Types | |
typedef BerUtil_Constants | Constants |
Static Public Member Functions | |
static int | getIdentifierOctets (BerConstants::TagClass *tagClass, BerConstants::TagType *tagType, int *tagNumber, int *accumNumBytesConsumed, bsl::streambuf *streamBuf) |
static int | putIdentifierOctets (bsl::streambuf *streamBuf, BerConstants::TagClass tagClass, BerConstants::TagType tagType, int tagNumber) |
This component-private utility struct
provides a namespace for a suite of functions used by BerUtil
to implement BER identifier octet encoding and decoding.
static int balber::BerUtil_IdentifierImpUtil::getIdentifierOctets | ( | BerConstants::TagClass * | tagClass, | |
BerConstants::TagType * | tagType, | |||
int * | tagNumber, | |||
int * | accumNumBytesConsumed, | |||
bsl::streambuf * | streamBuf | |||
) | [static] |
Decode the identifier octets from the specified streamBuf
and load the tag class, tag type, and tag number to the specified tagClass
, tagType
, and tagNumber
, respectively. Add the number of bytes consumed to the specified accumNumBytesConsumed
. Return 0 on success, and a non-zero value otherwise.
static int balber::BerUtil_IdentifierImpUtil::putIdentifierOctets | ( | bsl::streambuf * | streamBuf, | |
BerConstants::TagClass | tagClass, | |||
BerConstants::TagType | tagType, | |||
int | tagNumber | |||
) | [static] |
Encode the identifier octets for the specified tagClass
, tagType
and tagNumber
, in that order, to the specified streamBuf
. Return 0 on success, and a non-zero value otherwise.