5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_MESSAGE_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_MESSAGE_CODEC_H_
30 const size_t message_size)
const {
37 const std::vector<uint8_t>& binary_message)
const {
38 size_t size = binary_message.size();
39 const uint8_t* data = size > 0 ? &binary_message[0] :
nullptr;
45 std::unique_ptr<std::vector<uint8_t>>
EncodeMessage(
const T& message)
const {
52 const uint8_t* binary_message,
53 const size_t message_size)
const = 0;
57 const T& message)
const = 0;
62 #endif // FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_MESSAGE_CODEC_H_