[#BloombergLP-balxml-Decoder-decodeAny-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::decodeAny
:relfileprefix: ../../../
:mrdocs:

`decodeAny` overloads

== Synopses

Declared in `&lt;balxml&lowbar;decoder&period;h&gt;`

Decode into a type&hyphen;erased `bdlar&colon;&colon;AnyRef` from the current open input&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balxml/Decoder/decodeAny-09.adoc[decodeAny](xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* object);
----

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

Decode `object` from the open input without instantiating templates&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/balxml/Decoder/decodeAny-08.adoc[decodeAny](TYPE* object);
----

[.small]#xref:BloombergLP/balxml/Decoder/decodeAny-08.adoc[_» more&period;&period;&period;_]#

Decode into a type&hyphen;erased `bdlar&colon;&colon;AnyRef` from the specified `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::istream&
xref:BloombergLP/balxml/Decoder/decodeAny-0f.adoc[decodeAny](
    std::istream& stream,
    xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* object,
    char const* uri = 0);
----

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

Decode into a type&hyphen;erased `bdlar&colon;&colon;AnyRef` from the specified `buffer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balxml/Decoder/decodeAny-00.adoc[decodeAny](
    std::streambuf* buffer,
    xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* object,
    char const* uri = 0);
----

[.small]#xref:BloombergLP/balxml/Decoder/decodeAny-00.adoc[_» more&period;&period;&period;_]#

Decode `object` from `stream` without instantiating templates&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
std::istream&
xref:BloombergLP/balxml/Decoder/decodeAny-06.adoc[decodeAny](
    std::istream& stream,
    TYPE* object,
    char const* uri = 0);
----

[.small]#xref:BloombergLP/balxml/Decoder/decodeAny-06.adoc[_» more&period;&period;&period;_]#

Decode into a type&hyphen;erased `bdlar&colon;&colon;AnyRef` from the specified `buffer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
xref:BloombergLP/balxml/Decoder/decodeAny-05.adoc[decodeAny](
    std::streambuf* buffer,
    TYPE* object,
    char const* uri = 0);
----

[.small]#xref:BloombergLP/balxml/Decoder/decodeAny-05.adoc[_» more&period;&period;&period;_]#

== Return Value

* 0 on success, and a non&hyphen;zero value otherwise
* a reference to the modifiable `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| object being decoded
| *stream*
| input stream providing XML data
| *uri*
| optional URI identifying the input document in error messages
| *buffer*
| buffer providing XML data
|===


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