Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
lib
ui
window
pointer_data_packet.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_packet.h"
6
#include "flutter/fml/logging.h"
7
8
#include <cstring>
9
10
namespace
flutter
{
11
12
PointerDataPacket::PointerDataPacket
(
size_t
count
)
13
: data_(
count
* sizeof(
PointerData
)) {}
14
15
PointerDataPacket::PointerDataPacket
(uint8_t*
data
,
size_t
num_bytes)
16
: data_(
data
,
data
+ num_bytes) {}
17
18
PointerDataPacket::~PointerDataPacket
() =
default
;
19
20
void
PointerDataPacket::SetPointerData
(
size_t
i
,
const
PointerData
&
data
) {
21
FML_DCHECK
(
i
<
GetLength
());
22
memcpy(&data_[
i
*
sizeof
(
PointerData
)], &
data
,
sizeof
(
PointerData
));
23
}
24
25
PointerData
PointerDataPacket::GetPointerData
(
size_t
i
)
const
{
26
FML_DCHECK
(
i
<
GetLength
());
27
PointerData
result
;
28
memcpy(&
result
, &data_[
i
*
sizeof
(
PointerData
)],
sizeof
(
PointerData
));
29
return
result
;
30
}
31
32
size_t
PointerDataPacket::GetLength
()
const
{
33
return
data_.size() /
sizeof
(
PointerData
);
34
}
35
36
}
// namespace flutter
count
int count
Definition:
FontMgrTest.cpp:50
flutter::PointerDataPacket::GetLength
size_t GetLength() const
Definition:
pointer_data_packet.cc:32
flutter::PointerDataPacket::~PointerDataPacket
~PointerDataPacket()
flutter::PointerDataPacket::GetPointerData
PointerData GetPointerData(size_t i) const
Definition:
pointer_data_packet.cc:25
flutter::PointerDataPacket::PointerDataPacket
PointerDataPacket(size_t count)
Definition:
pointer_data_packet.cc:12
flutter::PointerDataPacket::data
const std::vector< uint8_t > & data() const
Definition:
pointer_data_packet.h:25
flutter::PointerDataPacket::SetPointerData
void SetPointerData(size_t i, const PointerData &data)
Definition:
pointer_data_packet.cc:20
i
int i
Definition:
fl_socket_accessible.cc:18
result
GAsyncResult * result
Definition:
fl_text_input_plugin.cc:106
FML_DCHECK
#define FML_DCHECK(condition)
Definition:
logging.h:103
flutter
Definition:
asset_manager.cc:10
flutter::data
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition:
switches.h:41
flutter::PointerData
Definition:
pointer_data.h:38
Generated on Sun Jun 23 2024 21:55:06 for Flutter Engine by
1.9.4