![Logo](flutter_logo.png) |
Flutter Linux Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_JSON_METHOD_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_JSON_METHOD_CODEC_H_
8 #include <rapidjson/document.h>
33 const uint8_t* message,
34 const size_t message_size)
const override;
42 const rapidjson::Document*
result)
const override;
46 const std::string& error_code,
47 const std::string& error_message,
48 const rapidjson::Document* error_details)
const override;
52 const uint8_t* response,
53 const size_t response_size,
59 #endif // FLUTTER_SHELL_PLATFORM_COMMON_JSON_METHOD_CODEC_H_
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 > > EncodeSuccessEnvelopeInternal(const rapidjson::Document *result) const override
JsonMethodCodec & operator=(JsonMethodCodec const &)=delete
static const JsonMethodCodec & GetInstance()
bool DecodeAndProcessResponseEnvelopeInternal(const uint8_t *response, const size_t response_size, MethodResult< rapidjson::Document > *result) const override
G_BEGIN_DECLS G_MODULE_EXPORT FlMethodCall * method_call
std::unique_ptr< std::vector< uint8_t > > EncodeMethodCallInternal(const MethodCall< rapidjson::Document > &method_call) const override
~JsonMethodCodec()=default
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
JsonMethodCodec()=default