[#BloombergLP-balber-BerUtil_BooleanImpUtil-getBoolValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_BooleanImpUtil.adoc[BerUtil_BooleanImpUtil]::getBoolValue :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<balber_berutil.h>` [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]#