5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_CODEC_H_
33 size_t message_size)
const {
40 const std::vector<uint8_t>&
message)
const {
42 const uint8_t* data = size > 0 ? &
message[0] :
nullptr;
56 const T* result =
nullptr)
const {
63 const std::string& error_code,
64 const std::string& error_message =
"",
65 const T* error_details =
nullptr)
const {
86 size_t message_size)
const = 0;
94 const T* result)
const = 0;
98 const std::string& error_code,
99 const std::string& error_message,
100 const T* error_details)
const = 0;
104 const uint8_t* response,
105 size_t response_size,
111 #endif // FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_CODEC_H_