[#BloombergLP-balber-BerDecoder-decodeAny-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerDecoder.adoc[BerDecoder]::decodeAny
:relfileprefix: ../../../
:mrdocs:

`decodeAny` overloads

== Synopses

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

Decode an object referenced by `variable` from `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balber/BerDecoder/decodeAny-07.adoc[decodeAny](
    std::istream& stream,
    xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* variable);
----

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

Decode an object referenced by `variable` from `streamBuf`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balber/BerDecoder/decodeAny-0f.adoc[decodeAny](
    std::streambuf* streamBuf,
    xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* variable);
----

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

Decode an object of parameterized `TYPE` from the specified `stream` and load the result into the specified modifiable `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename TYPE&gt;
int
xref:BloombergLP/balber/BerDecoder/decodeAny-09.adoc[decodeAny](
    std::istream& stream,
    TYPE* variable);
----

[.small]#xref:BloombergLP/balber/BerDecoder/decodeAny-09.adoc[_» more&period;&period;&period;_]#

Decode an object of parameterized `TYPE` from the specified `streamBuf` and load the result into the specified `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename TYPE&gt;
int
xref:BloombergLP/balber/BerDecoder/decodeAny-0b.adoc[decodeAny](
    std::streambuf* streamBuf,
    TYPE* variable);
----

[.small]#xref:BloombergLP/balber/BerDecoder/decodeAny-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

* 0 on success, or a non&hyphen;zero value otherwise
* 0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| input stream
| *variable*
| object reference to decode into
| *streamBuf*
| input stream buffer
|===


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