Flutter Engine
pointer_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/pointer_data.h"
6 
7 #include <cstring>
8 
9 namespace flutter {
10 
11 static_assert(sizeof(PointerData) == kBytesPerField * kPointerDataFieldCount,
12  "PointerData has the wrong size");
13 
15  memset(this, 0, sizeof(PointerData));
16 }
17 
18 } // namespace flutter
static constexpr int kBytesPerField
Definition: pointer_data.h:14
static constexpr int kPointerDataFieldCount
Definition: pointer_data.h:13