[#BloombergLP-balber-BerDecoder-decodeAny-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerDecoder.adoc[BerDecoder]::decodeAny :relfileprefix: ../../../ :mrdocs: `decodeAny` overloads == Synopses Declared in `<balber_berdecoder.h>` Decode the object referenced by the specified `variable` from the specified `stream`. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balber/BerDecoder/decodeAny-07.adoc[decodeAny]( std::istream& stream, xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* variable); ---- [.small]#xref:BloombergLP/balber/BerDecoder/decodeAny-07.adoc[_» more..._]# Decode the object referenced by the specified `variable` from the specified `streamBuf`. Return 0 on success, and a non‐zero value otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balber/BerDecoder/decodeAny-0f.adoc[decodeAny]( std::streambuf* streamBuf, xref:BloombergLP/bdlar/AnyRef.adoc[bdlar::AnyRef]* variable); ---- [.small]#xref:BloombergLP/balber/BerDecoder/decodeAny-0f.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> int xref:BloombergLP/balber/BerDecoder/decodeAny-09.adoc[decodeAny]( std::istream& stream, TYPE* variable); ---- [.small]#xref:BloombergLP/balber/BerDecoder/decodeAny-09.adoc[_» more..._]# Decode an object of parameterized `TYPE` from the specified `streamBuf` and load the result into the specified `variable`. Return 0 on success, and a non‐zero value otherwise. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> int xref:BloombergLP/balber/BerDecoder/decodeAny-0b.adoc[decodeAny]( std::streambuf* streamBuf, TYPE* variable); ---- [.small]#xref:BloombergLP/balber/BerDecoder/decodeAny-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#