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