[#BloombergLP-balxml-Decoder-decode-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::decode :relfileprefix: ../../../ :mrdocs: 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. Return 0 on success, and a non‐zero value otherwise. A compilation error will result unless `TYPE` conforms to the requirements of a bdlat sequence or choice, as described in `bdlat_sequencefunctions` and `bdlat_choicefunctions`. The behavior is undefined unless this call was preceded by a prior successful call to `open` == Synopsis Declared in `<balxml_decoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int decode(TYPE* object); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#