aboutsummaryrefslogtreecommitdiff
path: root/rpc/rpc_binary_test.go
blob: 131b61da3f2566de6b22937ce5e67583b638a67d (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
////////////////////////////////////////////////////////////////////////////////
// Do not modify!
// Generated by codergen -go
////////////////////////////////////////////////////////////////////////////////

package rpc

import (
	"android.googlesource.com/platform/tools/gpu/binary"
	"android.googlesource.com/platform/tools/gpu/binary/registry"
)

func init() {
	registry.Add((*delay)(nil).Class())
	registry.Add((*request)(nil).Class())
	registry.Add((*response)(nil).Class())
}

var (
	binaryIDdelay    = binary.ID{0x9c, 0xc9, 0xea, 0xcf, 0xef, 0x65, 0x94, 0x95, 0x5c, 0xb7, 0x55, 0x1d, 0x1a, 0xc8, 0x3e, 0x0c, 0x95, 0xff, 0x80, 0x48}
	binaryIDrequest  = binary.ID{0xd9, 0x1d, 0x45, 0x70, 0x7d, 0x68, 0xb3, 0xe0, 0xe4, 0x10, 0x02, 0xe0, 0xca, 0x06, 0xa4, 0x52, 0xd4, 0xf3, 0xec, 0xfb}
	binaryIDresponse = binary.ID{0x45, 0x91, 0xb8, 0xc1, 0xb7, 0x54, 0x77, 0xb2, 0x60, 0x33, 0x19, 0x78, 0x12, 0x5e, 0xec, 0x92, 0x47, 0xdf, 0x02, 0xf1}
)

type binaryClassdelay struct{}

func (*delay) Class() binary.Class {
	return (*binaryClassdelay)(nil)
}
func doEncodedelay(e binary.Encoder, o *delay) error {
	if err := e.String(o.data); err != nil {
		return err
	}
	return nil
}
func doDecodedelay(d binary.Decoder, o *delay) error {
	if obj, err := d.String(); err != nil {
		return err
	} else {
		o.data = string(obj)
	}
	return nil
}
func doSkipdelay(d binary.Decoder) error {
	if err := d.SkipString(); err != nil {
		return err
	}
	return nil
}
func (*binaryClassdelay) ID() binary.ID      { return binaryIDdelay }
func (*binaryClassdelay) New() binary.Object { return &delay{} }
func (*binaryClassdelay) Encode(e binary.Encoder, obj binary.Object) error {
	return doEncodedelay(e, obj.(*delay))
}
func (*binaryClassdelay) Decode(d binary.Decoder) (binary.Object, error) {
	obj := &delay{}
	return obj, doDecodedelay(d, obj)
}
func (*binaryClassdelay) DecodeTo(d binary.Decoder, obj binary.Object) error {
	return doDecodedelay(d, obj.(*delay))
}
func (*binaryClassdelay) Skip(d binary.Decoder) error { return doSkipdelay(d) }

type binaryClassrequest struct{}

func (*request) Class() binary.Class {
	return (*binaryClassrequest)(nil)
}
func doEncoderequest(e binary.Encoder, o *request) error {
	if err := e.String(o.data); err != nil {
		return err
	}
	return nil
}
func doDecoderequest(d binary.Decoder, o *request) error {
	if obj, err := d.String(); err != nil {
		return err
	} else {
		o.data = string(obj)
	}
	return nil
}
func doSkiprequest(d binary.Decoder) error {
	if err := d.SkipString(); err != nil {
		return err
	}
	return nil
}
func (*binaryClassrequest) ID() binary.ID      { return binaryIDrequest }
func (*binaryClassrequest) New() binary.Object { return &request{} }
func (*binaryClassrequest) Encode(e binary.Encoder, obj binary.Object) error {
	return doEncoderequest(e, obj.(*request))
}
func (*binaryClassrequest) Decode(d binary.Decoder) (binary.Object, error) {
	obj := &request{}
	return obj, doDecoderequest(d, obj)
}
func (*binaryClassrequest) DecodeTo(d binary.Decoder, obj binary.Object) error {
	return doDecoderequest(d, obj.(*request))
}
func (*binaryClassrequest) Skip(d binary.Decoder) error { return doSkiprequest(d) }

type binaryClassresponse struct{}

func (*response) Class() binary.Class {
	return (*binaryClassresponse)(nil)
}
func doEncoderesponse(e binary.Encoder, o *response) error {
	if err := e.String(o.data); err != nil {
		return err
	}
	return nil
}
func doDecoderesponse(d binary.Decoder, o *response) error {
	if obj, err := d.String(); err != nil {
		return err
	} else {
		o.data = string(obj)
	}
	return nil
}
func doSkipresponse(d binary.Decoder) error {
	if err := d.SkipString(); err != nil {
		return err
	}
	return nil
}
func (*binaryClassresponse) ID() binary.ID      { return binaryIDresponse }
func (*binaryClassresponse) New() binary.Object { return &response{} }
func (*binaryClassresponse) Encode(e binary.Encoder, obj binary.Object) error {
	return doEncoderesponse(e, obj.(*response))
}
func (*binaryClassresponse) Decode(d binary.Decoder) (binary.Object, error) {
	obj := &response{}
	return obj, doDecoderesponse(d, obj)
}
func (*binaryClassresponse) DecodeTo(d binary.Decoder, obj binary.Object) error {
	return doDecoderesponse(d, obj.(*response))
}
func (*binaryClassresponse) Skip(d binary.Decoder) error { return doSkipresponse(d) }