[#BloombergLP-balber-BerEncoder-encodeAny-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerEncoder.adoc[BerEncoder]::encodeAny :relfileprefix: ../../../ :mrdocs: `encodeAny` overloads == Synopses Declared in `<balber_berencoder.h>` Encode the specified `any` to the specified `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balber/BerEncoder/encodeAny-0f.adoc[encodeAny]( std::ostream& stream, xref:BloombergLP/bdlar/AnyConstRef.adoc[bdlar::AnyConstRef] const& any); ---- [.small]#xref:BloombergLP/balber/BerEncoder/encodeAny-0f.adoc[_» more..._]# Encode the specified `any` to the specified `streamBuf`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balber/BerEncoder/encodeAny-02.adoc[encodeAny]( std::streambuf* streamBuf, xref:BloombergLP/bdlar/AnyConstRef.adoc[bdlar::AnyConstRef] const& any); ---- [.small]#xref:BloombergLP/balber/BerEncoder/encodeAny-02.adoc[_» more..._]# Encode the specified non‐modifiable `value` to the specified `stream`. Return 0 on success, and a non‐zero value otherwise. If the encoding fails `stream` will be invalidated. Note that this function behaves identically to `encode`, 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/BerEncoder/encodeAny-0a.adoc[encodeAny]( std::ostream& stream, TYPE const& value); ---- [.small]#xref:BloombergLP/balber/BerEncoder/encodeAny-0a.adoc[_» more..._]# Encode the specified non‐modifiable `value` to the specified `streamBuf`. Return 0 on success, and a non‐zero value otherwise. Note that this function behaves identically to `encode`, 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/BerEncoder/encodeAny-0c.adoc[encodeAny]( std::streambuf* streamBuf, TYPE const& value); ---- [.small]#xref:BloombergLP/balber/BerEncoder/encodeAny-0c.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#