5#ifndef FLUTTER_LIB_UI_WINDOW_KEY_DATA_PACKET_H_
6#define FLUTTER_LIB_UI_WINDOW_KEY_DATA_PACKET_H_
11#include "flutter/fml/macros.h"
12#include "flutter/lib/ui/window/key_data.h"
32 const std::vector<uint8_t>&
data()
const {
return data_; }
40 uint8_t* CharacterSizeStart() {
return data_.data(); }
41 uint8_t* KeyDataStart() {
return CharacterSizeStart() +
sizeof(uint64_t); }
42 uint8_t* CharacterStart() {
return KeyDataStart() +
sizeof(KeyData); }
44 std::vector<uint8_t> data_;
KeyDataPacket & operator=(KeyDataPacket const &)=delete
KeyDataPacket(KeyDataPacket const &)=delete
KeyDataPacket(const KeyData &event, const char *character)
const std::vector< uint8_t > & data() const