[#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`. [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`. [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..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *stream* | output stream | *any* | type‐erased value to encode | *streamBuf* | output stream buffer | *value* | value to encode |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#