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

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

== Synopsis

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

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

== Return Value

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

== Parameters

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


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