#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.
Referenced by flutter::TEST().
|
protectedpure virtual |
Implemented in flutter::StandardMethodCodec, and flutter::JsonMethodCodec.
Referenced by flutter::MethodCodec< rapidjson::Document >::DecodeAndProcessResponseEnvelope().
|
inline |
Definition at line 39 of file method_codec.h.
|
inline |
Definition at line 32 of file method_codec.h.
Referenced by flutter::TEST().
|
protectedpure virtual |
Implemented in flutter::StandardMethodCodec, and flutter::JsonMethodCodec.
Referenced by flutter::MethodCodec< rapidjson::Document >::DecodeMethodCall().
|
inline |
|
protectedpure virtual |
Implemented in flutter::JsonMethodCodec, and flutter::StandardMethodCodec.
Referenced by flutter::MethodCodec< rapidjson::Document >::EncodeErrorEnvelope().
|
inline |
Definition at line 48 of file method_codec.h.
Referenced by flutter::TEST().
|
protectedpure virtual |
Implemented in flutter::JsonMethodCodec, and flutter::StandardMethodCodec.
Referenced by flutter::MethodCodec< rapidjson::Document >::EncodeMethodCall().
|
inline |
Definition at line 55 of file method_codec.h.
Referenced by flutter::TEST().
|
protectedpure virtual |
Implemented in flutter::JsonMethodCodec, and flutter::StandardMethodCodec.
Referenced by flutter::MethodCodec< rapidjson::Document >::EncodeSuccessEnvelope().
|
delete |