[#BloombergLP-balber-BerUtil-getIdentifierOctets]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil.adoc[BerUtil]::getIdentifierOctets
:relfileprefix: ../../../
:mrdocs:

Decode BER identifier octets from `streamBuf`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getIdentifierOctets(
    std::streambuf* streamBuf,
    xref:BloombergLP/balber/BerConstants/TagClass.adoc[BerConstants::TagClass]* tagClass,
    xref:BloombergLP/balber/BerConstants/TagType.adoc[BerConstants::TagType]* tagType,
    int* tagNumber,
    int* accumNumBytesConsumed);
----

== Description

`tagNumber` respectively&period; Add the number of bytes consumed to the specified `accumNumBytesConsumed`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *streamBuf*
| input stream buffer
| *tagClass*
| destination for the BER tag class
| *tagType*
| destination for the BER tag type
| *tagNumber*
| destination for the BER tag number
| *accumNumBytesConsumed*
| running total of bytes consumed&semi; incremented by this call
|===


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