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
9namespace flutter {
10
11static_assert(sizeof(KeyData) == kBytesPerKeyField * kKeyDataFieldCount,
12 "KeyData has the wrong size");
13
14void KeyData::Clear() {
15 memset(s: this, c: 0, n: sizeof(KeyData));
16}
17
18} // namespace flutter
19

source code of flutter_engine/flutter/lib/ui/window/key_data.cc