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

#include <balber_berutil.h>

Public Types

typedef BerUtil_LengthImpUtil LengthUtil
 

Static Public Member Functions

static int getBoolValue (bool *value, bsl::streambuf *streamBuf, int length)
 
static int putBoolValue (bsl::streambuf *streamBuf, bool value)
 

Detailed Description

This component-private utility struct provides a namespace for a suite of functions used by BerUtil to implement BER encoding and decoding operations for boolean values. Within the definition of this struct:

: the specification: : Refers to the August 2015 revision of the ITU-T Recommendation X.690.

Member Typedef Documentation

◆ LengthUtil

LengthUtil is an alias to a namespace for a suite of functions used to implement BER encoding and decoding operations for length quantities.

Member Function Documentation

◆ getBoolValue()

int balber::BerUtil_BooleanImpUtil::getBoolValue ( bool *  value,
bsl::streambuf *  streamBuf,
int  length 
)
inlinestatic

Decode to the specified value from the specified streamBuf, consuming exactly the specified length bytes. Return 0 on success, and a non-zero value otherwise. This operations succeeds if length bytes are successfully read from the streamBuf and they contain a valid representation of the contents octets for a BER-encoded boolean value according to the specification.

◆ putBoolValue()

int balber::BerUtil_BooleanImpUtil::putBoolValue ( bsl::streambuf *  streamBuf,
bool  value 
)
inlinestatic

Encode the specified value to the specified streamBuf. Return 0 on success and a non-zero value otherwise. The value is encoded as the sequence of contents octets for a BER-encoded boolean value according to the specification. This operation succeeds if all of the contents octets are successfully written to the streamBuf.


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