encode overloads

Synopses

Declared in <balber_berencoder.h>

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

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

Encode the specified non‐modifiable value to the specified streamBuf. Return 0 on success, and a non‐zero value otherwise.

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

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

output stream

value

value to encode

streamBuf

output stream buffer

Created with MrDocs