[#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. Return 0 on success, and a non‐zero value otherwise. Optionally specify decoding `options` to control aspects of the decoding. Note that the value consists of the contents bytes only (no length prefix). Also note that only fundamental C++ types, `bsl::string`, and BDE date/time types are supported. [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`. Return 0 on success, and a non‐zero value otherwise. Optionally specify decoding `options` to control aspects of the decoding. Note that the value consists of the length and contents primitives. Also note that only fundamental C++ types, `bsl::string`, and BDE date/time types are supported. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#