Introduce Stream - experimental API for low-level access to VPP API
[govpp.git] / examples / binapi / memclnt / memclnt.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // versions:
3 //  binapi-generator: v0.4.0-dev
4 //  VPP:              20.05-release
5 // source: /usr/share/vpp/api/core/memclnt.api.json
6
7 /*
8 Package memclnt contains generated code for VPP API file memclnt.api (2.1.0).
9
10 It consists of:
11          22 messages
12           2 types
13 */
14 package memclnt
15
16 import (
17         "bytes"
18         "context"
19         "encoding/binary"
20         "io"
21         "math"
22         "strconv"
23
24         api "git.fd.io/govpp.git/api"
25         codec "git.fd.io/govpp.git/codec"
26         struc "github.com/lunixbochs/struc"
27 )
28
29 // This is a compile-time assertion to ensure that this generated file
30 // is compatible with the GoVPP api package it is being compiled against.
31 // A compilation error at this line likely means your copy of the
32 // GoVPP api package needs to be updated.
33 const _ = api.GoVppAPIPackageIsVersion2 // please upgrade the GoVPP api package
34
35 const (
36         // ModuleName is the name of this module.
37         ModuleName = "memclnt"
38         // APIVersion is the API version of this module.
39         APIVersion = "2.1.0"
40         // VersionCrc is the CRC of this module.
41         VersionCrc = 0x8d3dd881
42 )
43
44 // MessageTableEntry represents VPP binary API type 'message_table_entry'.
45 type MessageTableEntry struct {
46         Index uint16 `binapi:"u16,name=index" json:"index,omitempty"`
47         Name  string `binapi:"string[64],name=name" json:"name,omitempty" struc:"[64]byte"`
48 }
49
50 func (*MessageTableEntry) GetTypeName() string { return "message_table_entry" }
51
52 // ModuleVersion represents VPP binary API type 'module_version'.
53 type ModuleVersion struct {
54         Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
55         Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
56         Patch uint32 `binapi:"u32,name=patch" json:"patch,omitempty"`
57         Name  string `binapi:"string[64],name=name" json:"name,omitempty" struc:"[64]byte"`
58 }
59
60 func (*ModuleVersion) GetTypeName() string { return "module_version" }
61
62 // APIVersions represents VPP binary API message 'api_versions'.
63 type APIVersions struct{}
64
65 func (m *APIVersions) Reset()                        { *m = APIVersions{} }
66 func (*APIVersions) GetMessageName() string          { return "api_versions" }
67 func (*APIVersions) GetCrcString() string            { return "51077d14" }
68 func (*APIVersions) GetMessageType() api.MessageType { return api.RequestMessage }
69
70 func (m *APIVersions) Size() int {
71         if m == nil {
72                 return 0
73         }
74         var size int
75         return size
76 }
77 func (m *APIVersions) Marshal(b []byte) ([]byte, error) {
78         o := binary.BigEndian
79         _ = o
80         pos := 0
81         _ = pos
82         var buf []byte
83         if b == nil {
84                 buf = make([]byte, m.Size())
85         } else {
86                 buf = b
87         }
88         return buf, nil
89 }
90 func (m *APIVersions) Unmarshal(tmp []byte) error {
91         o := binary.BigEndian
92         _ = o
93         pos := 0
94         _ = pos
95         return nil
96 }
97
98 // APIVersionsReply represents VPP binary API message 'api_versions_reply'.
99 type APIVersionsReply struct {
100         Retval      int32           `binapi:"i32,name=retval" json:"retval,omitempty"`
101         Count       uint32          `binapi:"u32,name=count" json:"count,omitempty" struc:"sizeof=APIVersions"`
102         APIVersions []ModuleVersion `binapi:"module_version[count],name=api_versions" json:"api_versions,omitempty"`
103 }
104
105 func (m *APIVersionsReply) Reset()                        { *m = APIVersionsReply{} }
106 func (*APIVersionsReply) GetMessageName() string          { return "api_versions_reply" }
107 func (*APIVersionsReply) GetCrcString() string            { return "5f0d99d6" }
108 func (*APIVersionsReply) GetMessageType() api.MessageType { return api.ReplyMessage }
109
110 func (m *APIVersionsReply) Size() int {
111         if m == nil {
112                 return 0
113         }
114         var size int
115         // field[1] m.Retval
116         size += 4
117         // field[1] m.Count
118         size += 4
119         // field[1] m.APIVersions
120         for j1 := 0; j1 < len(m.APIVersions); j1++ {
121                 var s1 ModuleVersion
122                 _ = s1
123                 if j1 < len(m.APIVersions) {
124                         s1 = m.APIVersions[j1]
125                 }
126                 // field[2] s1.Major
127                 size += 4
128                 // field[2] s1.Minor
129                 size += 4
130                 // field[2] s1.Patch
131                 size += 4
132                 // field[2] s1.Name
133                 size += 64
134         }
135         return size
136 }
137 func (m *APIVersionsReply) Marshal(b []byte) ([]byte, error) {
138         o := binary.BigEndian
139         _ = o
140         pos := 0
141         _ = pos
142         var buf []byte
143         if b == nil {
144                 buf = make([]byte, m.Size())
145         } else {
146                 buf = b
147         }
148         // field[1] m.Retval
149         o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
150         pos += 4
151         // field[1] m.Count
152         o.PutUint32(buf[pos:pos+4], uint32(len(m.APIVersions)))
153         pos += 4
154         // field[1] m.APIVersions
155         for j1 := 0; j1 < len(m.APIVersions); j1++ {
156                 var v1 ModuleVersion
157                 if j1 < len(m.APIVersions) {
158                         v1 = m.APIVersions[j1]
159                 }
160                 // field[2] v1.Major
161                 o.PutUint32(buf[pos:pos+4], uint32(v1.Major))
162                 pos += 4
163                 // field[2] v1.Minor
164                 o.PutUint32(buf[pos:pos+4], uint32(v1.Minor))
165                 pos += 4
166                 // field[2] v1.Patch
167                 o.PutUint32(buf[pos:pos+4], uint32(v1.Patch))
168                 pos += 4
169                 // field[2] v1.Name
170                 copy(buf[pos:pos+64], v1.Name)
171                 pos += 64
172         }
173         return buf, nil
174 }
175 func (m *APIVersionsReply) Unmarshal(tmp []byte) error {
176         o := binary.BigEndian
177         _ = o
178         pos := 0
179         _ = pos
180         // field[1] m.Retval
181         m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
182         pos += 4
183         // field[1] m.Count
184         m.Count = uint32(o.Uint32(tmp[pos : pos+4]))
185         pos += 4
186         // field[1] m.APIVersions
187         m.APIVersions = make([]ModuleVersion, int(m.Count))
188         for j1 := 0; j1 < int(m.Count); j1++ {
189                 // field[2] m.APIVersions[j1].Major
190                 m.APIVersions[j1].Major = uint32(o.Uint32(tmp[pos : pos+4]))
191                 pos += 4
192                 // field[2] m.APIVersions[j1].Minor
193                 m.APIVersions[j1].Minor = uint32(o.Uint32(tmp[pos : pos+4]))
194                 pos += 4
195                 // field[2] m.APIVersions[j1].Patch
196                 m.APIVersions[j1].Patch = uint32(o.Uint32(tmp[pos : pos+4]))
197                 pos += 4
198                 // field[2] m.APIVersions[j1].Name
199                 {
200                         nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
201                         m.APIVersions[j1].Name = codec.DecodeString(tmp[pos : pos+nul])
202                         pos += 64
203                 }
204         }
205         return nil
206 }
207
208 // GetFirstMsgID represents VPP binary API message 'get_first_msg_id'.
209 type GetFirstMsgID struct {
210         Name string `binapi:"string[64],name=name" json:"name,omitempty" struc:"[64]byte"`
211 }
212
213 func (m *GetFirstMsgID) Reset()                        { *m = GetFirstMsgID{} }
214 func (*GetFirstMsgID) GetMessageName() string          { return "get_first_msg_id" }
215 func (*GetFirstMsgID) GetCrcString() string            { return "ebf79a66" }
216 func (*GetFirstMsgID) GetMessageType() api.MessageType { return api.RequestMessage }
217
218 func (m *GetFirstMsgID) Size() int {
219         if m == nil {
220                 return 0
221         }
222         var size int
223         // field[1] m.Name
224         size += 64
225         return size
226 }
227 func (m *GetFirstMsgID) Marshal(b []byte) ([]byte, error) {
228         o := binary.BigEndian
229         _ = o
230         pos := 0
231         _ = pos
232         var buf []byte
233         if b == nil {
234                 buf = make([]byte, m.Size())
235         } else {
236                 buf = b
237         }
238         // field[1] m.Name
239         copy(buf[pos:pos+64], m.Name)
240         pos += 64
241         return buf, nil
242 }
243 func (m *GetFirstMsgID) Unmarshal(tmp []byte) error {
244         o := binary.BigEndian
245         _ = o
246         pos := 0
247         _ = pos
248         // field[1] m.Name
249         {
250                 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
251                 m.Name = codec.DecodeString(tmp[pos : pos+nul])
252                 pos += 64
253         }
254         return nil
255 }
256
257 // GetFirstMsgIDReply represents VPP binary API message 'get_first_msg_id_reply'.
258 type GetFirstMsgIDReply struct {
259         Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
260         FirstMsgID uint16 `binapi:"u16,name=first_msg_id" json:"first_msg_id,omitempty"`
261 }
262
263 func (m *GetFirstMsgIDReply) Reset()                        { *m = GetFirstMsgIDReply{} }
264 func (*GetFirstMsgIDReply) GetMessageName() string          { return "get_first_msg_id_reply" }
265 func (*GetFirstMsgIDReply) GetCrcString() string            { return "7d337472" }
266 func (*GetFirstMsgIDReply) GetMessageType() api.MessageType { return api.ReplyMessage }
267
268 func (m *GetFirstMsgIDReply) Size() int {
269         if m == nil {
270                 return 0
271         }
272         var size int
273         // field[1] m.Retval
274         size += 4
275         // field[1] m.FirstMsgID
276         size += 2
277         return size
278 }
279 func (m *GetFirstMsgIDReply) Marshal(b []byte) ([]byte, error) {
280         o := binary.BigEndian
281         _ = o
282         pos := 0
283         _ = pos
284         var buf []byte
285         if b == nil {
286                 buf = make([]byte, m.Size())
287         } else {
288                 buf = b
289         }
290         // field[1] m.Retval
291         o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
292         pos += 4
293         // field[1] m.FirstMsgID
294         o.PutUint16(buf[pos:pos+2], uint16(m.FirstMsgID))
295         pos += 2
296         return buf, nil
297 }
298 func (m *GetFirstMsgIDReply) Unmarshal(tmp []byte) error {
299         o := binary.BigEndian
300         _ = o
301         pos := 0
302         _ = pos
303         // field[1] m.Retval
304         m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
305         pos += 4
306         // field[1] m.FirstMsgID
307         m.FirstMsgID = uint16(o.Uint16(tmp[pos : pos+2]))
308         pos += 2
309         return nil
310 }
311
312 // MemclntCreate represents VPP binary API message 'memclnt_create'.
313 type MemclntCreate struct {
314         CtxQuota    int32    `binapi:"i32,name=ctx_quota" json:"ctx_quota,omitempty"`
315         InputQueue  uint64   `binapi:"u64,name=input_queue" json:"input_queue,omitempty"`
316         Name        string   `binapi:"string[64],name=name" json:"name,omitempty" struc:"[64]byte"`
317         APIVersions []uint32 `binapi:"u32[8],name=api_versions" json:"api_versions,omitempty" struc:"[8]uint32"`
318 }
319
320 func (m *MemclntCreate) Reset()                        { *m = MemclntCreate{} }
321 func (*MemclntCreate) GetMessageName() string          { return "memclnt_create" }
322 func (*MemclntCreate) GetCrcString() string            { return "9c5e1c2f" }
323 func (*MemclntCreate) GetMessageType() api.MessageType { return api.ReplyMessage }
324
325 func (m *MemclntCreate) Size() int {
326         if m == nil {
327                 return 0
328         }
329         var size int
330         // field[1] m.CtxQuota
331         size += 4
332         // field[1] m.InputQueue
333         size += 8
334         // field[1] m.Name
335         size += 64
336         // field[1] m.APIVersions
337         size += 32
338         return size
339 }
340 func (m *MemclntCreate) Marshal(b []byte) ([]byte, error) {
341         o := binary.BigEndian
342         _ = o
343         pos := 0
344         _ = pos
345         var buf []byte
346         if b == nil {
347                 buf = make([]byte, m.Size())
348         } else {
349                 buf = b
350         }
351         // field[1] m.CtxQuota
352         o.PutUint32(buf[pos:pos+4], uint32(m.CtxQuota))
353         pos += 4
354         // field[1] m.InputQueue
355         o.PutUint64(buf[pos:pos+8], uint64(m.InputQueue))
356         pos += 8
357         // field[1] m.Name
358         copy(buf[pos:pos+64], m.Name)
359         pos += 64
360         // field[1] m.APIVersions
361         for i := 0; i < 8; i++ {
362                 var x uint32
363                 if i < len(m.APIVersions) {
364                         x = uint32(m.APIVersions[i])
365                 }
366                 o.PutUint32(buf[pos:pos+4], uint32(x))
367                 pos += 4
368         }
369         return buf, nil
370 }
371 func (m *MemclntCreate) Unmarshal(tmp []byte) error {
372         o := binary.BigEndian
373         _ = o
374         pos := 0
375         _ = pos
376         // field[1] m.CtxQuota
377         m.CtxQuota = int32(o.Uint32(tmp[pos : pos+4]))
378         pos += 4
379         // field[1] m.InputQueue
380         m.InputQueue = uint64(o.Uint64(tmp[pos : pos+8]))
381         pos += 8
382         // field[1] m.Name
383         {
384                 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
385                 m.Name = codec.DecodeString(tmp[pos : pos+nul])
386                 pos += 64
387         }
388         // field[1] m.APIVersions
389         m.APIVersions = make([]uint32, 8)
390         for i := 0; i < len(m.APIVersions); i++ {
391                 m.APIVersions[i] = uint32(o.Uint32(tmp[pos : pos+4]))
392                 pos += 4
393         }
394         return nil
395 }
396
397 // MemclntCreateReply represents VPP binary API message 'memclnt_create_reply'.
398 type MemclntCreateReply struct {
399         Response     int32  `binapi:"i32,name=response" json:"response,omitempty"`
400         Handle       uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
401         Index        uint32 `binapi:"u32,name=index" json:"index,omitempty"`
402         MessageTable uint64 `binapi:"u64,name=message_table" json:"message_table,omitempty"`
403 }
404
405 func (m *MemclntCreateReply) Reset()                        { *m = MemclntCreateReply{} }
406 func (*MemclntCreateReply) GetMessageName() string          { return "memclnt_create_reply" }
407 func (*MemclntCreateReply) GetCrcString() string            { return "42ec4560" }
408 func (*MemclntCreateReply) GetMessageType() api.MessageType { return api.ReplyMessage }
409
410 func (m *MemclntCreateReply) Size() int {
411         if m == nil {
412                 return 0
413         }
414         var size int
415         // field[1] m.Response
416         size += 4
417         // field[1] m.Handle
418         size += 8
419         // field[1] m.Index
420         size += 4
421         // field[1] m.MessageTable
422         size += 8
423         return size
424 }
425 func (m *MemclntCreateReply) Marshal(b []byte) ([]byte, error) {
426         o := binary.BigEndian
427         _ = o
428         pos := 0
429         _ = pos
430         var buf []byte
431         if b == nil {
432                 buf = make([]byte, m.Size())
433         } else {
434                 buf = b
435         }
436         // field[1] m.Response
437         o.PutUint32(buf[pos:pos+4], uint32(m.Response))
438         pos += 4
439         // field[1] m.Handle
440         o.PutUint64(buf[pos:pos+8], uint64(m.Handle))
441         pos += 8
442         // field[1] m.Index
443         o.PutUint32(buf[pos:pos+4], uint32(m.Index))
444         pos += 4
445         // field[1] m.MessageTable
446         o.PutUint64(buf[pos:pos+8], uint64(m.MessageTable))
447         pos += 8
448         return buf, nil
449 }
450 func (m *MemclntCreateReply) Unmarshal(tmp []byte) error {
451         o := binary.BigEndian
452         _ = o
453         pos := 0
454         _ = pos
455         // field[1] m.Response
456         m.Response = int32(o.Uint32(tmp[pos : pos+4]))
457         pos += 4
458         // field[1] m.Handle
459         m.Handle = uint64(o.Uint64(tmp[pos : pos+8]))
460         pos += 8
461         // field[1] m.Index
462         m.Index = uint32(o.Uint32(tmp[pos : pos+4]))
463         pos += 4
464         // field[1] m.MessageTable
465         m.MessageTable = uint64(o.Uint64(tmp[pos : pos+8]))
466         pos += 8
467         return nil
468 }
469
470 // MemclntDelete represents VPP binary API message 'memclnt_delete'.
471 type MemclntDelete struct {
472         Index     uint32 `binapi:"u32,name=index" json:"index,omitempty"`
473         Handle    uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
474         DoCleanup bool   `binapi:"bool,name=do_cleanup" json:"do_cleanup,omitempty"`
475 }
476
477 func (m *MemclntDelete) Reset()                        { *m = MemclntDelete{} }
478 func (*MemclntDelete) GetMessageName() string          { return "memclnt_delete" }
479 func (*MemclntDelete) GetCrcString() string            { return "7e1c04e3" }
480 func (*MemclntDelete) GetMessageType() api.MessageType { return api.OtherMessage }
481
482 func (m *MemclntDelete) Size() int {
483         if m == nil {
484                 return 0
485         }
486         var size int
487         // field[1] m.Index
488         size += 4
489         // field[1] m.Handle
490         size += 8
491         // field[1] m.DoCleanup
492         size += 1
493         return size
494 }
495 func (m *MemclntDelete) Marshal(b []byte) ([]byte, error) {
496         o := binary.BigEndian
497         _ = o
498         pos := 0
499         _ = pos
500         var buf []byte
501         if b == nil {
502                 buf = make([]byte, m.Size())
503         } else {
504                 buf = b
505         }
506         // field[1] m.Index
507         o.PutUint32(buf[pos:pos+4], uint32(m.Index))
508         pos += 4
509         // field[1] m.Handle
510         o.PutUint64(buf[pos:pos+8], uint64(m.Handle))
511         pos += 8
512         // field[1] m.DoCleanup
513         if m.DoCleanup {
514                 buf[pos] = 1
515         }
516         pos += 1
517         return buf, nil
518 }
519 func (m *MemclntDelete) Unmarshal(tmp []byte) error {
520         o := binary.BigEndian
521         _ = o
522         pos := 0
523         _ = pos
524         // field[1] m.Index
525         m.Index = uint32(o.Uint32(tmp[pos : pos+4]))
526         pos += 4
527         // field[1] m.Handle
528         m.Handle = uint64(o.Uint64(tmp[pos : pos+8]))
529         pos += 8
530         // field[1] m.DoCleanup
531         m.DoCleanup = tmp[pos] != 0
532         pos += 1
533         return nil
534 }
535
536 // MemclntDeleteReply represents VPP binary API message 'memclnt_delete_reply'.
537 type MemclntDeleteReply struct {
538         Response int32  `binapi:"i32,name=response" json:"response,omitempty"`
539         Handle   uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
540 }
541
542 func (m *MemclntDeleteReply) Reset()                        { *m = MemclntDeleteReply{} }
543 func (*MemclntDeleteReply) GetMessageName() string          { return "memclnt_delete_reply" }
544 func (*MemclntDeleteReply) GetCrcString() string            { return "3d3b6312" }
545 func (*MemclntDeleteReply) GetMessageType() api.MessageType { return api.OtherMessage }
546
547 func (m *MemclntDeleteReply) Size() int {
548         if m == nil {
549                 return 0
550         }
551         var size int
552         // field[1] m.Response
553         size += 4
554         // field[1] m.Handle
555         size += 8
556         return size
557 }
558 func (m *MemclntDeleteReply) Marshal(b []byte) ([]byte, error) {
559         o := binary.BigEndian
560         _ = o
561         pos := 0
562         _ = pos
563         var buf []byte
564         if b == nil {
565                 buf = make([]byte, m.Size())
566         } else {
567                 buf = b
568         }
569         // field[1] m.Response
570         o.PutUint32(buf[pos:pos+4], uint32(m.Response))
571         pos += 4
572         // field[1] m.Handle
573         o.PutUint64(buf[pos:pos+8], uint64(m.Handle))
574         pos += 8
575         return buf, nil
576 }
577 func (m *MemclntDeleteReply) Unmarshal(tmp []byte) error {
578         o := binary.BigEndian
579         _ = o
580         pos := 0
581         _ = pos
582         // field[1] m.Response
583         m.Response = int32(o.Uint32(tmp[pos : pos+4]))
584         pos += 4
585         // field[1] m.Handle
586         m.Handle = uint64(o.Uint64(tmp[pos : pos+8]))
587         pos += 8
588         return nil
589 }
590
591 // MemclntKeepalive represents VPP binary API message 'memclnt_keepalive'.
592 type MemclntKeepalive struct{}
593
594 func (m *MemclntKeepalive) Reset()                        { *m = MemclntKeepalive{} }
595 func (*MemclntKeepalive) GetMessageName() string          { return "memclnt_keepalive" }
596 func (*MemclntKeepalive) GetCrcString() string            { return "51077d14" }
597 func (*MemclntKeepalive) GetMessageType() api.MessageType { return api.RequestMessage }
598
599 func (m *MemclntKeepalive) Size() int {
600         if m == nil {
601                 return 0
602         }
603         var size int
604         return size
605 }
606 func (m *MemclntKeepalive) Marshal(b []byte) ([]byte, error) {
607         o := binary.BigEndian
608         _ = o
609         pos := 0
610         _ = pos
611         var buf []byte
612         if b == nil {
613                 buf = make([]byte, m.Size())
614         } else {
615                 buf = b
616         }
617         return buf, nil
618 }
619 func (m *MemclntKeepalive) Unmarshal(tmp []byte) error {
620         o := binary.BigEndian
621         _ = o
622         pos := 0
623         _ = pos
624         return nil
625 }
626
627 // MemclntKeepaliveReply represents VPP binary API message 'memclnt_keepalive_reply'.
628 type MemclntKeepaliveReply struct {
629         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
630 }
631
632 func (m *MemclntKeepaliveReply) Reset()                        { *m = MemclntKeepaliveReply{} }
633 func (*MemclntKeepaliveReply) GetMessageName() string          { return "memclnt_keepalive_reply" }
634 func (*MemclntKeepaliveReply) GetCrcString() string            { return "e8d4e804" }
635 func (*MemclntKeepaliveReply) GetMessageType() api.MessageType { return api.ReplyMessage }
636
637 func (m *MemclntKeepaliveReply) Size() int {
638         if m == nil {
639                 return 0
640         }
641         var size int
642         // field[1] m.Retval
643         size += 4
644         return size
645 }
646 func (m *MemclntKeepaliveReply) Marshal(b []byte) ([]byte, error) {
647         o := binary.BigEndian
648         _ = o
649         pos := 0
650         _ = pos
651         var buf []byte
652         if b == nil {
653                 buf = make([]byte, m.Size())
654         } else {
655                 buf = b
656         }
657         // field[1] m.Retval
658         o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
659         pos += 4
660         return buf, nil
661 }
662 func (m *MemclntKeepaliveReply) Unmarshal(tmp []byte) error {
663         o := binary.BigEndian
664         _ = o
665         pos := 0
666         _ = pos
667         // field[1] m.Retval
668         m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
669         pos += 4
670         return nil
671 }
672
673 // MemclntReadTimeout represents VPP binary API message 'memclnt_read_timeout'.
674 type MemclntReadTimeout struct {
675         Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
676 }
677
678 func (m *MemclntReadTimeout) Reset()                        { *m = MemclntReadTimeout{} }
679 func (*MemclntReadTimeout) GetMessageName() string          { return "memclnt_read_timeout" }
680 func (*MemclntReadTimeout) GetCrcString() string            { return "c3a3a452" }
681 func (*MemclntReadTimeout) GetMessageType() api.MessageType { return api.OtherMessage }
682
683 func (m *MemclntReadTimeout) Size() int {
684         if m == nil {
685                 return 0
686         }
687         var size int
688         // field[1] m.Dummy
689         size += 1
690         return size
691 }
692 func (m *MemclntReadTimeout) Marshal(b []byte) ([]byte, error) {
693         o := binary.BigEndian
694         _ = o
695         pos := 0
696         _ = pos
697         var buf []byte
698         if b == nil {
699                 buf = make([]byte, m.Size())
700         } else {
701                 buf = b
702         }
703         // field[1] m.Dummy
704         buf[pos] = uint8(m.Dummy)
705         pos += 1
706         return buf, nil
707 }
708 func (m *MemclntReadTimeout) Unmarshal(tmp []byte) error {
709         o := binary.BigEndian
710         _ = o
711         pos := 0
712         _ = pos
713         // field[1] m.Dummy
714         m.Dummy = uint8(tmp[pos])
715         pos += 1
716         return nil
717 }
718
719 // MemclntRxThreadSuspend represents VPP binary API message 'memclnt_rx_thread_suspend'.
720 type MemclntRxThreadSuspend struct {
721         Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
722 }
723
724 func (m *MemclntRxThreadSuspend) Reset()                        { *m = MemclntRxThreadSuspend{} }
725 func (*MemclntRxThreadSuspend) GetMessageName() string          { return "memclnt_rx_thread_suspend" }
726 func (*MemclntRxThreadSuspend) GetCrcString() string            { return "c3a3a452" }
727 func (*MemclntRxThreadSuspend) GetMessageType() api.MessageType { return api.OtherMessage }
728
729 func (m *MemclntRxThreadSuspend) Size() int {
730         if m == nil {
731                 return 0
732         }
733         var size int
734         // field[1] m.Dummy
735         size += 1
736         return size
737 }
738 func (m *MemclntRxThreadSuspend) Marshal(b []byte) ([]byte, error) {
739         o := binary.BigEndian
740         _ = o
741         pos := 0
742         _ = pos
743         var buf []byte
744         if b == nil {
745                 buf = make([]byte, m.Size())
746         } else {
747                 buf = b
748         }
749         // field[1] m.Dummy
750         buf[pos] = uint8(m.Dummy)
751         pos += 1
752         return buf, nil
753 }
754 func (m *MemclntRxThreadSuspend) Unmarshal(tmp []byte) error {
755         o := binary.BigEndian
756         _ = o
757         pos := 0
758         _ = pos
759         // field[1] m.Dummy
760         m.Dummy = uint8(tmp[pos])
761         pos += 1
762         return nil
763 }
764
765 // RPCCall represents VPP binary API message 'rpc_call'.
766 type RPCCall struct {
767         Function        uint64 `binapi:"u64,name=function" json:"function,omitempty"`
768         Multicast       uint8  `binapi:"u8,name=multicast" json:"multicast,omitempty"`
769         NeedBarrierSync uint8  `binapi:"u8,name=need_barrier_sync" json:"need_barrier_sync,omitempty"`
770         SendReply       uint8  `binapi:"u8,name=send_reply" json:"send_reply,omitempty"`
771         DataLen         uint32 `binapi:"u32,name=data_len" json:"data_len,omitempty" struc:"sizeof=Data"`
772         Data            []byte `binapi:"u8[data_len],name=data" json:"data,omitempty"`
773 }
774
775 func (m *RPCCall) Reset()                        { *m = RPCCall{} }
776 func (*RPCCall) GetMessageName() string          { return "rpc_call" }
777 func (*RPCCall) GetCrcString() string            { return "7e8a2c95" }
778 func (*RPCCall) GetMessageType() api.MessageType { return api.RequestMessage }
779
780 func (m *RPCCall) Size() int {
781         if m == nil {
782                 return 0
783         }
784         var size int
785         // field[1] m.Function
786         size += 8
787         // field[1] m.Multicast
788         size += 1
789         // field[1] m.NeedBarrierSync
790         size += 1
791         // field[1] m.SendReply
792         size += 1
793         // field[1] m.DataLen
794         size += 4
795         // field[1] m.Data
796         size += 1 * len(m.Data)
797         return size
798 }
799 func (m *RPCCall) Marshal(b []byte) ([]byte, error) {
800         o := binary.BigEndian
801         _ = o
802         pos := 0
803         _ = pos
804         var buf []byte
805         if b == nil {
806                 buf = make([]byte, m.Size())
807         } else {
808                 buf = b
809         }
810         // field[1] m.Function
811         o.PutUint64(buf[pos:pos+8], uint64(m.Function))
812         pos += 8
813         // field[1] m.Multicast
814         buf[pos] = uint8(m.Multicast)
815         pos += 1
816         // field[1] m.NeedBarrierSync
817         buf[pos] = uint8(m.NeedBarrierSync)
818         pos += 1
819         // field[1] m.SendReply
820         buf[pos] = uint8(m.SendReply)
821         pos += 1
822         // field[1] m.DataLen
823         o.PutUint32(buf[pos:pos+4], uint32(len(m.Data)))
824         pos += 4
825         // field[1] m.Data
826         for i := 0; i < len(m.Data); i++ {
827                 var x uint8
828                 if i < len(m.Data) {
829                         x = uint8(m.Data[i])
830                 }
831                 buf[pos] = uint8(x)
832                 pos += 1
833         }
834         return buf, nil
835 }
836 func (m *RPCCall) Unmarshal(tmp []byte) error {
837         o := binary.BigEndian
838         _ = o
839         pos := 0
840         _ = pos
841         // field[1] m.Function
842         m.Function = uint64(o.Uint64(tmp[pos : pos+8]))
843         pos += 8
844         // field[1] m.Multicast
845         m.Multicast = uint8(tmp[pos])
846         pos += 1
847         // field[1] m.NeedBarrierSync
848         m.NeedBarrierSync = uint8(tmp[pos])
849         pos += 1
850         // field[1] m.SendReply
851         m.SendReply = uint8(tmp[pos])
852         pos += 1
853         // field[1] m.DataLen
854         m.DataLen = uint32(o.Uint32(tmp[pos : pos+4]))
855         pos += 4
856         // field[1] m.Data
857         m.Data = make([]uint8, m.DataLen)
858         for i := 0; i < len(m.Data); i++ {
859                 m.Data[i] = uint8(tmp[pos])
860                 pos += 1
861         }
862         return nil
863 }
864
865 // RPCCallReply represents VPP binary API message 'rpc_call_reply'.
866 type RPCCallReply struct {
867         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
868 }
869
870 func (m *RPCCallReply) Reset()                        { *m = RPCCallReply{} }
871 func (*RPCCallReply) GetMessageName() string          { return "rpc_call_reply" }
872 func (*RPCCallReply) GetCrcString() string            { return "e8d4e804" }
873 func (*RPCCallReply) GetMessageType() api.MessageType { return api.ReplyMessage }
874
875 func (m *RPCCallReply) Size() int {
876         if m == nil {
877                 return 0
878         }
879         var size int
880         // field[1] m.Retval
881         size += 4
882         return size
883 }
884 func (m *RPCCallReply) Marshal(b []byte) ([]byte, error) {
885         o := binary.BigEndian
886         _ = o
887         pos := 0
888         _ = pos
889         var buf []byte
890         if b == nil {
891                 buf = make([]byte, m.Size())
892         } else {
893                 buf = b
894         }
895         // field[1] m.Retval
896         o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
897         pos += 4
898         return buf, nil
899 }
900 func (m *RPCCallReply) Unmarshal(tmp []byte) error {
901         o := binary.BigEndian
902         _ = o
903         pos := 0
904         _ = pos
905         // field[1] m.Retval
906         m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
907         pos += 4
908         return nil
909 }
910
911 // RxThreadExit represents VPP binary API message 'rx_thread_exit'.
912 type RxThreadExit struct {
913         Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
914 }
915
916 func (m *RxThreadExit) Reset()                        { *m = RxThreadExit{} }
917 func (*RxThreadExit) GetMessageName() string          { return "rx_thread_exit" }
918 func (*RxThreadExit) GetCrcString() string            { return "c3a3a452" }
919 func (*RxThreadExit) GetMessageType() api.MessageType { return api.OtherMessage }
920
921 func (m *RxThreadExit) Size() int {
922         if m == nil {
923                 return 0
924         }
925         var size int
926         // field[1] m.Dummy
927         size += 1
928         return size
929 }
930 func (m *RxThreadExit) Marshal(b []byte) ([]byte, error) {
931         o := binary.BigEndian
932         _ = o
933         pos := 0
934         _ = pos
935         var buf []byte
936         if b == nil {
937                 buf = make([]byte, m.Size())
938         } else {
939                 buf = b
940         }
941         // field[1] m.Dummy
942         buf[pos] = uint8(m.Dummy)
943         pos += 1
944         return buf, nil
945 }
946 func (m *RxThreadExit) Unmarshal(tmp []byte) error {
947         o := binary.BigEndian
948         _ = o
949         pos := 0
950         _ = pos
951         // field[1] m.Dummy
952         m.Dummy = uint8(tmp[pos])
953         pos += 1
954         return nil
955 }
956
957 // SockInitShm represents VPP binary API message 'sock_init_shm'.
958 type SockInitShm struct {
959         RequestedSize uint32   `binapi:"u32,name=requested_size" json:"requested_size,omitempty"`
960         Nitems        uint8    `binapi:"u8,name=nitems" json:"nitems,omitempty" struc:"sizeof=Configs"`
961         Configs       []uint64 `binapi:"u64[nitems],name=configs" json:"configs,omitempty"`
962 }
963
964 func (m *SockInitShm) Reset()                        { *m = SockInitShm{} }
965 func (*SockInitShm) GetMessageName() string          { return "sock_init_shm" }
966 func (*SockInitShm) GetCrcString() string            { return "51646d92" }
967 func (*SockInitShm) GetMessageType() api.MessageType { return api.RequestMessage }
968
969 func (m *SockInitShm) Size() int {
970         if m == nil {
971                 return 0
972         }
973         var size int
974         // field[1] m.RequestedSize
975         size += 4
976         // field[1] m.Nitems
977         size += 1
978         // field[1] m.Configs
979         size += 8 * len(m.Configs)
980         return size
981 }
982 func (m *SockInitShm) Marshal(b []byte) ([]byte, error) {
983         o := binary.BigEndian
984         _ = o
985         pos := 0
986         _ = pos
987         var buf []byte
988         if b == nil {
989                 buf = make([]byte, m.Size())
990         } else {
991                 buf = b
992         }
993         // field[1] m.RequestedSize
994         o.PutUint32(buf[pos:pos+4], uint32(m.RequestedSize))
995         pos += 4
996         // field[1] m.Nitems
997         buf[pos] = uint8(len(m.Configs))
998         pos += 1
999         // field[1] m.Configs
1000         for i := 0; i < len(m.Configs); i++ {
1001                 var x uint64
1002                 if i < len(m.Configs) {
1003                         x = uint64(m.Configs[i])
1004                 }
1005                 o.PutUint64(buf[pos:pos+8], uint64(x))
1006                 pos += 8
1007         }
1008         return buf, nil
1009 }
1010 func (m *SockInitShm) Unmarshal(tmp []byte) error {
1011         o := binary.BigEndian
1012         _ = o
1013         pos := 0
1014         _ = pos
1015         // field[1] m.RequestedSize
1016         m.RequestedSize = uint32(o.Uint32(tmp[pos : pos+4]))
1017         pos += 4
1018         // field[1] m.Nitems
1019         m.Nitems = uint8(tmp[pos])
1020         pos += 1
1021         // field[1] m.Configs
1022         m.Configs = make([]uint64, m.Nitems)
1023         for i := 0; i < len(m.Configs); i++ {
1024                 m.Configs[i] = uint64(o.Uint64(tmp[pos : pos+8]))
1025                 pos += 8
1026         }
1027         return nil
1028 }
1029
1030 // SockInitShmReply represents VPP binary API message 'sock_init_shm_reply'.
1031 type SockInitShmReply struct {
1032         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
1033 }
1034
1035 func (m *SockInitShmReply) Reset()                        { *m = SockInitShmReply{} }
1036 func (*SockInitShmReply) GetMessageName() string          { return "sock_init_shm_reply" }
1037 func (*SockInitShmReply) GetCrcString() string            { return "e8d4e804" }
1038 func (*SockInitShmReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1039
1040 func (m *SockInitShmReply) Size() int {
1041         if m == nil {
1042                 return 0
1043         }
1044         var size int
1045         // field[1] m.Retval
1046         size += 4
1047         return size
1048 }
1049 func (m *SockInitShmReply) Marshal(b []byte) ([]byte, error) {
1050         o := binary.BigEndian
1051         _ = o
1052         pos := 0
1053         _ = pos
1054         var buf []byte
1055         if b == nil {
1056                 buf = make([]byte, m.Size())
1057         } else {
1058                 buf = b
1059         }
1060         // field[1] m.Retval
1061         o.PutUint32(buf[pos:pos+4], uint32(m.Retval))
1062         pos += 4
1063         return buf, nil
1064 }
1065 func (m *SockInitShmReply) Unmarshal(tmp []byte) error {
1066         o := binary.BigEndian
1067         _ = o
1068         pos := 0
1069         _ = pos
1070         // field[1] m.Retval
1071         m.Retval = int32(o.Uint32(tmp[pos : pos+4]))
1072         pos += 4
1073         return nil
1074 }
1075
1076 // SockclntCreate represents VPP binary API message 'sockclnt_create'.
1077 type SockclntCreate struct {
1078         Name string `binapi:"string[64],name=name" json:"name,omitempty" struc:"[64]byte"`
1079 }
1080
1081 func (m *SockclntCreate) Reset()                        { *m = SockclntCreate{} }
1082 func (*SockclntCreate) GetMessageName() string          { return "sockclnt_create" }
1083 func (*SockclntCreate) GetCrcString() string            { return "455fb9c4" }
1084 func (*SockclntCreate) GetMessageType() api.MessageType { return api.ReplyMessage }
1085
1086 func (m *SockclntCreate) Size() int {
1087         if m == nil {
1088                 return 0
1089         }
1090         var size int
1091         // field[1] m.Name
1092         size += 64
1093         return size
1094 }
1095 func (m *SockclntCreate) Marshal(b []byte) ([]byte, error) {
1096         o := binary.BigEndian
1097         _ = o
1098         pos := 0
1099         _ = pos
1100         var buf []byte
1101         if b == nil {
1102                 buf = make([]byte, m.Size())
1103         } else {
1104                 buf = b
1105         }
1106         // field[1] m.Name
1107         copy(buf[pos:pos+64], m.Name)
1108         pos += 64
1109         return buf, nil
1110 }
1111 func (m *SockclntCreate) Unmarshal(tmp []byte) error {
1112         o := binary.BigEndian
1113         _ = o
1114         pos := 0
1115         _ = pos
1116         // field[1] m.Name
1117         {
1118                 nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
1119                 m.Name = codec.DecodeString(tmp[pos : pos+nul])
1120                 pos += 64
1121         }
1122         return nil
1123 }
1124
1125 // SockclntCreateReply represents VPP binary API message 'sockclnt_create_reply'.
1126 type SockclntCreateReply struct {
1127         Response     int32               `binapi:"i32,name=response" json:"response,omitempty"`
1128         Index        uint32              `binapi:"u32,name=index" json:"index,omitempty"`
1129         Count        uint16              `binapi:"u16,name=count" json:"count,omitempty" struc:"sizeof=MessageTable"`
1130         MessageTable []MessageTableEntry `binapi:"message_table_entry[count],name=message_table" json:"message_table,omitempty"`
1131 }
1132
1133 func (m *SockclntCreateReply) Reset()                        { *m = SockclntCreateReply{} }
1134 func (*SockclntCreateReply) GetMessageName() string          { return "sockclnt_create_reply" }
1135 func (*SockclntCreateReply) GetCrcString() string            { return "35166268" }
1136 func (*SockclntCreateReply) GetMessageType() api.MessageType { return api.RequestMessage }
1137
1138 func (m *SockclntCreateReply) Size() int {
1139         if m == nil {
1140                 return 0
1141         }
1142         var size int
1143         // field[1] m.Response
1144         size += 4
1145         // field[1] m.Index
1146         size += 4
1147         // field[1] m.Count
1148         size += 2
1149         // field[1] m.MessageTable
1150         for j1 := 0; j1 < len(m.MessageTable); j1++ {
1151                 var s1 MessageTableEntry
1152                 _ = s1
1153                 if j1 < len(m.MessageTable) {
1154                         s1 = m.MessageTable[j1]
1155                 }
1156                 // field[2] s1.Index
1157                 size += 2
1158                 // field[2] s1.Name
1159                 size += 64
1160         }
1161         return size
1162 }
1163 func (m *SockclntCreateReply) Marshal(b []byte) ([]byte, error) {
1164         o := binary.BigEndian
1165         _ = o
1166         pos := 0
1167         _ = pos
1168         var buf []byte
1169         if b == nil {
1170                 buf = make([]byte, m.Size())
1171         } else {
1172                 buf = b
1173         }
1174         // field[1] m.Response
1175         o.PutUint32(buf[pos:pos+4], uint32(m.Response))
1176         pos += 4
1177         // field[1] m.Index
1178         o.PutUint32(buf[pos:pos+4], uint32(m.Index))
1179         pos += 4
1180         // field[1] m.Count
1181         o.PutUint16(buf[pos:pos+2], uint16(len(m.MessageTable)))
1182         pos += 2
1183         // field[1] m.MessageTable
1184         for j1 := 0; j1 < len(m.MessageTable); j1++ {
1185                 var v1 MessageTableEntry
1186                 if j1 < len(m.MessageTable) {
1187                         v1 = m.MessageTable[j1]
1188                 }
1189                 // field[2] v1.Index
1190                 o.PutUint16(buf[pos:pos+2], uint16(v1.Index))
1191                 pos += 2
1192                 // field[2] v1.Name
1193                 copy(buf[pos:pos+64], v1.Name)
1194                 pos += 64
1195         }
1196         return buf, nil
1197 }
1198 func (m *SockclntCreateReply) Unmarshal(tmp []byte) error {
1199         o := binary.BigEndian
1200         _ = o
1201         pos := 0
1202         _ = pos
1203         // field[1] m.Response
1204         m.Response = int32(o.Uint32(tmp[pos : pos+4]))
1205         pos += 4
1206         // field[1] m.Index
1207         m.Index = uint32(o.Uint32(tmp[pos : pos+4]))
1208         pos += 4
1209         // field[1] m.Count
1210         m.Count = uint16(o.Uint16(tmp[pos : pos+2]))
1211         pos += 2
1212         // field[1] m.MessageTable
1213         m.MessageTable = make([]MessageTableEntry, int(m.Count))
1214         for j1 := 0; j1 < int(m.Count); j1++ {
1215                 // field[2] m.MessageTable[j1].Index
1216                 m.MessageTable[j1].Index = uint16(o.Uint16(tmp[pos : pos+2]))
1217                 pos += 2
1218                 // field[2] m.MessageTable[j1].Name
1219                 {
1220                         nul := bytes.Index(tmp[pos:pos+64], []byte{0x00})
1221                         m.MessageTable[j1].Name = codec.DecodeString(tmp[pos : pos+nul])
1222                         pos += 64
1223                 }
1224         }
1225         return nil
1226 }
1227
1228 // SockclntDelete represents VPP binary API message 'sockclnt_delete'.
1229 type SockclntDelete struct {
1230         Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
1231 }
1232
1233 func (m *SockclntDelete) Reset()                        { *m = SockclntDelete{} }
1234 func (*SockclntDelete) GetMessageName() string          { return "sockclnt_delete" }
1235 func (*SockclntDelete) GetCrcString() string            { return "8ac76db6" }
1236 func (*SockclntDelete) GetMessageType() api.MessageType { return api.RequestMessage }
1237
1238 func (m *SockclntDelete) Size() int {
1239         if m == nil {
1240                 return 0
1241         }
1242         var size int
1243         // field[1] m.Index
1244         size += 4
1245         return size
1246 }
1247 func (m *SockclntDelete) Marshal(b []byte) ([]byte, error) {
1248         o := binary.BigEndian
1249         _ = o
1250         pos := 0
1251         _ = pos
1252         var buf []byte
1253         if b == nil {
1254                 buf = make([]byte, m.Size())
1255         } else {
1256                 buf = b
1257         }
1258         // field[1] m.Index
1259         o.PutUint32(buf[pos:pos+4], uint32(m.Index))
1260         pos += 4
1261         return buf, nil
1262 }
1263 func (m *SockclntDelete) Unmarshal(tmp []byte) error {
1264         o := binary.BigEndian
1265         _ = o
1266         pos := 0
1267         _ = pos
1268         // field[1] m.Index
1269         m.Index = uint32(o.Uint32(tmp[pos : pos+4]))
1270         pos += 4
1271         return nil
1272 }
1273
1274 // SockclntDeleteReply represents VPP binary API message 'sockclnt_delete_reply'.
1275 type SockclntDeleteReply struct {
1276         Response int32 `binapi:"i32,name=response" json:"response,omitempty"`
1277 }
1278
1279 func (m *SockclntDeleteReply) Reset()                        { *m = SockclntDeleteReply{} }
1280 func (*SockclntDeleteReply) GetMessageName() string          { return "sockclnt_delete_reply" }
1281 func (*SockclntDeleteReply) GetCrcString() string            { return "8f38b1ee" }
1282 func (*SockclntDeleteReply) GetMessageType() api.MessageType { return api.ReplyMessage }
1283
1284 func (m *SockclntDeleteReply) Size() int {
1285         if m == nil {
1286                 return 0
1287         }
1288         var size int
1289         // field[1] m.Response
1290         size += 4
1291         return size
1292 }
1293 func (m *SockclntDeleteReply) Marshal(b []byte) ([]byte, error) {
1294         o := binary.BigEndian
1295         _ = o
1296         pos := 0
1297         _ = pos
1298         var buf []byte
1299         if b == nil {
1300                 buf = make([]byte, m.Size())
1301         } else {
1302                 buf = b
1303         }
1304         // field[1] m.Response
1305         o.PutUint32(buf[pos:pos+4], uint32(m.Response))
1306         pos += 4
1307         return buf, nil
1308 }
1309 func (m *SockclntDeleteReply) Unmarshal(tmp []byte) error {
1310         o := binary.BigEndian
1311         _ = o
1312         pos := 0
1313         _ = pos
1314         // field[1] m.Response
1315         m.Response = int32(o.Uint32(tmp[pos : pos+4]))
1316         pos += 4
1317         return nil
1318 }
1319
1320 // TracePluginMsgIds represents VPP binary API message 'trace_plugin_msg_ids'.
1321 type TracePluginMsgIds struct {
1322         PluginName string `binapi:"string[128],name=plugin_name" json:"plugin_name,omitempty" struc:"[128]byte"`
1323         FirstMsgID uint16 `binapi:"u16,name=first_msg_id" json:"first_msg_id,omitempty"`
1324         LastMsgID  uint16 `binapi:"u16,name=last_msg_id" json:"last_msg_id,omitempty"`
1325 }
1326
1327 func (m *TracePluginMsgIds) Reset()                        { *m = TracePluginMsgIds{} }
1328 func (*TracePluginMsgIds) GetMessageName() string          { return "trace_plugin_msg_ids" }
1329 func (*TracePluginMsgIds) GetCrcString() string            { return "f476d3ce" }
1330 func (*TracePluginMsgIds) GetMessageType() api.MessageType { return api.RequestMessage }
1331
1332 func (m *TracePluginMsgIds) Size() int {
1333         if m == nil {
1334                 return 0
1335         }
1336         var size int
1337         // field[1] m.PluginName
1338         size += 128
1339         // field[1] m.FirstMsgID
1340         size += 2
1341         // field[1] m.LastMsgID
1342         size += 2
1343         return size
1344 }
1345 func (m *TracePluginMsgIds) Marshal(b []byte) ([]byte, error) {
1346         o := binary.BigEndian
1347         _ = o
1348         pos := 0
1349         _ = pos
1350         var buf []byte
1351         if b == nil {
1352                 buf = make([]byte, m.Size())
1353         } else {
1354                 buf = b
1355         }
1356         // field[1] m.PluginName
1357         copy(buf[pos:pos+128], m.PluginName)
1358         pos += 128
1359         // field[1] m.FirstMsgID
1360         o.PutUint16(buf[pos:pos+2], uint16(m.FirstMsgID))
1361         pos += 2
1362         // field[1] m.LastMsgID
1363         o.PutUint16(buf[pos:pos+2], uint16(m.LastMsgID))
1364         pos += 2
1365         return buf, nil
1366 }
1367 func (m *TracePluginMsgIds) Unmarshal(tmp []byte) error {
1368         o := binary.BigEndian
1369         _ = o
1370         pos := 0
1371         _ = pos
1372         // field[1] m.PluginName
1373         {
1374                 nul := bytes.Index(tmp[pos:pos+128], []byte{0x00})
1375                 m.PluginName = codec.DecodeString(tmp[pos : pos+nul])
1376                 pos += 128
1377         }
1378         // field[1] m.FirstMsgID
1379         m.FirstMsgID = uint16(o.Uint16(tmp[pos : pos+2]))
1380         pos += 2
1381         // field[1] m.LastMsgID
1382         m.LastMsgID = uint16(o.Uint16(tmp[pos : pos+2]))
1383         pos += 2
1384         return nil
1385 }
1386
1387 func init() { file_memclnt_binapi_init() }
1388 func file_memclnt_binapi_init() {
1389         api.RegisterMessage((*APIVersions)(nil), "memclnt.APIVersions")
1390         api.RegisterMessage((*APIVersionsReply)(nil), "memclnt.APIVersionsReply")
1391         api.RegisterMessage((*GetFirstMsgID)(nil), "memclnt.GetFirstMsgID")
1392         api.RegisterMessage((*GetFirstMsgIDReply)(nil), "memclnt.GetFirstMsgIDReply")
1393         api.RegisterMessage((*MemclntCreate)(nil), "memclnt.MemclntCreate")
1394         api.RegisterMessage((*MemclntCreateReply)(nil), "memclnt.MemclntCreateReply")
1395         api.RegisterMessage((*MemclntDelete)(nil), "memclnt.MemclntDelete")
1396         api.RegisterMessage((*MemclntDeleteReply)(nil), "memclnt.MemclntDeleteReply")
1397         api.RegisterMessage((*MemclntKeepalive)(nil), "memclnt.MemclntKeepalive")
1398         api.RegisterMessage((*MemclntKeepaliveReply)(nil), "memclnt.MemclntKeepaliveReply")
1399         api.RegisterMessage((*MemclntReadTimeout)(nil), "memclnt.MemclntReadTimeout")
1400         api.RegisterMessage((*MemclntRxThreadSuspend)(nil), "memclnt.MemclntRxThreadSuspend")
1401         api.RegisterMessage((*RPCCall)(nil), "memclnt.RPCCall")
1402         api.RegisterMessage((*RPCCallReply)(nil), "memclnt.RPCCallReply")
1403         api.RegisterMessage((*RxThreadExit)(nil), "memclnt.RxThreadExit")
1404         api.RegisterMessage((*SockInitShm)(nil), "memclnt.SockInitShm")
1405         api.RegisterMessage((*SockInitShmReply)(nil), "memclnt.SockInitShmReply")
1406         api.RegisterMessage((*SockclntCreate)(nil), "memclnt.SockclntCreate")
1407         api.RegisterMessage((*SockclntCreateReply)(nil), "memclnt.SockclntCreateReply")
1408         api.RegisterMessage((*SockclntDelete)(nil), "memclnt.SockclntDelete")
1409         api.RegisterMessage((*SockclntDeleteReply)(nil), "memclnt.SockclntDeleteReply")
1410         api.RegisterMessage((*TracePluginMsgIds)(nil), "memclnt.TracePluginMsgIds")
1411 }
1412
1413 // Messages returns list of all messages in this module.
1414 func AllMessages() []api.Message {
1415         return []api.Message{
1416                 (*APIVersions)(nil),
1417                 (*APIVersionsReply)(nil),
1418                 (*GetFirstMsgID)(nil),
1419                 (*GetFirstMsgIDReply)(nil),
1420                 (*MemclntCreate)(nil),
1421                 (*MemclntCreateReply)(nil),
1422                 (*MemclntDelete)(nil),
1423                 (*MemclntDeleteReply)(nil),
1424                 (*MemclntKeepalive)(nil),
1425                 (*MemclntKeepaliveReply)(nil),
1426                 (*MemclntReadTimeout)(nil),
1427                 (*MemclntRxThreadSuspend)(nil),
1428                 (*RPCCall)(nil),
1429                 (*RPCCallReply)(nil),
1430                 (*RxThreadExit)(nil),
1431                 (*SockInitShm)(nil),
1432                 (*SockInitShmReply)(nil),
1433                 (*SockclntCreate)(nil),
1434                 (*SockclntCreateReply)(nil),
1435                 (*SockclntDelete)(nil),
1436                 (*SockclntDeleteReply)(nil),
1437                 (*TracePluginMsgIds)(nil),
1438         }
1439 }
1440
1441 // Reference imports to suppress errors if they are not otherwise used.
1442 var _ = api.RegisterMessage
1443 var _ = codec.DecodeString
1444 var _ = bytes.NewBuffer
1445 var _ = context.Background
1446 var _ = io.Copy
1447 var _ = strconv.Itoa
1448 var _ = struc.Pack
1449 var _ = binary.BigEndian
1450 var _ = math.Float32bits