[#BloombergLP-balber-BerUtil-getValue-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil.adoc[BerUtil]::getValue :relfileprefix: ../../../ :mrdocs: `getValue` overloads == Synopses Declared in `<balber_berutil.h>` Decode the specified `value` from the specified `streamBuf`, consuming exactly the specified `length` bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> static int xref:BloombergLP/balber/BerUtil/getValue-06.adoc[getValue]( std::streambuf* streamBuf, TYPE* value, int length, xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions()); ---- [.small]#xref:BloombergLP/balber/BerUtil/getValue-06.adoc[_» more..._]# Decode the specified `value` from the specified `streamBuf` and add the number of bytes consumed to the specified `accumNumBytesConsumed`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> static int xref:BloombergLP/balber/BerUtil/getValue-01.adoc[getValue]( std::streambuf* streamBuf, TYPE* value, int* accumNumBytesConsumed, xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions()); ---- [.small]#xref:BloombergLP/balber/BerUtil/getValue-01.adoc[_» more..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *streamBuf* | input stream buffer | *value* | destination for the decoded value | *length* | number of content octets | *options* | decoder options controlling decoding behavior | *accumNumBytesConsumed* | running total of bytes consumed; incremented by this call |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#