Flutter Engine
The Flutter Engine
|
#include <json_stream.h>
Public Member Functions | |
JSONStream (intptr_t buf_size=256) | |
void | Setup (Zone *zone, Dart_Port reply_port, const Instance &seq, const String &method, const Array ¶m_keys, const Array ¶m_values, bool parameters_are_dart_objects=false) |
void | SetupError () |
void | PrintError (intptr_t code, const char *details_format,...) PRINTF_ATTRIBUTE(3 |
void void | PostReply () |
void | set_id_zone (ServiceIdZone *id_zone) |
ServiceIdZone * | id_zone () |
TextBuffer * | buffer () |
const char * | ToCString () |
void | Steal (char **buffer, intptr_t *buffer_length) |
void | set_reply_port (Dart_Port port) |
bool | include_private_members () const |
void | set_include_private_members (bool include_private_members) |
bool | IsAllowableKey (const char *key) |
void | SetParams (const char **param_keys, const char **param_values, intptr_t num_params) |
Dart_Port | reply_port () const |
intptr_t | NumObjectParameters () const |
ObjectPtr | GetObjectParameterKey (intptr_t i) const |
ObjectPtr | GetObjectParameterValue (intptr_t i) const |
ObjectPtr | LookupObjectParam (const char *key) const |
intptr_t | num_params () const |
const char * | GetParamKey (intptr_t i) const |
const char * | GetParamValue (intptr_t i) const |
const char * | LookupParam (const char *key) const |
bool | HasParam (const char *key) const |
bool | ParamIs (const char *key, const char *value) const |
const char * | method () const |
const char ** | param_keys () const |
const char ** | param_values () const |
void | set_offset (intptr_t value) |
void | set_count (intptr_t value) |
void | ComputeOffsetAndCount (intptr_t length, intptr_t *offset, intptr_t *count) |
void | AppendBytes (const uint8_t *buffer, intptr_t buffer_length) |
void | AppendSerializedObject (const char *serialized_object) |
void | AppendSerializedObject (const char *property_name, const char *serialized_object) |
void | PrintCommaIfNeeded () |
JSONWriter * | writer () |
Friends | |
class | JSONObject |
class | JSONArray |
class | JSONBase64String |
class | TimelineEvent |
Definition at line 76 of file json_stream.h.
|
explicit |
Definition at line 26 of file json_stream.cc.
|
inline |
Definition at line 160 of file json_stream.h.
|
inline |
Definition at line 170 of file json_stream.h.
|
inline |
Definition at line 165 of file json_stream.h.
|
inline |
Definition at line 97 of file json_stream.h.
void dart::JSONStream::ComputeOffsetAndCount | ( | intptr_t | length, |
intptr_t * | offset, | ||
intptr_t * | count | ||
) |
Definition at line 294 of file json_stream.cc.
ObjectPtr dart::JSONStream::GetObjectParameterKey | ( | intptr_t | i | ) | const |
Definition at line 456 of file json_stream.cc.
ObjectPtr dart::JSONStream::GetObjectParameterValue | ( | intptr_t | i | ) | const |
Definition at line 461 of file json_stream.cc.
|
inline |
Definition at line 130 of file json_stream.h.
|
inline |
Definition at line 131 of file json_stream.h.
bool dart::JSONStream::HasParam | ( | const char * | key | ) | const |
Definition at line 282 of file json_stream.cc.
|
inline |
Definition at line 95 of file json_stream.h.
|
inline |
Definition at line 106 of file json_stream.h.
|
inline |
Definition at line 111 of file json_stream.h.
ObjectPtr dart::JSONStream::LookupObjectParam | ( | const char * | key | ) | const |
Definition at line 466 of file json_stream.cc.
const char * dart::JSONStream::LookupParam | ( | const char * | key | ) | const |
Definition at line 273 of file json_stream.cc.
|
inline |
Definition at line 141 of file json_stream.h.
|
inline |
Definition at line 129 of file json_stream.h.
intptr_t dart::JSONStream::NumObjectParameters | ( | ) | const |
Definition at line 447 of file json_stream.cc.
|
inline |
Definition at line 142 of file json_stream.h.
|
inline |
Definition at line 143 of file json_stream.h.
bool dart::JSONStream::ParamIs | ( | const char * | key, |
const char * | value | ||
) | const |
Definition at line 287 of file json_stream.cc.
void dart::JSONStream::PostReply | ( | ) |
Definition at line 196 of file json_stream.cc.
|
inline |
Definition at line 175 of file json_stream.h.
void dart::JSONStream::PrintError | ( | intptr_t | code, |
const char * | details_format, | ||
... | |||
) |
Definition at line 163 of file json_stream.cc.
|
inline |
Definition at line 122 of file json_stream.h.
|
inline |
Definition at line 150 of file json_stream.h.
|
inline |
Definition at line 94 of file json_stream.h.
|
inline |
Definition at line 107 of file json_stream.h.
|
inline |
Definition at line 145 of file json_stream.h.
void dart::JSONStream::set_reply_port | ( | Dart_Port | port | ) |
Definition at line 443 of file json_stream.cc.
void dart::JSONStream::SetParams | ( | const char ** | param_keys, |
const char ** | param_values, | ||
intptr_t | num_params | ||
) |
Definition at line 479 of file json_stream.cc.
void dart::JSONStream::Setup | ( | Zone * | zone, |
Dart_Port | reply_port, | ||
const Instance & | seq, | ||
const String & | method, | ||
const Array & | param_keys, | ||
const Array & | param_values, | ||
bool | parameters_are_dart_objects = false |
||
) |
Definition at line 50 of file json_stream.cc.
void dart::JSONStream::SetupError | ( | ) |
Definition at line 101 of file json_stream.cc.
|
inline |
Definition at line 100 of file json_stream.h.
|
inline |
Definition at line 98 of file json_stream.h.
|
inline |
Definition at line 176 of file json_stream.h.
|
friend |
Definition at line 363 of file json_stream.h.
|
friend |
Definition at line 364 of file json_stream.h.
|
friend |
Definition at line 362 of file json_stream.h.
|
friend |
Definition at line 365 of file json_stream.h.