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

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;

== Synopsis

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

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


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