Flutter Engine
The Flutter Engine
|
#include <json_writer.h>
Public Member Functions | |
JSONWriter (intptr_t buf_size=256) | |
TextBuffer * | buffer () |
const char * | ToCString () |
void | Steal (char **buffer, intptr_t *buffer_length) |
void | PrintCommaIfNeeded () |
void | AppendBytes (const uint8_t *buffer, intptr_t buffer_length) |
void | AppendBytesInBase64 (const uint8_t *bytes, intptr_t length) |
void | AppendSerializedObject (const char *serialized_object) |
void | AppendSerializedObject (const char *property_name, const char *serialized_object) |
void | OpenObject (const char *property_name=nullptr) |
void | CloseObject () |
void | UncloseObject () |
void | OpenArray (const char *property_name=nullptr) |
void | CloseArray () |
void | Clear () |
void | PrintValueNull () |
void | PrintValueBool (bool b) |
void | PrintValue (intptr_t i) |
void | PrintValue64 (int64_t i) |
void | PrintValue (double d) |
void | PrintValueBase64 (const uint8_t *bytes, intptr_t length) |
void | PrintValue (const char *s) |
void | PrintValue (const char *s, intptr_t len) |
void | PrintValueNoEscape (const char *s) |
void | PrintfValue (const char *format,...) PRINTF_ATTRIBUTE(2 |
void void | VPrintfValue (const char *format, va_list args) |
bool | PrintValueStr (const String &s, intptr_t offset, intptr_t count) |
void | PrintPropertyBool (const char *name, bool b) |
void | PrintProperty (const char *name, intptr_t i) |
void | PrintProperty64 (const char *name, int64_t i) |
void | PrintProperty (const char *name, double d) |
void | PrintPropertyBase64 (const char *name, const uint8_t *bytes, intptr_t length) |
void | PrintProperty (const char *name, const char *s) |
bool | PrintPropertyStr (const char *name, const String &s, intptr_t offset=0, intptr_t count=-1) |
void | PrintPropertyNoEscape (const char *name, const char *s) |
void | PrintfProperty (const char *name, const char *format,...) PRINTF_ATTRIBUTE(3 |
void void | VPrintfProperty (const char *name, const char *format, va_list args) |
void | PrintPropertyName (const char *name) |
void | PrintNewline () |
void | AddEscapedUTF8String (const char *s) |
void | AddEscapedUTF8String (const char *s, intptr_t len) |
Definition at line 15 of file json_writer.h.
|
explicit |
Definition at line 35 of file json_writer.cc.
void dart::JSONWriter::AddEscapedUTF8String | ( | const char * | s | ) |
Definition at line 348 of file json_writer.cc.
void dart::JSONWriter::AddEscapedUTF8String | ( | const char * | s, |
intptr_t | len | ||
) |
Definition at line 356 of file json_writer.cc.
void dart::JSONWriter::AppendBytes | ( | const uint8_t * | buffer, |
intptr_t | buffer_length | ||
) |
Definition at line 38 of file json_writer.cc.
void dart::JSONWriter::AppendBytesInBase64 | ( | const uint8_t * | bytes, |
intptr_t | length | ||
) |
Definition at line 46 of file json_writer.cc.
void dart::JSONWriter::AppendSerializedObject | ( | const char * | property_name, |
const char * | serialized_object | ||
) |
Definition at line 77 of file json_writer.cc.
void dart::JSONWriter::AppendSerializedObject | ( | const char * | serialized_object | ) |
Definition at line 72 of file json_writer.cc.
|
inline |
Definition at line 19 of file json_writer.h.
void dart::JSONWriter::Clear | ( | ) |
Definition at line 84 of file json_writer.cc.
void dart::JSONWriter::CloseArray | ( | ) |
Definition at line 121 of file json_writer.cc.
void dart::JSONWriter::CloseObject | ( | ) |
Definition at line 106 of file json_writer.cc.
void dart::JSONWriter::OpenArray | ( | const char * | property_name = nullptr | ) |
Definition at line 112 of file json_writer.cc.
void dart::JSONWriter::OpenObject | ( | const char * | property_name = nullptr | ) |
Definition at line 89 of file json_writer.cc.
void dart::JSONWriter::PrintCommaIfNeeded | ( | ) |
Definition at line 320 of file json_writer.cc.
void dart::JSONWriter::PrintfProperty | ( | const char * | name, |
const char * | format, | ||
... | |||
) |
Definition at line 269 of file json_writer.cc.
void dart::JSONWriter::PrintfValue | ( | const char * | format, |
... | |||
) |
Definition at line 195 of file json_writer.cc.
void dart::JSONWriter::PrintNewline | ( | ) |
Definition at line 316 of file json_writer.cc.
void dart::JSONWriter::PrintProperty | ( | const char * | name, |
const char * | s | ||
) |
Definition at line 244 of file json_writer.cc.
void dart::JSONWriter::PrintProperty | ( | const char * | name, |
double | d | ||
) |
Definition at line 239 of file json_writer.cc.
void dart::JSONWriter::PrintProperty | ( | const char * | name, |
intptr_t | i | ||
) |
Definition at line 229 of file json_writer.cc.
void dart::JSONWriter::PrintProperty64 | ( | const char * | name, |
int64_t | i | ||
) |
Definition at line 234 of file json_writer.cc.
void dart::JSONWriter::PrintPropertyBase64 | ( | const char * | name, |
const uint8_t * | bytes, | ||
intptr_t | length | ||
) |
Definition at line 249 of file json_writer.cc.
void dart::JSONWriter::PrintPropertyBool | ( | const char * | name, |
bool | b | ||
) |
Definition at line 224 of file json_writer.cc.
void dart::JSONWriter::PrintPropertyName | ( | const char * | name | ) |
Definition at line 307 of file json_writer.cc.
void dart::JSONWriter::PrintPropertyNoEscape | ( | const char * | name, |
const char * | s | ||
) |
Definition at line 264 of file json_writer.cc.
bool dart::JSONWriter::PrintPropertyStr | ( | const char * | name, |
const String & | s, | ||
intptr_t | offset = 0 , |
||
intptr_t | count = -1 |
||
) |
Definition at line 256 of file json_writer.cc.
void dart::JSONWriter::PrintValue | ( | const char * | s | ) |
Definition at line 166 of file json_writer.cc.
void dart::JSONWriter::PrintValue | ( | const char * | s, |
intptr_t | len | ||
) |
Definition at line 173 of file json_writer.cc.
void dart::JSONWriter::PrintValue | ( | double | d | ) |
Definition at line 149 of file json_writer.cc.
void dart::JSONWriter::PrintValue | ( | intptr_t | i | ) |
Definition at line 137 of file json_writer.cc.
void dart::JSONWriter::PrintValue64 | ( | int64_t | i | ) |
Definition at line 143 of file json_writer.cc.
void dart::JSONWriter::PrintValueBase64 | ( | const uint8_t * | bytes, |
intptr_t | length | ||
) |
Definition at line 159 of file json_writer.cc.
void dart::JSONWriter::PrintValueBool | ( | bool | b | ) |
Definition at line 132 of file json_writer.cc.
void dart::JSONWriter::PrintValueNoEscape | ( | const char * | s | ) |
Definition at line 190 of file json_writer.cc.
void dart::JSONWriter::PrintValueNull | ( | ) |
Definition at line 127 of file json_writer.cc.
bool dart::JSONWriter::PrintValueStr | ( | const String & | s, |
intptr_t | offset, | ||
intptr_t | count | ||
) |
Definition at line 180 of file json_writer.cc.
void dart::JSONWriter::Steal | ( | char ** | buffer, |
intptr_t * | buffer_length | ||
) |
Definition at line 300 of file json_writer.cc.
|
inline |
Definition at line 20 of file json_writer.h.
void dart::JSONWriter::UncloseObject | ( | ) |
Definition at line 98 of file json_writer.cc.
void dart::JSONWriter::VPrintfProperty | ( | const char * | name, |
const char * | format, | ||
va_list | args | ||
) |
Definition at line 276 of file json_writer.cc.
void dart::JSONWriter::VPrintfValue | ( | const char * | format, |
va_list | args | ||
) |
Definition at line 202 of file json_writer.cc.