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

template<typename TYPE>
int
encodeAny(
    std::ostream& stream,
    TYPE const& value);
» 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.

template<typename TYPE>
int
encodeAny(
    std::streambuf* streamBuf,
    TYPE const& value);
» more...