BloombergLP::balber::BerEncoder::encodeAny

encodeAny overloads

Synopses

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...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamoutput stream
anytype-erased value to encode
streamBufoutput stream buffer
valuevalue to encode