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

#include <balber_berutil.h>

Public Types

typedef BerUtil_Constants Constants
 

Public Member Functions

template<typename TYPE >
int putIntegerGivenLength (bsl::streambuf *streamBuf, TYPE value, int length)
 

Static Public Member Functions

template<class INTEGRAL_TYPE >
static int putIntegerGivenLength (bsl::streambuf *streamBuf, INTEGRAL_TYPE value, int length)
 

Detailed Description

This component-private utility struct provides a namespace for a suite of functions used by BerUtil to implement BER integer encoding. This struct is separate from BerUtil_IntegerImpUtil to break a dependency cycle between BerUtil_IntegerImpUtil and BerUtil_LengthImpUtil.

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

◆ putIntegerGivenLength() [1/2]

template<class INTEGRAL_TYPE >
static int balber::BerUtil_RawIntegerImpUtil::putIntegerGivenLength ( bsl::streambuf *  streamBuf,
INTEGRAL_TYPE  value,
int  length 
)
static

Encode the octets used in the BER encoding of the specified value of the specified INTEGRAL_TYPE to the specified streamBuf, using exactly the specified length number of octets. Return 0 on success, and a non-zero value otherwise. The behavior is undefined unless INTEGRAL_TYPE is fundamental integral type and exactly length number of octets is used in the BER encoding of the specified value.

◆ putIntegerGivenLength() [2/2]

template<typename TYPE >
int balber::BerUtil_RawIntegerImpUtil::putIntegerGivenLength ( bsl::streambuf *  streamBuf,
TYPE  value,
int  length 
)

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