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

`getIntegerValue` overloads

== Synopses

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

Read the specified `length` number of bytes from the input sequence of the specified `streamBuf` and load to the specified `value` the interpretation of those bytes as the contents octets of a BER&hyphen;encoded integer value according to the specification&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_IntegerImpUtil/getIntegerValue-0d.adoc[getIntegerValue](
    long long* value,
    std::streambuf* streamBuf,
    int length);
----

[.small]#xref:BloombergLP/balber/BerUtil_IntegerImpUtil/getIntegerValue-0d.adoc[_» more&period;&period;&period;_]#

Read the specified `length` number of bytes from the input sequence of the specified `streamBuf` and load to the specified `value` the interpretation of those bytes as the contents octets of BER&hyphen;encoded integer value according to the specification&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period; The operation succeeds if `length` 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 the contents octets of an integer value according to the specification&period; The program is ill&hyphen;formed unless the specified `INTEGRAL&lowbar;TYPE` is a fundamental integral type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename INTEGRAL&lowbar;TYPE&gt;
static
int
xref:BloombergLP/balber/BerUtil_IntegerImpUtil/getIntegerValue-04.adoc[getIntegerValue](
    INTEGRAL&lowbar;TYPE* value,
    std::streambuf* streamBuf,
    int length);
----

[.small]#xref:BloombergLP/balber/BerUtil_IntegerImpUtil/getIntegerValue-04.adoc[_» more&period;&period;&period;_]#


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