BDE 4.14.0 Production release
Loading...
Searching...
No Matches
balber::BerUtil_IdentifierImpUtil Struct Reference

#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)
 

Detailed Description

This component-private utility struct provides a namespace for a suite of functions used by BerUtil to implement BER identifier octet encoding and decoding.

Member Typedef Documentation

◆ Constants

Constants is an alias to a namespace for a suite of general-purpose constants that occur when encoding or decoding BER data.

Member Function Documentation

◆ getIdentifierOctets()

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.

◆ putIdentifierOctets()

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.


The documentation for this struct was generated from the following file: