BloombergLP::balber::BerDecoder::decodeAny

decodeAny overloads

Synopses

Declared in <balber_berdecoder.h>

Decode an object referenced by variable from stream.

int
decodeAny(
    std::istream& stream,
    bdlar::AnyRef* variable);
» more...

Decode an object referenced by variable from streamBuf.

int
decodeAny(
    std::streambuf* streamBuf,
    bdlar::AnyRef* variable);
» more...

Decode an object of parameterized TYPE from the specified stream and load the result into the specified modifiable variable.

template<typename TYPE>
int
decodeAny(
    std::istream& stream,
    TYPE* variable);
» more...

Decode an object of parameterized TYPE from the specified streamBuf and load the result into the specified variable.

template<typename TYPE>
int
decodeAny(
    std::streambuf* streamBuf,
    TYPE* variable);
» more...

Return Value

  • 0 on success, or a non-zero value otherwise
  • 0 on success, and a non-zero value otherwise

Parameters

NameDescription
streaminput stream
variableobject reference to decode into
streamBufinput stream buffer