-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselectrangegesture.go
More file actions
57 lines (51 loc) · 1.09 KB
/
selectrangegesture.go
File metadata and controls
57 lines (51 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package inputmethod
import (
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type SelectRangeGesture struct {
FallbackText string
Granularity int32
}
var _ parcel.Parcelable = (*SelectRangeGesture)(nil)
func (s *SelectRangeGesture) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteString(s.FallbackText)
p.WriteInt32(s.Granularity)
p.WriteInt32(0) // null StartArea
p.WriteInt32(0) // null EndArea
return nil
}
func (s *SelectRangeGesture) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.FallbackText, _err = p.ReadString()
if _err != nil {
return _err
}
s.Granularity, _err = p.ReadInt32()
if _err != nil {
return _err
}
{
_opaqueFlag, _opaqueErr := p.ReadInt32()
if _opaqueErr != nil {
return _opaqueErr
}
if _opaqueFlag != 0 {
return nil // non-null StartArea: cannot skip unknown-size typed object
}
}
{
_opaqueFlag, _opaqueErr := p.ReadInt32()
if _opaqueErr != nil {
return _opaqueErr
}
if _opaqueFlag != 0 {
return nil // non-null EndArea: cannot skip unknown-size typed object
}
}
return nil
}