[#BloombergLP-balber-BerDecoder-decodeAny-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerDecoder.adoc[BerDecoder]::decodeAny :relfileprefix: ../../../ :mrdocs: Decode an object of parameterized `TYPE` from the specified `stream` and load the result into the specified modifiable `variable`. Return 0 on success, and a non‐zero value otherwise. If the decoding fails `stream` will be invalidated. 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 `balber` package documentation for more details. == Synopsis Declared in `<balber_berdecoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> int decodeAny( std::istream& stream, TYPE* variable); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#