[#BloombergLP-balber-BerUtil_IntegerImpUtil-get40BitIntegerValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_IntegerImpUtil.adoc[BerUtil&lowbar;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&hyphen;bit, signed&period;

== Synopsis

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

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

== Description

2&apos;s&hyphen;complement, big&hyphen;endian integer&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period; 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&hyphen;bit, signed, 2&apos;s&hyphen;complement, big&hyphen;endian integer&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| destination for the decoded value
| *streamBuf*
| input stream buffer
|===


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