encodeAny overloads
Declared in <balber_berencoder.h>
Encode the specified any to the specified stream.
int
encodeAny(
std::ostream& stream,
bdlar::AnyConstRef const& any);
» more...
Encode the specified any to the specified streamBuf.
int
encodeAny(
std::streambuf* streamBuf,
bdlar::AnyConstRef const& any);
» more...
Encode the specified non-modifiable value to the specified stream.
template<typename TYPE>
int
encodeAny(
std::ostream& stream,
TYPE const& value);
» more...
Encode the specified non-modifiable value to the specified streamBuf.
template<typename TYPE>
int
encodeAny(
std::streambuf* streamBuf,
TYPE const& value);
» more...
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| stream | output stream |
| any | type-erased value to encode |
| streamBuf | output stream buffer |
| value | value to encode |