Flutter Engine
The Flutter Engine
|
#include <json_method_codec.h>
Public Member Functions | |
~JsonMethodCodec ()=default | |
JsonMethodCodec (JsonMethodCodec const &)=delete | |
JsonMethodCodec & | operator= (JsonMethodCodec const &)=delete |
Public Member Functions inherited from flutter::MethodCodec< rapidjson::Document > | |
MethodCodec ()=default | |
MethodCodec (MethodCodec< rapidjson::Document > const &)=delete | |
virtual | ~MethodCodec ()=default |
MethodCodec & | operator= (MethodCodec< rapidjson::Document > const &)=delete |
std::unique_ptr< MethodCall< rapidjson::Document > > | DecodeMethodCall (const uint8_t *message, size_t message_size) const |
std::unique_ptr< MethodCall< rapidjson::Document > > | DecodeMethodCall (const std::vector< uint8_t > &message) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeMethodCall (const MethodCall< rapidjson::Document > &method_call) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeSuccessEnvelope (const rapidjson::Document *result=nullptr) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeErrorEnvelope (const std::string &error_code, const std::string &error_message="", const rapidjson::Document *error_details=nullptr) const |
bool | DecodeAndProcessResponseEnvelope (const uint8_t *response, size_t response_size, MethodResult< rapidjson::Document > *result) const |
Static Public Member Functions | |
static const JsonMethodCodec & | GetInstance () |
Protected Member Functions | |
JsonMethodCodec ()=default | |
std::unique_ptr< MethodCall< rapidjson::Document > > | DecodeMethodCallInternal (const uint8_t *message, const size_t message_size) const override |
std::unique_ptr< std::vector< uint8_t > > | EncodeMethodCallInternal (const MethodCall< rapidjson::Document > &method_call) const override |
std::unique_ptr< std::vector< uint8_t > > | EncodeSuccessEnvelopeInternal (const rapidjson::Document *result) const override |
std::unique_ptr< std::vector< uint8_t > > | EncodeErrorEnvelopeInternal (const std::string &error_code, const std::string &error_message, const rapidjson::Document *error_details) const override |
bool | DecodeAndProcessResponseEnvelopeInternal (const uint8_t *response, const size_t response_size, MethodResult< rapidjson::Document > *result) const override |
virtual std::unique_ptr< MethodCall< rapidjson::Document > > | DecodeMethodCallInternal (const uint8_t *message, size_t message_size) const=0 |
virtual std::unique_ptr< std::vector< uint8_t > > | EncodeMethodCallInternal (const MethodCall< rapidjson::Document > &method_call) const=0 |
virtual std::unique_ptr< std::vector< uint8_t > > | EncodeSuccessEnvelopeInternal (const rapidjson::Document *result) const=0 |
virtual std::unique_ptr< std::vector< uint8_t > > | EncodeErrorEnvelopeInternal (const std::string &error_code, const std::string &error_message, const rapidjson::Document *error_details) const=0 |
virtual bool | DecodeAndProcessResponseEnvelopeInternal (const uint8_t *response, size_t response_size, MethodResult< rapidjson::Document > *result) const=0 |
Definition at line 16 of file json_method_codec.h.
|
default |
|
delete |
|
protecteddefault |
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< rapidjson::Document >.
Definition at line 118 of file json_method_codec.cc.
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< rapidjson::Document >.
Definition at line 42 of file json_method_codec.cc.
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< rapidjson::Document >.
Definition at line 100 of file json_method_codec.cc.
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< rapidjson::Document >.
Definition at line 67 of file json_method_codec.cc.
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< rapidjson::Document >.
Definition at line 86 of file json_method_codec.cc.
|
static |
Definition at line 36 of file json_method_codec.cc.
|
delete |