[#BloombergLP-balxml-Decoder-decode-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::decode
:relfileprefix: ../../../
:mrdocs:

Decode `object` from the previously opened input source&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
decode(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`

== 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]#
