|
BDE 4.14.0 Production release
|
#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) |
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.
LengthUtil is an alias to a namespace for a suite of functions used to implement BER encoding and decoding operations for length quantities.
|
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.
|
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.