-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompletioninfo.go
More file actions
55 lines (49 loc) · 941 Bytes
/
completioninfo.go
File metadata and controls
55 lines (49 loc) · 941 Bytes
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
package inputmethod
import (
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type CompletionInfo struct {
Id int64
Position int32
Text *string
Label *string
}
var _ parcel.Parcelable = (*CompletionInfo)(nil)
func (s *CompletionInfo) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteInt64(s.Id)
p.WriteInt32(s.Position)
parcel.WritePlainCharSequence(p, s.Text)
parcel.WritePlainCharSequence(p, s.Label)
return nil
}
func (s *CompletionInfo) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.Id, _err = p.ReadInt64()
if _err != nil {
return _err
}
s.Position, _err = p.ReadInt32()
if _err != nil {
return _err
}
{
_cs, _csErr := parcel.ReadPlainCharSequence(p)
if _csErr != nil {
return _csErr
}
s.Text = _cs
}
{
_cs, _csErr := parcel.ReadPlainCharSequence(p)
if _csErr != nil {
return _csErr
}
s.Label = _cs
}
return nil
}