-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecognitionpart.go
More file actions
59 lines (53 loc) · 1.1 KB
/
recognitionpart.go
File metadata and controls
59 lines (53 loc) · 1.1 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
58
59
package speech
import (
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type RecognitionPart struct {
Flg int32
RawText string
TimestampMillis int64
ConfidenceLevel int32
}
var _ parcel.Parcelable = (*RecognitionPart)(nil)
func (s *RecognitionPart) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteInt32(s.Flg)
p.WriteString16(s.RawText)
p.WriteInt32(0) // null FormattedText
p.WriteInt64(s.TimestampMillis)
p.WriteInt32(s.ConfidenceLevel)
return nil
}
func (s *RecognitionPart) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.Flg, _err = p.ReadInt32()
if _err != nil {
return _err
}
s.RawText, _err = p.ReadString16()
if _err != nil {
return _err
}
{
_opaqueFlag, _opaqueErr := p.ReadInt32()
if _opaqueErr != nil {
return _opaqueErr
}
if _opaqueFlag != 0 {
return nil // non-null FormattedText: cannot skip unknown-size typed object
}
}
s.TimestampMillis, _err = p.ReadInt64()
if _err != nil {
return _err
}
s.ConfidenceLevel, _err = p.ReadInt32()
if _err != nil {
return _err
}
return nil
}