decodeAny overloads
Synopses
Declared in <balber_berdecoder.h>
Decode the object referenced by the specified variable from the specified stream. Return 0 on success, and a non‐zero value otherwise. If the decoding fails stream will be invalidated. 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.
int
decodeAny(
std::istream& stream,
bdlar::AnyRef* variable);
Decode the object referenced by the specified variable from the specified streamBuf. 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.
int
decodeAny(
std::streambuf* streamBuf,
bdlar::AnyRef* variable);
Decode an object of parameterized TYPE from the specified stream and load the result into the specified modifiable variable. Return 0 on success, and a non‐zero value otherwise. If the decoding fails stream will be invalidated. 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.
template<typename TYPE>
int
decodeAny(
std::istream& stream,
TYPE* variable);
Decode an object of parameterized TYPE from the specified streamBuf and load the result into the specified 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.
template<typename TYPE>
int
decodeAny(
std::streambuf* streamBuf,
TYPE* variable);
Created with MrDocs