Decode an object of parameterized TYPE from the specified streamBuf and load the result into the specified variable.
Declared in <balber_berdecoder.h>
template<typename TYPE>
int
decodeAny(
std::streambuf* streamBuf,
TYPE* variable);
Return 0 on success, and a non-zero value otherwise. Note that this function behaves identically to decode, 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.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| streamBuf | input stream buffer |
| variable | object to decode into |