[#BloombergLP-balber-BerUtil_IntegerImpUtil-put40BitIntegerValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_IntegerImpUtil.adoc[BerUtil_IntegerImpUtil]::put40BitIntegerValue :relfileprefix: ../../../ :mrdocs: Write the 5 octets that comprise the 40‐bit, signed, 2's‐complement, bit‐endian representation of the specified integer `value` to the specified `streamBuf`. Return 0 if successful, and a non‐zero value otherwise. The operation succeeds if all bytes corresponding to the representation of the `value` are written to the `streamBuf` without the write position becoming unavailable. The behavior is undefined unless the `value` is in the half‐open interval `[‐549755813888, 549755813888)]`. == Synopsis Declared in `<balber_berutil.h>` [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]#