[#BloombergLP-balber-BerUtil_BooleanImpUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerUtil_BooleanImpUtil :relfileprefix: ../../ :mrdocs: 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`: == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BerUtil_BooleanImpUtil; ---- == Description * *the specification*: > Refers to the August 2015 revision of the ITU‐T Recommendation X.690. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerUtil_BooleanImpUtil/LengthUtil.adoc[`LengthUtil`] | `LengthUtil` is an alias to a namespace for a suite of functions used to implement BER encoding and decoding operations for length quantities. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerUtil_BooleanImpUtil/getBoolValue.adoc[`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. | xref:BloombergLP/balber/BerUtil_BooleanImpUtil/putBoolValue.adoc[`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`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#