#include <message_codec.h>
Public Member Functions | |
MessageCodec ()=default | |
virtual | ~MessageCodec ()=default |
MessageCodec (MessageCodec< T > const &)=delete | |
MessageCodec & | operator= (MessageCodec< T > const &)=delete |
std::unique_ptr< T > | DecodeMessage (const uint8_t *binary_message, const size_t message_size) const |
std::unique_ptr< T > | DecodeMessage (const std::vector< uint8_t > &binary_message) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeMessage (const T &message) const |
Protected Member Functions | |
virtual std::unique_ptr< T > | DecodeMessageInternal (const uint8_t *binary_message, const size_t message_size) const =0 |
virtual std::unique_ptr< std::vector< uint8_t > > | EncodeMessageInternal (const T &message) const =0 |
Definition at line 17 of file message_codec.h.
|
default |
|
virtualdefault |
|
delete |
|
inline |
Definition at line 36 of file message_codec.h.
|
inline |
Definition at line 29 of file message_codec.h.
Referenced by flutter::CheckEncodeDecode(), flutter::CheckEncodeDecodeWithEncodePrefix(), flutter::JsonMethodCodec::DecodeAndProcessResponseEnvelopeInternal(), flutter::JsonMethodCodec::DecodeMethodCallInternal(), and flutter::TEST().
|
protectedpure virtual |
Implemented in flutter::StandardMessageCodec, and flutter::JsonMessageCodec.
Referenced by flutter::MessageCodec< rapidjson::Document >::DecodeMessage().
|
inline |
Definition at line 45 of file message_codec.h.
Referenced by flutter::CheckEncodeDecode(), flutter::CheckEncodeDecodeWithEncodePrefix(), flutter::JsonMethodCodec::EncodeErrorEnvelopeInternal(), flutter::JsonMethodCodec::EncodeMethodCallInternal(), flutter::JsonMethodCodec::EncodeSuccessEnvelopeInternal(), and flutter::TEST().
|
protectedpure virtual |
Implemented in flutter::JsonMessageCodec, and flutter::StandardMessageCodec.
Referenced by flutter::MessageCodec< rapidjson::Document >::EncodeMessage().
|
delete |