[#BloombergLP-balxml-Decoder-decodeAny-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::decodeAny :relfileprefix: ../../../ :mrdocs: `decodeAny` overloads == Synopses Declared in `<balxml_decoder.h>` Decode into a type‐erased `bdlar::AnyRef` from the current open input. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balxml/Decoder/decodeAny-09.adoc[decodeAny](xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* object); ---- [.small]#xref:BloombergLP/balxml/Decoder/decodeAny-09.adoc[_» more..._]# 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`. 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; see the `balxml` package documentation for more details. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/balxml/Decoder/decodeAny-08.adoc[decodeAny](TYPE* object); ---- [.small]#xref:BloombergLP/balxml/Decoder/decodeAny-08.adoc[_» more..._]# Decode the specified `AnyRef` from the specified input `stream` using runtime type dispatch. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::istream& xref:BloombergLP/balxml/Decoder/decodeAny-0f.adoc[decodeAny]( std::istream& stream, xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* object, char const* uri = 0); ---- [.small]#xref:BloombergLP/balxml/Decoder/decodeAny-0f.adoc[_» more..._]# Decode into a type‐erased `bdlar::AnyRef` from the specified `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balxml/Decoder/decodeAny-00.adoc[decodeAny]( std::streambuf* buffer, xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* object, char const* uri = 0); ---- [.small]#xref:BloombergLP/balxml/Decoder/decodeAny-00.adoc[_» more..._]# Decode the specified `object` of parameterized `TYPE` from the specified input `stream`. Return a reference to the modifiable `stream`. If a decoding error is detected, `stream.fail()` will be `true` after this method returns. The (optionally) specified `uri` is used for identifying the input document in error messages. 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`. 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; see the `balxml` package documentation for more details. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> std::istream& xref:BloombergLP/balxml/Decoder/decodeAny-06.adoc[decodeAny]( std::istream& stream, TYPE* object, char const* uri = 0); ---- [.small]#xref:BloombergLP/balxml/Decoder/decodeAny-06.adoc[_» more..._]# Decode the specified `object` of parameterized `TYPE` from the specified stream `buffer`. 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`. 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; see the `balxml` package documentation for more details. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int xref:BloombergLP/balxml/Decoder/decodeAny-05.adoc[decodeAny]( std::streambuf* buffer, TYPE* object, char const* uri = 0); ---- [.small]#xref:BloombergLP/balxml/Decoder/decodeAny-05.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#