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);

Encode the specified any to the specified streamBuf.

int
encodeAny(
    std::streambuf* streamBuf,
    bdlar::AnyConstRef const& any);

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

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

Encode the specified non‐modifiable value to the specified streamBuf.

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

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

output stream

any

type‐erased value to encode

streamBuf

output stream buffer

value

value to encode

Created with MrDocs