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