[#BloombergLP-balber-BerUtil_LengthImpUtil-putLength]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_LengthImpUtil.adoc[BerUtil&lowbar;LengthImpUtil]::putLength
:relfileprefix: ../../../
:mrdocs:

Encode the specified `length` length octets to the specified `streamBuf`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; The behavior is undefined unless `0 &lt;&equals; length`&period;

== Synopsis

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

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


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