#include <standard_method_codec.h>
Public Member Functions | |
~StandardMethodCodec () | |
StandardMethodCodec (StandardMethodCodec const &)=delete | |
StandardMethodCodec & | operator= (StandardMethodCodec const &)=delete |
Public Member Functions inherited from flutter::MethodCodec< EncodableValue > | |
MethodCodec ()=default | |
MethodCodec (MethodCodec< EncodableValue > const &)=delete | |
virtual | ~MethodCodec ()=default |
MethodCodec & | operator= (MethodCodec< EncodableValue > const &)=delete |
std::unique_ptr< MethodCall< EncodableValue > > | DecodeMethodCall (const uint8_t *message, size_t message_size) const |
std::unique_ptr< MethodCall< EncodableValue > > | DecodeMethodCall (const std::vector< uint8_t > &message) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeMethodCall (const MethodCall< EncodableValue > &method_call) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeSuccessEnvelope (const EncodableValue *result=nullptr) const |
std::unique_ptr< std::vector< uint8_t > > | EncodeErrorEnvelope (const std::string &error_code, const std::string &error_message="", const EncodableValue *error_details=nullptr) const |
bool | DecodeAndProcessResponseEnvelope (const uint8_t *response, size_t response_size, MethodResult< EncodableValue > *result) const |
Static Public Member Functions | |
static const StandardMethodCodec & | GetInstance (const StandardCodecSerializer *serializer=nullptr) |
Protected Member Functions | |
std::unique_ptr< MethodCall< EncodableValue > > | DecodeMethodCallInternal (const uint8_t *message, size_t message_size) const override |
std::unique_ptr< std::vector< uint8_t > > | EncodeMethodCallInternal (const MethodCall< EncodableValue > &method_call) const override |
std::unique_ptr< std::vector< uint8_t > > | EncodeSuccessEnvelopeInternal (const EncodableValue *result) const override |
std::unique_ptr< std::vector< uint8_t > > | EncodeErrorEnvelopeInternal (const std::string &error_code, const std::string &error_message, const EncodableValue *error_details) const override |
bool | DecodeAndProcessResponseEnvelopeInternal (const uint8_t *response, size_t response_size, MethodResult< EncodableValue > *result) const override |
Definition at line 18 of file standard_method_codec.h.
|
default |
|
delete |
Referenced by GetInstance().
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< EncodableValue >.
Definition at line 432 of file standard_codec.cc.
References flutter::MethodResult< T >::Error(), flutter::EncodableValue::IsNull(), flutter::ByteBufferStreamReader::ReadByte(), flutter::StandardCodecSerializer::ReadValue(), and flutter::MethodResult< T >::Success().
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< EncodableValue >.
Definition at line 366 of file standard_codec.cc.
References flutter::StandardCodecSerializer::ReadValue().
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< EncodableValue >.
Definition at line 411 of file standard_codec.cc.
References flutter::StandardCodecSerializer::WriteValue().
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< EncodableValue >.
Definition at line 383 of file standard_codec.cc.
References flutter::MethodCall< T >::arguments(), flutter::MethodCall< T >::method_name(), and flutter::StandardCodecSerializer::WriteValue().
|
overrideprotectedvirtual |
Implements flutter::MethodCodec< EncodableValue >.
Definition at line 397 of file standard_codec.cc.
References flutter::StandardCodecSerializer::WriteValue().
|
static |
Definition at line 340 of file standard_codec.cc.
References flutter::StandardCodecSerializer::GetInstance(), and StandardMethodCodec().
Referenced by flutter::internal::ResizeChannel(), flutter::internal::SetChannelWarnsOnOverflow(), and flutter::TEST().
|
delete |