[#BloombergLP-balber-BerUtil_IntegerImpUtil-put40BitIntegerValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_IntegerImpUtil.adoc[BerUtil&lowbar;IntegerImpUtil]::put40BitIntegerValue
:relfileprefix: ../../../
:mrdocs:

Write the 5 octets that comprise the 40&hyphen;bit, signed, 2&apos;s&hyphen;complement, bit&hyphen;endian representation of the specified integer `value` to the specified `streamBuf`&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period; The operation succeeds if all bytes corresponding to the representation of the `value` are written to the `streamBuf` without the write position becoming unavailable&period; The behavior is undefined unless the `value` is in the half&hyphen;open interval `&lsqb;&hyphen;549755813888, 549755813888)&rsqb;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
put40BitIntegerValue(
    std::streambuf* streamBuf,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] value);
----


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