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

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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getBoolValue(
    bool* value,
    std::streambuf* streamBuf,
    int length);
----


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