go.ligato.io/vpp-agent/v3@v3.5.0/plugins/vpp/binapi/vpp2202/memclnt/memclnt.ba.go (about)

     1  // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
     2  
     3  // Package memclnt contains generated bindings for API file memclnt.api.
     4  //
     5  // Contents:
     6  // -  2 structs
     7  // - 24 messages
     8  package memclnt
     9  
    10  import (
    11  	api "go.fd.io/govpp/api"
    12  	codec "go.fd.io/govpp/codec"
    13  )
    14  
    15  // This is a compile-time assertion to ensure that this generated file
    16  // is compatible with the GoVPP api package it is being compiled against.
    17  // A compilation error at this line likely means your copy of the
    18  // GoVPP api package needs to be updated.
    19  const _ = api.GoVppAPIPackageIsVersion2
    20  
    21  const (
    22  	APIFile    = "memclnt"
    23  	APIVersion = "2.1.0"
    24  	VersionCrc = 0x230bb938
    25  )
    26  
    27  // MessageTableEntry defines type 'message_table_entry'.
    28  type MessageTableEntry struct {
    29  	Index uint16 `binapi:"u16,name=index" json:"index,omitempty"`
    30  	Name  string `binapi:"string[64],name=name" json:"name,omitempty"`
    31  }
    32  
    33  // ModuleVersion defines type 'module_version'.
    34  type ModuleVersion struct {
    35  	Major uint32 `binapi:"u32,name=major" json:"major,omitempty"`
    36  	Minor uint32 `binapi:"u32,name=minor" json:"minor,omitempty"`
    37  	Patch uint32 `binapi:"u32,name=patch" json:"patch,omitempty"`
    38  	Name  string `binapi:"string[64],name=name" json:"name,omitempty"`
    39  }
    40  
    41  // APIVersions defines message 'api_versions'.
    42  type APIVersions struct{}
    43  
    44  func (m *APIVersions) Reset()               { *m = APIVersions{} }
    45  func (*APIVersions) GetMessageName() string { return "api_versions" }
    46  func (*APIVersions) GetCrcString() string   { return "51077d14" }
    47  func (*APIVersions) GetMessageType() api.MessageType {
    48  	return api.RequestMessage
    49  }
    50  
    51  func (m *APIVersions) Size() (size int) {
    52  	if m == nil {
    53  		return 0
    54  	}
    55  	return size
    56  }
    57  func (m *APIVersions) Marshal(b []byte) ([]byte, error) {
    58  	if b == nil {
    59  		b = make([]byte, m.Size())
    60  	}
    61  	buf := codec.NewBuffer(b)
    62  	return buf.Bytes(), nil
    63  }
    64  func (m *APIVersions) Unmarshal(b []byte) error {
    65  	return nil
    66  }
    67  
    68  // APIVersionsReply defines message 'api_versions_reply'.
    69  type APIVersionsReply struct {
    70  	Retval      int32           `binapi:"i32,name=retval" json:"retval,omitempty"`
    71  	Count       uint32          `binapi:"u32,name=count" json:"-"`
    72  	APIVersions []ModuleVersion `binapi:"module_version[count],name=api_versions" json:"api_versions,omitempty"`
    73  }
    74  
    75  func (m *APIVersionsReply) Reset()               { *m = APIVersionsReply{} }
    76  func (*APIVersionsReply) GetMessageName() string { return "api_versions_reply" }
    77  func (*APIVersionsReply) GetCrcString() string   { return "5f0d99d6" }
    78  func (*APIVersionsReply) GetMessageType() api.MessageType {
    79  	return api.ReplyMessage
    80  }
    81  
    82  func (m *APIVersionsReply) Size() (size int) {
    83  	if m == nil {
    84  		return 0
    85  	}
    86  	size += 4 // m.Retval
    87  	size += 4 // m.Count
    88  	for j1 := 0; j1 < len(m.APIVersions); j1++ {
    89  		var s1 ModuleVersion
    90  		_ = s1
    91  		if j1 < len(m.APIVersions) {
    92  			s1 = m.APIVersions[j1]
    93  		}
    94  		size += 4  // s1.Major
    95  		size += 4  // s1.Minor
    96  		size += 4  // s1.Patch
    97  		size += 64 // s1.Name
    98  	}
    99  	return size
   100  }
   101  func (m *APIVersionsReply) Marshal(b []byte) ([]byte, error) {
   102  	if b == nil {
   103  		b = make([]byte, m.Size())
   104  	}
   105  	buf := codec.NewBuffer(b)
   106  	buf.EncodeInt32(m.Retval)
   107  	buf.EncodeUint32(uint32(len(m.APIVersions)))
   108  	for j0 := 0; j0 < len(m.APIVersions); j0++ {
   109  		var v0 ModuleVersion // APIVersions
   110  		if j0 < len(m.APIVersions) {
   111  			v0 = m.APIVersions[j0]
   112  		}
   113  		buf.EncodeUint32(v0.Major)
   114  		buf.EncodeUint32(v0.Minor)
   115  		buf.EncodeUint32(v0.Patch)
   116  		buf.EncodeString(v0.Name, 64)
   117  	}
   118  	return buf.Bytes(), nil
   119  }
   120  func (m *APIVersionsReply) Unmarshal(b []byte) error {
   121  	buf := codec.NewBuffer(b)
   122  	m.Retval = buf.DecodeInt32()
   123  	m.Count = buf.DecodeUint32()
   124  	m.APIVersions = make([]ModuleVersion, m.Count)
   125  	for j0 := 0; j0 < len(m.APIVersions); j0++ {
   126  		m.APIVersions[j0].Major = buf.DecodeUint32()
   127  		m.APIVersions[j0].Minor = buf.DecodeUint32()
   128  		m.APIVersions[j0].Patch = buf.DecodeUint32()
   129  		m.APIVersions[j0].Name = buf.DecodeString(64)
   130  	}
   131  	return nil
   132  }
   133  
   134  // ControlPing defines message 'control_ping'.
   135  type ControlPing struct{}
   136  
   137  func (m *ControlPing) Reset()               { *m = ControlPing{} }
   138  func (*ControlPing) GetMessageName() string { return "control_ping" }
   139  func (*ControlPing) GetCrcString() string   { return "51077d14" }
   140  func (*ControlPing) GetMessageType() api.MessageType {
   141  	return api.RequestMessage
   142  }
   143  
   144  func (m *ControlPing) Size() (size int) {
   145  	if m == nil {
   146  		return 0
   147  	}
   148  	return size
   149  }
   150  func (m *ControlPing) Marshal(b []byte) ([]byte, error) {
   151  	if b == nil {
   152  		b = make([]byte, m.Size())
   153  	}
   154  	buf := codec.NewBuffer(b)
   155  	return buf.Bytes(), nil
   156  }
   157  func (m *ControlPing) Unmarshal(b []byte) error {
   158  	return nil
   159  }
   160  
   161  // ControlPingReply defines message 'control_ping_reply'.
   162  type ControlPingReply struct {
   163  	Retval      int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
   164  	ClientIndex uint32 `binapi:"u32,name=client_index" json:"client_index,omitempty"`
   165  	VpePID      uint32 `binapi:"u32,name=vpe_pid" json:"vpe_pid,omitempty"`
   166  }
   167  
   168  func (m *ControlPingReply) Reset()               { *m = ControlPingReply{} }
   169  func (*ControlPingReply) GetMessageName() string { return "control_ping_reply" }
   170  func (*ControlPingReply) GetCrcString() string   { return "f6b0b8ca" }
   171  func (*ControlPingReply) GetMessageType() api.MessageType {
   172  	return api.ReplyMessage
   173  }
   174  
   175  func (m *ControlPingReply) Size() (size int) {
   176  	if m == nil {
   177  		return 0
   178  	}
   179  	size += 4 // m.Retval
   180  	size += 4 // m.ClientIndex
   181  	size += 4 // m.VpePID
   182  	return size
   183  }
   184  func (m *ControlPingReply) Marshal(b []byte) ([]byte, error) {
   185  	if b == nil {
   186  		b = make([]byte, m.Size())
   187  	}
   188  	buf := codec.NewBuffer(b)
   189  	buf.EncodeInt32(m.Retval)
   190  	buf.EncodeUint32(m.ClientIndex)
   191  	buf.EncodeUint32(m.VpePID)
   192  	return buf.Bytes(), nil
   193  }
   194  func (m *ControlPingReply) Unmarshal(b []byte) error {
   195  	buf := codec.NewBuffer(b)
   196  	m.Retval = buf.DecodeInt32()
   197  	m.ClientIndex = buf.DecodeUint32()
   198  	m.VpePID = buf.DecodeUint32()
   199  	return nil
   200  }
   201  
   202  // GetFirstMsgID defines message 'get_first_msg_id'.
   203  type GetFirstMsgID struct {
   204  	Name string `binapi:"string[64],name=name" json:"name,omitempty"`
   205  }
   206  
   207  func (m *GetFirstMsgID) Reset()               { *m = GetFirstMsgID{} }
   208  func (*GetFirstMsgID) GetMessageName() string { return "get_first_msg_id" }
   209  func (*GetFirstMsgID) GetCrcString() string   { return "ebf79a66" }
   210  func (*GetFirstMsgID) GetMessageType() api.MessageType {
   211  	return api.RequestMessage
   212  }
   213  
   214  func (m *GetFirstMsgID) Size() (size int) {
   215  	if m == nil {
   216  		return 0
   217  	}
   218  	size += 64 // m.Name
   219  	return size
   220  }
   221  func (m *GetFirstMsgID) Marshal(b []byte) ([]byte, error) {
   222  	if b == nil {
   223  		b = make([]byte, m.Size())
   224  	}
   225  	buf := codec.NewBuffer(b)
   226  	buf.EncodeString(m.Name, 64)
   227  	return buf.Bytes(), nil
   228  }
   229  func (m *GetFirstMsgID) Unmarshal(b []byte) error {
   230  	buf := codec.NewBuffer(b)
   231  	m.Name = buf.DecodeString(64)
   232  	return nil
   233  }
   234  
   235  // GetFirstMsgIDReply defines message 'get_first_msg_id_reply'.
   236  type GetFirstMsgIDReply struct {
   237  	Retval     int32  `binapi:"i32,name=retval" json:"retval,omitempty"`
   238  	FirstMsgID uint16 `binapi:"u16,name=first_msg_id" json:"first_msg_id,omitempty"`
   239  }
   240  
   241  func (m *GetFirstMsgIDReply) Reset()               { *m = GetFirstMsgIDReply{} }
   242  func (*GetFirstMsgIDReply) GetMessageName() string { return "get_first_msg_id_reply" }
   243  func (*GetFirstMsgIDReply) GetCrcString() string   { return "7d337472" }
   244  func (*GetFirstMsgIDReply) GetMessageType() api.MessageType {
   245  	return api.ReplyMessage
   246  }
   247  
   248  func (m *GetFirstMsgIDReply) Size() (size int) {
   249  	if m == nil {
   250  		return 0
   251  	}
   252  	size += 4 // m.Retval
   253  	size += 2 // m.FirstMsgID
   254  	return size
   255  }
   256  func (m *GetFirstMsgIDReply) Marshal(b []byte) ([]byte, error) {
   257  	if b == nil {
   258  		b = make([]byte, m.Size())
   259  	}
   260  	buf := codec.NewBuffer(b)
   261  	buf.EncodeInt32(m.Retval)
   262  	buf.EncodeUint16(m.FirstMsgID)
   263  	return buf.Bytes(), nil
   264  }
   265  func (m *GetFirstMsgIDReply) Unmarshal(b []byte) error {
   266  	buf := codec.NewBuffer(b)
   267  	m.Retval = buf.DecodeInt32()
   268  	m.FirstMsgID = buf.DecodeUint16()
   269  	return nil
   270  }
   271  
   272  // MemclntCreate defines message 'memclnt_create'.
   273  type MemclntCreate struct {
   274  	CtxQuota    int32    `binapi:"i32,name=ctx_quota" json:"ctx_quota,omitempty"`
   275  	InputQueue  uint64   `binapi:"u64,name=input_queue" json:"input_queue,omitempty"`
   276  	Name        string   `binapi:"string[64],name=name" json:"name,omitempty"`
   277  	APIVersions []uint32 `binapi:"u32[8],name=api_versions" json:"api_versions,omitempty"`
   278  }
   279  
   280  func (m *MemclntCreate) Reset()               { *m = MemclntCreate{} }
   281  func (*MemclntCreate) GetMessageName() string { return "memclnt_create" }
   282  func (*MemclntCreate) GetCrcString() string   { return "9c5e1c2f" }
   283  func (*MemclntCreate) GetMessageType() api.MessageType {
   284  	return api.ReplyMessage
   285  }
   286  
   287  func (m *MemclntCreate) Size() (size int) {
   288  	if m == nil {
   289  		return 0
   290  	}
   291  	size += 4     // m.CtxQuota
   292  	size += 8     // m.InputQueue
   293  	size += 64    // m.Name
   294  	size += 4 * 8 // m.APIVersions
   295  	return size
   296  }
   297  func (m *MemclntCreate) Marshal(b []byte) ([]byte, error) {
   298  	if b == nil {
   299  		b = make([]byte, m.Size())
   300  	}
   301  	buf := codec.NewBuffer(b)
   302  	buf.EncodeInt32(m.CtxQuota)
   303  	buf.EncodeUint64(m.InputQueue)
   304  	buf.EncodeString(m.Name, 64)
   305  	for i := 0; i < 8; i++ {
   306  		var x uint32
   307  		if i < len(m.APIVersions) {
   308  			x = uint32(m.APIVersions[i])
   309  		}
   310  		buf.EncodeUint32(x)
   311  	}
   312  	return buf.Bytes(), nil
   313  }
   314  func (m *MemclntCreate) Unmarshal(b []byte) error {
   315  	buf := codec.NewBuffer(b)
   316  	m.CtxQuota = buf.DecodeInt32()
   317  	m.InputQueue = buf.DecodeUint64()
   318  	m.Name = buf.DecodeString(64)
   319  	m.APIVersions = make([]uint32, 8)
   320  	for i := 0; i < len(m.APIVersions); i++ {
   321  		m.APIVersions[i] = buf.DecodeUint32()
   322  	}
   323  	return nil
   324  }
   325  
   326  // MemclntCreateReply defines message 'memclnt_create_reply'.
   327  type MemclntCreateReply struct {
   328  	Response     int32  `binapi:"i32,name=response" json:"response,omitempty"`
   329  	Handle       uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
   330  	Index        uint32 `binapi:"u32,name=index" json:"index,omitempty"`
   331  	MessageTable uint64 `binapi:"u64,name=message_table" json:"message_table,omitempty"`
   332  }
   333  
   334  func (m *MemclntCreateReply) Reset()               { *m = MemclntCreateReply{} }
   335  func (*MemclntCreateReply) GetMessageName() string { return "memclnt_create_reply" }
   336  func (*MemclntCreateReply) GetCrcString() string   { return "42ec4560" }
   337  func (*MemclntCreateReply) GetMessageType() api.MessageType {
   338  	return api.ReplyMessage
   339  }
   340  
   341  func (m *MemclntCreateReply) Size() (size int) {
   342  	if m == nil {
   343  		return 0
   344  	}
   345  	size += 4 // m.Response
   346  	size += 8 // m.Handle
   347  	size += 4 // m.Index
   348  	size += 8 // m.MessageTable
   349  	return size
   350  }
   351  func (m *MemclntCreateReply) Marshal(b []byte) ([]byte, error) {
   352  	if b == nil {
   353  		b = make([]byte, m.Size())
   354  	}
   355  	buf := codec.NewBuffer(b)
   356  	buf.EncodeInt32(m.Response)
   357  	buf.EncodeUint64(m.Handle)
   358  	buf.EncodeUint32(m.Index)
   359  	buf.EncodeUint64(m.MessageTable)
   360  	return buf.Bytes(), nil
   361  }
   362  func (m *MemclntCreateReply) Unmarshal(b []byte) error {
   363  	buf := codec.NewBuffer(b)
   364  	m.Response = buf.DecodeInt32()
   365  	m.Handle = buf.DecodeUint64()
   366  	m.Index = buf.DecodeUint32()
   367  	m.MessageTable = buf.DecodeUint64()
   368  	return nil
   369  }
   370  
   371  // MemclntDelete defines message 'memclnt_delete'.
   372  type MemclntDelete struct {
   373  	Index     uint32 `binapi:"u32,name=index" json:"index,omitempty"`
   374  	Handle    uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
   375  	DoCleanup bool   `binapi:"bool,name=do_cleanup" json:"do_cleanup,omitempty"`
   376  }
   377  
   378  func (m *MemclntDelete) Reset()               { *m = MemclntDelete{} }
   379  func (*MemclntDelete) GetMessageName() string { return "memclnt_delete" }
   380  func (*MemclntDelete) GetCrcString() string   { return "7e1c04e3" }
   381  func (*MemclntDelete) GetMessageType() api.MessageType {
   382  	return api.OtherMessage
   383  }
   384  
   385  func (m *MemclntDelete) Size() (size int) {
   386  	if m == nil {
   387  		return 0
   388  	}
   389  	size += 4 // m.Index
   390  	size += 8 // m.Handle
   391  	size += 1 // m.DoCleanup
   392  	return size
   393  }
   394  func (m *MemclntDelete) Marshal(b []byte) ([]byte, error) {
   395  	if b == nil {
   396  		b = make([]byte, m.Size())
   397  	}
   398  	buf := codec.NewBuffer(b)
   399  	buf.EncodeUint32(m.Index)
   400  	buf.EncodeUint64(m.Handle)
   401  	buf.EncodeBool(m.DoCleanup)
   402  	return buf.Bytes(), nil
   403  }
   404  func (m *MemclntDelete) Unmarshal(b []byte) error {
   405  	buf := codec.NewBuffer(b)
   406  	m.Index = buf.DecodeUint32()
   407  	m.Handle = buf.DecodeUint64()
   408  	m.DoCleanup = buf.DecodeBool()
   409  	return nil
   410  }
   411  
   412  // MemclntDeleteReply defines message 'memclnt_delete_reply'.
   413  type MemclntDeleteReply struct {
   414  	Response int32  `binapi:"i32,name=response" json:"response,omitempty"`
   415  	Handle   uint64 `binapi:"u64,name=handle" json:"handle,omitempty"`
   416  }
   417  
   418  func (m *MemclntDeleteReply) Reset()               { *m = MemclntDeleteReply{} }
   419  func (*MemclntDeleteReply) GetMessageName() string { return "memclnt_delete_reply" }
   420  func (*MemclntDeleteReply) GetCrcString() string   { return "3d3b6312" }
   421  func (*MemclntDeleteReply) GetMessageType() api.MessageType {
   422  	return api.OtherMessage
   423  }
   424  
   425  func (m *MemclntDeleteReply) Size() (size int) {
   426  	if m == nil {
   427  		return 0
   428  	}
   429  	size += 4 // m.Response
   430  	size += 8 // m.Handle
   431  	return size
   432  }
   433  func (m *MemclntDeleteReply) Marshal(b []byte) ([]byte, error) {
   434  	if b == nil {
   435  		b = make([]byte, m.Size())
   436  	}
   437  	buf := codec.NewBuffer(b)
   438  	buf.EncodeInt32(m.Response)
   439  	buf.EncodeUint64(m.Handle)
   440  	return buf.Bytes(), nil
   441  }
   442  func (m *MemclntDeleteReply) Unmarshal(b []byte) error {
   443  	buf := codec.NewBuffer(b)
   444  	m.Response = buf.DecodeInt32()
   445  	m.Handle = buf.DecodeUint64()
   446  	return nil
   447  }
   448  
   449  // MemclntKeepalive defines message 'memclnt_keepalive'.
   450  type MemclntKeepalive struct{}
   451  
   452  func (m *MemclntKeepalive) Reset()               { *m = MemclntKeepalive{} }
   453  func (*MemclntKeepalive) GetMessageName() string { return "memclnt_keepalive" }
   454  func (*MemclntKeepalive) GetCrcString() string   { return "51077d14" }
   455  func (*MemclntKeepalive) GetMessageType() api.MessageType {
   456  	return api.RequestMessage
   457  }
   458  
   459  func (m *MemclntKeepalive) Size() (size int) {
   460  	if m == nil {
   461  		return 0
   462  	}
   463  	return size
   464  }
   465  func (m *MemclntKeepalive) Marshal(b []byte) ([]byte, error) {
   466  	if b == nil {
   467  		b = make([]byte, m.Size())
   468  	}
   469  	buf := codec.NewBuffer(b)
   470  	return buf.Bytes(), nil
   471  }
   472  func (m *MemclntKeepalive) Unmarshal(b []byte) error {
   473  	return nil
   474  }
   475  
   476  // MemclntKeepaliveReply defines message 'memclnt_keepalive_reply'.
   477  type MemclntKeepaliveReply struct {
   478  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   479  }
   480  
   481  func (m *MemclntKeepaliveReply) Reset()               { *m = MemclntKeepaliveReply{} }
   482  func (*MemclntKeepaliveReply) GetMessageName() string { return "memclnt_keepalive_reply" }
   483  func (*MemclntKeepaliveReply) GetCrcString() string   { return "e8d4e804" }
   484  func (*MemclntKeepaliveReply) GetMessageType() api.MessageType {
   485  	return api.ReplyMessage
   486  }
   487  
   488  func (m *MemclntKeepaliveReply) Size() (size int) {
   489  	if m == nil {
   490  		return 0
   491  	}
   492  	size += 4 // m.Retval
   493  	return size
   494  }
   495  func (m *MemclntKeepaliveReply) Marshal(b []byte) ([]byte, error) {
   496  	if b == nil {
   497  		b = make([]byte, m.Size())
   498  	}
   499  	buf := codec.NewBuffer(b)
   500  	buf.EncodeInt32(m.Retval)
   501  	return buf.Bytes(), nil
   502  }
   503  func (m *MemclntKeepaliveReply) Unmarshal(b []byte) error {
   504  	buf := codec.NewBuffer(b)
   505  	m.Retval = buf.DecodeInt32()
   506  	return nil
   507  }
   508  
   509  // MemclntReadTimeout defines message 'memclnt_read_timeout'.
   510  type MemclntReadTimeout struct {
   511  	Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
   512  }
   513  
   514  func (m *MemclntReadTimeout) Reset()               { *m = MemclntReadTimeout{} }
   515  func (*MemclntReadTimeout) GetMessageName() string { return "memclnt_read_timeout" }
   516  func (*MemclntReadTimeout) GetCrcString() string   { return "c3a3a452" }
   517  func (*MemclntReadTimeout) GetMessageType() api.MessageType {
   518  	return api.OtherMessage
   519  }
   520  
   521  func (m *MemclntReadTimeout) Size() (size int) {
   522  	if m == nil {
   523  		return 0
   524  	}
   525  	size += 1 // m.Dummy
   526  	return size
   527  }
   528  func (m *MemclntReadTimeout) Marshal(b []byte) ([]byte, error) {
   529  	if b == nil {
   530  		b = make([]byte, m.Size())
   531  	}
   532  	buf := codec.NewBuffer(b)
   533  	buf.EncodeUint8(m.Dummy)
   534  	return buf.Bytes(), nil
   535  }
   536  func (m *MemclntReadTimeout) Unmarshal(b []byte) error {
   537  	buf := codec.NewBuffer(b)
   538  	m.Dummy = buf.DecodeUint8()
   539  	return nil
   540  }
   541  
   542  // MemclntRxThreadSuspend defines message 'memclnt_rx_thread_suspend'.
   543  type MemclntRxThreadSuspend struct {
   544  	Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
   545  }
   546  
   547  func (m *MemclntRxThreadSuspend) Reset()               { *m = MemclntRxThreadSuspend{} }
   548  func (*MemclntRxThreadSuspend) GetMessageName() string { return "memclnt_rx_thread_suspend" }
   549  func (*MemclntRxThreadSuspend) GetCrcString() string   { return "c3a3a452" }
   550  func (*MemclntRxThreadSuspend) GetMessageType() api.MessageType {
   551  	return api.OtherMessage
   552  }
   553  
   554  func (m *MemclntRxThreadSuspend) Size() (size int) {
   555  	if m == nil {
   556  		return 0
   557  	}
   558  	size += 1 // m.Dummy
   559  	return size
   560  }
   561  func (m *MemclntRxThreadSuspend) Marshal(b []byte) ([]byte, error) {
   562  	if b == nil {
   563  		b = make([]byte, m.Size())
   564  	}
   565  	buf := codec.NewBuffer(b)
   566  	buf.EncodeUint8(m.Dummy)
   567  	return buf.Bytes(), nil
   568  }
   569  func (m *MemclntRxThreadSuspend) Unmarshal(b []byte) error {
   570  	buf := codec.NewBuffer(b)
   571  	m.Dummy = buf.DecodeUint8()
   572  	return nil
   573  }
   574  
   575  // RPCCall defines message 'rpc_call'.
   576  type RPCCall struct {
   577  	Function        uint64 `binapi:"u64,name=function" json:"function,omitempty"`
   578  	Multicast       uint8  `binapi:"u8,name=multicast" json:"multicast,omitempty"`
   579  	NeedBarrierSync uint8  `binapi:"u8,name=need_barrier_sync" json:"need_barrier_sync,omitempty"`
   580  	SendReply       uint8  `binapi:"u8,name=send_reply" json:"send_reply,omitempty"`
   581  	DataLen         uint32 `binapi:"u32,name=data_len" json:"-"`
   582  	Data            []byte `binapi:"u8[data_len],name=data" json:"data,omitempty"`
   583  }
   584  
   585  func (m *RPCCall) Reset()               { *m = RPCCall{} }
   586  func (*RPCCall) GetMessageName() string { return "rpc_call" }
   587  func (*RPCCall) GetCrcString() string   { return "7e8a2c95" }
   588  func (*RPCCall) GetMessageType() api.MessageType {
   589  	return api.RequestMessage
   590  }
   591  
   592  func (m *RPCCall) Size() (size int) {
   593  	if m == nil {
   594  		return 0
   595  	}
   596  	size += 8               // m.Function
   597  	size += 1               // m.Multicast
   598  	size += 1               // m.NeedBarrierSync
   599  	size += 1               // m.SendReply
   600  	size += 4               // m.DataLen
   601  	size += 1 * len(m.Data) // m.Data
   602  	return size
   603  }
   604  func (m *RPCCall) Marshal(b []byte) ([]byte, error) {
   605  	if b == nil {
   606  		b = make([]byte, m.Size())
   607  	}
   608  	buf := codec.NewBuffer(b)
   609  	buf.EncodeUint64(m.Function)
   610  	buf.EncodeUint8(m.Multicast)
   611  	buf.EncodeUint8(m.NeedBarrierSync)
   612  	buf.EncodeUint8(m.SendReply)
   613  	buf.EncodeUint32(uint32(len(m.Data)))
   614  	buf.EncodeBytes(m.Data, 0)
   615  	return buf.Bytes(), nil
   616  }
   617  func (m *RPCCall) Unmarshal(b []byte) error {
   618  	buf := codec.NewBuffer(b)
   619  	m.Function = buf.DecodeUint64()
   620  	m.Multicast = buf.DecodeUint8()
   621  	m.NeedBarrierSync = buf.DecodeUint8()
   622  	m.SendReply = buf.DecodeUint8()
   623  	m.DataLen = buf.DecodeUint32()
   624  	m.Data = make([]byte, m.DataLen)
   625  	copy(m.Data, buf.DecodeBytes(len(m.Data)))
   626  	return nil
   627  }
   628  
   629  // RPCCallReply defines message 'rpc_call_reply'.
   630  type RPCCallReply struct {
   631  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   632  }
   633  
   634  func (m *RPCCallReply) Reset()               { *m = RPCCallReply{} }
   635  func (*RPCCallReply) GetMessageName() string { return "rpc_call_reply" }
   636  func (*RPCCallReply) GetCrcString() string   { return "e8d4e804" }
   637  func (*RPCCallReply) GetMessageType() api.MessageType {
   638  	return api.ReplyMessage
   639  }
   640  
   641  func (m *RPCCallReply) Size() (size int) {
   642  	if m == nil {
   643  		return 0
   644  	}
   645  	size += 4 // m.Retval
   646  	return size
   647  }
   648  func (m *RPCCallReply) Marshal(b []byte) ([]byte, error) {
   649  	if b == nil {
   650  		b = make([]byte, m.Size())
   651  	}
   652  	buf := codec.NewBuffer(b)
   653  	buf.EncodeInt32(m.Retval)
   654  	return buf.Bytes(), nil
   655  }
   656  func (m *RPCCallReply) Unmarshal(b []byte) error {
   657  	buf := codec.NewBuffer(b)
   658  	m.Retval = buf.DecodeInt32()
   659  	return nil
   660  }
   661  
   662  // RxThreadExit defines message 'rx_thread_exit'.
   663  type RxThreadExit struct {
   664  	Dummy uint8 `binapi:"u8,name=dummy" json:"dummy,omitempty"`
   665  }
   666  
   667  func (m *RxThreadExit) Reset()               { *m = RxThreadExit{} }
   668  func (*RxThreadExit) GetMessageName() string { return "rx_thread_exit" }
   669  func (*RxThreadExit) GetCrcString() string   { return "c3a3a452" }
   670  func (*RxThreadExit) GetMessageType() api.MessageType {
   671  	return api.OtherMessage
   672  }
   673  
   674  func (m *RxThreadExit) Size() (size int) {
   675  	if m == nil {
   676  		return 0
   677  	}
   678  	size += 1 // m.Dummy
   679  	return size
   680  }
   681  func (m *RxThreadExit) Marshal(b []byte) ([]byte, error) {
   682  	if b == nil {
   683  		b = make([]byte, m.Size())
   684  	}
   685  	buf := codec.NewBuffer(b)
   686  	buf.EncodeUint8(m.Dummy)
   687  	return buf.Bytes(), nil
   688  }
   689  func (m *RxThreadExit) Unmarshal(b []byte) error {
   690  	buf := codec.NewBuffer(b)
   691  	m.Dummy = buf.DecodeUint8()
   692  	return nil
   693  }
   694  
   695  // SockInitShm defines message 'sock_init_shm'.
   696  type SockInitShm struct {
   697  	RequestedSize uint32   `binapi:"u32,name=requested_size" json:"requested_size,omitempty"`
   698  	Nitems        uint8    `binapi:"u8,name=nitems" json:"-"`
   699  	Configs       []uint64 `binapi:"u64[nitems],name=configs" json:"configs,omitempty"`
   700  }
   701  
   702  func (m *SockInitShm) Reset()               { *m = SockInitShm{} }
   703  func (*SockInitShm) GetMessageName() string { return "sock_init_shm" }
   704  func (*SockInitShm) GetCrcString() string   { return "51646d92" }
   705  func (*SockInitShm) GetMessageType() api.MessageType {
   706  	return api.RequestMessage
   707  }
   708  
   709  func (m *SockInitShm) Size() (size int) {
   710  	if m == nil {
   711  		return 0
   712  	}
   713  	size += 4                  // m.RequestedSize
   714  	size += 1                  // m.Nitems
   715  	size += 8 * len(m.Configs) // m.Configs
   716  	return size
   717  }
   718  func (m *SockInitShm) Marshal(b []byte) ([]byte, error) {
   719  	if b == nil {
   720  		b = make([]byte, m.Size())
   721  	}
   722  	buf := codec.NewBuffer(b)
   723  	buf.EncodeUint32(m.RequestedSize)
   724  	buf.EncodeUint8(uint8(len(m.Configs)))
   725  	for i := 0; i < len(m.Configs); i++ {
   726  		var x uint64
   727  		if i < len(m.Configs) {
   728  			x = uint64(m.Configs[i])
   729  		}
   730  		buf.EncodeUint64(x)
   731  	}
   732  	return buf.Bytes(), nil
   733  }
   734  func (m *SockInitShm) Unmarshal(b []byte) error {
   735  	buf := codec.NewBuffer(b)
   736  	m.RequestedSize = buf.DecodeUint32()
   737  	m.Nitems = buf.DecodeUint8()
   738  	m.Configs = make([]uint64, m.Nitems)
   739  	for i := 0; i < len(m.Configs); i++ {
   740  		m.Configs[i] = buf.DecodeUint64()
   741  	}
   742  	return nil
   743  }
   744  
   745  // SockInitShmReply defines message 'sock_init_shm_reply'.
   746  type SockInitShmReply struct {
   747  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   748  }
   749  
   750  func (m *SockInitShmReply) Reset()               { *m = SockInitShmReply{} }
   751  func (*SockInitShmReply) GetMessageName() string { return "sock_init_shm_reply" }
   752  func (*SockInitShmReply) GetCrcString() string   { return "e8d4e804" }
   753  func (*SockInitShmReply) GetMessageType() api.MessageType {
   754  	return api.ReplyMessage
   755  }
   756  
   757  func (m *SockInitShmReply) Size() (size int) {
   758  	if m == nil {
   759  		return 0
   760  	}
   761  	size += 4 // m.Retval
   762  	return size
   763  }
   764  func (m *SockInitShmReply) Marshal(b []byte) ([]byte, error) {
   765  	if b == nil {
   766  		b = make([]byte, m.Size())
   767  	}
   768  	buf := codec.NewBuffer(b)
   769  	buf.EncodeInt32(m.Retval)
   770  	return buf.Bytes(), nil
   771  }
   772  func (m *SockInitShmReply) Unmarshal(b []byte) error {
   773  	buf := codec.NewBuffer(b)
   774  	m.Retval = buf.DecodeInt32()
   775  	return nil
   776  }
   777  
   778  // SockclntCreate defines message 'sockclnt_create'.
   779  type SockclntCreate struct {
   780  	Name string `binapi:"string[64],name=name" json:"name,omitempty"`
   781  }
   782  
   783  func (m *SockclntCreate) Reset()               { *m = SockclntCreate{} }
   784  func (*SockclntCreate) GetMessageName() string { return "sockclnt_create" }
   785  func (*SockclntCreate) GetCrcString() string   { return "455fb9c4" }
   786  func (*SockclntCreate) GetMessageType() api.MessageType {
   787  	return api.ReplyMessage
   788  }
   789  
   790  func (m *SockclntCreate) Size() (size int) {
   791  	if m == nil {
   792  		return 0
   793  	}
   794  	size += 64 // m.Name
   795  	return size
   796  }
   797  func (m *SockclntCreate) Marshal(b []byte) ([]byte, error) {
   798  	if b == nil {
   799  		b = make([]byte, m.Size())
   800  	}
   801  	buf := codec.NewBuffer(b)
   802  	buf.EncodeString(m.Name, 64)
   803  	return buf.Bytes(), nil
   804  }
   805  func (m *SockclntCreate) Unmarshal(b []byte) error {
   806  	buf := codec.NewBuffer(b)
   807  	m.Name = buf.DecodeString(64)
   808  	return nil
   809  }
   810  
   811  // SockclntCreateReply defines message 'sockclnt_create_reply'.
   812  type SockclntCreateReply struct {
   813  	Response     int32               `binapi:"i32,name=response" json:"response,omitempty"`
   814  	Index        uint32              `binapi:"u32,name=index" json:"index,omitempty"`
   815  	Count        uint16              `binapi:"u16,name=count" json:"-"`
   816  	MessageTable []MessageTableEntry `binapi:"message_table_entry[count],name=message_table" json:"message_table,omitempty"`
   817  }
   818  
   819  func (m *SockclntCreateReply) Reset()               { *m = SockclntCreateReply{} }
   820  func (*SockclntCreateReply) GetMessageName() string { return "sockclnt_create_reply" }
   821  func (*SockclntCreateReply) GetCrcString() string   { return "35166268" }
   822  func (*SockclntCreateReply) GetMessageType() api.MessageType {
   823  	return api.RequestMessage
   824  }
   825  
   826  func (m *SockclntCreateReply) Size() (size int) {
   827  	if m == nil {
   828  		return 0
   829  	}
   830  	size += 4 // m.Response
   831  	size += 4 // m.Index
   832  	size += 2 // m.Count
   833  	for j1 := 0; j1 < len(m.MessageTable); j1++ {
   834  		var s1 MessageTableEntry
   835  		_ = s1
   836  		if j1 < len(m.MessageTable) {
   837  			s1 = m.MessageTable[j1]
   838  		}
   839  		size += 2  // s1.Index
   840  		size += 64 // s1.Name
   841  	}
   842  	return size
   843  }
   844  func (m *SockclntCreateReply) Marshal(b []byte) ([]byte, error) {
   845  	if b == nil {
   846  		b = make([]byte, m.Size())
   847  	}
   848  	buf := codec.NewBuffer(b)
   849  	buf.EncodeInt32(m.Response)
   850  	buf.EncodeUint32(m.Index)
   851  	buf.EncodeUint16(uint16(len(m.MessageTable)))
   852  	for j0 := 0; j0 < len(m.MessageTable); j0++ {
   853  		var v0 MessageTableEntry // MessageTable
   854  		if j0 < len(m.MessageTable) {
   855  			v0 = m.MessageTable[j0]
   856  		}
   857  		buf.EncodeUint16(v0.Index)
   858  		buf.EncodeString(v0.Name, 64)
   859  	}
   860  	return buf.Bytes(), nil
   861  }
   862  func (m *SockclntCreateReply) Unmarshal(b []byte) error {
   863  	buf := codec.NewBuffer(b)
   864  	m.Response = buf.DecodeInt32()
   865  	m.Index = buf.DecodeUint32()
   866  	m.Count = buf.DecodeUint16()
   867  	m.MessageTable = make([]MessageTableEntry, m.Count)
   868  	for j0 := 0; j0 < len(m.MessageTable); j0++ {
   869  		m.MessageTable[j0].Index = buf.DecodeUint16()
   870  		m.MessageTable[j0].Name = buf.DecodeString(64)
   871  	}
   872  	return nil
   873  }
   874  
   875  // SockclntDelete defines message 'sockclnt_delete'.
   876  type SockclntDelete struct {
   877  	Index uint32 `binapi:"u32,name=index" json:"index,omitempty"`
   878  }
   879  
   880  func (m *SockclntDelete) Reset()               { *m = SockclntDelete{} }
   881  func (*SockclntDelete) GetMessageName() string { return "sockclnt_delete" }
   882  func (*SockclntDelete) GetCrcString() string   { return "8ac76db6" }
   883  func (*SockclntDelete) GetMessageType() api.MessageType {
   884  	return api.RequestMessage
   885  }
   886  
   887  func (m *SockclntDelete) Size() (size int) {
   888  	if m == nil {
   889  		return 0
   890  	}
   891  	size += 4 // m.Index
   892  	return size
   893  }
   894  func (m *SockclntDelete) Marshal(b []byte) ([]byte, error) {
   895  	if b == nil {
   896  		b = make([]byte, m.Size())
   897  	}
   898  	buf := codec.NewBuffer(b)
   899  	buf.EncodeUint32(m.Index)
   900  	return buf.Bytes(), nil
   901  }
   902  func (m *SockclntDelete) Unmarshal(b []byte) error {
   903  	buf := codec.NewBuffer(b)
   904  	m.Index = buf.DecodeUint32()
   905  	return nil
   906  }
   907  
   908  // SockclntDeleteReply defines message 'sockclnt_delete_reply'.
   909  type SockclntDeleteReply struct {
   910  	Response int32 `binapi:"i32,name=response" json:"response,omitempty"`
   911  }
   912  
   913  func (m *SockclntDeleteReply) Reset()               { *m = SockclntDeleteReply{} }
   914  func (*SockclntDeleteReply) GetMessageName() string { return "sockclnt_delete_reply" }
   915  func (*SockclntDeleteReply) GetCrcString() string   { return "8f38b1ee" }
   916  func (*SockclntDeleteReply) GetMessageType() api.MessageType {
   917  	return api.ReplyMessage
   918  }
   919  
   920  func (m *SockclntDeleteReply) Size() (size int) {
   921  	if m == nil {
   922  		return 0
   923  	}
   924  	size += 4 // m.Response
   925  	return size
   926  }
   927  func (m *SockclntDeleteReply) Marshal(b []byte) ([]byte, error) {
   928  	if b == nil {
   929  		b = make([]byte, m.Size())
   930  	}
   931  	buf := codec.NewBuffer(b)
   932  	buf.EncodeInt32(m.Response)
   933  	return buf.Bytes(), nil
   934  }
   935  func (m *SockclntDeleteReply) Unmarshal(b []byte) error {
   936  	buf := codec.NewBuffer(b)
   937  	m.Response = buf.DecodeInt32()
   938  	return nil
   939  }
   940  
   941  // TracePluginMsgIds defines message 'trace_plugin_msg_ids'.
   942  type TracePluginMsgIds struct {
   943  	PluginName string `binapi:"string[128],name=plugin_name" json:"plugin_name,omitempty"`
   944  	FirstMsgID uint16 `binapi:"u16,name=first_msg_id" json:"first_msg_id,omitempty"`
   945  	LastMsgID  uint16 `binapi:"u16,name=last_msg_id" json:"last_msg_id,omitempty"`
   946  }
   947  
   948  func (m *TracePluginMsgIds) Reset()               { *m = TracePluginMsgIds{} }
   949  func (*TracePluginMsgIds) GetMessageName() string { return "trace_plugin_msg_ids" }
   950  func (*TracePluginMsgIds) GetCrcString() string   { return "f476d3ce" }
   951  func (*TracePluginMsgIds) GetMessageType() api.MessageType {
   952  	return api.RequestMessage
   953  }
   954  
   955  func (m *TracePluginMsgIds) Size() (size int) {
   956  	if m == nil {
   957  		return 0
   958  	}
   959  	size += 128 // m.PluginName
   960  	size += 2   // m.FirstMsgID
   961  	size += 2   // m.LastMsgID
   962  	return size
   963  }
   964  func (m *TracePluginMsgIds) Marshal(b []byte) ([]byte, error) {
   965  	if b == nil {
   966  		b = make([]byte, m.Size())
   967  	}
   968  	buf := codec.NewBuffer(b)
   969  	buf.EncodeString(m.PluginName, 128)
   970  	buf.EncodeUint16(m.FirstMsgID)
   971  	buf.EncodeUint16(m.LastMsgID)
   972  	return buf.Bytes(), nil
   973  }
   974  func (m *TracePluginMsgIds) Unmarshal(b []byte) error {
   975  	buf := codec.NewBuffer(b)
   976  	m.PluginName = buf.DecodeString(128)
   977  	m.FirstMsgID = buf.DecodeUint16()
   978  	m.LastMsgID = buf.DecodeUint16()
   979  	return nil
   980  }
   981  
   982  func init() { file_memclnt_binapi_init() }
   983  func file_memclnt_binapi_init() {
   984  	api.RegisterMessage((*APIVersions)(nil), "api_versions_51077d14")
   985  	api.RegisterMessage((*APIVersionsReply)(nil), "api_versions_reply_5f0d99d6")
   986  	api.RegisterMessage((*ControlPing)(nil), "control_ping_51077d14")
   987  	api.RegisterMessage((*ControlPingReply)(nil), "control_ping_reply_f6b0b8ca")
   988  	api.RegisterMessage((*GetFirstMsgID)(nil), "get_first_msg_id_ebf79a66")
   989  	api.RegisterMessage((*GetFirstMsgIDReply)(nil), "get_first_msg_id_reply_7d337472")
   990  	api.RegisterMessage((*MemclntCreate)(nil), "memclnt_create_9c5e1c2f")
   991  	api.RegisterMessage((*MemclntCreateReply)(nil), "memclnt_create_reply_42ec4560")
   992  	api.RegisterMessage((*MemclntDelete)(nil), "memclnt_delete_7e1c04e3")
   993  	api.RegisterMessage((*MemclntDeleteReply)(nil), "memclnt_delete_reply_3d3b6312")
   994  	api.RegisterMessage((*MemclntKeepalive)(nil), "memclnt_keepalive_51077d14")
   995  	api.RegisterMessage((*MemclntKeepaliveReply)(nil), "memclnt_keepalive_reply_e8d4e804")
   996  	api.RegisterMessage((*MemclntReadTimeout)(nil), "memclnt_read_timeout_c3a3a452")
   997  	api.RegisterMessage((*MemclntRxThreadSuspend)(nil), "memclnt_rx_thread_suspend_c3a3a452")
   998  	api.RegisterMessage((*RPCCall)(nil), "rpc_call_7e8a2c95")
   999  	api.RegisterMessage((*RPCCallReply)(nil), "rpc_call_reply_e8d4e804")
  1000  	api.RegisterMessage((*RxThreadExit)(nil), "rx_thread_exit_c3a3a452")
  1001  	api.RegisterMessage((*SockInitShm)(nil), "sock_init_shm_51646d92")
  1002  	api.RegisterMessage((*SockInitShmReply)(nil), "sock_init_shm_reply_e8d4e804")
  1003  	api.RegisterMessage((*SockclntCreate)(nil), "sockclnt_create_455fb9c4")
  1004  	api.RegisterMessage((*SockclntCreateReply)(nil), "sockclnt_create_reply_35166268")
  1005  	api.RegisterMessage((*SockclntDelete)(nil), "sockclnt_delete_8ac76db6")
  1006  	api.RegisterMessage((*SockclntDeleteReply)(nil), "sockclnt_delete_reply_8f38b1ee")
  1007  	api.RegisterMessage((*TracePluginMsgIds)(nil), "trace_plugin_msg_ids_f476d3ce")
  1008  }
  1009  
  1010  // Messages returns list of all messages in this module.
  1011  func AllMessages() []api.Message {
  1012  	return []api.Message{
  1013  		(*APIVersions)(nil),
  1014  		(*APIVersionsReply)(nil),
  1015  		(*ControlPing)(nil),
  1016  		(*ControlPingReply)(nil),
  1017  		(*GetFirstMsgID)(nil),
  1018  		(*GetFirstMsgIDReply)(nil),
  1019  		(*MemclntCreate)(nil),
  1020  		(*MemclntCreateReply)(nil),
  1021  		(*MemclntDelete)(nil),
  1022  		(*MemclntDeleteReply)(nil),
  1023  		(*MemclntKeepalive)(nil),
  1024  		(*MemclntKeepaliveReply)(nil),
  1025  		(*MemclntReadTimeout)(nil),
  1026  		(*MemclntRxThreadSuspend)(nil),
  1027  		(*RPCCall)(nil),
  1028  		(*RPCCallReply)(nil),
  1029  		(*RxThreadExit)(nil),
  1030  		(*SockInitShm)(nil),
  1031  		(*SockInitShmReply)(nil),
  1032  		(*SockclntCreate)(nil),
  1033  		(*SockclntCreateReply)(nil),
  1034  		(*SockclntDelete)(nil),
  1035  		(*SockclntDeleteReply)(nil),
  1036  		(*TracePluginMsgIds)(nil),
  1037  	}
  1038  }