mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
We currently use a mix of C standard includes (e.g. limits.h) and their C++ variants (e.g. climits). This migrates to a consistent style for all cases where the C++ variants are acceptable, but leaves the C equivalents in place where they are required, such as in the embedder API and other headers that may be used from C.
19 lines
478 B
C++
19 lines
478 B
C++
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "flutter/lib/ui/window/pointer_data.h"
|
|
|
|
#include <cstring>
|
|
|
|
namespace flutter {
|
|
|
|
static_assert(sizeof(PointerData) == kBytesPerField * kPointerDataFieldCount,
|
|
"PointerData has the wrong size");
|
|
|
|
void PointerData::Clear() {
|
|
memset(this, 0, sizeof(PointerData));
|
|
}
|
|
|
|
} // namespace flutter
|