-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrect.go
More file actions
49 lines (43 loc) · 750 Bytes
/
rect.go
File metadata and controls
49 lines (43 loc) · 750 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 graphics
import (
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type Rect struct {
Left int32
Top int32
Right int32
Bottom int32
}
var _ parcel.Parcelable = (*Rect)(nil)
func (s *Rect) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteInt32(s.Left)
p.WriteInt32(s.Top)
p.WriteInt32(s.Right)
p.WriteInt32(s.Bottom)
return nil
}
func (s *Rect) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.Left, _err = p.ReadInt32()
if _err != nil {
return _err
}
s.Top, _err = p.ReadInt32()
if _err != nil {
return _err
}
s.Right, _err = p.ReadInt32()
if _err != nil {
return _err
}
s.Bottom, _err = p.ReadInt32()
if _err != nil {
return _err
}
return nil
}