[#BloombergLP-balber-BerUtil_GetValueImpUtil-getValue-095]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_GetValueImpUtil.adoc[BerUtil&lowbar;GetValueImpUtil]::getValue
:relfileprefix: ../../../
:mrdocs:

`getValue` overloads

== Synopses

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

Decode a `bdlt&colon;&colon;Date` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-00.adoc[getValue](
    xref:BloombergLP/bdlt/Date.adoc[bdlt::Date]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-00.adoc[_» more&period;&period;&period;_]#

Decode a `DateOrDateTz` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-033.adoc[getValue](
    xref:BloombergLP/balber/BerUtil_GetValueImpUtil/DateOrDateTz.adoc[DateOrDateTz]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-033.adoc[_» more&period;&period;&period;_]#

Decode a `bdlt&colon;&colon;DateTz` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-05b.adoc[getValue](
    xref:BloombergLP/bdlt/DateTz.adoc[bdlt::DateTz]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-05b.adoc[_» more&period;&period;&period;_]#

Decode a `bdlt&colon;&colon;Datetime` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-09f.adoc[getValue](
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-09f.adoc[_» more&period;&period;&period;_]#

Decode a `DatetimeOrDatetimeTz` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-041.adoc[getValue](
    xref:BloombergLP/balber/BerUtil_GetValueImpUtil/DatetimeOrDatetimeTz.adoc[DatetimeOrDatetimeTz]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-041.adoc[_» more&period;&period;&period;_]#

Decode a `bdlt&colon;&colon;DatetimeTz` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0e0.adoc[getValue](
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0e0.adoc[_» more&period;&period;&period;_]#

Decode a `bdldfp&colon;&colon;Decimal64` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0f.adoc[getValue](
    xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0f.adoc[_» more&period;&period;&period;_]#

Decode a `bdlt&colon;&colon;Time` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-04a.adoc[getValue](
    xref:BloombergLP/bdlt/Time.adoc[bdlt::Time]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-04a.adoc[_» more&period;&period;&period;_]#

Decode a `TimeOrTimeTz` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0c.adoc[getValue](
    xref:BloombergLP/balber/BerUtil_GetValueImpUtil/TimeOrTimeTz.adoc[TimeOrTimeTz]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0c.adoc[_» more&period;&period;&period;_]#

Decode a `bdlt&colon;&colon;TimeTz` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-09a.adoc[getValue](
    xref:BloombergLP/bdlt/TimeTz.adoc[bdlt::TimeTz]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-09a.adoc[_» more&period;&period;&period;_]#

Decode a `bool` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-07.adoc[getValue](
    bool* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-07.adoc[_» more&period;&period;&period;_]#

Decode a `char` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-05f.adoc[getValue](
    char* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-05f.adoc[_» more&period;&period;&period;_]#

Decode a `double` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-03e.adoc[getValue](
    double* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-03e.adoc[_» more&period;&period;&period;_]#

Decode a `float` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-03f.adoc[getValue](
    float* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-03f.adoc[_» more&period;&period;&period;_]#

Decode a `signed char` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-06.adoc[getValue](
    signed char* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-06.adoc[_» more&period;&period;&period;_]#

Decode a `bsl&colon;&colon;string` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0ee.adoc[getValue](
    xref:bsl/string.adoc[bsl::string]* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0ee.adoc[_» more&period;&period;&period;_]#

Decode an `unsigned char` value&semi; see the primary `getValue` overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0a.adoc[getValue](
    unsigned char* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-0a.adoc[_» more&period;&period;&period;_]#

Decode the specified `value` from the specified `streamBuf`, consuming exactly the specified `length` bytes&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; Optionally specify decoding `options` to control aspects of the decoding&period; Note that the value consists of the contents of the bytes only (no length prefix)&period; Also note that only fundamental C&plus;&plus; types, `bsl&colon;&colon;string`, and BDE date&sol;time types are supported&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename TYPE&gt;
static
int
xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-02.adoc[getValue](
    TYPE* value,
    std::streambuf* streamBuf,
    int length,
    xref:BloombergLP/balber/BerDecoderOptions.adoc[BerDecoderOptions] const& options = BerDecoderOptions());
----

[.small]#xref:BloombergLP/balber/BerUtil_GetValueImpUtil/getValue-02.adoc[_» more&period;&period;&period;_]#


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