Flutter Engine
The Flutter Engine
lib
ui
window
key_data.cc
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#include "flutter/lib/ui/window/key_data.h"
6
7
#include <cstring>
8
9
namespace
flutter
{
10
11
static_assert
(
sizeof
(KeyData) ==
kBytesPerKeyField
*
kKeyDataFieldCount
,
12
"KeyData has the wrong size"
);
13
14
void
KeyData::Clear
() {
15
memset(
this
, 0,
sizeof
(
KeyData
));
16
}
17
18
}
// namespace flutter
flutter
Definition:
asset_manager.cc:10
flutter::kBytesPerKeyField
static constexpr int kBytesPerKeyField
Definition:
key_data.h:17
flutter::kKeyDataFieldCount
static constexpr int kKeyDataFieldCount
Definition:
key_data.h:16
flutter::KeyData
Definition:
key_data.h:61
flutter::KeyData::Clear
void Clear()
Definition:
key_data.cc:14
Generated on Sun Jun 23 2024 21:55:06 for Flutter Engine by
1.9.4