[#BloombergLP-balber-BerUtil_CharacterImpUtil-getUnsignedCharValue]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_CharacterImpUtil.adoc[BerUtil&lowbar;CharacterImpUtil]::getUnsignedCharValue
:relfileprefix: ../../../
:mrdocs:

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 value of the contents octets of a BER&hyphen;encoded integer 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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getUnsignedCharValue(
    unsigned char* value,
    std::streambuf* streamBuf,
    int length);
----


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