BloombergLP::balber::BerEncoder::encodeAny

Encode the specified non-modifiable value to the specified stream.

Synopsis

Declared in <balber_berencoder.h>

template<typename TYPE>
int
encodeAny(
    std::ostream& stream,
    TYPE const& value);

Description

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.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamoutput stream
valuevalue to encode