decode overloads
Declared in <baljsn_decoder.h>
Decode JSON from stream into value using default options.
template<class TYPE>
int
decode(
std::istream& stream,
TYPE* value);
» more...
Decode JSON from streamBuf into value using default options.
template<class TYPE>
int
decode(
std::streambuf* streamBuf,
TYPE* value);
» more...
Decode JSON from stream into value using options.
template<class TYPE>
int
decode(
std::istream& stream,
TYPE* value,
DecoderOptions const& options);
» more...
Same as the preceding overload, accepting a nullable options pointer.
template<class TYPE>
int
decode(
std::istream& stream,
TYPE* value,
DecoderOptions const* options);
» more...
Decode JSON from streamBuf into value using options.
template<class TYPE>
int
decode(
std::streambuf* streamBuf,
TYPE* value,
DecoderOptions const& options);
» more...
Same as the preceding overload, accepting a nullable options pointer.
template<class TYPE>
int
decode(
std::streambuf* streamBuf,
TYPE* value,
DecoderOptions const* options);
» more...
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| stream | input stream supplying JSON |
| value | object to decode into |
| streamBuf | input buffer supplying JSON |
| options | decoding options |