[#BloombergLP-balxml-Decoder-decode-07] = 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 memory at the specified `buffer` address, having the specified `length`. The (optionally) specified `uri` is used for identifying the input document in error messages. 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`. == Synopsis Declared in `<balxml_decoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int decode( char const* buffer, std::size_t length, TYPE* object, char const* uri = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#