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

Decode the &quot;end&hyphen;of&hyphen;content&quot; octets (two consecutive zero&hyphen;octets) from the specified `streamBuf` and add the number of bytes consumed (which is always 2) to the specified `accumNumBytesConsumed`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getEndOfContentOctets(
    std::streambuf* streamBuf,
    int* accumNumBytesConsumed);
----


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