Encode the specified value of (template parameter) TYPE into the specified streamBuf. Return 0 on success, and a non‐zero value otherwise.
Synopsis
Declared in <baljsn_encoder.h>
template<class TYPE>
int
encode(
std::streambuf* streamBuf,
TYPE const& value);
Description
DEPRECATED: Use the encode function passed a reference to a non‐modifiable EncoderOptions object instead.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
streamBuf |
output buffer for JSON |
value |
value to encode |
Created with MrDocs