[#BloombergLP-balber-BerUtil_LengthImpUtil-getLength] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_LengthImpUtil.adoc[BerUtil_LengthImpUtil]::getLength :relfileprefix: ../../../ :mrdocs: Decode the length octets from the specified `streamBuf` and load the result to the specified `result`. If the length is indefinite (i.e., contents will be terminated by "end‐of‐content" octets) then `result` will be set to `k_INDEFINITE_LENGTH`. Add the number of bytes consumed to the specified `accumNumBytesConsumed`. Return 0 on success, and a non‐zero value otherwise. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int getLength( int* result, int* accumNumBytesConsumed, std::streambuf* streamBuf); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#