Flutter Engine
The Flutter Engine
|
#include <method_codec.h>
Public Member Functions | |
MethodCodec ()=default | |
virtual | ~MethodCodec ()=default |
MethodCodec (MethodCodec< T > const &)=delete | |
MethodCodec & | operator= (MethodCodec< T > const &)=delete |
std::unique_ptr< MethodCall< T > > | DecodeMethodCall (const uint8_t *message, size_t message_size) const |
std::unique_ptr< MethodCall< T > > | DecodeMethodCall (const std::vector< uint8_t > &message) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeMethodCall (const MethodCall< T > &method_call) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeSuccessEnvelope (const T *result=nullptr) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeErrorEnvelope (const std::string &error_code, const std::string &error_message="", const T *error_details=nullptr) const |
bool | DecodeAndProcessResponseEnvelope (const uint8_t *response, size_t response_size, MethodResult< T > *result) const |
Protected Member Functions | |
virtual std::unique_ptr< MethodCall< T > > | DecodeMethodCallInternal (const uint8_t *message, size_t message_size) const =0 |
virtual std::unique_ptr< std::vector< uint8_t > > | EncodeMethodCallInternal (const MethodCall< T > &method_call) const =0 |
virtual std::unique_ptr< std::vector< uint8_t > > | EncodeSuccessEnvelopeInternal (const T *result) const =0 |
virtual std::unique_ptr< std::vector< uint8_t > > | EncodeErrorEnvelopeInternal (const std::string &error_code, const std::string &error_message, const T *error_details) const =0 |
virtual bool | DecodeAndProcessResponseEnvelopeInternal (const uint8_t *response, size_t response_size, MethodResult< T > *result) const =0 |
Definition at line 20 of file method_codec.h.
|
default |
|
virtualdefault |
|
delete |
|
inline |
Definition at line 75 of file method_codec.h.
|
protectedpure virtual |
Implemented in flutter::JsonMethodCodec, and flutter::StandardMethodCodec.
|
inline |
Definition at line 39 of file method_codec.h.
|
inline |
Definition at line 32 of file method_codec.h.
|
protectedpure virtual |
Implemented in flutter::JsonMethodCodec, and flutter::StandardMethodCodec.
|
inline |
Definition at line 62 of file method_codec.h.
|
protectedpure virtual |
Implemented in flutter::StandardMethodCodec, and flutter::JsonMethodCodec.
|
inline |
Definition at line 48 of file method_codec.h.
|
protectedpure virtual |
Implemented in flutter::StandardMethodCodec, and flutter::JsonMethodCodec.
|
inline |
Definition at line 55 of file method_codec.h.
|
protectedpure virtual |
Implemented in flutter::StandardMethodCodec, and flutter::JsonMethodCodec.
|
delete |