#include <key_data_packet.h>
Definition at line 20 of file key_data_packet.h.
◆ KeyDataPacket() [1/2]
flutter::KeyDataPacket::KeyDataPacket |
( |
const KeyData & |
event, |
|
|
const char * |
character |
|
) |
| |
Definition at line 14 of file key_data_packet.cc.
14 {
16 uint64_t char_size_64 = char_size;
17 data_.resize(sizeof(char_size_64) + sizeof(KeyData) + char_size);
18 memcpy(CharacterSizeStart(), &char_size_64, sizeof(char_size_64));
19 memcpy(KeyDataStart(), &
event,
sizeof(KeyData));
21 memcpy(CharacterStart(),
character, char_size);
22 }
23}
◆ ~KeyDataPacket()
flutter::KeyDataPacket::~KeyDataPacket |
( |
| ) |
|
|
default |
◆ KeyDataPacket() [2/2]
◆ data()
const std::vector< uint8_t > & flutter::KeyDataPacket::data |
( |
| ) |
const |
|
inline |
◆ operator=()
The documentation for this class was generated from the following files: