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:
Declared in <balber_berutil.h>
struct BerUtil_BooleanImpUtil;
* the specification: > Refers to the August 2015 revision of the ITU-T Recommendation X.690.
| Name | Description |
|---|---|
LengthUtil | LengthUtil is an alias to a namespace for a suite of functions used to implement BER encoding and decoding operations for length quantities. |
| Name | Description |
|---|---|
getBoolValue | 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 | 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. |