decode overloads

Synopses

Declared in <balber_berdecoder.h>

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

template<typename TYPE>
int
decode(
    std::istream& stream,
    TYPE* variable);

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

template<typename TYPE>
int
decode(
    std::streambuf* streamBuf,
    TYPE* variable);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

input stream

variable

object to decode into

streamBuf

input stream buffer

Created with MrDocs