[#BloombergLP-balber-BerUtil_IntegerImpUtil-get40BitIntegerValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_IntegerImpUtil.adoc[BerUtil_IntegerImpUtil]::get40BitIntegerValue :relfileprefix: ../../../ :mrdocs: Read 5 bytes from the input sequence of the specified `streamBuf` and load to the specified `value` the interpretation of those bytes as a 40‐bit, signed, 2's‐complement, big‐endian integer. Return 0 if successful, and a non‐zero value otherwise. The operation succeeds if all 5 bytes are successfully read from the input sequence of the `streamBuf` without the read position becoming unavailable, and the bytes read contain a valid representation of a 40‐bit, signed, 2's‐complement, big‐endian integer. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int get40BitIntegerValue( xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64]* value, std::streambuf* streamBuf); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#