Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

balber::BerUtil_BooleanImpUtil Struct Reference

#include <balber_berutil.h>

List of all members.

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.

See Component balber_berutil


Member Typedef Documentation


Member Function Documentation

static int balber::BerUtil_BooleanImpUtil::getBoolValue ( bool *  value,
bsl::streambuf *  streamBuf,
int  length 
) [static]

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.

static int balber::BerUtil_BooleanImpUtil::putBoolValue ( bsl::streambuf *  streamBuf,
bool  value 
) [static]

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: