[#BloombergLP-balber-BerUtil_BooleanImpUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerUtil&lowbar;BooleanImpUtil
:relfileprefix: ../../
:mrdocs:

This component&hyphen;private utility `struct` provides a namespace for a suite of functions used by `BerUtil` to implement BER encoding and decoding operations for boolean values&period; Within the definition of this `struct`&colon;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct BerUtil&lowbar;BooleanImpUtil;
----

== Description

&ast; *the specification*&colon; &gt; Refers to the August 2015 revision of the ITU&hyphen;T Recommendation X&period;690&period;

== 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&period;
|===


== 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&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; 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&hyphen;encoded boolean value according to the specification&period;
| xref:BloombergLP/balber/BerUtil_BooleanImpUtil/putBoolValue.adoc[`putBoolValue`] 
| Encode the specified `value` to the specified `streamBuf`&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The `value` is encoded as the sequence of contents octets for a BER&hyphen;encoded boolean value according to the specification&period; This operation succeeds if all of the contents octets are successfully written to the `streamBuf`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
