GoVPP release v0.5.0
[govpp.git] / binapi / vxlan_gpe_ioam_export / vxlan_gpe_ioam_export.ba.go
index 5a25905..8533f33 100644 (file)
@@ -1,7 +1,7 @@
 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
 // versions:
-//  binapi-generator: v0.4.0-dev
-//  VPP:              20.05-release
+//  binapi-generator: v0.5.0
+//  VPP:              22.02-release
 // source: /usr/share/vpp/api/plugins/vxlan_gpe_ioam_export.api.json
 
 // Package vxlan_gpe_ioam_export contains generated bindings for API file vxlan_gpe_ioam_export.api.
@@ -26,7 +26,7 @@ const _ = api.GoVppAPIPackageIsVersion2
 const (
        APIFile    = "vxlan_gpe_ioam_export"
        APIVersion = "1.0.0"
-       VersionCrc = 0x56bd3b73
+       VersionCrc = 0x26bebf64
 )
 
 // VxlanGpeIoamExportEnableDisable defines message 'vxlan_gpe_ioam_export_enable_disable'.
@@ -40,28 +40,25 @@ func (m *VxlanGpeIoamExportEnableDisable) Reset() { *m = VxlanGpeIoamExportEnabl
 func (*VxlanGpeIoamExportEnableDisable) GetMessageName() string {
        return "vxlan_gpe_ioam_export_enable_disable"
 }
-func (*VxlanGpeIoamExportEnableDisable) GetCrcString() string { return "e4d4ebfa" }
+func (*VxlanGpeIoamExportEnableDisable) GetCrcString() string { return "d4c76d3a" }
 func (*VxlanGpeIoamExportEnableDisable) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *VxlanGpeIoamExportEnableDisable) Size() int {
+func (m *VxlanGpeIoamExportEnableDisable) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1     // m.IsDisable
        size += 1 * 4 // m.CollectorAddress
        size += 1 * 4 // m.SrcAddress
        return size
 }
 func (m *VxlanGpeIoamExportEnableDisable) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
+       buf := codec.NewBuffer(b)
        buf.EncodeBool(m.IsDisable)
        buf.EncodeBytes(m.CollectorAddress[:], 4)
        buf.EncodeBytes(m.SrcAddress[:], 4)
@@ -89,33 +86,30 @@ func (*VxlanGpeIoamExportEnableDisableReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *VxlanGpeIoamExportEnableDisableReply) Size() int {
+func (m *VxlanGpeIoamExportEnableDisableReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *VxlanGpeIoamExportEnableDisableReply) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
-       buf.EncodeUint32(uint32(m.Retval))
+       buf := codec.NewBuffer(b)
+       buf.EncodeInt32(m.Retval)
        return buf.Bytes(), nil
 }
 func (m *VxlanGpeIoamExportEnableDisableReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
 func init() { file_vxlan_gpe_ioam_export_binapi_init() }
 func file_vxlan_gpe_ioam_export_binapi_init() {
-       api.RegisterMessage((*VxlanGpeIoamExportEnableDisable)(nil), "vxlan_gpe_ioam_export_enable_disable_e4d4ebfa")
+       api.RegisterMessage((*VxlanGpeIoamExportEnableDisable)(nil), "vxlan_gpe_ioam_export_enable_disable_d4c76d3a")
        api.RegisterMessage((*VxlanGpeIoamExportEnableDisableReply)(nil), "vxlan_gpe_ioam_export_enable_disable_reply_e8d4e804")
 }