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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
decodeAny(TYPE* object);
----

== Description

Decode the specified `object` of parameterized `TYPE` from the input source specified by a previous call to `open` and leave the reader in an open state&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; A compilation error will result unless `TYPE` conforms to the requirements of a bdlat sequence or choice, as described in `bdlat&lowbar;sequencefunctions` and `bdlat&lowbar;choicefunctions`&period; The behavior is undefined unless this call was preceded by a prior successful call to `open`&period; Note that this function behaves identically to `decode`, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime&semi; see the `balxml` package documentation for more details&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| object being decoded
|===


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