[#BloombergLP-balber-BerDecoder-decode-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerDecoder.adoc[BerDecoder]::decode :relfileprefix: ../../../ :mrdocs: `decode` overloads == Synopses Declared in `<balber_berdecoder.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> int xref:BloombergLP/balber/BerDecoder/decode-01.adoc[decode]( std::istream& stream, TYPE* variable); ---- [.small]#xref:BloombergLP/balber/BerDecoder/decode-01.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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename TYPE> int xref:BloombergLP/balber/BerDecoder/decode-0b.adoc[decode]( std::streambuf* streamBuf, TYPE* variable); ---- [.small]#xref:BloombergLP/balber/BerDecoder/decode-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#