diff --git a/pkg/fbs/comm/axisprofile/fbtypes/APRBootState.go b/pkg/fbs/comm/axisprofile/fbtypes/APRBootState.go index 97b69ed..f0711cf 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/APRBootState.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/APRBootState.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// return type of requests of the current boot state -type APRBootStateT struct { - Text string - ActStep uint32 - MaxSteps uint32 -} - -func (t *APRBootStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - textOffset := builder.CreateString(t.Text) - APRBootStateStart(builder) - APRBootStateAddText(builder, textOffset) - APRBootStateAddActStep(builder, t.ActStep) - APRBootStateAddMaxSteps(builder, t.MaxSteps) - return APRBootStateEnd(builder) -} - -func (rcv *APRBootState) UnPackTo(t *APRBootStateT) { - t.Text = string(rcv.Text()) - t.ActStep = rcv.ActStep() - t.MaxSteps = rcv.MaxSteps() -} - -func (rcv *APRBootState) UnPack() *APRBootStateT { - if rcv == nil { return nil } - t := &APRBootStateT{} - rcv.UnPackTo(t) - return t -} - -type APRBootState struct { - _tab flatbuffers.Table -} - -func GetRootAsAPRBootState(buf []byte, offset flatbuffers.UOffsetT) *APRBootState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &APRBootState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAPRBootState(buf []byte, offset flatbuffers.UOffsetT) *APRBootState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &APRBootState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *APRBootState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *APRBootState) Table() flatbuffers.Table { - return rcv._tab -} - -/// text of the boot step (can be shown in an HMI) -func (rcv *APRBootState) Text() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// text of the boot step (can be shown in an HMI) -/// current boot step (starts with 0, ends with maxSteps) -func (rcv *APRBootState) ActStep() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// current boot step (starts with 0, ends with maxSteps) -func (rcv *APRBootState) MutateActStep(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -/// number of boot steps (when actStep == maxSteps then the booting is finished) -func (rcv *APRBootState) MaxSteps() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// number of boot steps (when actStep == maxSteps then the booting is finished) -func (rcv *APRBootState) MutateMaxSteps(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func APRBootStateStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func APRBootStateAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(text), 0) -} -func APRBootStateAddActStep(builder *flatbuffers.Builder, actStep uint32) { - builder.PrependUint32Slot(1, actStep, 0) -} -func APRBootStateAddMaxSteps(builder *flatbuffers.Builder, maxSteps uint32) { - builder.PrependUint32Slot(2, maxSteps, 0) -} -func APRBootStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// return type of requests of the current boot state +type APRBootStateT struct { + Text string + ActStep uint32 + MaxSteps uint32 +} + +func (t *APRBootStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + textOffset := builder.CreateString(t.Text) + APRBootStateStart(builder) + APRBootStateAddText(builder, textOffset) + APRBootStateAddActStep(builder, t.ActStep) + APRBootStateAddMaxSteps(builder, t.MaxSteps) + return APRBootStateEnd(builder) +} + +func (rcv *APRBootState) UnPackTo(t *APRBootStateT) { + t.Text = string(rcv.Text()) + t.ActStep = rcv.ActStep() + t.MaxSteps = rcv.MaxSteps() +} + +func (rcv *APRBootState) UnPack() *APRBootStateT { + if rcv == nil { return nil } + t := &APRBootStateT{} + rcv.UnPackTo(t) + return t +} + +type APRBootState struct { + _tab flatbuffers.Table +} + +func GetRootAsAPRBootState(buf []byte, offset flatbuffers.UOffsetT) *APRBootState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &APRBootState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAPRBootState(buf []byte, offset flatbuffers.UOffsetT) *APRBootState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &APRBootState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *APRBootState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *APRBootState) Table() flatbuffers.Table { + return rcv._tab +} + +/// text of the boot step (can be shown in an HMI) +func (rcv *APRBootState) Text() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// text of the boot step (can be shown in an HMI) +/// current boot step (starts with 0, ends with maxSteps) +func (rcv *APRBootState) ActStep() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// current boot step (starts with 0, ends with maxSteps) +func (rcv *APRBootState) MutateActStep(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// number of boot steps (when actStep == maxSteps then the booting is finished) +func (rcv *APRBootState) MaxSteps() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// number of boot steps (when actStep == maxSteps then the booting is finished) +func (rcv *APRBootState) MutateMaxSteps(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func APRBootStateStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func APRBootStateAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(text), 0) +} +func APRBootStateAddActStep(builder *flatbuffers.Builder, actStep uint32) { + builder.PrependUint32Slot(1, actStep, 0) +} +func APRBootStateAddMaxSteps(builder *flatbuffers.Builder, maxSteps uint32) { + builder.PrependUint32Slot(2, maxSteps, 0) +} +func APRBootStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/ProfileType.go b/pkg/fbs/comm/axisprofile/fbtypes/ProfileType.go index 63cda73..770fc75 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/ProfileType.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/ProfileType.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type ProfileType uint32 - -const ( - ProfileTypeUnknown ProfileType = 0 - ProfileTypeServodrive_over_Ethercat ProfileType = 1 - ProfileTypeCANopen_over_Ethercat ProfileType = 2 -) - -var EnumNamesProfileType = map[ProfileType]string{ - ProfileTypeUnknown: "Unknown", - ProfileTypeServodrive_over_Ethercat: "Servodrive_over_Ethercat", - ProfileTypeCANopen_over_Ethercat: "CANopen_over_Ethercat", -} - -var EnumValuesProfileType = map[string]ProfileType{ - "Unknown": ProfileTypeUnknown, - "Servodrive_over_Ethercat": ProfileTypeServodrive_over_Ethercat, - "CANopen_over_Ethercat": ProfileTypeCANopen_over_Ethercat, -} - -func (v ProfileType) String() string { - if s, ok := EnumNamesProfileType[v]; ok { - return s - } - return "ProfileType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type ProfileType uint32 + +const ( + ProfileTypeUnknown ProfileType = 0 + ProfileTypeServodrive_over_Ethercat ProfileType = 1 + ProfileTypeCANopen_over_Ethercat ProfileType = 2 +) + +var EnumNamesProfileType = map[ProfileType]string{ + ProfileTypeUnknown: "Unknown", + ProfileTypeServodrive_over_Ethercat: "Servodrive_over_Ethercat", + ProfileTypeCANopen_over_Ethercat: "CANopen_over_Ethercat", +} + +var EnumValuesProfileType = map[string]ProfileType{ + "Unknown": ProfileTypeUnknown, + "Servodrive_over_Ethercat": ProfileTypeServodrive_over_Ethercat, + "CANopen_over_Ethercat": ProfileTypeCANopen_over_Ethercat, +} + +func (v ProfileType) String() string { + if s, ok := EnumNamesProfileType[v]; ok { + return s + } + return "ProfileType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/ScalingStrategy.go b/pkg/fbs/comm/axisprofile/fbtypes/ScalingStrategy.go index aaee32e..d5edafa 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/ScalingStrategy.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/ScalingStrategy.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type ScalingStrategy uint32 - -const ( - ScalingStrategyUNKNOWN ScalingStrategy = 0 - ScalingStrategySOE_STANDARD ScalingStrategy = 1 - ScalingStrategyCOE_CALC_DRIVE ScalingStrategy = 2 - ScalingStrategyCOE_CALC_CONTROL ScalingStrategy = 3 -) - -var EnumNamesScalingStrategy = map[ScalingStrategy]string{ - ScalingStrategyUNKNOWN: "UNKNOWN", - ScalingStrategySOE_STANDARD: "SOE_STANDARD", - ScalingStrategyCOE_CALC_DRIVE: "COE_CALC_DRIVE", - ScalingStrategyCOE_CALC_CONTROL: "COE_CALC_CONTROL", -} - -var EnumValuesScalingStrategy = map[string]ScalingStrategy{ - "UNKNOWN": ScalingStrategyUNKNOWN, - "SOE_STANDARD": ScalingStrategySOE_STANDARD, - "COE_CALC_DRIVE": ScalingStrategyCOE_CALC_DRIVE, - "COE_CALC_CONTROL": ScalingStrategyCOE_CALC_CONTROL, -} - -func (v ScalingStrategy) String() string { - if s, ok := EnumNamesScalingStrategy[v]; ok { - return s - } - return "ScalingStrategy(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type ScalingStrategy uint32 + +const ( + ScalingStrategyUNKNOWN ScalingStrategy = 0 + ScalingStrategySOE_STANDARD ScalingStrategy = 1 + ScalingStrategyCOE_CALC_DRIVE ScalingStrategy = 2 + ScalingStrategyCOE_CALC_CONTROL ScalingStrategy = 3 +) + +var EnumNamesScalingStrategy = map[ScalingStrategy]string{ + ScalingStrategyUNKNOWN: "UNKNOWN", + ScalingStrategySOE_STANDARD: "SOE_STANDARD", + ScalingStrategyCOE_CALC_DRIVE: "COE_CALC_DRIVE", + ScalingStrategyCOE_CALC_CONTROL: "COE_CALC_CONTROL", +} + +var EnumValuesScalingStrategy = map[string]ScalingStrategy{ + "UNKNOWN": ScalingStrategyUNKNOWN, + "SOE_STANDARD": ScalingStrategySOE_STANDARD, + "COE_CALC_DRIVE": ScalingStrategyCOE_CALC_DRIVE, + "COE_CALC_CONTROL": ScalingStrategyCOE_CALC_CONTROL, +} + +func (v ScalingStrategy) String() string { + if s, ok := EnumNamesScalingStrategy[v]; ok { + return s + } + return "ScalingStrategy(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/deviceScalingType.go b/pkg/fbs/comm/axisprofile/fbtypes/deviceScalingType.go index 76d123c..1d32a15 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/deviceScalingType.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/deviceScalingType.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type deviceScalingType int32 - -const ( - deviceScalingTypeUNDEFINED deviceScalingType = -1 - deviceScalingTypeROTARY deviceScalingType = 0 - deviceScalingTypePERCENTAGE deviceScalingType = 1 - deviceScalingTypeLINEAR deviceScalingType = 2 -) - -var EnumNamesdeviceScalingType = map[deviceScalingType]string{ - deviceScalingTypeUNDEFINED: "UNDEFINED", - deviceScalingTypeROTARY: "ROTARY", - deviceScalingTypePERCENTAGE: "PERCENTAGE", - deviceScalingTypeLINEAR: "LINEAR", -} - -var EnumValuesdeviceScalingType = map[string]deviceScalingType{ - "UNDEFINED": deviceScalingTypeUNDEFINED, - "ROTARY": deviceScalingTypeROTARY, - "PERCENTAGE": deviceScalingTypePERCENTAGE, - "LINEAR": deviceScalingTypeLINEAR, -} - -func (v deviceScalingType) String() string { - if s, ok := EnumNamesdeviceScalingType[v]; ok { - return s - } - return "deviceScalingType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type deviceScalingType int32 + +const ( + deviceScalingTypeUNDEFINED deviceScalingType = -1 + deviceScalingTypeROTARY deviceScalingType = 0 + deviceScalingTypePERCENTAGE deviceScalingType = 1 + deviceScalingTypeLINEAR deviceScalingType = 2 +) + +var EnumNamesdeviceScalingType = map[deviceScalingType]string{ + deviceScalingTypeUNDEFINED: "UNDEFINED", + deviceScalingTypeROTARY: "ROTARY", + deviceScalingTypePERCENTAGE: "PERCENTAGE", + deviceScalingTypeLINEAR: "LINEAR", +} + +var EnumValuesdeviceScalingType = map[string]deviceScalingType{ + "UNDEFINED": deviceScalingTypeUNDEFINED, + "ROTARY": deviceScalingTypeROTARY, + "PERCENTAGE": deviceScalingTypePERCENTAGE, + "LINEAR": deviceScalingTypeLINEAR, +} + +func (v deviceScalingType) String() string { + if s, ok := EnumNamesdeviceScalingType[v]; ok { + return s + } + return "deviceScalingType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/dummyFbs.go b/pkg/fbs/comm/axisprofile/fbtypes/dummyFbs.go index 64f7550..a904635 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/dummyFbs.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/dummyFbs.go @@ -1,177 +1,177 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type dummyFbsT struct { - DummyByte int8 - DummyStr string - DummyInt int32 - DummyDouble float64 - DummyDoublePtr []float64 -} - -func (t *dummyFbsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dummyStrOffset := builder.CreateString(t.DummyStr) - dummyDoublePtrOffset := flatbuffers.UOffsetT(0) - if t.DummyDoublePtr != nil { - dummyDoublePtrLength := len(t.DummyDoublePtr) - dummyFbsStartDummyDoublePtrVector(builder, dummyDoublePtrLength) - for j := dummyDoublePtrLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.DummyDoublePtr[j]) - } - dummyDoublePtrOffset = builder.EndVector(dummyDoublePtrLength) - } - dummyFbsStart(builder) - dummyFbsAddDummyByte(builder, t.DummyByte) - dummyFbsAddDummyStr(builder, dummyStrOffset) - dummyFbsAddDummyInt(builder, t.DummyInt) - dummyFbsAddDummyDouble(builder, t.DummyDouble) - dummyFbsAddDummyDoublePtr(builder, dummyDoublePtrOffset) - return dummyFbsEnd(builder) -} - -func (rcv *dummyFbs) UnPackTo(t *dummyFbsT) { - t.DummyByte = rcv.DummyByte() - t.DummyStr = string(rcv.DummyStr()) - t.DummyInt = rcv.DummyInt() - t.DummyDouble = rcv.DummyDouble() - dummyDoublePtrLength := rcv.DummyDoublePtrLength() - t.DummyDoublePtr = make([]float64, dummyDoublePtrLength) - for j := 0; j < dummyDoublePtrLength; j++ { - t.DummyDoublePtr[j] = rcv.DummyDoublePtr(j) - } -} - -func (rcv *dummyFbs) UnPack() *dummyFbsT { - if rcv == nil { return nil } - t := &dummyFbsT{} - rcv.UnPackTo(t) - return t -} - -type dummyFbs struct { - _tab flatbuffers.Table -} - -func GetRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &dummyFbs{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &dummyFbs{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *dummyFbs) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *dummyFbs) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *dummyFbs) DummyByte() int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *dummyFbs) MutateDummyByte(n int8) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -func (rcv *dummyFbs) DummyStr() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *dummyFbs) DummyInt() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *dummyFbs) MutateDummyInt(n int32) bool { - return rcv._tab.MutateInt32Slot(8, n) -} - -func (rcv *dummyFbs) DummyDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *dummyFbs) MutateDummyDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func (rcv *dummyFbs) DummyDoublePtr(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *dummyFbs) DummyDoublePtrLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *dummyFbs) MutateDummyDoublePtr(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func dummyFbsStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func dummyFbsAddDummyByte(builder *flatbuffers.Builder, dummyByte int8) { - builder.PrependInt8Slot(0, dummyByte, 0) -} -func dummyFbsAddDummyStr(builder *flatbuffers.Builder, dummyStr flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dummyStr), 0) -} -func dummyFbsAddDummyInt(builder *flatbuffers.Builder, dummyInt int32) { - builder.PrependInt32Slot(2, dummyInt, 0) -} -func dummyFbsAddDummyDouble(builder *flatbuffers.Builder, dummyDouble float64) { - builder.PrependFloat64Slot(3, dummyDouble, 0.0) -} -func dummyFbsAddDummyDoublePtr(builder *flatbuffers.Builder, dummyDoublePtr flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dummyDoublePtr), 0) -} -func dummyFbsStartDummyDoublePtrVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func dummyFbsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type dummyFbsT struct { + DummyByte int8 + DummyStr string + DummyInt int32 + DummyDouble float64 + DummyDoublePtr []float64 +} + +func (t *dummyFbsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dummyStrOffset := builder.CreateString(t.DummyStr) + dummyDoublePtrOffset := flatbuffers.UOffsetT(0) + if t.DummyDoublePtr != nil { + dummyDoublePtrLength := len(t.DummyDoublePtr) + dummyFbsStartDummyDoublePtrVector(builder, dummyDoublePtrLength) + for j := dummyDoublePtrLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.DummyDoublePtr[j]) + } + dummyDoublePtrOffset = builder.EndVector(dummyDoublePtrLength) + } + dummyFbsStart(builder) + dummyFbsAddDummyByte(builder, t.DummyByte) + dummyFbsAddDummyStr(builder, dummyStrOffset) + dummyFbsAddDummyInt(builder, t.DummyInt) + dummyFbsAddDummyDouble(builder, t.DummyDouble) + dummyFbsAddDummyDoublePtr(builder, dummyDoublePtrOffset) + return dummyFbsEnd(builder) +} + +func (rcv *dummyFbs) UnPackTo(t *dummyFbsT) { + t.DummyByte = rcv.DummyByte() + t.DummyStr = string(rcv.DummyStr()) + t.DummyInt = rcv.DummyInt() + t.DummyDouble = rcv.DummyDouble() + dummyDoublePtrLength := rcv.DummyDoublePtrLength() + t.DummyDoublePtr = make([]float64, dummyDoublePtrLength) + for j := 0; j < dummyDoublePtrLength; j++ { + t.DummyDoublePtr[j] = rcv.DummyDoublePtr(j) + } +} + +func (rcv *dummyFbs) UnPack() *dummyFbsT { + if rcv == nil { return nil } + t := &dummyFbsT{} + rcv.UnPackTo(t) + return t +} + +type dummyFbs struct { + _tab flatbuffers.Table +} + +func GetRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &dummyFbs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &dummyFbs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *dummyFbs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *dummyFbs) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *dummyFbs) DummyByte() int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt8(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *dummyFbs) MutateDummyByte(n int8) bool { + return rcv._tab.MutateInt8Slot(4, n) +} + +func (rcv *dummyFbs) DummyStr() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *dummyFbs) DummyInt() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *dummyFbs) MutateDummyInt(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +func (rcv *dummyFbs) DummyDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *dummyFbs) MutateDummyDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func (rcv *dummyFbs) DummyDoublePtr(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *dummyFbs) DummyDoublePtrLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *dummyFbs) MutateDummyDoublePtr(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func dummyFbsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func dummyFbsAddDummyByte(builder *flatbuffers.Builder, dummyByte int8) { + builder.PrependInt8Slot(0, dummyByte, 0) +} +func dummyFbsAddDummyStr(builder *flatbuffers.Builder, dummyStr flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dummyStr), 0) +} +func dummyFbsAddDummyInt(builder *flatbuffers.Builder, dummyInt int32) { + builder.PrependInt32Slot(2, dummyInt, 0) +} +func dummyFbsAddDummyDouble(builder *flatbuffers.Builder, dummyDouble float64) { + builder.PrependFloat64Slot(3, dummyDouble, 0.0) +} +func dummyFbsAddDummyDoublePtr(builder *flatbuffers.Builder, dummyDoublePtr flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dummyDoublePtr), 0) +} +func dummyFbsStartDummyDoublePtrVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func dummyFbsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/mappingEntry.go b/pkg/fbs/comm/axisprofile/fbtypes/mappingEntry.go index c363904..51bf2d4 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/mappingEntry.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/mappingEntry.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type mappingEntryT struct { - ValueID string - DatalayerURI string - ProfileVar variableType -} - -func (t *mappingEntryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueIDOffset := builder.CreateString(t.ValueID) - datalayerURIOffset := builder.CreateString(t.DatalayerURI) - mappingEntryStart(builder) - mappingEntryAddValueID(builder, valueIDOffset) - mappingEntryAddDatalayerURI(builder, datalayerURIOffset) - mappingEntryAddProfileVar(builder, t.ProfileVar) - return mappingEntryEnd(builder) -} - -func (rcv *mappingEntry) UnPackTo(t *mappingEntryT) { - t.ValueID = string(rcv.ValueID()) - t.DatalayerURI = string(rcv.DatalayerURI()) - t.ProfileVar = rcv.ProfileVar() -} - -func (rcv *mappingEntry) UnPack() *mappingEntryT { - if rcv == nil { return nil } - t := &mappingEntryT{} - rcv.UnPackTo(t) - return t -} - -type mappingEntry struct { - _tab flatbuffers.Table -} - -func GetRootAsmappingEntry(buf []byte, offset flatbuffers.UOffsetT) *mappingEntry { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &mappingEntry{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsmappingEntry(buf []byte, offset flatbuffers.UOffsetT) *mappingEntry { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &mappingEntry{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *mappingEntry) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *mappingEntry) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *mappingEntry) ValueID() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *mappingEntry) DatalayerURI() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *mappingEntry) ProfileVar() variableType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return variableType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *mappingEntry) MutateProfileVar(n variableType) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func mappingEntryStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func mappingEntryAddValueID(builder *flatbuffers.Builder, valueID flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(valueID), 0) -} -func mappingEntryAddDatalayerURI(builder *flatbuffers.Builder, datalayerURI flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(datalayerURI), 0) -} -func mappingEntryAddProfileVar(builder *flatbuffers.Builder, profileVar variableType) { - builder.PrependInt8Slot(2, int8(profileVar), 0) -} -func mappingEntryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type mappingEntryT struct { + ValueID string + DatalayerURI string + ProfileVar variableType +} + +func (t *mappingEntryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueIDOffset := builder.CreateString(t.ValueID) + datalayerURIOffset := builder.CreateString(t.DatalayerURI) + mappingEntryStart(builder) + mappingEntryAddValueID(builder, valueIDOffset) + mappingEntryAddDatalayerURI(builder, datalayerURIOffset) + mappingEntryAddProfileVar(builder, t.ProfileVar) + return mappingEntryEnd(builder) +} + +func (rcv *mappingEntry) UnPackTo(t *mappingEntryT) { + t.ValueID = string(rcv.ValueID()) + t.DatalayerURI = string(rcv.DatalayerURI()) + t.ProfileVar = rcv.ProfileVar() +} + +func (rcv *mappingEntry) UnPack() *mappingEntryT { + if rcv == nil { return nil } + t := &mappingEntryT{} + rcv.UnPackTo(t) + return t +} + +type mappingEntry struct { + _tab flatbuffers.Table +} + +func GetRootAsmappingEntry(buf []byte, offset flatbuffers.UOffsetT) *mappingEntry { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &mappingEntry{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsmappingEntry(buf []byte, offset flatbuffers.UOffsetT) *mappingEntry { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &mappingEntry{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *mappingEntry) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *mappingEntry) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *mappingEntry) ValueID() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *mappingEntry) DatalayerURI() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *mappingEntry) ProfileVar() variableType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return variableType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *mappingEntry) MutateProfileVar(n variableType) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func mappingEntryStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func mappingEntryAddValueID(builder *flatbuffers.Builder, valueID flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(valueID), 0) +} +func mappingEntryAddDatalayerURI(builder *flatbuffers.Builder, datalayerURI flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(datalayerURI), 0) +} +func mappingEntryAddProfileVar(builder *flatbuffers.Builder, profileVar variableType) { + builder.PrependInt8Slot(2, int8(profileVar), 0) +} +func mappingEntryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/profile.go b/pkg/fbs/comm/axisprofile/fbtypes/profile.go index 712cc16..778b1ef 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/profile.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/profile.go @@ -1,93 +1,93 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type profileT struct { - Name string - Type ProfileType -} - -func (t *profileT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - profileStart(builder) - profileAddName(builder, nameOffset) - profileAddType(builder, t.Type) - return profileEnd(builder) -} - -func (rcv *profile) UnPackTo(t *profileT) { - t.Name = string(rcv.Name()) - t.Type = rcv.Type() -} - -func (rcv *profile) UnPack() *profileT { - if rcv == nil { return nil } - t := &profileT{} - rcv.UnPackTo(t) - return t -} - -type profile struct { - _tab flatbuffers.Table -} - -func GetRootAsprofile(buf []byte, offset flatbuffers.UOffsetT) *profile { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &profile{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsprofile(buf []byte, offset flatbuffers.UOffsetT) *profile { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &profile{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *profile) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *profile) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *profile) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *profile) Type() ProfileType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return ProfileType(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *profile) MutateType(n ProfileType) bool { - return rcv._tab.MutateUint32Slot(6, uint32(n)) -} - -func profileStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func profileAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func profileAddType(builder *flatbuffers.Builder, type_ ProfileType) { - builder.PrependUint32Slot(1, uint32(type_), 0) -} -func profileEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type profileT struct { + Name string + Type ProfileType +} + +func (t *profileT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + profileStart(builder) + profileAddName(builder, nameOffset) + profileAddType(builder, t.Type) + return profileEnd(builder) +} + +func (rcv *profile) UnPackTo(t *profileT) { + t.Name = string(rcv.Name()) + t.Type = rcv.Type() +} + +func (rcv *profile) UnPack() *profileT { + if rcv == nil { return nil } + t := &profileT{} + rcv.UnPackTo(t) + return t +} + +type profile struct { + _tab flatbuffers.Table +} + +func GetRootAsprofile(buf []byte, offset flatbuffers.UOffsetT) *profile { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &profile{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsprofile(buf []byte, offset flatbuffers.UOffsetT) *profile { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &profile{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *profile) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *profile) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *profile) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *profile) Type() ProfileType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return ProfileType(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *profile) MutateType(n ProfileType) bool { + return rcv._tab.MutateUint32Slot(6, uint32(n)) +} + +func profileStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func profileAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func profileAddType(builder *flatbuffers.Builder, type_ ProfileType) { + builder.PrependUint32Slot(1, uint32(type_), 0) +} +func profileEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/profileConfig.go b/pkg/fbs/comm/axisprofile/fbtypes/profileConfig.go index beec22a..b7417d3 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/profileConfig.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/profileConfig.go @@ -1,203 +1,203 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type profileConfigT struct { - DeviceAddress uint32 - InputBuffer string - OutputBuffer string - ProfileBasicData *profileT - InputMapping *valueMappingT - OutputMapping *valueMappingT - ScalingInfo *profileScalingCfgT - DeviceName string -} - -func (t *profileConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - inputBufferOffset := builder.CreateString(t.InputBuffer) - outputBufferOffset := builder.CreateString(t.OutputBuffer) - profileBasicDataOffset := t.ProfileBasicData.Pack(builder) - inputMappingOffset := t.InputMapping.Pack(builder) - outputMappingOffset := t.OutputMapping.Pack(builder) - scalingInfoOffset := t.ScalingInfo.Pack(builder) - deviceNameOffset := builder.CreateString(t.DeviceName) - profileConfigStart(builder) - profileConfigAddDeviceAddress(builder, t.DeviceAddress) - profileConfigAddInputBuffer(builder, inputBufferOffset) - profileConfigAddOutputBuffer(builder, outputBufferOffset) - profileConfigAddProfileBasicData(builder, profileBasicDataOffset) - profileConfigAddInputMapping(builder, inputMappingOffset) - profileConfigAddOutputMapping(builder, outputMappingOffset) - profileConfigAddScalingInfo(builder, scalingInfoOffset) - profileConfigAddDeviceName(builder, deviceNameOffset) - return profileConfigEnd(builder) -} - -func (rcv *profileConfig) UnPackTo(t *profileConfigT) { - t.DeviceAddress = rcv.DeviceAddress() - t.InputBuffer = string(rcv.InputBuffer()) - t.OutputBuffer = string(rcv.OutputBuffer()) - t.ProfileBasicData = rcv.ProfileBasicData(nil).UnPack() - t.InputMapping = rcv.InputMapping(nil).UnPack() - t.OutputMapping = rcv.OutputMapping(nil).UnPack() - t.ScalingInfo = rcv.ScalingInfo(nil).UnPack() - t.DeviceName = string(rcv.DeviceName()) -} - -func (rcv *profileConfig) UnPack() *profileConfigT { - if rcv == nil { return nil } - t := &profileConfigT{} - rcv.UnPackTo(t) - return t -} - -type profileConfig struct { - _tab flatbuffers.Table -} - -func GetRootAsprofileConfig(buf []byte, offset flatbuffers.UOffsetT) *profileConfig { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &profileConfig{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsprofileConfig(buf []byte, offset flatbuffers.UOffsetT) *profileConfig { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &profileConfig{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *profileConfig) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *profileConfig) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *profileConfig) DeviceAddress() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *profileConfig) MutateDeviceAddress(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *profileConfig) InputBuffer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *profileConfig) OutputBuffer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *profileConfig) ProfileBasicData(obj *profile) *profile { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(profile) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfig) InputMapping(obj *valueMapping) *valueMapping { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(valueMapping) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfig) OutputMapping(obj *valueMapping) *valueMapping { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(valueMapping) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfig) ScalingInfo(obj *profileScalingCfg) *profileScalingCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(profileScalingCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfig) DeviceName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func profileConfigStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func profileConfigAddDeviceAddress(builder *flatbuffers.Builder, deviceAddress uint32) { - builder.PrependUint32Slot(0, deviceAddress, 0) -} -func profileConfigAddInputBuffer(builder *flatbuffers.Builder, inputBuffer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(inputBuffer), 0) -} -func profileConfigAddOutputBuffer(builder *flatbuffers.Builder, outputBuffer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(outputBuffer), 0) -} -func profileConfigAddProfileBasicData(builder *flatbuffers.Builder, profileBasicData flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(profileBasicData), 0) -} -func profileConfigAddInputMapping(builder *flatbuffers.Builder, inputMapping flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(inputMapping), 0) -} -func profileConfigAddOutputMapping(builder *flatbuffers.Builder, outputMapping flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(outputMapping), 0) -} -func profileConfigAddScalingInfo(builder *flatbuffers.Builder, scalingInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(scalingInfo), 0) -} -func profileConfigAddDeviceName(builder *flatbuffers.Builder, deviceName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(deviceName), 0) -} -func profileConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type profileConfigT struct { + DeviceAddress uint32 + InputBuffer string + OutputBuffer string + ProfileBasicData *profileT + InputMapping *valueMappingT + OutputMapping *valueMappingT + ScalingInfo *profileScalingCfgT + DeviceName string +} + +func (t *profileConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + inputBufferOffset := builder.CreateString(t.InputBuffer) + outputBufferOffset := builder.CreateString(t.OutputBuffer) + profileBasicDataOffset := t.ProfileBasicData.Pack(builder) + inputMappingOffset := t.InputMapping.Pack(builder) + outputMappingOffset := t.OutputMapping.Pack(builder) + scalingInfoOffset := t.ScalingInfo.Pack(builder) + deviceNameOffset := builder.CreateString(t.DeviceName) + profileConfigStart(builder) + profileConfigAddDeviceAddress(builder, t.DeviceAddress) + profileConfigAddInputBuffer(builder, inputBufferOffset) + profileConfigAddOutputBuffer(builder, outputBufferOffset) + profileConfigAddProfileBasicData(builder, profileBasicDataOffset) + profileConfigAddInputMapping(builder, inputMappingOffset) + profileConfigAddOutputMapping(builder, outputMappingOffset) + profileConfigAddScalingInfo(builder, scalingInfoOffset) + profileConfigAddDeviceName(builder, deviceNameOffset) + return profileConfigEnd(builder) +} + +func (rcv *profileConfig) UnPackTo(t *profileConfigT) { + t.DeviceAddress = rcv.DeviceAddress() + t.InputBuffer = string(rcv.InputBuffer()) + t.OutputBuffer = string(rcv.OutputBuffer()) + t.ProfileBasicData = rcv.ProfileBasicData(nil).UnPack() + t.InputMapping = rcv.InputMapping(nil).UnPack() + t.OutputMapping = rcv.OutputMapping(nil).UnPack() + t.ScalingInfo = rcv.ScalingInfo(nil).UnPack() + t.DeviceName = string(rcv.DeviceName()) +} + +func (rcv *profileConfig) UnPack() *profileConfigT { + if rcv == nil { return nil } + t := &profileConfigT{} + rcv.UnPackTo(t) + return t +} + +type profileConfig struct { + _tab flatbuffers.Table +} + +func GetRootAsprofileConfig(buf []byte, offset flatbuffers.UOffsetT) *profileConfig { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &profileConfig{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsprofileConfig(buf []byte, offset flatbuffers.UOffsetT) *profileConfig { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &profileConfig{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *profileConfig) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *profileConfig) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *profileConfig) DeviceAddress() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *profileConfig) MutateDeviceAddress(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *profileConfig) InputBuffer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *profileConfig) OutputBuffer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *profileConfig) ProfileBasicData(obj *profile) *profile { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(profile) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfig) InputMapping(obj *valueMapping) *valueMapping { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(valueMapping) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfig) OutputMapping(obj *valueMapping) *valueMapping { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(valueMapping) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfig) ScalingInfo(obj *profileScalingCfg) *profileScalingCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(profileScalingCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfig) DeviceName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func profileConfigStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func profileConfigAddDeviceAddress(builder *flatbuffers.Builder, deviceAddress uint32) { + builder.PrependUint32Slot(0, deviceAddress, 0) +} +func profileConfigAddInputBuffer(builder *flatbuffers.Builder, inputBuffer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(inputBuffer), 0) +} +func profileConfigAddOutputBuffer(builder *flatbuffers.Builder, outputBuffer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(outputBuffer), 0) +} +func profileConfigAddProfileBasicData(builder *flatbuffers.Builder, profileBasicData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(profileBasicData), 0) +} +func profileConfigAddInputMapping(builder *flatbuffers.Builder, inputMapping flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(inputMapping), 0) +} +func profileConfigAddOutputMapping(builder *flatbuffers.Builder, outputMapping flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(outputMapping), 0) +} +func profileConfigAddScalingInfo(builder *flatbuffers.Builder, scalingInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(scalingInfo), 0) +} +func profileConfigAddDeviceName(builder *flatbuffers.Builder, deviceName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(deviceName), 0) +} +func profileConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/profileConfigInfo.go b/pkg/fbs/comm/axisprofile/fbtypes/profileConfigInfo.go index b78ab51..5ddc8b8 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/profileConfigInfo.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/profileConfigInfo.go @@ -1,218 +1,218 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type profileConfigInfoT struct { - DeviceAddress uint32 - InputBuffer string - OutputBuffer string - ProfileType *profileTypeDataT - ProfileName string - InputMapping *valueMappingT - OutputMapping *valueMappingT - ScalingInfo *profileScalingCfgT - DeviceName string -} - -func (t *profileConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - inputBufferOffset := builder.CreateString(t.InputBuffer) - outputBufferOffset := builder.CreateString(t.OutputBuffer) - profileTypeOffset := t.ProfileType.Pack(builder) - profileNameOffset := builder.CreateString(t.ProfileName) - inputMappingOffset := t.InputMapping.Pack(builder) - outputMappingOffset := t.OutputMapping.Pack(builder) - scalingInfoOffset := t.ScalingInfo.Pack(builder) - deviceNameOffset := builder.CreateString(t.DeviceName) - profileConfigInfoStart(builder) - profileConfigInfoAddDeviceAddress(builder, t.DeviceAddress) - profileConfigInfoAddInputBuffer(builder, inputBufferOffset) - profileConfigInfoAddOutputBuffer(builder, outputBufferOffset) - profileConfigInfoAddProfileType(builder, profileTypeOffset) - profileConfigInfoAddProfileName(builder, profileNameOffset) - profileConfigInfoAddInputMapping(builder, inputMappingOffset) - profileConfigInfoAddOutputMapping(builder, outputMappingOffset) - profileConfigInfoAddScalingInfo(builder, scalingInfoOffset) - profileConfigInfoAddDeviceName(builder, deviceNameOffset) - return profileConfigInfoEnd(builder) -} - -func (rcv *profileConfigInfo) UnPackTo(t *profileConfigInfoT) { - t.DeviceAddress = rcv.DeviceAddress() - t.InputBuffer = string(rcv.InputBuffer()) - t.OutputBuffer = string(rcv.OutputBuffer()) - t.ProfileType = rcv.ProfileType(nil).UnPack() - t.ProfileName = string(rcv.ProfileName()) - t.InputMapping = rcv.InputMapping(nil).UnPack() - t.OutputMapping = rcv.OutputMapping(nil).UnPack() - t.ScalingInfo = rcv.ScalingInfo(nil).UnPack() - t.DeviceName = string(rcv.DeviceName()) -} - -func (rcv *profileConfigInfo) UnPack() *profileConfigInfoT { - if rcv == nil { return nil } - t := &profileConfigInfoT{} - rcv.UnPackTo(t) - return t -} - -type profileConfigInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsprofileConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *profileConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &profileConfigInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsprofileConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *profileConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &profileConfigInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *profileConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *profileConfigInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *profileConfigInfo) DeviceAddress() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *profileConfigInfo) MutateDeviceAddress(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *profileConfigInfo) InputBuffer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *profileConfigInfo) OutputBuffer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *profileConfigInfo) ProfileType(obj *profileTypeData) *profileTypeData { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(profileTypeData) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfigInfo) ProfileName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *profileConfigInfo) InputMapping(obj *valueMapping) *valueMapping { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(valueMapping) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfigInfo) OutputMapping(obj *valueMapping) *valueMapping { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(valueMapping) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfigInfo) ScalingInfo(obj *profileScalingCfg) *profileScalingCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(profileScalingCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileConfigInfo) DeviceName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func profileConfigInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func profileConfigInfoAddDeviceAddress(builder *flatbuffers.Builder, deviceAddress uint32) { - builder.PrependUint32Slot(0, deviceAddress, 0) -} -func profileConfigInfoAddInputBuffer(builder *flatbuffers.Builder, inputBuffer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(inputBuffer), 0) -} -func profileConfigInfoAddOutputBuffer(builder *flatbuffers.Builder, outputBuffer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(outputBuffer), 0) -} -func profileConfigInfoAddProfileType(builder *flatbuffers.Builder, profileType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(profileType), 0) -} -func profileConfigInfoAddProfileName(builder *flatbuffers.Builder, profileName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(profileName), 0) -} -func profileConfigInfoAddInputMapping(builder *flatbuffers.Builder, inputMapping flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(inputMapping), 0) -} -func profileConfigInfoAddOutputMapping(builder *flatbuffers.Builder, outputMapping flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(outputMapping), 0) -} -func profileConfigInfoAddScalingInfo(builder *flatbuffers.Builder, scalingInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(scalingInfo), 0) -} -func profileConfigInfoAddDeviceName(builder *flatbuffers.Builder, deviceName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(deviceName), 0) -} -func profileConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type profileConfigInfoT struct { + DeviceAddress uint32 + InputBuffer string + OutputBuffer string + ProfileType *profileTypeDataT + ProfileName string + InputMapping *valueMappingT + OutputMapping *valueMappingT + ScalingInfo *profileScalingCfgT + DeviceName string +} + +func (t *profileConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + inputBufferOffset := builder.CreateString(t.InputBuffer) + outputBufferOffset := builder.CreateString(t.OutputBuffer) + profileTypeOffset := t.ProfileType.Pack(builder) + profileNameOffset := builder.CreateString(t.ProfileName) + inputMappingOffset := t.InputMapping.Pack(builder) + outputMappingOffset := t.OutputMapping.Pack(builder) + scalingInfoOffset := t.ScalingInfo.Pack(builder) + deviceNameOffset := builder.CreateString(t.DeviceName) + profileConfigInfoStart(builder) + profileConfigInfoAddDeviceAddress(builder, t.DeviceAddress) + profileConfigInfoAddInputBuffer(builder, inputBufferOffset) + profileConfigInfoAddOutputBuffer(builder, outputBufferOffset) + profileConfigInfoAddProfileType(builder, profileTypeOffset) + profileConfigInfoAddProfileName(builder, profileNameOffset) + profileConfigInfoAddInputMapping(builder, inputMappingOffset) + profileConfigInfoAddOutputMapping(builder, outputMappingOffset) + profileConfigInfoAddScalingInfo(builder, scalingInfoOffset) + profileConfigInfoAddDeviceName(builder, deviceNameOffset) + return profileConfigInfoEnd(builder) +} + +func (rcv *profileConfigInfo) UnPackTo(t *profileConfigInfoT) { + t.DeviceAddress = rcv.DeviceAddress() + t.InputBuffer = string(rcv.InputBuffer()) + t.OutputBuffer = string(rcv.OutputBuffer()) + t.ProfileType = rcv.ProfileType(nil).UnPack() + t.ProfileName = string(rcv.ProfileName()) + t.InputMapping = rcv.InputMapping(nil).UnPack() + t.OutputMapping = rcv.OutputMapping(nil).UnPack() + t.ScalingInfo = rcv.ScalingInfo(nil).UnPack() + t.DeviceName = string(rcv.DeviceName()) +} + +func (rcv *profileConfigInfo) UnPack() *profileConfigInfoT { + if rcv == nil { return nil } + t := &profileConfigInfoT{} + rcv.UnPackTo(t) + return t +} + +type profileConfigInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsprofileConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *profileConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &profileConfigInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsprofileConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *profileConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &profileConfigInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *profileConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *profileConfigInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *profileConfigInfo) DeviceAddress() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *profileConfigInfo) MutateDeviceAddress(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *profileConfigInfo) InputBuffer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *profileConfigInfo) OutputBuffer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *profileConfigInfo) ProfileType(obj *profileTypeData) *profileTypeData { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(profileTypeData) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfigInfo) ProfileName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *profileConfigInfo) InputMapping(obj *valueMapping) *valueMapping { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(valueMapping) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfigInfo) OutputMapping(obj *valueMapping) *valueMapping { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(valueMapping) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfigInfo) ScalingInfo(obj *profileScalingCfg) *profileScalingCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(profileScalingCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileConfigInfo) DeviceName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func profileConfigInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func profileConfigInfoAddDeviceAddress(builder *flatbuffers.Builder, deviceAddress uint32) { + builder.PrependUint32Slot(0, deviceAddress, 0) +} +func profileConfigInfoAddInputBuffer(builder *flatbuffers.Builder, inputBuffer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(inputBuffer), 0) +} +func profileConfigInfoAddOutputBuffer(builder *flatbuffers.Builder, outputBuffer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(outputBuffer), 0) +} +func profileConfigInfoAddProfileType(builder *flatbuffers.Builder, profileType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(profileType), 0) +} +func profileConfigInfoAddProfileName(builder *flatbuffers.Builder, profileName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(profileName), 0) +} +func profileConfigInfoAddInputMapping(builder *flatbuffers.Builder, inputMapping flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(inputMapping), 0) +} +func profileConfigInfoAddOutputMapping(builder *flatbuffers.Builder, outputMapping flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(outputMapping), 0) +} +func profileConfigInfoAddScalingInfo(builder *flatbuffers.Builder, scalingInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(scalingInfo), 0) +} +func profileConfigInfoAddDeviceName(builder *flatbuffers.Builder, deviceName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(deviceName), 0) +} +func profileConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/profileDeviceScalingType.go b/pkg/fbs/comm/axisprofile/fbtypes/profileDeviceScalingType.go index f5cec45..673fb56 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/profileDeviceScalingType.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/profileDeviceScalingType.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type profileDeviceScalingTypeT struct { - ScalingType deviceScalingType -} - -func (t *profileDeviceScalingTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - profileDeviceScalingTypeStart(builder) - profileDeviceScalingTypeAddScalingType(builder, t.ScalingType) - return profileDeviceScalingTypeEnd(builder) -} - -func (rcv *profileDeviceScalingType) UnPackTo(t *profileDeviceScalingTypeT) { - t.ScalingType = rcv.ScalingType() -} - -func (rcv *profileDeviceScalingType) UnPack() *profileDeviceScalingTypeT { - if rcv == nil { return nil } - t := &profileDeviceScalingTypeT{} - rcv.UnPackTo(t) - return t -} - -type profileDeviceScalingType struct { - _tab flatbuffers.Table -} - -func GetRootAsprofileDeviceScalingType(buf []byte, offset flatbuffers.UOffsetT) *profileDeviceScalingType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &profileDeviceScalingType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsprofileDeviceScalingType(buf []byte, offset flatbuffers.UOffsetT) *profileDeviceScalingType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &profileDeviceScalingType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *profileDeviceScalingType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *profileDeviceScalingType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *profileDeviceScalingType) ScalingType() deviceScalingType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return deviceScalingType(rcv._tab.GetInt32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *profileDeviceScalingType) MutateScalingType(n deviceScalingType) bool { - return rcv._tab.MutateInt32Slot(4, int32(n)) -} - -func profileDeviceScalingTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func profileDeviceScalingTypeAddScalingType(builder *flatbuffers.Builder, scalingType deviceScalingType) { - builder.PrependInt32Slot(0, int32(scalingType), 0) -} -func profileDeviceScalingTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type profileDeviceScalingTypeT struct { + ScalingType deviceScalingType +} + +func (t *profileDeviceScalingTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + profileDeviceScalingTypeStart(builder) + profileDeviceScalingTypeAddScalingType(builder, t.ScalingType) + return profileDeviceScalingTypeEnd(builder) +} + +func (rcv *profileDeviceScalingType) UnPackTo(t *profileDeviceScalingTypeT) { + t.ScalingType = rcv.ScalingType() +} + +func (rcv *profileDeviceScalingType) UnPack() *profileDeviceScalingTypeT { + if rcv == nil { return nil } + t := &profileDeviceScalingTypeT{} + rcv.UnPackTo(t) + return t +} + +type profileDeviceScalingType struct { + _tab flatbuffers.Table +} + +func GetRootAsprofileDeviceScalingType(buf []byte, offset flatbuffers.UOffsetT) *profileDeviceScalingType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &profileDeviceScalingType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsprofileDeviceScalingType(buf []byte, offset flatbuffers.UOffsetT) *profileDeviceScalingType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &profileDeviceScalingType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *profileDeviceScalingType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *profileDeviceScalingType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *profileDeviceScalingType) ScalingType() deviceScalingType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return deviceScalingType(rcv._tab.GetInt32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *profileDeviceScalingType) MutateScalingType(n deviceScalingType) bool { + return rcv._tab.MutateInt32Slot(4, int32(n)) +} + +func profileDeviceScalingTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func profileDeviceScalingTypeAddScalingType(builder *flatbuffers.Builder, scalingType deviceScalingType) { + builder.PrependInt32Slot(0, int32(scalingType), 0) +} +func profileDeviceScalingTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/profileScalingCfg.go b/pkg/fbs/comm/axisprofile/fbtypes/profileScalingCfg.go index a6a406d..43f7ed2 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/profileScalingCfg.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/profileScalingCfg.go @@ -1,154 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type profileScalingCfgT struct { - ScalingStrategy *profileScalingStrategyT - ScalingType *profileDeviceScalingTypeT - Numerator uint32 - Denominator uint32 - Resolution uint32 -} - -func (t *profileScalingCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - scalingStrategyOffset := t.ScalingStrategy.Pack(builder) - scalingTypeOffset := t.ScalingType.Pack(builder) - profileScalingCfgStart(builder) - profileScalingCfgAddScalingStrategy(builder, scalingStrategyOffset) - profileScalingCfgAddScalingType(builder, scalingTypeOffset) - profileScalingCfgAddNumerator(builder, t.Numerator) - profileScalingCfgAddDenominator(builder, t.Denominator) - profileScalingCfgAddResolution(builder, t.Resolution) - return profileScalingCfgEnd(builder) -} - -func (rcv *profileScalingCfg) UnPackTo(t *profileScalingCfgT) { - t.ScalingStrategy = rcv.ScalingStrategy(nil).UnPack() - t.ScalingType = rcv.ScalingType(nil).UnPack() - t.Numerator = rcv.Numerator() - t.Denominator = rcv.Denominator() - t.Resolution = rcv.Resolution() -} - -func (rcv *profileScalingCfg) UnPack() *profileScalingCfgT { - if rcv == nil { return nil } - t := &profileScalingCfgT{} - rcv.UnPackTo(t) - return t -} - -type profileScalingCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsprofileScalingCfg(buf []byte, offset flatbuffers.UOffsetT) *profileScalingCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &profileScalingCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsprofileScalingCfg(buf []byte, offset flatbuffers.UOffsetT) *profileScalingCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &profileScalingCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *profileScalingCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *profileScalingCfg) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *profileScalingCfg) ScalingStrategy(obj *profileScalingStrategy) *profileScalingStrategy { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(profileScalingStrategy) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileScalingCfg) ScalingType(obj *profileDeviceScalingType) *profileDeviceScalingType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(profileDeviceScalingType) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *profileScalingCfg) Numerator() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *profileScalingCfg) MutateNumerator(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *profileScalingCfg) Denominator() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *profileScalingCfg) MutateDenominator(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *profileScalingCfg) Resolution() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *profileScalingCfg) MutateResolution(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func profileScalingCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func profileScalingCfgAddScalingStrategy(builder *flatbuffers.Builder, scalingStrategy flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(scalingStrategy), 0) -} -func profileScalingCfgAddScalingType(builder *flatbuffers.Builder, scalingType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(scalingType), 0) -} -func profileScalingCfgAddNumerator(builder *flatbuffers.Builder, numerator uint32) { - builder.PrependUint32Slot(2, numerator, 0) -} -func profileScalingCfgAddDenominator(builder *flatbuffers.Builder, denominator uint32) { - builder.PrependUint32Slot(3, denominator, 0) -} -func profileScalingCfgAddResolution(builder *flatbuffers.Builder, resolution uint32) { - builder.PrependUint32Slot(4, resolution, 0) -} -func profileScalingCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type profileScalingCfgT struct { + ScalingStrategy *profileScalingStrategyT + ScalingType *profileDeviceScalingTypeT + Numerator uint32 + Denominator uint32 + Resolution uint32 +} + +func (t *profileScalingCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + scalingStrategyOffset := t.ScalingStrategy.Pack(builder) + scalingTypeOffset := t.ScalingType.Pack(builder) + profileScalingCfgStart(builder) + profileScalingCfgAddScalingStrategy(builder, scalingStrategyOffset) + profileScalingCfgAddScalingType(builder, scalingTypeOffset) + profileScalingCfgAddNumerator(builder, t.Numerator) + profileScalingCfgAddDenominator(builder, t.Denominator) + profileScalingCfgAddResolution(builder, t.Resolution) + return profileScalingCfgEnd(builder) +} + +func (rcv *profileScalingCfg) UnPackTo(t *profileScalingCfgT) { + t.ScalingStrategy = rcv.ScalingStrategy(nil).UnPack() + t.ScalingType = rcv.ScalingType(nil).UnPack() + t.Numerator = rcv.Numerator() + t.Denominator = rcv.Denominator() + t.Resolution = rcv.Resolution() +} + +func (rcv *profileScalingCfg) UnPack() *profileScalingCfgT { + if rcv == nil { return nil } + t := &profileScalingCfgT{} + rcv.UnPackTo(t) + return t +} + +type profileScalingCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsprofileScalingCfg(buf []byte, offset flatbuffers.UOffsetT) *profileScalingCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &profileScalingCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsprofileScalingCfg(buf []byte, offset flatbuffers.UOffsetT) *profileScalingCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &profileScalingCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *profileScalingCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *profileScalingCfg) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *profileScalingCfg) ScalingStrategy(obj *profileScalingStrategy) *profileScalingStrategy { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(profileScalingStrategy) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileScalingCfg) ScalingType(obj *profileDeviceScalingType) *profileDeviceScalingType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(profileDeviceScalingType) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *profileScalingCfg) Numerator() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *profileScalingCfg) MutateNumerator(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func (rcv *profileScalingCfg) Denominator() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *profileScalingCfg) MutateDenominator(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func (rcv *profileScalingCfg) Resolution() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *profileScalingCfg) MutateResolution(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func profileScalingCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func profileScalingCfgAddScalingStrategy(builder *flatbuffers.Builder, scalingStrategy flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(scalingStrategy), 0) +} +func profileScalingCfgAddScalingType(builder *flatbuffers.Builder, scalingType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(scalingType), 0) +} +func profileScalingCfgAddNumerator(builder *flatbuffers.Builder, numerator uint32) { + builder.PrependUint32Slot(2, numerator, 0) +} +func profileScalingCfgAddDenominator(builder *flatbuffers.Builder, denominator uint32) { + builder.PrependUint32Slot(3, denominator, 0) +} +func profileScalingCfgAddResolution(builder *flatbuffers.Builder, resolution uint32) { + builder.PrependUint32Slot(4, resolution, 0) +} +func profileScalingCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/profileScalingStrategy.go b/pkg/fbs/comm/axisprofile/fbtypes/profileScalingStrategy.go index cfe3d95..6f98ad3 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/profileScalingStrategy.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/profileScalingStrategy.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type profileScalingStrategyT struct { - Strategy ScalingStrategy -} - -func (t *profileScalingStrategyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - profileScalingStrategyStart(builder) - profileScalingStrategyAddStrategy(builder, t.Strategy) - return profileScalingStrategyEnd(builder) -} - -func (rcv *profileScalingStrategy) UnPackTo(t *profileScalingStrategyT) { - t.Strategy = rcv.Strategy() -} - -func (rcv *profileScalingStrategy) UnPack() *profileScalingStrategyT { - if rcv == nil { return nil } - t := &profileScalingStrategyT{} - rcv.UnPackTo(t) - return t -} - -type profileScalingStrategy struct { - _tab flatbuffers.Table -} - -func GetRootAsprofileScalingStrategy(buf []byte, offset flatbuffers.UOffsetT) *profileScalingStrategy { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &profileScalingStrategy{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsprofileScalingStrategy(buf []byte, offset flatbuffers.UOffsetT) *profileScalingStrategy { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &profileScalingStrategy{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *profileScalingStrategy) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *profileScalingStrategy) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *profileScalingStrategy) Strategy() ScalingStrategy { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return ScalingStrategy(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *profileScalingStrategy) MutateStrategy(n ScalingStrategy) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func profileScalingStrategyStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func profileScalingStrategyAddStrategy(builder *flatbuffers.Builder, strategy ScalingStrategy) { - builder.PrependUint32Slot(0, uint32(strategy), 0) -} -func profileScalingStrategyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type profileScalingStrategyT struct { + Strategy ScalingStrategy +} + +func (t *profileScalingStrategyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + profileScalingStrategyStart(builder) + profileScalingStrategyAddStrategy(builder, t.Strategy) + return profileScalingStrategyEnd(builder) +} + +func (rcv *profileScalingStrategy) UnPackTo(t *profileScalingStrategyT) { + t.Strategy = rcv.Strategy() +} + +func (rcv *profileScalingStrategy) UnPack() *profileScalingStrategyT { + if rcv == nil { return nil } + t := &profileScalingStrategyT{} + rcv.UnPackTo(t) + return t +} + +type profileScalingStrategy struct { + _tab flatbuffers.Table +} + +func GetRootAsprofileScalingStrategy(buf []byte, offset flatbuffers.UOffsetT) *profileScalingStrategy { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &profileScalingStrategy{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsprofileScalingStrategy(buf []byte, offset flatbuffers.UOffsetT) *profileScalingStrategy { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &profileScalingStrategy{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *profileScalingStrategy) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *profileScalingStrategy) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *profileScalingStrategy) Strategy() ScalingStrategy { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ScalingStrategy(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *profileScalingStrategy) MutateStrategy(n ScalingStrategy) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func profileScalingStrategyStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func profileScalingStrategyAddStrategy(builder *flatbuffers.Builder, strategy ScalingStrategy) { + builder.PrependUint32Slot(0, uint32(strategy), 0) +} +func profileScalingStrategyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/profileTypeData.go b/pkg/fbs/comm/axisprofile/fbtypes/profileTypeData.go index 09dbcf7..a3cca9b 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/profileTypeData.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/profileTypeData.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type profileTypeDataT struct { - Type ProfileType -} - -func (t *profileTypeDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - profileTypeDataStart(builder) - profileTypeDataAddType(builder, t.Type) - return profileTypeDataEnd(builder) -} - -func (rcv *profileTypeData) UnPackTo(t *profileTypeDataT) { - t.Type = rcv.Type() -} - -func (rcv *profileTypeData) UnPack() *profileTypeDataT { - if rcv == nil { return nil } - t := &profileTypeDataT{} - rcv.UnPackTo(t) - return t -} - -type profileTypeData struct { - _tab flatbuffers.Table -} - -func GetRootAsprofileTypeData(buf []byte, offset flatbuffers.UOffsetT) *profileTypeData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &profileTypeData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsprofileTypeData(buf []byte, offset flatbuffers.UOffsetT) *profileTypeData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &profileTypeData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *profileTypeData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *profileTypeData) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *profileTypeData) Type() ProfileType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return ProfileType(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *profileTypeData) MutateType(n ProfileType) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func profileTypeDataStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func profileTypeDataAddType(builder *flatbuffers.Builder, type_ ProfileType) { - builder.PrependUint32Slot(0, uint32(type_), 0) -} -func profileTypeDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type profileTypeDataT struct { + Type ProfileType +} + +func (t *profileTypeDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + profileTypeDataStart(builder) + profileTypeDataAddType(builder, t.Type) + return profileTypeDataEnd(builder) +} + +func (rcv *profileTypeData) UnPackTo(t *profileTypeDataT) { + t.Type = rcv.Type() +} + +func (rcv *profileTypeData) UnPack() *profileTypeDataT { + if rcv == nil { return nil } + t := &profileTypeDataT{} + rcv.UnPackTo(t) + return t +} + +type profileTypeData struct { + _tab flatbuffers.Table +} + +func GetRootAsprofileTypeData(buf []byte, offset flatbuffers.UOffsetT) *profileTypeData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &profileTypeData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsprofileTypeData(buf []byte, offset flatbuffers.UOffsetT) *profileTypeData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &profileTypeData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *profileTypeData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *profileTypeData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *profileTypeData) Type() ProfileType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ProfileType(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *profileTypeData) MutateType(n ProfileType) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func profileTypeDataStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func profileTypeDataAddType(builder *flatbuffers.Builder, type_ ProfileType) { + builder.PrependUint32Slot(0, uint32(type_), 0) +} +func profileTypeDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/valueMapping.go b/pkg/fbs/comm/axisprofile/fbtypes/valueMapping.go index d6b0faa..5bffc56 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/valueMapping.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/valueMapping.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type valueMappingT struct { - Mapping []*mappingEntryT -} - -func (t *valueMappingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - mappingOffset := flatbuffers.UOffsetT(0) - if t.Mapping != nil { - mappingLength := len(t.Mapping) - mappingOffsets := make([]flatbuffers.UOffsetT, mappingLength) - for j := 0; j < mappingLength; j++ { - mappingOffsets[j] = t.Mapping[j].Pack(builder) - } - valueMappingStartMappingVector(builder, mappingLength) - for j := mappingLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(mappingOffsets[j]) - } - mappingOffset = builder.EndVector(mappingLength) - } - valueMappingStart(builder) - valueMappingAddMapping(builder, mappingOffset) - return valueMappingEnd(builder) -} - -func (rcv *valueMapping) UnPackTo(t *valueMappingT) { - mappingLength := rcv.MappingLength() - t.Mapping = make([]*mappingEntryT, mappingLength) - for j := 0; j < mappingLength; j++ { - x := mappingEntry{} - rcv.Mapping(&x, j) - t.Mapping[j] = x.UnPack() - } -} - -func (rcv *valueMapping) UnPack() *valueMappingT { - if rcv == nil { return nil } - t := &valueMappingT{} - rcv.UnPackTo(t) - return t -} - -type valueMapping struct { - _tab flatbuffers.Table -} - -func GetRootAsvalueMapping(buf []byte, offset flatbuffers.UOffsetT) *valueMapping { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &valueMapping{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsvalueMapping(buf []byte, offset flatbuffers.UOffsetT) *valueMapping { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &valueMapping{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *valueMapping) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *valueMapping) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *valueMapping) Mapping(obj *mappingEntry, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *valueMapping) MappingLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func valueMappingStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func valueMappingAddMapping(builder *flatbuffers.Builder, mapping flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mapping), 0) -} -func valueMappingStartMappingVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func valueMappingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type valueMappingT struct { + Mapping []*mappingEntryT +} + +func (t *valueMappingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + mappingOffset := flatbuffers.UOffsetT(0) + if t.Mapping != nil { + mappingLength := len(t.Mapping) + mappingOffsets := make([]flatbuffers.UOffsetT, mappingLength) + for j := 0; j < mappingLength; j++ { + mappingOffsets[j] = t.Mapping[j].Pack(builder) + } + valueMappingStartMappingVector(builder, mappingLength) + for j := mappingLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(mappingOffsets[j]) + } + mappingOffset = builder.EndVector(mappingLength) + } + valueMappingStart(builder) + valueMappingAddMapping(builder, mappingOffset) + return valueMappingEnd(builder) +} + +func (rcv *valueMapping) UnPackTo(t *valueMappingT) { + mappingLength := rcv.MappingLength() + t.Mapping = make([]*mappingEntryT, mappingLength) + for j := 0; j < mappingLength; j++ { + x := mappingEntry{} + rcv.Mapping(&x, j) + t.Mapping[j] = x.UnPack() + } +} + +func (rcv *valueMapping) UnPack() *valueMappingT { + if rcv == nil { return nil } + t := &valueMappingT{} + rcv.UnPackTo(t) + return t +} + +type valueMapping struct { + _tab flatbuffers.Table +} + +func GetRootAsvalueMapping(buf []byte, offset flatbuffers.UOffsetT) *valueMapping { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &valueMapping{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsvalueMapping(buf []byte, offset flatbuffers.UOffsetT) *valueMapping { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &valueMapping{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *valueMapping) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *valueMapping) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *valueMapping) Mapping(obj *mappingEntry, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *valueMapping) MappingLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func valueMappingStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func valueMappingAddMapping(builder *flatbuffers.Builder, mapping flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mapping), 0) +} +func valueMappingStartMappingVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func valueMappingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/axisprofile/fbtypes/variableType.go b/pkg/fbs/comm/axisprofile/fbtypes/variableType.go index 3dfa8bb..f24f016 100644 --- a/pkg/fbs/comm/axisprofile/fbtypes/variableType.go +++ b/pkg/fbs/comm/axisprofile/fbtypes/variableType.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type variableType int8 - -const ( - variableTypeBASE variableType = 0 - variableTypeVELOCITY variableType = 1 - variableTypeHOMING variableType = 2 - variableTypePROBE variableType = 3 -) - -var EnumNamesvariableType = map[variableType]string{ - variableTypeBASE: "BASE", - variableTypeVELOCITY: "VELOCITY", - variableTypeHOMING: "HOMING", - variableTypePROBE: "PROBE", -} - -var EnumValuesvariableType = map[string]variableType{ - "BASE": variableTypeBASE, - "VELOCITY": variableTypeVELOCITY, - "HOMING": variableTypeHOMING, - "PROBE": variableTypePROBE, -} - -func (v variableType) String() string { - if s, ok := EnumNamesvariableType[v]; ok { - return s - } - return "variableType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type variableType int8 + +const ( + variableTypeBASE variableType = 0 + variableTypeVELOCITY variableType = 1 + variableTypeHOMING variableType = 2 + variableTypePROBE variableType = 3 +) + +var EnumNamesvariableType = map[variableType]string{ + variableTypeBASE: "BASE", + variableTypeVELOCITY: "VELOCITY", + variableTypeHOMING: "HOMING", + variableTypePROBE: "PROBE", +} + +var EnumValuesvariableType = map[string]variableType{ + "BASE": variableTypeBASE, + "VELOCITY": variableTypeVELOCITY, + "HOMING": variableTypeHOMING, + "PROBE": variableTypePROBE, +} + +func (v variableType) String() string { + if s, ok := EnumNamesvariableType[v]; ok { + return s + } + return "variableType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/AccessType.go b/pkg/fbs/comm/datalayer/AccessType.go index edbd098..c49ceac 100644 --- a/pkg/fbs/comm/datalayer/AccessType.go +++ b/pkg/fbs/comm/datalayer/AccessType.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type AccessType int8 - -const ( - AccessTypeUnknown AccessType = 0 - AccessTypeRaw AccessType = 1 - AccessTypeTripleBuffer AccessType = 2 - AccessTypeNTelBuf AccessType = 3 -) - -var EnumNamesAccessType = map[AccessType]string{ - AccessTypeUnknown: "Unknown", - AccessTypeRaw: "Raw", - AccessTypeTripleBuffer: "TripleBuffer", - AccessTypeNTelBuf: "NTelBuf", -} - -var EnumValuesAccessType = map[string]AccessType{ - "Unknown": AccessTypeUnknown, - "Raw": AccessTypeRaw, - "TripleBuffer": AccessTypeTripleBuffer, - "NTelBuf": AccessTypeNTelBuf, -} - -func (v AccessType) String() string { - if s, ok := EnumNamesAccessType[v]; ok { - return s - } - return "AccessType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type AccessType int8 + +const ( + AccessTypeUnknown AccessType = 0 + AccessTypeRaw AccessType = 1 + AccessTypeTripleBuffer AccessType = 2 + AccessTypeNTelBuf AccessType = 3 +) + +var EnumNamesAccessType = map[AccessType]string{ + AccessTypeUnknown: "Unknown", + AccessTypeRaw: "Raw", + AccessTypeTripleBuffer: "TripleBuffer", + AccessTypeNTelBuf: "NTelBuf", +} + +var EnumValuesAccessType = map[string]AccessType{ + "Unknown": AccessTypeUnknown, + "Raw": AccessTypeRaw, + "TripleBuffer": AccessTypeTripleBuffer, + "NTelBuf": AccessTypeNTelBuf, +} + +func (v AccessType) String() string { + if s, ok := EnumNamesAccessType[v]; ok { + return s + } + return "AccessType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/AllowedOperations.go b/pkg/fbs/comm/datalayer/AllowedOperations.go index cf2b181..f955b03 100644 --- a/pkg/fbs/comm/datalayer/AllowedOperations.go +++ b/pkg/fbs/comm/datalayer/AllowedOperations.go @@ -1,150 +1,160 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AllowedOperationsT struct { - Read bool - Write bool - Create bool - Delete bool - Browse bool -} - -func (t *AllowedOperationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AllowedOperationsStart(builder) - AllowedOperationsAddRead(builder, t.Read) - AllowedOperationsAddWrite(builder, t.Write) - AllowedOperationsAddCreate(builder, t.Create) - AllowedOperationsAddDelete(builder, t.Delete) - AllowedOperationsAddBrowse(builder, t.Browse) - return AllowedOperationsEnd(builder) -} - -func (rcv *AllowedOperations) UnPackTo(t *AllowedOperationsT) { - t.Read = rcv.Read() - t.Write = rcv.Write() - t.Create = rcv.Create() - t.Delete = rcv.Delete() - t.Browse = rcv.Browse() -} - -func (rcv *AllowedOperations) UnPack() *AllowedOperationsT { - if rcv == nil { return nil } - t := &AllowedOperationsT{} - rcv.UnPackTo(t) - return t -} - -type AllowedOperations struct { - _tab flatbuffers.Table -} - -func GetRootAsAllowedOperations(buf []byte, offset flatbuffers.UOffsetT) *AllowedOperations { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AllowedOperations{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAllowedOperations(buf []byte, offset flatbuffers.UOffsetT) *AllowedOperations { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AllowedOperations{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AllowedOperations) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AllowedOperations) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AllowedOperations) Read() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AllowedOperations) MutateRead(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *AllowedOperations) Write() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AllowedOperations) MutateWrite(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *AllowedOperations) Create() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AllowedOperations) MutateCreate(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *AllowedOperations) Delete() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AllowedOperations) MutateDelete(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *AllowedOperations) Browse() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -func (rcv *AllowedOperations) MutateBrowse(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -func AllowedOperationsStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func AllowedOperationsAddRead(builder *flatbuffers.Builder, read bool) { - builder.PrependBoolSlot(0, read, false) -} -func AllowedOperationsAddWrite(builder *flatbuffers.Builder, write bool) { - builder.PrependBoolSlot(1, write, false) -} -func AllowedOperationsAddCreate(builder *flatbuffers.Builder, create bool) { - builder.PrependBoolSlot(2, create, false) -} -func AllowedOperationsAddDelete(builder *flatbuffers.Builder, delete bool) { - builder.PrependBoolSlot(3, delete, false) -} -func AllowedOperationsAddBrowse(builder *flatbuffers.Builder, browse bool) { - builder.PrependBoolSlot(4, browse, true) -} -func AllowedOperationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AllowedOperationsT struct { + Read bool + Write bool + Create bool + Delete bool + Browse bool +} + +func (t *AllowedOperationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AllowedOperationsStart(builder) + AllowedOperationsAddRead(builder, t.Read) + AllowedOperationsAddWrite(builder, t.Write) + AllowedOperationsAddCreate(builder, t.Create) + AllowedOperationsAddDelete(builder, t.Delete) + AllowedOperationsAddBrowse(builder, t.Browse) + return AllowedOperationsEnd(builder) +} + +func (rcv *AllowedOperations) UnPackTo(t *AllowedOperationsT) { + t.Read = rcv.Read() + t.Write = rcv.Write() + t.Create = rcv.Create() + t.Delete = rcv.Delete() + t.Browse = rcv.Browse() +} + +func (rcv *AllowedOperations) UnPack() *AllowedOperationsT { + if rcv == nil { return nil } + t := &AllowedOperationsT{} + rcv.UnPackTo(t) + return t +} + +type AllowedOperations struct { + _tab flatbuffers.Table +} + +func GetRootAsAllowedOperations(buf []byte, offset flatbuffers.UOffsetT) *AllowedOperations { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AllowedOperations{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAllowedOperations(buf []byte, offset flatbuffers.UOffsetT) *AllowedOperations { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AllowedOperations{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AllowedOperations) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AllowedOperations) Table() flatbuffers.Table { + return rcv._tab +} + +/// get +func (rcv *AllowedOperations) Read() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// get +func (rcv *AllowedOperations) MutateRead(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// put +func (rcv *AllowedOperations) Write() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// put +func (rcv *AllowedOperations) MutateWrite(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// post +func (rcv *AllowedOperations) Create() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// post +func (rcv *AllowedOperations) MutateCreate(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +/// delete +func (rcv *AllowedOperations) Delete() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// delete +func (rcv *AllowedOperations) MutateDelete(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +/// browse +func (rcv *AllowedOperations) Browse() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +/// browse +func (rcv *AllowedOperations) MutateBrowse(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func AllowedOperationsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func AllowedOperationsAddRead(builder *flatbuffers.Builder, read bool) { + builder.PrependBoolSlot(0, read, false) +} +func AllowedOperationsAddWrite(builder *flatbuffers.Builder, write bool) { + builder.PrependBoolSlot(1, write, false) +} +func AllowedOperationsAddCreate(builder *flatbuffers.Builder, create bool) { + builder.PrependBoolSlot(2, create, false) +} +func AllowedOperationsAddDelete(builder *flatbuffers.Builder, delete bool) { + builder.PrependBoolSlot(3, delete, false) +} +func AllowedOperationsAddBrowse(builder *flatbuffers.Builder, browse bool) { + builder.PrependBoolSlot(4, browse, true) +} +func AllowedOperationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfBool8.go b/pkg/fbs/comm/datalayer/ArrayOfBool8.go index 22f3cc2..d8ee1b2 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfBool8.go +++ b/pkg/fbs/comm/datalayer/ArrayOfBool8.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfBool8T struct { - Value []bool -} - -func (t *ArrayOfBool8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfBool8StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependBool(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfBool8Start(builder) - ArrayOfBool8AddValue(builder, valueOffset) - return ArrayOfBool8End(builder) -} - -func (rcv *ArrayOfBool8) UnPackTo(t *ArrayOfBool8T) { - valueLength := rcv.ValueLength() - t.Value = make([]bool, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfBool8) UnPack() *ArrayOfBool8T { - if rcv == nil { return nil } - t := &ArrayOfBool8T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfBool8 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfBool8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfBool8 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfBool8{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfBool8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfBool8 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfBool8{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfBool8) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfBool8) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfBool8) Value(j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) - } - return false -} - -func (rcv *ArrayOfBool8) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfBool8) MutateValue(j int, n bool) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ArrayOfBool8Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfBool8AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfBool8StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ArrayOfBool8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfBool8T struct { + Value []bool +} + +func (t *ArrayOfBool8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfBool8StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependBool(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfBool8Start(builder) + ArrayOfBool8AddValue(builder, valueOffset) + return ArrayOfBool8End(builder) +} + +func (rcv *ArrayOfBool8) UnPackTo(t *ArrayOfBool8T) { + valueLength := rcv.ValueLength() + t.Value = make([]bool, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfBool8) UnPack() *ArrayOfBool8T { + if rcv == nil { return nil } + t := &ArrayOfBool8T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfBool8 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfBool8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfBool8 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfBool8{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfBool8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfBool8 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfBool8{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfBool8) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfBool8) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfBool8) Value(j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) + } + return false +} + +func (rcv *ArrayOfBool8) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfBool8) MutateValue(j int, n bool) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ArrayOfBool8Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfBool8AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfBool8StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ArrayOfBool8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfDouble.go b/pkg/fbs/comm/datalayer/ArrayOfDouble.go new file mode 100644 index 0000000..3007b42 --- /dev/null +++ b/pkg/fbs/comm/datalayer/ArrayOfDouble.go @@ -0,0 +1,108 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfDoubleT struct { + Value []float64 +} + +func (t *ArrayOfDoubleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfDoubleStartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfDoubleStart(builder) + ArrayOfDoubleAddValue(builder, valueOffset) + return ArrayOfDoubleEnd(builder) +} + +func (rcv *ArrayOfDouble) UnPackTo(t *ArrayOfDoubleT) { + valueLength := rcv.ValueLength() + t.Value = make([]float64, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfDouble) UnPack() *ArrayOfDoubleT { + if rcv == nil { return nil } + t := &ArrayOfDoubleT{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfDouble struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfDouble(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfDouble { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfDouble{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfDouble(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfDouble { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfDouble{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfDouble) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfDouble) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfDouble) Value(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayOfDouble) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfDouble) MutateValue(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayOfDoubleStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfDoubleAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfDoubleStartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayOfDoubleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfFloat32.go b/pkg/fbs/comm/datalayer/ArrayOfFloat32.go index dc450ad..e38c7f3 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfFloat32.go +++ b/pkg/fbs/comm/datalayer/ArrayOfFloat32.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfFloat32T struct { - Value []float32 -} - -func (t *ArrayOfFloat32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfFloat32StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependFloat32(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfFloat32Start(builder) - ArrayOfFloat32AddValue(builder, valueOffset) - return ArrayOfFloat32End(builder) -} - -func (rcv *ArrayOfFloat32) UnPackTo(t *ArrayOfFloat32T) { - valueLength := rcv.ValueLength() - t.Value = make([]float32, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfFloat32) UnPack() *ArrayOfFloat32T { - if rcv == nil { return nil } - t := &ArrayOfFloat32T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfFloat32 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfFloat32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat32 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfFloat32{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfFloat32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat32 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfFloat32{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfFloat32) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfFloat32) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfFloat32) Value(j int) float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *ArrayOfFloat32) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfFloat32) MutateValue(j int, n float32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func ArrayOfFloat32Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfFloat32AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfFloat32StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfFloat32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfFloat32T struct { + Value []float32 +} + +func (t *ArrayOfFloat32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfFloat32StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependFloat32(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfFloat32Start(builder) + ArrayOfFloat32AddValue(builder, valueOffset) + return ArrayOfFloat32End(builder) +} + +func (rcv *ArrayOfFloat32) UnPackTo(t *ArrayOfFloat32T) { + valueLength := rcv.ValueLength() + t.Value = make([]float32, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfFloat32) UnPack() *ArrayOfFloat32T { + if rcv == nil { return nil } + t := &ArrayOfFloat32T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfFloat32 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfFloat32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat32 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfFloat32{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfFloat32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat32 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfFloat32{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfFloat32) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfFloat32) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfFloat32) Value(j int) float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *ArrayOfFloat32) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfFloat32) MutateValue(j int, n float32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func ArrayOfFloat32Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfFloat32AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfFloat32StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfFloat32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfFloat64.go b/pkg/fbs/comm/datalayer/ArrayOfFloat64.go index 4a9d3a2..4fb2332 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfFloat64.go +++ b/pkg/fbs/comm/datalayer/ArrayOfFloat64.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfFloat64T struct { - Value []float64 -} - -func (t *ArrayOfFloat64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfFloat64StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfFloat64Start(builder) - ArrayOfFloat64AddValue(builder, valueOffset) - return ArrayOfFloat64End(builder) -} - -func (rcv *ArrayOfFloat64) UnPackTo(t *ArrayOfFloat64T) { - valueLength := rcv.ValueLength() - t.Value = make([]float64, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfFloat64) UnPack() *ArrayOfFloat64T { - if rcv == nil { return nil } - t := &ArrayOfFloat64T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfFloat64 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfFloat64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat64 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfFloat64{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfFloat64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat64 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfFloat64{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfFloat64) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfFloat64) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfFloat64) Value(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *ArrayOfFloat64) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfFloat64) MutateValue(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func ArrayOfFloat64Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfFloat64AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfFloat64StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func ArrayOfFloat64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfFloat64T struct { + Value []float64 +} + +func (t *ArrayOfFloat64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfFloat64StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfFloat64Start(builder) + ArrayOfFloat64AddValue(builder, valueOffset) + return ArrayOfFloat64End(builder) +} + +func (rcv *ArrayOfFloat64) UnPackTo(t *ArrayOfFloat64T) { + valueLength := rcv.ValueLength() + t.Value = make([]float64, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfFloat64) UnPack() *ArrayOfFloat64T { + if rcv == nil { return nil } + t := &ArrayOfFloat64T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfFloat64 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfFloat64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat64 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfFloat64{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfFloat64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfFloat64 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfFloat64{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfFloat64) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfFloat64) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfFloat64) Value(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayOfFloat64) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfFloat64) MutateValue(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayOfFloat64Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfFloat64AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfFloat64StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayOfFloat64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfInt16.go b/pkg/fbs/comm/datalayer/ArrayOfInt16.go index 862bfdd..3c82bf7 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfInt16.go +++ b/pkg/fbs/comm/datalayer/ArrayOfInt16.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfInt16T struct { - Value []int16 -} - -func (t *ArrayOfInt16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfInt16StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependInt16(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfInt16Start(builder) - ArrayOfInt16AddValue(builder, valueOffset) - return ArrayOfInt16End(builder) -} - -func (rcv *ArrayOfInt16) UnPackTo(t *ArrayOfInt16T) { - valueLength := rcv.ValueLength() - t.Value = make([]int16, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfInt16) UnPack() *ArrayOfInt16T { - if rcv == nil { return nil } - t := &ArrayOfInt16T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfInt16 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt16 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfInt16{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt16 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfInt16{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfInt16) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfInt16) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfInt16) Value(j int) int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *ArrayOfInt16) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfInt16) MutateValue(j int, n int16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func ArrayOfInt16Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfInt16AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfInt16StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func ArrayOfInt16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfInt16T struct { + Value []int16 +} + +func (t *ArrayOfInt16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfInt16StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependInt16(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfInt16Start(builder) + ArrayOfInt16AddValue(builder, valueOffset) + return ArrayOfInt16End(builder) +} + +func (rcv *ArrayOfInt16) UnPackTo(t *ArrayOfInt16T) { + valueLength := rcv.ValueLength() + t.Value = make([]int16, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfInt16) UnPack() *ArrayOfInt16T { + if rcv == nil { return nil } + t := &ArrayOfInt16T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfInt16 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt16 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfInt16{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt16 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfInt16{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfInt16) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfInt16) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfInt16) Value(j int) int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *ArrayOfInt16) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfInt16) MutateValue(j int, n int16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func ArrayOfInt16Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfInt16AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfInt16StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func ArrayOfInt16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfInt32.go b/pkg/fbs/comm/datalayer/ArrayOfInt32.go index c5356ea..084cc79 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfInt32.go +++ b/pkg/fbs/comm/datalayer/ArrayOfInt32.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfInt32T struct { - Value []int32 -} - -func (t *ArrayOfInt32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfInt32StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependInt32(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfInt32Start(builder) - ArrayOfInt32AddValue(builder, valueOffset) - return ArrayOfInt32End(builder) -} - -func (rcv *ArrayOfInt32) UnPackTo(t *ArrayOfInt32T) { - valueLength := rcv.ValueLength() - t.Value = make([]int32, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfInt32) UnPack() *ArrayOfInt32T { - if rcv == nil { return nil } - t := &ArrayOfInt32T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfInt32 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt32 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfInt32{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt32 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfInt32{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfInt32) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfInt32) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfInt32) Value(j int) int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *ArrayOfInt32) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfInt32) MutateValue(j int, n int32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func ArrayOfInt32Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfInt32AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfInt32StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfInt32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfInt32T struct { + Value []int32 +} + +func (t *ArrayOfInt32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfInt32StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependInt32(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfInt32Start(builder) + ArrayOfInt32AddValue(builder, valueOffset) + return ArrayOfInt32End(builder) +} + +func (rcv *ArrayOfInt32) UnPackTo(t *ArrayOfInt32T) { + valueLength := rcv.ValueLength() + t.Value = make([]int32, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfInt32) UnPack() *ArrayOfInt32T { + if rcv == nil { return nil } + t := &ArrayOfInt32T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfInt32 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt32 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfInt32{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt32 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfInt32{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfInt32) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfInt32) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfInt32) Value(j int) int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *ArrayOfInt32) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfInt32) MutateValue(j int, n int32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func ArrayOfInt32Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfInt32AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfInt32StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfInt32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfInt64.go b/pkg/fbs/comm/datalayer/ArrayOfInt64.go index cbb5d63..97e3ae9 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfInt64.go +++ b/pkg/fbs/comm/datalayer/ArrayOfInt64.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfInt64T struct { - Value []int64 -} - -func (t *ArrayOfInt64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfInt64StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependInt64(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfInt64Start(builder) - ArrayOfInt64AddValue(builder, valueOffset) - return ArrayOfInt64End(builder) -} - -func (rcv *ArrayOfInt64) UnPackTo(t *ArrayOfInt64T) { - valueLength := rcv.ValueLength() - t.Value = make([]int64, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfInt64) UnPack() *ArrayOfInt64T { - if rcv == nil { return nil } - t := &ArrayOfInt64T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfInt64 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt64 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfInt64{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt64 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfInt64{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfInt64) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfInt64) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfInt64) Value(j int) int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *ArrayOfInt64) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfInt64) MutateValue(j int, n int64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func ArrayOfInt64Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfInt64AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfInt64StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func ArrayOfInt64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfInt64T struct { + Value []int64 +} + +func (t *ArrayOfInt64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfInt64StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependInt64(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfInt64Start(builder) + ArrayOfInt64AddValue(builder, valueOffset) + return ArrayOfInt64End(builder) +} + +func (rcv *ArrayOfInt64) UnPackTo(t *ArrayOfInt64T) { + valueLength := rcv.ValueLength() + t.Value = make([]int64, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfInt64) UnPack() *ArrayOfInt64T { + if rcv == nil { return nil } + t := &ArrayOfInt64T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfInt64 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt64 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfInt64{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt64 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfInt64{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfInt64) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfInt64) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfInt64) Value(j int) int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayOfInt64) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfInt64) MutateValue(j int, n int64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayOfInt64Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfInt64AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfInt64StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayOfInt64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfInt8.go b/pkg/fbs/comm/datalayer/ArrayOfInt8.go index 8811d07..0d9e31e 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfInt8.go +++ b/pkg/fbs/comm/datalayer/ArrayOfInt8.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfInt8T struct { - Value []int8 -} - -func (t *ArrayOfInt8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfInt8StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependInt8(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfInt8Start(builder) - ArrayOfInt8AddValue(builder, valueOffset) - return ArrayOfInt8End(builder) -} - -func (rcv *ArrayOfInt8) UnPackTo(t *ArrayOfInt8T) { - valueLength := rcv.ValueLength() - t.Value = make([]int8, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfInt8) UnPack() *ArrayOfInt8T { - if rcv == nil { return nil } - t := &ArrayOfInt8T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfInt8 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt8 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfInt8{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt8 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfInt8{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfInt8) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfInt8) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfInt8) Value(j int) int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ArrayOfInt8) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfInt8) MutateValue(j int, n int8) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ArrayOfInt8Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfInt8AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfInt8StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ArrayOfInt8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfInt8T struct { + Value []int8 +} + +func (t *ArrayOfInt8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfInt8StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependInt8(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfInt8Start(builder) + ArrayOfInt8AddValue(builder, valueOffset) + return ArrayOfInt8End(builder) +} + +func (rcv *ArrayOfInt8) UnPackTo(t *ArrayOfInt8T) { + valueLength := rcv.ValueLength() + t.Value = make([]int8, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfInt8) UnPack() *ArrayOfInt8T { + if rcv == nil { return nil } + t := &ArrayOfInt8T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfInt8 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt8 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfInt8{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfInt8 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfInt8{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfInt8) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfInt8) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfInt8) Value(j int) int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ArrayOfInt8) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfInt8) MutateValue(j int, n int8) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ArrayOfInt8Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfInt8AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfInt8StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ArrayOfInt8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfString.go b/pkg/fbs/comm/datalayer/ArrayOfString.go index 36fd68f..d519598 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfString.go +++ b/pkg/fbs/comm/datalayer/ArrayOfString.go @@ -1,103 +1,103 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfStringT struct { - Value []string -} - -func (t *ArrayOfStringT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - valueOffsets := make([]flatbuffers.UOffsetT, valueLength) - for j := 0; j < valueLength; j++ { - valueOffsets[j] = builder.CreateString(t.Value[j]) - } - ArrayOfStringStartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(valueOffsets[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfStringStart(builder) - ArrayOfStringAddValue(builder, valueOffset) - return ArrayOfStringEnd(builder) -} - -func (rcv *ArrayOfString) UnPackTo(t *ArrayOfStringT) { - valueLength := rcv.ValueLength() - t.Value = make([]string, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = string(rcv.Value(j)) - } -} - -func (rcv *ArrayOfString) UnPack() *ArrayOfStringT { - if rcv == nil { return nil } - t := &ArrayOfStringT{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfString struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfString(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfString { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfString{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfString(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfString { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfString{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfString) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfString) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfString) Value(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *ArrayOfString) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ArrayOfStringStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfStringAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfStringStartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfStringEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfStringT struct { + Value []string +} + +func (t *ArrayOfStringT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + valueOffsets := make([]flatbuffers.UOffsetT, valueLength) + for j := 0; j < valueLength; j++ { + valueOffsets[j] = builder.CreateString(t.Value[j]) + } + ArrayOfStringStartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(valueOffsets[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfStringStart(builder) + ArrayOfStringAddValue(builder, valueOffset) + return ArrayOfStringEnd(builder) +} + +func (rcv *ArrayOfString) UnPackTo(t *ArrayOfStringT) { + valueLength := rcv.ValueLength() + t.Value = make([]string, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = string(rcv.Value(j)) + } +} + +func (rcv *ArrayOfString) UnPack() *ArrayOfStringT { + if rcv == nil { return nil } + t := &ArrayOfStringT{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfString struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfString(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfString { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfString{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfString(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfString { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfString{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfString) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfString) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfString) Value(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *ArrayOfString) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ArrayOfStringStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfStringAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfStringStartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfStringEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfTimestamp.go b/pkg/fbs/comm/datalayer/ArrayOfTimestamp.go index 46c828b..bd39bc8 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfTimestamp.go +++ b/pkg/fbs/comm/datalayer/ArrayOfTimestamp.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfTimestampT struct { - Value []uint64 -} - -func (t *ArrayOfTimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfTimestampStartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependUint64(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfTimestampStart(builder) - ArrayOfTimestampAddValue(builder, valueOffset) - return ArrayOfTimestampEnd(builder) -} - -func (rcv *ArrayOfTimestamp) UnPackTo(t *ArrayOfTimestampT) { - valueLength := rcv.ValueLength() - t.Value = make([]uint64, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfTimestamp) UnPack() *ArrayOfTimestampT { - if rcv == nil { return nil } - t := &ArrayOfTimestampT{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfTimestamp struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfTimestamp { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfTimestamp{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfTimestamp { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfTimestamp{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfTimestamp) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfTimestamp) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfTimestamp) Value(j int) uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *ArrayOfTimestamp) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfTimestamp) MutateValue(j int, n uint64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func ArrayOfTimestampStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfTimestampAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfTimestampStartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func ArrayOfTimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfTimestampT struct { + Value []uint64 +} + +func (t *ArrayOfTimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfTimestampStartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependUint64(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfTimestampStart(builder) + ArrayOfTimestampAddValue(builder, valueOffset) + return ArrayOfTimestampEnd(builder) +} + +func (rcv *ArrayOfTimestamp) UnPackTo(t *ArrayOfTimestampT) { + valueLength := rcv.ValueLength() + t.Value = make([]uint64, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfTimestamp) UnPack() *ArrayOfTimestampT { + if rcv == nil { return nil } + t := &ArrayOfTimestampT{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfTimestamp struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfTimestamp { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfTimestamp{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfTimestamp { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfTimestamp{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfTimestamp) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfTimestamp) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfTimestamp) Value(j int) uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayOfTimestamp) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfTimestamp) MutateValue(j int, n uint64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayOfTimestampStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfTimestampAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfTimestampStartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayOfTimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfUInt16.go b/pkg/fbs/comm/datalayer/ArrayOfUInt16.go index 7953f11..9791423 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfUInt16.go +++ b/pkg/fbs/comm/datalayer/ArrayOfUInt16.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfUInt16T struct { - Value []uint16 -} - -func (t *ArrayOfUInt16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfUInt16StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependUint16(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfUInt16Start(builder) - ArrayOfUInt16AddValue(builder, valueOffset) - return ArrayOfUInt16End(builder) -} - -func (rcv *ArrayOfUInt16) UnPackTo(t *ArrayOfUInt16T) { - valueLength := rcv.ValueLength() - t.Value = make([]uint16, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfUInt16) UnPack() *ArrayOfUInt16T { - if rcv == nil { return nil } - t := &ArrayOfUInt16T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfUInt16 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfUInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt16 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfUInt16{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfUInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt16 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfUInt16{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfUInt16) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfUInt16) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfUInt16) Value(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *ArrayOfUInt16) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfUInt16) MutateValue(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func ArrayOfUInt16Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfUInt16AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfUInt16StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func ArrayOfUInt16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfUInt16T struct { + Value []uint16 +} + +func (t *ArrayOfUInt16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfUInt16StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependUint16(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfUInt16Start(builder) + ArrayOfUInt16AddValue(builder, valueOffset) + return ArrayOfUInt16End(builder) +} + +func (rcv *ArrayOfUInt16) UnPackTo(t *ArrayOfUInt16T) { + valueLength := rcv.ValueLength() + t.Value = make([]uint16, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfUInt16) UnPack() *ArrayOfUInt16T { + if rcv == nil { return nil } + t := &ArrayOfUInt16T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfUInt16 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfUInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt16 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfUInt16{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfUInt16(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt16 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfUInt16{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfUInt16) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfUInt16) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfUInt16) Value(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *ArrayOfUInt16) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfUInt16) MutateValue(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func ArrayOfUInt16Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfUInt16AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfUInt16StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func ArrayOfUInt16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfUInt32.go b/pkg/fbs/comm/datalayer/ArrayOfUInt32.go index 6ece5ed..1fb1f55 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfUInt32.go +++ b/pkg/fbs/comm/datalayer/ArrayOfUInt32.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfUInt32T struct { - Value []uint32 -} - -func (t *ArrayOfUInt32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfUInt32StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependUint32(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfUInt32Start(builder) - ArrayOfUInt32AddValue(builder, valueOffset) - return ArrayOfUInt32End(builder) -} - -func (rcv *ArrayOfUInt32) UnPackTo(t *ArrayOfUInt32T) { - valueLength := rcv.ValueLength() - t.Value = make([]uint32, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfUInt32) UnPack() *ArrayOfUInt32T { - if rcv == nil { return nil } - t := &ArrayOfUInt32T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfUInt32 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfUInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt32 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfUInt32{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfUInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt32 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfUInt32{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfUInt32) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfUInt32) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfUInt32) Value(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *ArrayOfUInt32) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfUInt32) MutateValue(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func ArrayOfUInt32Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfUInt32AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfUInt32StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfUInt32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfUInt32T struct { + Value []uint32 +} + +func (t *ArrayOfUInt32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfUInt32StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependUint32(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfUInt32Start(builder) + ArrayOfUInt32AddValue(builder, valueOffset) + return ArrayOfUInt32End(builder) +} + +func (rcv *ArrayOfUInt32) UnPackTo(t *ArrayOfUInt32T) { + valueLength := rcv.ValueLength() + t.Value = make([]uint32, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfUInt32) UnPack() *ArrayOfUInt32T { + if rcv == nil { return nil } + t := &ArrayOfUInt32T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfUInt32 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfUInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt32 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfUInt32{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfUInt32(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt32 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfUInt32{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfUInt32) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfUInt32) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfUInt32) Value(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *ArrayOfUInt32) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfUInt32) MutateValue(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func ArrayOfUInt32Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfUInt32AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfUInt32StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfUInt32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfUInt64.go b/pkg/fbs/comm/datalayer/ArrayOfUInt64.go index ca0eb81..8b249a7 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfUInt64.go +++ b/pkg/fbs/comm/datalayer/ArrayOfUInt64.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfUInt64T struct { - Value []uint64 -} - -func (t *ArrayOfUInt64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - ArrayOfUInt64StartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependUint64(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - ArrayOfUInt64Start(builder) - ArrayOfUInt64AddValue(builder, valueOffset) - return ArrayOfUInt64End(builder) -} - -func (rcv *ArrayOfUInt64) UnPackTo(t *ArrayOfUInt64T) { - valueLength := rcv.ValueLength() - t.Value = make([]uint64, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *ArrayOfUInt64) UnPack() *ArrayOfUInt64T { - if rcv == nil { return nil } - t := &ArrayOfUInt64T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfUInt64 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfUInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt64 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfUInt64{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfUInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt64 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfUInt64{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfUInt64) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfUInt64) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfUInt64) Value(j int) uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *ArrayOfUInt64) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfUInt64) MutateValue(j int, n uint64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func ArrayOfUInt64Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfUInt64AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfUInt64StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func ArrayOfUInt64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfUInt64T struct { + Value []uint64 +} + +func (t *ArrayOfUInt64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + ArrayOfUInt64StartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependUint64(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + ArrayOfUInt64Start(builder) + ArrayOfUInt64AddValue(builder, valueOffset) + return ArrayOfUInt64End(builder) +} + +func (rcv *ArrayOfUInt64) UnPackTo(t *ArrayOfUInt64T) { + valueLength := rcv.ValueLength() + t.Value = make([]uint64, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *ArrayOfUInt64) UnPack() *ArrayOfUInt64T { + if rcv == nil { return nil } + t := &ArrayOfUInt64T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfUInt64 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfUInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt64 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfUInt64{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfUInt64(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt64 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfUInt64{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfUInt64) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfUInt64) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfUInt64) Value(j int) uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayOfUInt64) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfUInt64) MutateValue(j int, n uint64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayOfUInt64Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfUInt64AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfUInt64StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayOfUInt64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ArrayOfUInt8.go b/pkg/fbs/comm/datalayer/ArrayOfUInt8.go index df2964c..0f3ceb3 100644 --- a/pkg/fbs/comm/datalayer/ArrayOfUInt8.go +++ b/pkg/fbs/comm/datalayer/ArrayOfUInt8.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfUInt8T struct { - Value []byte -} - -func (t *ArrayOfUInt8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueOffset = builder.CreateByteString(t.Value) - } - ArrayOfUInt8Start(builder) - ArrayOfUInt8AddValue(builder, valueOffset) - return ArrayOfUInt8End(builder) -} - -func (rcv *ArrayOfUInt8) UnPackTo(t *ArrayOfUInt8T) { - t.Value = rcv.ValueBytes() -} - -func (rcv *ArrayOfUInt8) UnPack() *ArrayOfUInt8T { - if rcv == nil { return nil } - t := &ArrayOfUInt8T{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfUInt8 struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfUInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt8 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfUInt8{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfUInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt8 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfUInt8{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfUInt8) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfUInt8) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfUInt8) Value(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ArrayOfUInt8) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayOfUInt8) ValueBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ArrayOfUInt8) MutateValue(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ArrayOfUInt8Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfUInt8AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func ArrayOfUInt8StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ArrayOfUInt8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfUInt8T struct { + Value []byte +} + +func (t *ArrayOfUInt8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueOffset = builder.CreateByteString(t.Value) + } + ArrayOfUInt8Start(builder) + ArrayOfUInt8AddValue(builder, valueOffset) + return ArrayOfUInt8End(builder) +} + +func (rcv *ArrayOfUInt8) UnPackTo(t *ArrayOfUInt8T) { + t.Value = rcv.ValueBytes() +} + +func (rcv *ArrayOfUInt8) UnPack() *ArrayOfUInt8T { + if rcv == nil { return nil } + t := &ArrayOfUInt8T{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfUInt8 struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfUInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt8 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfUInt8{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfUInt8(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUInt8 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfUInt8{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfUInt8) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfUInt8) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfUInt8) Value(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ArrayOfUInt8) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayOfUInt8) ValueBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ArrayOfUInt8) MutateValue(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ArrayOfUInt8Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfUInt8AddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func ArrayOfUInt8StartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ArrayOfUInt8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Bool8.go b/pkg/fbs/comm/datalayer/Bool8.go index 6260ee2..a462f78 100644 --- a/pkg/fbs/comm/datalayer/Bool8.go +++ b/pkg/fbs/comm/datalayer/Bool8.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Bool8T struct { - Value bool -} - -func (t *Bool8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Bool8Start(builder) - Bool8AddValue(builder, t.Value) - return Bool8End(builder) -} - -func (rcv *Bool8) UnPackTo(t *Bool8T) { - t.Value = rcv.Value() -} - -func (rcv *Bool8) UnPack() *Bool8T { - if rcv == nil { return nil } - t := &Bool8T{} - rcv.UnPackTo(t) - return t -} - -type Bool8 struct { - _tab flatbuffers.Table -} - -func GetRootAsBool8(buf []byte, offset flatbuffers.UOffsetT) *Bool8 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Bool8{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBool8(buf []byte, offset flatbuffers.UOffsetT) *Bool8 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Bool8{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Bool8) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Bool8) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Bool8) Value() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Bool8) MutateValue(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func Bool8Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Bool8AddValue(builder *flatbuffers.Builder, value bool) { - builder.PrependBoolSlot(0, value, false) -} -func Bool8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Bool8T struct { + Value bool +} + +func (t *Bool8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Bool8Start(builder) + Bool8AddValue(builder, t.Value) + return Bool8End(builder) +} + +func (rcv *Bool8) UnPackTo(t *Bool8T) { + t.Value = rcv.Value() +} + +func (rcv *Bool8) UnPack() *Bool8T { + if rcv == nil { return nil } + t := &Bool8T{} + rcv.UnPackTo(t) + return t +} + +type Bool8 struct { + _tab flatbuffers.Table +} + +func GetRootAsBool8(buf []byte, offset flatbuffers.UOffsetT) *Bool8 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Bool8{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBool8(buf []byte, offset flatbuffers.UOffsetT) *Bool8 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Bool8{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Bool8) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Bool8) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Bool8) Value() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Bool8) MutateValue(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func Bool8Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Bool8AddValue(builder *flatbuffers.Builder, value bool) { + builder.PrependBoolSlot(0, value, false) +} +func Bool8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ChangeEvents.go b/pkg/fbs/comm/datalayer/ChangeEvents.go index f4dcc52..f39ac4c 100644 --- a/pkg/fbs/comm/datalayer/ChangeEvents.go +++ b/pkg/fbs/comm/datalayer/ChangeEvents.go @@ -1,114 +1,114 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ChangeEventsT struct { - ValueChange DataChangeTrigger - BrowselistChange bool - MetadataChange bool -} - -func (t *ChangeEventsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ChangeEventsStart(builder) - ChangeEventsAddValueChange(builder, t.ValueChange) - ChangeEventsAddBrowselistChange(builder, t.BrowselistChange) - ChangeEventsAddMetadataChange(builder, t.MetadataChange) - return ChangeEventsEnd(builder) -} - -func (rcv *ChangeEvents) UnPackTo(t *ChangeEventsT) { - t.ValueChange = rcv.ValueChange() - t.BrowselistChange = rcv.BrowselistChange() - t.MetadataChange = rcv.MetadataChange() -} - -func (rcv *ChangeEvents) UnPack() *ChangeEventsT { - if rcv == nil { return nil } - t := &ChangeEventsT{} - rcv.UnPackTo(t) - return t -} - -type ChangeEvents struct { - _tab flatbuffers.Table -} - -func GetRootAsChangeEvents(buf []byte, offset flatbuffers.UOffsetT) *ChangeEvents { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ChangeEvents{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsChangeEvents(buf []byte, offset flatbuffers.UOffsetT) *ChangeEvents { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ChangeEvents{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ChangeEvents) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ChangeEvents) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ChangeEvents) ValueChange() DataChangeTrigger { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return DataChangeTrigger(rcv._tab.GetInt32(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *ChangeEvents) MutateValueChange(n DataChangeTrigger) bool { - return rcv._tab.MutateInt32Slot(4, int32(n)) -} - -func (rcv *ChangeEvents) BrowselistChange() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *ChangeEvents) MutateBrowselistChange(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *ChangeEvents) MetadataChange() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *ChangeEvents) MutateMetadataChange(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func ChangeEventsStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func ChangeEventsAddValueChange(builder *flatbuffers.Builder, valueChange DataChangeTrigger) { - builder.PrependInt32Slot(0, int32(valueChange), 1) -} -func ChangeEventsAddBrowselistChange(builder *flatbuffers.Builder, browselistChange bool) { - builder.PrependBoolSlot(1, browselistChange, false) -} -func ChangeEventsAddMetadataChange(builder *flatbuffers.Builder, metadataChange bool) { - builder.PrependBoolSlot(2, metadataChange, false) -} -func ChangeEventsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ChangeEventsT struct { + ValueChange DataChangeTrigger + BrowselistChange bool + MetadataChange bool +} + +func (t *ChangeEventsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ChangeEventsStart(builder) + ChangeEventsAddValueChange(builder, t.ValueChange) + ChangeEventsAddBrowselistChange(builder, t.BrowselistChange) + ChangeEventsAddMetadataChange(builder, t.MetadataChange) + return ChangeEventsEnd(builder) +} + +func (rcv *ChangeEvents) UnPackTo(t *ChangeEventsT) { + t.ValueChange = rcv.ValueChange() + t.BrowselistChange = rcv.BrowselistChange() + t.MetadataChange = rcv.MetadataChange() +} + +func (rcv *ChangeEvents) UnPack() *ChangeEventsT { + if rcv == nil { return nil } + t := &ChangeEventsT{} + rcv.UnPackTo(t) + return t +} + +type ChangeEvents struct { + _tab flatbuffers.Table +} + +func GetRootAsChangeEvents(buf []byte, offset flatbuffers.UOffsetT) *ChangeEvents { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ChangeEvents{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsChangeEvents(buf []byte, offset flatbuffers.UOffsetT) *ChangeEvents { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ChangeEvents{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ChangeEvents) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ChangeEvents) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ChangeEvents) ValueChange() DataChangeTrigger { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return DataChangeTrigger(rcv._tab.GetInt32(o + rcv._tab.Pos)) + } + return 1 +} + +func (rcv *ChangeEvents) MutateValueChange(n DataChangeTrigger) bool { + return rcv._tab.MutateInt32Slot(4, int32(n)) +} + +func (rcv *ChangeEvents) BrowselistChange() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *ChangeEvents) MutateBrowselistChange(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *ChangeEvents) MetadataChange() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *ChangeEvents) MutateMetadataChange(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func ChangeEventsStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func ChangeEventsAddValueChange(builder *flatbuffers.Builder, valueChange DataChangeTrigger) { + builder.PrependInt32Slot(0, int32(valueChange), 1) +} +func ChangeEventsAddBrowselistChange(builder *flatbuffers.Builder, browselistChange bool) { + builder.PrependBoolSlot(1, browselistChange, false) +} +func ChangeEventsAddMetadataChange(builder *flatbuffers.Builder, metadataChange bool) { + builder.PrependBoolSlot(2, metadataChange, false) +} +func ChangeEventsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/CheckOperations.go b/pkg/fbs/comm/datalayer/CheckOperations.go index 7cebd12..d371522 100644 --- a/pkg/fbs/comm/datalayer/CheckOperations.go +++ b/pkg/fbs/comm/datalayer/CheckOperations.go @@ -1,90 +1,94 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CheckOperationsT struct { - Address string - Token string -} - -func (t *CheckOperationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - addressOffset := builder.CreateString(t.Address) - tokenOffset := builder.CreateString(t.Token) - CheckOperationsStart(builder) - CheckOperationsAddAddress(builder, addressOffset) - CheckOperationsAddToken(builder, tokenOffset) - return CheckOperationsEnd(builder) -} - -func (rcv *CheckOperations) UnPackTo(t *CheckOperationsT) { - t.Address = string(rcv.Address()) - t.Token = string(rcv.Token()) -} - -func (rcv *CheckOperations) UnPack() *CheckOperationsT { - if rcv == nil { return nil } - t := &CheckOperationsT{} - rcv.UnPackTo(t) - return t -} - -type CheckOperations struct { - _tab flatbuffers.Table -} - -func GetRootAsCheckOperations(buf []byte, offset flatbuffers.UOffsetT) *CheckOperations { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CheckOperations{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCheckOperations(buf []byte, offset flatbuffers.UOffsetT) *CheckOperations { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CheckOperations{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CheckOperations) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CheckOperations) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CheckOperations) Address() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CheckOperations) Token() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func CheckOperationsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CheckOperationsAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) -} -func CheckOperationsAddToken(builder *flatbuffers.Builder, token flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(token), 0) -} -func CheckOperationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CheckOperationsT struct { + Address string + Token string +} + +func (t *CheckOperationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + addressOffset := builder.CreateString(t.Address) + tokenOffset := builder.CreateString(t.Token) + CheckOperationsStart(builder) + CheckOperationsAddAddress(builder, addressOffset) + CheckOperationsAddToken(builder, tokenOffset) + return CheckOperationsEnd(builder) +} + +func (rcv *CheckOperations) UnPackTo(t *CheckOperationsT) { + t.Address = string(rcv.Address()) + t.Token = string(rcv.Token()) +} + +func (rcv *CheckOperations) UnPack() *CheckOperationsT { + if rcv == nil { return nil } + t := &CheckOperationsT{} + rcv.UnPackTo(t) + return t +} + +type CheckOperations struct { + _tab flatbuffers.Table +} + +func GetRootAsCheckOperations(buf []byte, offset flatbuffers.UOffsetT) *CheckOperations { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CheckOperations{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCheckOperations(buf []byte, offset flatbuffers.UOffsetT) *CheckOperations { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CheckOperations{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CheckOperations) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CheckOperations) Table() flatbuffers.Table { + return rcv._tab +} + +/// address to check +func (rcv *CheckOperations) Address() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// address to check +/// token to check +func (rcv *CheckOperations) Token() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// token to check +func CheckOperationsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CheckOperationsAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) +} +func CheckOperationsAddToken(builder *flatbuffers.Builder, token flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(token), 0) +} +func CheckOperationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Claim.go b/pkg/fbs/comm/datalayer/Claim.go index 1785c75..6417909 100644 --- a/pkg/fbs/comm/datalayer/Claim.go +++ b/pkg/fbs/comm/datalayer/Claim.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ClaimT struct { - Claim string - Value string -} - -func (t *ClaimT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - claimOffset := builder.CreateString(t.Claim) - valueOffset := builder.CreateString(t.Value) - ClaimStart(builder) - ClaimAddClaim(builder, claimOffset) - ClaimAddValue(builder, valueOffset) - return ClaimEnd(builder) -} - -func (rcv *Claim) UnPackTo(t *ClaimT) { - t.Claim = string(rcv.Claim()) - t.Value = string(rcv.Value()) -} - -func (rcv *Claim) UnPack() *ClaimT { - if rcv == nil { return nil } - t := &ClaimT{} - rcv.UnPackTo(t) - return t -} - -type Claim struct { - _tab flatbuffers.Table -} - -func GetRootAsClaim(buf []byte, offset flatbuffers.UOffsetT) *Claim { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Claim{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsClaim(buf []byte, offset flatbuffers.UOffsetT) *Claim { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Claim{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Claim) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Claim) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Claim) Claim() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Claim) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ClaimStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ClaimAddClaim(builder *flatbuffers.Builder, claim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(claim), 0) -} -func ClaimAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) -} -func ClaimEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ClaimT struct { + Claim string + Value string +} + +func (t *ClaimT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + claimOffset := builder.CreateString(t.Claim) + valueOffset := builder.CreateString(t.Value) + ClaimStart(builder) + ClaimAddClaim(builder, claimOffset) + ClaimAddValue(builder, valueOffset) + return ClaimEnd(builder) +} + +func (rcv *Claim) UnPackTo(t *ClaimT) { + t.Claim = string(rcv.Claim()) + t.Value = string(rcv.Value()) +} + +func (rcv *Claim) UnPack() *ClaimT { + if rcv == nil { return nil } + t := &ClaimT{} + rcv.UnPackTo(t) + return t +} + +type Claim struct { + _tab flatbuffers.Table +} + +func GetRootAsClaim(buf []byte, offset flatbuffers.UOffsetT) *Claim { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Claim{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsClaim(buf []byte, offset flatbuffers.UOffsetT) *Claim { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Claim{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Claim) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Claim) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Claim) Claim() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Claim) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func ClaimStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ClaimAddClaim(builder *flatbuffers.Builder, claim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(claim), 0) +} +func ClaimAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func ClaimEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Counting.go b/pkg/fbs/comm/datalayer/Counting.go index 51c6d4f..736f3ca 100644 --- a/pkg/fbs/comm/datalayer/Counting.go +++ b/pkg/fbs/comm/datalayer/Counting.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CountingT struct { - CountSubscriptions bool -} - -func (t *CountingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - CountingStart(builder) - CountingAddCountSubscriptions(builder, t.CountSubscriptions) - return CountingEnd(builder) -} - -func (rcv *Counting) UnPackTo(t *CountingT) { - t.CountSubscriptions = rcv.CountSubscriptions() -} - -func (rcv *Counting) UnPack() *CountingT { - if rcv == nil { return nil } - t := &CountingT{} - rcv.UnPackTo(t) - return t -} - -type Counting struct { - _tab flatbuffers.Table -} - -func GetRootAsCounting(buf []byte, offset flatbuffers.UOffsetT) *Counting { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Counting{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCounting(buf []byte, offset flatbuffers.UOffsetT) *Counting { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Counting{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Counting) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Counting) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Counting) CountSubscriptions() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Counting) MutateCountSubscriptions(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func CountingStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CountingAddCountSubscriptions(builder *flatbuffers.Builder, countSubscriptions bool) { - builder.PrependBoolSlot(0, countSubscriptions, false) -} -func CountingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CountingT struct { + CountSubscriptions bool +} + +func (t *CountingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CountingStart(builder) + CountingAddCountSubscriptions(builder, t.CountSubscriptions) + return CountingEnd(builder) +} + +func (rcv *Counting) UnPackTo(t *CountingT) { + t.CountSubscriptions = rcv.CountSubscriptions() +} + +func (rcv *Counting) UnPack() *CountingT { + if rcv == nil { return nil } + t := &CountingT{} + rcv.UnPackTo(t) + return t +} + +type Counting struct { + _tab flatbuffers.Table +} + +func GetRootAsCounting(buf []byte, offset flatbuffers.UOffsetT) *Counting { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Counting{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCounting(buf []byte, offset flatbuffers.UOffsetT) *Counting { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Counting{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Counting) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Counting) Table() flatbuffers.Table { + return rcv._tab +} + +/// Nodes are counted if subscribed multiple times. Unsubscribe only accures if counter for this node is 0. +func (rcv *Counting) CountSubscriptions() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Nodes are counted if subscribed multiple times. Unsubscribe only accures if counter for this node is 0. +func (rcv *Counting) MutateCountSubscriptions(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func CountingStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CountingAddCountSubscriptions(builder *flatbuffers.Builder, countSubscriptions bool) { + builder.PrependBoolSlot(0, countSubscriptions, false) +} +func CountingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/DataChangeFilter.go b/pkg/fbs/comm/datalayer/DataChangeFilter.go index d63267e..428a977 100644 --- a/pkg/fbs/comm/datalayer/DataChangeFilter.go +++ b/pkg/fbs/comm/datalayer/DataChangeFilter.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DataChangeFilterT struct { - DeadBandValue float32 -} - -func (t *DataChangeFilterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DataChangeFilterStart(builder) - DataChangeFilterAddDeadBandValue(builder, t.DeadBandValue) - return DataChangeFilterEnd(builder) -} - -func (rcv *DataChangeFilter) UnPackTo(t *DataChangeFilterT) { - t.DeadBandValue = rcv.DeadBandValue() -} - -func (rcv *DataChangeFilter) UnPack() *DataChangeFilterT { - if rcv == nil { return nil } - t := &DataChangeFilterT{} - rcv.UnPackTo(t) - return t -} - -type DataChangeFilter struct { - _tab flatbuffers.Table -} - -func GetRootAsDataChangeFilter(buf []byte, offset flatbuffers.UOffsetT) *DataChangeFilter { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DataChangeFilter{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDataChangeFilter(buf []byte, offset flatbuffers.UOffsetT) *DataChangeFilter { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DataChangeFilter{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DataChangeFilter) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DataChangeFilter) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DataChangeFilter) DeadBandValue() float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat32(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *DataChangeFilter) MutateDeadBandValue(n float32) bool { - return rcv._tab.MutateFloat32Slot(4, n) -} - -func DataChangeFilterStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func DataChangeFilterAddDeadBandValue(builder *flatbuffers.Builder, deadBandValue float32) { - builder.PrependFloat32Slot(0, deadBandValue, 0.0) -} -func DataChangeFilterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DataChangeFilterT struct { + DeadBandValue float32 +} + +func (t *DataChangeFilterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DataChangeFilterStart(builder) + DataChangeFilterAddDeadBandValue(builder, t.DeadBandValue) + return DataChangeFilterEnd(builder) +} + +func (rcv *DataChangeFilter) UnPackTo(t *DataChangeFilterT) { + t.DeadBandValue = rcv.DeadBandValue() +} + +func (rcv *DataChangeFilter) UnPack() *DataChangeFilterT { + if rcv == nil { return nil } + t := &DataChangeFilterT{} + rcv.UnPackTo(t) + return t +} + +type DataChangeFilter struct { + _tab flatbuffers.Table +} + +func GetRootAsDataChangeFilter(buf []byte, offset flatbuffers.UOffsetT) *DataChangeFilter { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DataChangeFilter{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDataChangeFilter(buf []byte, offset flatbuffers.UOffsetT) *DataChangeFilter { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DataChangeFilter{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DataChangeFilter) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DataChangeFilter) Table() flatbuffers.Table { + return rcv._tab +} + +/// If (abs(lastCapturedValue - newValue) > deadBandValue) capture(newValue); +func (rcv *DataChangeFilter) DeadBandValue() float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat32(o + rcv._tab.Pos) + } + return 0.0 +} + +/// If (abs(lastCapturedValue - newValue) > deadBandValue) capture(newValue); +func (rcv *DataChangeFilter) MutateDeadBandValue(n float32) bool { + return rcv._tab.MutateFloat32Slot(4, n) +} + +func DataChangeFilterStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DataChangeFilterAddDeadBandValue(builder *flatbuffers.Builder, deadBandValue float32) { + builder.PrependFloat32Slot(0, deadBandValue, 0.0) +} +func DataChangeFilterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/DataChangeTrigger.go b/pkg/fbs/comm/datalayer/DataChangeTrigger.go index f9c8639..ca0b464 100644 --- a/pkg/fbs/comm/datalayer/DataChangeTrigger.go +++ b/pkg/fbs/comm/datalayer/DataChangeTrigger.go @@ -1,32 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type DataChangeTrigger int32 - -const ( - DataChangeTriggerStatus DataChangeTrigger = 0 - DataChangeTriggerStatusValue DataChangeTrigger = 1 - DataChangeTriggerStatusValueTimestamp DataChangeTrigger = 2 -) - -var EnumNamesDataChangeTrigger = map[DataChangeTrigger]string{ - DataChangeTriggerStatus: "Status", - DataChangeTriggerStatusValue: "StatusValue", - DataChangeTriggerStatusValueTimestamp: "StatusValueTimestamp", -} - -var EnumValuesDataChangeTrigger = map[string]DataChangeTrigger{ - "Status": DataChangeTriggerStatus, - "StatusValue": DataChangeTriggerStatusValue, - "StatusValueTimestamp": DataChangeTriggerStatusValueTimestamp, -} - -func (v DataChangeTrigger) String() string { - if s, ok := EnumNamesDataChangeTrigger[v]; ok { - return s - } - return "DataChangeTrigger(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type DataChangeTrigger int32 + +const ( + /// Inform if STATUS changes + DataChangeTriggerStatus DataChangeTrigger = 0 + /// Inform if Value or Status changed + DataChangeTriggerStatusValue DataChangeTrigger = 1 + /// Inform if Status Or Status Or Timestamp changes (inform always) + DataChangeTriggerStatusValueTimestamp DataChangeTrigger = 2 +) + +var EnumNamesDataChangeTrigger = map[DataChangeTrigger]string{ + DataChangeTriggerStatus: "Status", + DataChangeTriggerStatusValue: "StatusValue", + DataChangeTriggerStatusValueTimestamp: "StatusValueTimestamp", +} + +var EnumValuesDataChangeTrigger = map[string]DataChangeTrigger{ + "Status": DataChangeTriggerStatus, + "StatusValue": DataChangeTriggerStatusValue, + "StatusValueTimestamp": DataChangeTriggerStatusValueTimestamp, +} + +func (v DataChangeTrigger) String() string { + if s, ok := EnumNamesDataChangeTrigger[v]; ok { + return s + } + return "DataChangeTrigger(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/DebugChannel.go b/pkg/fbs/comm/datalayer/DebugChannel.go index 6d7829a..20b4d3d 100644 --- a/pkg/fbs/comm/datalayer/DebugChannel.go +++ b/pkg/fbs/comm/datalayer/DebugChannel.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DebugChannelT struct { - Name string - Address string - IsTrigger bool -} - -func (t *DebugChannelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - addressOffset := builder.CreateString(t.Address) - DebugChannelStart(builder) - DebugChannelAddName(builder, nameOffset) - DebugChannelAddAddress(builder, addressOffset) - DebugChannelAddIsTrigger(builder, t.IsTrigger) - return DebugChannelEnd(builder) -} - -func (rcv *DebugChannel) UnPackTo(t *DebugChannelT) { - t.Name = string(rcv.Name()) - t.Address = string(rcv.Address()) - t.IsTrigger = rcv.IsTrigger() -} - -func (rcv *DebugChannel) UnPack() *DebugChannelT { - if rcv == nil { return nil } - t := &DebugChannelT{} - rcv.UnPackTo(t) - return t -} - -type DebugChannel struct { - _tab flatbuffers.Table -} - -func GetRootAsDebugChannel(buf []byte, offset flatbuffers.UOffsetT) *DebugChannel { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DebugChannel{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDebugChannel(buf []byte, offset flatbuffers.UOffsetT) *DebugChannel { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DebugChannel{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DebugChannel) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DebugChannel) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DebugChannel) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DebugChannel) Address() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DebugChannel) IsTrigger() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *DebugChannel) MutateIsTrigger(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func DebugChannelStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func DebugChannelAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func DebugChannelAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(address), 0) -} -func DebugChannelAddIsTrigger(builder *flatbuffers.Builder, isTrigger bool) { - builder.PrependBoolSlot(2, isTrigger, false) -} -func DebugChannelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DebugChannelT struct { + Name string + Address string + IsTrigger bool +} + +func (t *DebugChannelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + addressOffset := builder.CreateString(t.Address) + DebugChannelStart(builder) + DebugChannelAddName(builder, nameOffset) + DebugChannelAddAddress(builder, addressOffset) + DebugChannelAddIsTrigger(builder, t.IsTrigger) + return DebugChannelEnd(builder) +} + +func (rcv *DebugChannel) UnPackTo(t *DebugChannelT) { + t.Name = string(rcv.Name()) + t.Address = string(rcv.Address()) + t.IsTrigger = rcv.IsTrigger() +} + +func (rcv *DebugChannel) UnPack() *DebugChannelT { + if rcv == nil { return nil } + t := &DebugChannelT{} + rcv.UnPackTo(t) + return t +} + +type DebugChannel struct { + _tab flatbuffers.Table +} + +func GetRootAsDebugChannel(buf []byte, offset flatbuffers.UOffsetT) *DebugChannel { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DebugChannel{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDebugChannel(buf []byte, offset flatbuffers.UOffsetT) *DebugChannel { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DebugChannel{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DebugChannel) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DebugChannel) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DebugChannel) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DebugChannel) Address() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DebugChannel) IsTrigger() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *DebugChannel) MutateIsTrigger(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func DebugChannelStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func DebugChannelAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func DebugChannelAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(address), 0) +} +func DebugChannelAddIsTrigger(builder *flatbuffers.Builder, isTrigger bool) { + builder.PrependBoolSlot(2, isTrigger, false) +} +func DebugChannelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/DiagMoreInfo.go b/pkg/fbs/comm/datalayer/DiagMoreInfo.go index 5f08e93..d0b5d8c 100644 --- a/pkg/fbs/comm/datalayer/DiagMoreInfo.go +++ b/pkg/fbs/comm/datalayer/DiagMoreInfo.go @@ -1,90 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagMoreInfoT struct { - Key string - Value string -} - -func (t *DiagMoreInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - keyOffset := builder.CreateString(t.Key) - valueOffset := builder.CreateString(t.Value) - DiagMoreInfoStart(builder) - DiagMoreInfoAddKey(builder, keyOffset) - DiagMoreInfoAddValue(builder, valueOffset) - return DiagMoreInfoEnd(builder) -} - -func (rcv *DiagMoreInfo) UnPackTo(t *DiagMoreInfoT) { - t.Key = string(rcv.Key()) - t.Value = string(rcv.Value()) -} - -func (rcv *DiagMoreInfo) UnPack() *DiagMoreInfoT { - if rcv == nil { return nil } - t := &DiagMoreInfoT{} - rcv.UnPackTo(t) - return t -} - -type DiagMoreInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagMoreInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagMoreInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagMoreInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagMoreInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagMoreInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagMoreInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagMoreInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagMoreInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DiagMoreInfo) Key() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DiagMoreInfo) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DiagMoreInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func DiagMoreInfoAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(key), 0) -} -func DiagMoreInfoAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) -} -func DiagMoreInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DiagMoreInfoT struct { + Key string + Value string +} + +func (t *DiagMoreInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + keyOffset := builder.CreateString(t.Key) + valueOffset := builder.CreateString(t.Value) + DiagMoreInfoStart(builder) + DiagMoreInfoAddKey(builder, keyOffset) + DiagMoreInfoAddValue(builder, valueOffset) + return DiagMoreInfoEnd(builder) +} + +func (rcv *DiagMoreInfo) UnPackTo(t *DiagMoreInfoT) { + t.Key = string(rcv.Key()) + t.Value = string(rcv.Value()) +} + +func (rcv *DiagMoreInfo) UnPack() *DiagMoreInfoT { + if rcv == nil { return nil } + t := &DiagMoreInfoT{} + rcv.UnPackTo(t) + return t +} + +type DiagMoreInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagMoreInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagMoreInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagMoreInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagMoreInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagMoreInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagMoreInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagMoreInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagMoreInfo) Table() flatbuffers.Table { + return rcv._tab +} + +/// defined key +/// "requiredLicenses": list of required licences seperated by "," +/// "requiredScopes": list of required scopes seperated by "," +func (rcv *DiagMoreInfo) Key() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// defined key +/// "requiredLicenses": list of required licences seperated by "," +/// "requiredScopes": list of required scopes seperated by "," +/// corresponding value +func (rcv *DiagMoreInfo) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// corresponding value +func DiagMoreInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DiagMoreInfoAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(key), 0) +} +func DiagMoreInfoAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func DiagMoreInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Diagnosis.go b/pkg/fbs/comm/datalayer/Diagnosis.go index bb0f52e..165e8bc 100644 --- a/pkg/fbs/comm/datalayer/Diagnosis.go +++ b/pkg/fbs/comm/datalayer/Diagnosis.go @@ -1,222 +1,234 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagnosisT struct { - MainDiagnosisCode uint32 - DetailedDiagnosisCode uint32 - DynamicDescription string - Entity string - MoreInfo []*DiagMoreInfoT - Cause []*DiagnosisT -} - -func (t *DiagnosisT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) - entityOffset := builder.CreateString(t.Entity) - moreInfoOffset := flatbuffers.UOffsetT(0) - if t.MoreInfo != nil { - moreInfoLength := len(t.MoreInfo) - moreInfoOffsets := make([]flatbuffers.UOffsetT, moreInfoLength) - for j := 0; j < moreInfoLength; j++ { - moreInfoOffsets[j] = t.MoreInfo[j].Pack(builder) - } - DiagnosisStartMoreInfoVector(builder, moreInfoLength) - for j := moreInfoLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(moreInfoOffsets[j]) - } - moreInfoOffset = builder.EndVector(moreInfoLength) - } - causeOffset := flatbuffers.UOffsetT(0) - if t.Cause != nil { - causeLength := len(t.Cause) - causeOffsets := make([]flatbuffers.UOffsetT, causeLength) - for j := 0; j < causeLength; j++ { - causeOffsets[j] = t.Cause[j].Pack(builder) - } - DiagnosisStartCauseVector(builder, causeLength) - for j := causeLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(causeOffsets[j]) - } - causeOffset = builder.EndVector(causeLength) - } - DiagnosisStart(builder) - DiagnosisAddMainDiagnosisCode(builder, t.MainDiagnosisCode) - DiagnosisAddDetailedDiagnosisCode(builder, t.DetailedDiagnosisCode) - DiagnosisAddDynamicDescription(builder, dynamicDescriptionOffset) - DiagnosisAddEntity(builder, entityOffset) - DiagnosisAddMoreInfo(builder, moreInfoOffset) - DiagnosisAddCause(builder, causeOffset) - return DiagnosisEnd(builder) -} - -func (rcv *Diagnosis) UnPackTo(t *DiagnosisT) { - t.MainDiagnosisCode = rcv.MainDiagnosisCode() - t.DetailedDiagnosisCode = rcv.DetailedDiagnosisCode() - t.DynamicDescription = string(rcv.DynamicDescription()) - t.Entity = string(rcv.Entity()) - moreInfoLength := rcv.MoreInfoLength() - t.MoreInfo = make([]*DiagMoreInfoT, moreInfoLength) - for j := 0; j < moreInfoLength; j++ { - x := DiagMoreInfo{} - rcv.MoreInfo(&x, j) - t.MoreInfo[j] = x.UnPack() - } - causeLength := rcv.CauseLength() - t.Cause = make([]*DiagnosisT, causeLength) - for j := 0; j < causeLength; j++ { - x := Diagnosis{} - rcv.Cause(&x, j) - t.Cause[j] = x.UnPack() - } -} - -func (rcv *Diagnosis) UnPack() *DiagnosisT { - if rcv == nil { return nil } - t := &DiagnosisT{} - rcv.UnPackTo(t) - return t -} - -type Diagnosis struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *Diagnosis { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Diagnosis{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *Diagnosis { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Diagnosis{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Diagnosis) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Diagnosis) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Diagnosis) MainDiagnosisCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Diagnosis) MutateMainDiagnosisCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *Diagnosis) DetailedDiagnosisCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Diagnosis) MutateDetailedDiagnosisCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Diagnosis) DynamicDescription() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Diagnosis) Entity() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Diagnosis) MoreInfo(obj *DiagMoreInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Diagnosis) MoreInfoLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Diagnosis) Cause(obj *Diagnosis, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Diagnosis) CauseLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func DiagnosisStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func DiagnosisAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode uint32) { - builder.PrependUint32Slot(0, mainDiagnosisCode, 0) -} -func DiagnosisAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode uint32) { - builder.PrependUint32Slot(1, detailedDiagnosisCode, 0) -} -func DiagnosisAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dynamicDescription), 0) -} -func DiagnosisAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(entity), 0) -} -func DiagnosisAddMoreInfo(builder *flatbuffers.Builder, moreInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(moreInfo), 0) -} -func DiagnosisStartMoreInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func DiagnosisAddCause(builder *flatbuffers.Builder, cause flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(cause), 0) -} -func DiagnosisStartCauseVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func DiagnosisEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DiagnosisT struct { + MainDiagnosisCode uint32 + DetailedDiagnosisCode uint32 + DynamicDescription string + Entity string + MoreInfo []*DiagMoreInfoT + Cause []*DiagnosisT +} + +func (t *DiagnosisT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) + entityOffset := builder.CreateString(t.Entity) + moreInfoOffset := flatbuffers.UOffsetT(0) + if t.MoreInfo != nil { + moreInfoLength := len(t.MoreInfo) + moreInfoOffsets := make([]flatbuffers.UOffsetT, moreInfoLength) + for j := 0; j < moreInfoLength; j++ { + moreInfoOffsets[j] = t.MoreInfo[j].Pack(builder) + } + DiagnosisStartMoreInfoVector(builder, moreInfoLength) + for j := moreInfoLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(moreInfoOffsets[j]) + } + moreInfoOffset = builder.EndVector(moreInfoLength) + } + causeOffset := flatbuffers.UOffsetT(0) + if t.Cause != nil { + causeLength := len(t.Cause) + causeOffsets := make([]flatbuffers.UOffsetT, causeLength) + for j := 0; j < causeLength; j++ { + causeOffsets[j] = t.Cause[j].Pack(builder) + } + DiagnosisStartCauseVector(builder, causeLength) + for j := causeLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(causeOffsets[j]) + } + causeOffset = builder.EndVector(causeLength) + } + DiagnosisStart(builder) + DiagnosisAddMainDiagnosisCode(builder, t.MainDiagnosisCode) + DiagnosisAddDetailedDiagnosisCode(builder, t.DetailedDiagnosisCode) + DiagnosisAddDynamicDescription(builder, dynamicDescriptionOffset) + DiagnosisAddEntity(builder, entityOffset) + DiagnosisAddMoreInfo(builder, moreInfoOffset) + DiagnosisAddCause(builder, causeOffset) + return DiagnosisEnd(builder) +} + +func (rcv *Diagnosis) UnPackTo(t *DiagnosisT) { + t.MainDiagnosisCode = rcv.MainDiagnosisCode() + t.DetailedDiagnosisCode = rcv.DetailedDiagnosisCode() + t.DynamicDescription = string(rcv.DynamicDescription()) + t.Entity = string(rcv.Entity()) + moreInfoLength := rcv.MoreInfoLength() + t.MoreInfo = make([]*DiagMoreInfoT, moreInfoLength) + for j := 0; j < moreInfoLength; j++ { + x := DiagMoreInfo{} + rcv.MoreInfo(&x, j) + t.MoreInfo[j] = x.UnPack() + } + causeLength := rcv.CauseLength() + t.Cause = make([]*DiagnosisT, causeLength) + for j := 0; j < causeLength; j++ { + x := Diagnosis{} + rcv.Cause(&x, j) + t.Cause[j] = x.UnPack() + } +} + +func (rcv *Diagnosis) UnPack() *DiagnosisT { + if rcv == nil { return nil } + t := &DiagnosisT{} + rcv.UnPackTo(t) + return t +} + +type Diagnosis struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *Diagnosis { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Diagnosis{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *Diagnosis { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Diagnosis{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Diagnosis) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Diagnosis) Table() flatbuffers.Table { + return rcv._tab +} + +/// Main diagnosis code for diagnosis system. E.g.: 0x3F0A0901 +func (rcv *Diagnosis) MainDiagnosisCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Main diagnosis code for diagnosis system. E.g.: 0x3F0A0901 +func (rcv *Diagnosis) MutateMainDiagnosisCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// Detailed diagnosis code for diagnosis system. E.g.: 0xC00E2050 +func (rcv *Diagnosis) DetailedDiagnosisCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Detailed diagnosis code for diagnosis system. E.g.: 0xC00E2050 +func (rcv *Diagnosis) MutateDetailedDiagnosisCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// A human-readable explanation with even more detailed information specific to this occurrence of the problem. +func (rcv *Diagnosis) DynamicDescription() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// A human-readable explanation with even more detailed information specific to this occurrence of the problem. +/// Resource or entity which causes the problem E.g.: motion/axs/Axis_1 +func (rcv *Diagnosis) Entity() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Resource or entity which causes the problem E.g.: motion/axs/Axis_1 +/// More information about the diagnosis +func (rcv *Diagnosis) MoreInfo(obj *DiagMoreInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Diagnosis) MoreInfoLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// More information about the diagnosis +/// Cause of this diagnosis +func (rcv *Diagnosis) Cause(obj *Diagnosis, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Diagnosis) CauseLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Cause of this diagnosis +func DiagnosisStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func DiagnosisAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode uint32) { + builder.PrependUint32Slot(0, mainDiagnosisCode, 0) +} +func DiagnosisAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode uint32) { + builder.PrependUint32Slot(1, detailedDiagnosisCode, 0) +} +func DiagnosisAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dynamicDescription), 0) +} +func DiagnosisAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(entity), 0) +} +func DiagnosisAddMoreInfo(builder *flatbuffers.Builder, moreInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(moreInfo), 0) +} +func DiagnosisStartMoreInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func DiagnosisAddCause(builder *flatbuffers.Builder, cause flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(cause), 0) +} +func DiagnosisStartCauseVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func DiagnosisEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/DisplayFormat.go b/pkg/fbs/comm/datalayer/DisplayFormat.go index eed9f7d..0b56337 100644 --- a/pkg/fbs/comm/datalayer/DisplayFormat.go +++ b/pkg/fbs/comm/datalayer/DisplayFormat.go @@ -1,38 +1,38 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type DisplayFormat int8 - -const ( - DisplayFormatAuto DisplayFormat = 0 - DisplayFormatBin DisplayFormat = 1 - DisplayFormatOct DisplayFormat = 2 - DisplayFormatDec DisplayFormat = 3 - DisplayFormatHex DisplayFormat = 4 -) - -var EnumNamesDisplayFormat = map[DisplayFormat]string{ - DisplayFormatAuto: "Auto", - DisplayFormatBin: "Bin", - DisplayFormatOct: "Oct", - DisplayFormatDec: "Dec", - DisplayFormatHex: "Hex", -} - -var EnumValuesDisplayFormat = map[string]DisplayFormat{ - "Auto": DisplayFormatAuto, - "Bin": DisplayFormatBin, - "Oct": DisplayFormatOct, - "Dec": DisplayFormatDec, - "Hex": DisplayFormatHex, -} - -func (v DisplayFormat) String() string { - if s, ok := EnumNamesDisplayFormat[v]; ok { - return s - } - return "DisplayFormat(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type DisplayFormat int8 + +const ( + DisplayFormatAuto DisplayFormat = 0 + DisplayFormatBin DisplayFormat = 1 + DisplayFormatOct DisplayFormat = 2 + DisplayFormatDec DisplayFormat = 3 + DisplayFormatHex DisplayFormat = 4 +) + +var EnumNamesDisplayFormat = map[DisplayFormat]string{ + DisplayFormatAuto: "Auto", + DisplayFormatBin: "Bin", + DisplayFormatOct: "Oct", + DisplayFormatDec: "Dec", + DisplayFormatHex: "Hex", +} + +var EnumValuesDisplayFormat = map[string]DisplayFormat{ + "Auto": DisplayFormatAuto, + "Bin": DisplayFormatBin, + "Oct": DisplayFormatOct, + "Dec": DisplayFormatDec, + "Hex": DisplayFormatHex, +} + +func (v DisplayFormat) String() string { + if s, ok := EnumNamesDisplayFormat[v]; ok { + return s + } + return "DisplayFormat(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/Double.go b/pkg/fbs/comm/datalayer/Double.go new file mode 100644 index 0000000..0e4045c --- /dev/null +++ b/pkg/fbs/comm/datalayer/Double.go @@ -0,0 +1,78 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DoubleT struct { + Value float64 +} + +func (t *DoubleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DoubleStart(builder) + DoubleAddValue(builder, t.Value) + return DoubleEnd(builder) +} + +func (rcv *Double) UnPackTo(t *DoubleT) { + t.Value = rcv.Value() +} + +func (rcv *Double) UnPack() *DoubleT { + if rcv == nil { return nil } + t := &DoubleT{} + rcv.UnPackTo(t) + return t +} + +type Double struct { + _tab flatbuffers.Table +} + +func GetRootAsDouble(buf []byte, offset flatbuffers.UOffsetT) *Double { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Double{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDouble(buf []byte, offset flatbuffers.UOffsetT) *Double { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Double{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Double) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Double) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Double) Value() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Double) MutateValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func DoubleStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DoubleAddValue(builder *flatbuffers.Builder, value float64) { + builder.PrependFloat64Slot(0, value, 0.0) +} +func DoubleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Extension.go b/pkg/fbs/comm/datalayer/Extension.go index ee410bc..53e3f78 100644 --- a/pkg/fbs/comm/datalayer/Extension.go +++ b/pkg/fbs/comm/datalayer/Extension.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ExtensionT struct { - Key string - Value string -} - -func (t *ExtensionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - keyOffset := builder.CreateString(t.Key) - valueOffset := builder.CreateString(t.Value) - ExtensionStart(builder) - ExtensionAddKey(builder, keyOffset) - ExtensionAddValue(builder, valueOffset) - return ExtensionEnd(builder) -} - -func (rcv *Extension) UnPackTo(t *ExtensionT) { - t.Key = string(rcv.Key()) - t.Value = string(rcv.Value()) -} - -func (rcv *Extension) UnPack() *ExtensionT { - if rcv == nil { return nil } - t := &ExtensionT{} - rcv.UnPackTo(t) - return t -} - -type Extension struct { - _tab flatbuffers.Table -} - -func GetRootAsExtension(buf []byte, offset flatbuffers.UOffsetT) *Extension { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Extension{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsExtension(buf []byte, offset flatbuffers.UOffsetT) *Extension { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Extension{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Extension) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Extension) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Extension) Key() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Extension) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ExtensionStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ExtensionAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(key), 0) -} -func ExtensionAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) -} -func ExtensionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ExtensionT struct { + Key string + Value string +} + +func (t *ExtensionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + keyOffset := builder.CreateString(t.Key) + valueOffset := builder.CreateString(t.Value) + ExtensionStart(builder) + ExtensionAddKey(builder, keyOffset) + ExtensionAddValue(builder, valueOffset) + return ExtensionEnd(builder) +} + +func (rcv *Extension) UnPackTo(t *ExtensionT) { + t.Key = string(rcv.Key()) + t.Value = string(rcv.Value()) +} + +func (rcv *Extension) UnPack() *ExtensionT { + if rcv == nil { return nil } + t := &ExtensionT{} + rcv.UnPackTo(t) + return t +} + +type Extension struct { + _tab flatbuffers.Table +} + +func GetRootAsExtension(buf []byte, offset flatbuffers.UOffsetT) *Extension { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Extension{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsExtension(buf []byte, offset flatbuffers.UOffsetT) *Extension { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Extension{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Extension) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Extension) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Extension) Key() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Extension) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func ExtensionStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ExtensionAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(key), 0) +} +func ExtensionAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func ExtensionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/FactoryStats.go b/pkg/fbs/comm/datalayer/FactoryStats.go index 5b1d63f..f5f301c 100644 --- a/pkg/fbs/comm/datalayer/FactoryStats.go +++ b/pkg/fbs/comm/datalayer/FactoryStats.go @@ -1,132 +1,140 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FactoryStatsT struct { - NumClients uint32 - NumProviders uint32 - OpenClientRequests uint32 - OpenProviderRequests uint32 -} - -func (t *FactoryStatsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - FactoryStatsStart(builder) - FactoryStatsAddNumClients(builder, t.NumClients) - FactoryStatsAddNumProviders(builder, t.NumProviders) - FactoryStatsAddOpenClientRequests(builder, t.OpenClientRequests) - FactoryStatsAddOpenProviderRequests(builder, t.OpenProviderRequests) - return FactoryStatsEnd(builder) -} - -func (rcv *FactoryStats) UnPackTo(t *FactoryStatsT) { - t.NumClients = rcv.NumClients() - t.NumProviders = rcv.NumProviders() - t.OpenClientRequests = rcv.OpenClientRequests() - t.OpenProviderRequests = rcv.OpenProviderRequests() -} - -func (rcv *FactoryStats) UnPack() *FactoryStatsT { - if rcv == nil { return nil } - t := &FactoryStatsT{} - rcv.UnPackTo(t) - return t -} - -type FactoryStats struct { - _tab flatbuffers.Table -} - -func GetRootAsFactoryStats(buf []byte, offset flatbuffers.UOffsetT) *FactoryStats { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FactoryStats{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFactoryStats(buf []byte, offset flatbuffers.UOffsetT) *FactoryStats { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FactoryStats{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FactoryStats) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FactoryStats) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FactoryStats) NumClients() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FactoryStats) MutateNumClients(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *FactoryStats) NumProviders() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FactoryStats) MutateNumProviders(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *FactoryStats) OpenClientRequests() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FactoryStats) MutateOpenClientRequests(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *FactoryStats) OpenProviderRequests() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FactoryStats) MutateOpenProviderRequests(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func FactoryStatsStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func FactoryStatsAddNumClients(builder *flatbuffers.Builder, numClients uint32) { - builder.PrependUint32Slot(0, numClients, 0) -} -func FactoryStatsAddNumProviders(builder *flatbuffers.Builder, numProviders uint32) { - builder.PrependUint32Slot(1, numProviders, 0) -} -func FactoryStatsAddOpenClientRequests(builder *flatbuffers.Builder, openClientRequests uint32) { - builder.PrependUint32Slot(2, openClientRequests, 0) -} -func FactoryStatsAddOpenProviderRequests(builder *flatbuffers.Builder, openProviderRequests uint32) { - builder.PrependUint32Slot(3, openProviderRequests, 0) -} -func FactoryStatsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FactoryStatsT struct { + NumClients uint32 + NumProviders uint32 + OpenClientRequests uint32 + OpenProviderRequests uint32 +} + +func (t *FactoryStatsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + FactoryStatsStart(builder) + FactoryStatsAddNumClients(builder, t.NumClients) + FactoryStatsAddNumProviders(builder, t.NumProviders) + FactoryStatsAddOpenClientRequests(builder, t.OpenClientRequests) + FactoryStatsAddOpenProviderRequests(builder, t.OpenProviderRequests) + return FactoryStatsEnd(builder) +} + +func (rcv *FactoryStats) UnPackTo(t *FactoryStatsT) { + t.NumClients = rcv.NumClients() + t.NumProviders = rcv.NumProviders() + t.OpenClientRequests = rcv.OpenClientRequests() + t.OpenProviderRequests = rcv.OpenProviderRequests() +} + +func (rcv *FactoryStats) UnPack() *FactoryStatsT { + if rcv == nil { return nil } + t := &FactoryStatsT{} + rcv.UnPackTo(t) + return t +} + +type FactoryStats struct { + _tab flatbuffers.Table +} + +func GetRootAsFactoryStats(buf []byte, offset flatbuffers.UOffsetT) *FactoryStats { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FactoryStats{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFactoryStats(buf []byte, offset flatbuffers.UOffsetT) *FactoryStats { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FactoryStats{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FactoryStats) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FactoryStats) Table() flatbuffers.Table { + return rcv._tab +} + +/// number of clients +func (rcv *FactoryStats) NumClients() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// number of clients +func (rcv *FactoryStats) MutateNumClients(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// number of provider +func (rcv *FactoryStats) NumProviders() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// number of provider +func (rcv *FactoryStats) MutateNumProviders(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// number of open requests from clients +func (rcv *FactoryStats) OpenClientRequests() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// number of open requests from clients +func (rcv *FactoryStats) MutateOpenClientRequests(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// number of open requests from provider +func (rcv *FactoryStats) OpenProviderRequests() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// number of open requests from provider +func (rcv *FactoryStats) MutateOpenProviderRequests(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func FactoryStatsStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func FactoryStatsAddNumClients(builder *flatbuffers.Builder, numClients uint32) { + builder.PrependUint32Slot(0, numClients, 0) +} +func FactoryStatsAddNumProviders(builder *flatbuffers.Builder, numProviders uint32) { + builder.PrependUint32Slot(1, numProviders, 0) +} +func FactoryStatsAddOpenClientRequests(builder *flatbuffers.Builder, openClientRequests uint32) { + builder.PrependUint32Slot(2, openClientRequests, 0) +} +func FactoryStatsAddOpenProviderRequests(builder *flatbuffers.Builder, openProviderRequests uint32) { + builder.PrependUint32Slot(3, openProviderRequests, 0) +} +func FactoryStatsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Float32.go b/pkg/fbs/comm/datalayer/Float32.go index ed5c4f5..6cc17cd 100644 --- a/pkg/fbs/comm/datalayer/Float32.go +++ b/pkg/fbs/comm/datalayer/Float32.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Float32T struct { - Value float32 -} - -func (t *Float32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Float32Start(builder) - Float32AddValue(builder, t.Value) - return Float32End(builder) -} - -func (rcv *Float32) UnPackTo(t *Float32T) { - t.Value = rcv.Value() -} - -func (rcv *Float32) UnPack() *Float32T { - if rcv == nil { return nil } - t := &Float32T{} - rcv.UnPackTo(t) - return t -} - -type Float32 struct { - _tab flatbuffers.Table -} - -func GetRootAsFloat32(buf []byte, offset flatbuffers.UOffsetT) *Float32 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Float32{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFloat32(buf []byte, offset flatbuffers.UOffsetT) *Float32 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Float32{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Float32) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Float32) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Float32) Value() float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat32(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Float32) MutateValue(n float32) bool { - return rcv._tab.MutateFloat32Slot(4, n) -} - -func Float32Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Float32AddValue(builder *flatbuffers.Builder, value float32) { - builder.PrependFloat32Slot(0, value, 0.0) -} -func Float32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Float32T struct { + Value float32 +} + +func (t *Float32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Float32Start(builder) + Float32AddValue(builder, t.Value) + return Float32End(builder) +} + +func (rcv *Float32) UnPackTo(t *Float32T) { + t.Value = rcv.Value() +} + +func (rcv *Float32) UnPack() *Float32T { + if rcv == nil { return nil } + t := &Float32T{} + rcv.UnPackTo(t) + return t +} + +type Float32 struct { + _tab flatbuffers.Table +} + +func GetRootAsFloat32(buf []byte, offset flatbuffers.UOffsetT) *Float32 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Float32{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFloat32(buf []byte, offset flatbuffers.UOffsetT) *Float32 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Float32{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Float32) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Float32) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Float32) Value() float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat32(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Float32) MutateValue(n float32) bool { + return rcv._tab.MutateFloat32Slot(4, n) +} + +func Float32Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Float32AddValue(builder *flatbuffers.Builder, value float32) { + builder.PrependFloat32Slot(0, value, 0.0) +} +func Float32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Float64.go b/pkg/fbs/comm/datalayer/Float64.go index 90ed264..e21878e 100644 --- a/pkg/fbs/comm/datalayer/Float64.go +++ b/pkg/fbs/comm/datalayer/Float64.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Float64T struct { - Value float64 -} - -func (t *Float64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Float64Start(builder) - Float64AddValue(builder, t.Value) - return Float64End(builder) -} - -func (rcv *Float64) UnPackTo(t *Float64T) { - t.Value = rcv.Value() -} - -func (rcv *Float64) UnPack() *Float64T { - if rcv == nil { return nil } - t := &Float64T{} - rcv.UnPackTo(t) - return t -} - -type Float64 struct { - _tab flatbuffers.Table -} - -func GetRootAsFloat64(buf []byte, offset flatbuffers.UOffsetT) *Float64 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Float64{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFloat64(buf []byte, offset flatbuffers.UOffsetT) *Float64 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Float64{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Float64) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Float64) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Float64) Value() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Float64) MutateValue(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func Float64Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Float64AddValue(builder *flatbuffers.Builder, value float64) { - builder.PrependFloat64Slot(0, value, 0.0) -} -func Float64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Float64T struct { + Value float64 +} + +func (t *Float64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Float64Start(builder) + Float64AddValue(builder, t.Value) + return Float64End(builder) +} + +func (rcv *Float64) UnPackTo(t *Float64T) { + t.Value = rcv.Value() +} + +func (rcv *Float64) UnPack() *Float64T { + if rcv == nil { return nil } + t := &Float64T{} + rcv.UnPackTo(t) + return t +} + +type Float64 struct { + _tab flatbuffers.Table +} + +func GetRootAsFloat64(buf []byte, offset flatbuffers.UOffsetT) *Float64 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Float64{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFloat64(buf []byte, offset flatbuffers.UOffsetT) *Float64 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Float64{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Float64) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Float64) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Float64) Value() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Float64) MutateValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func Float64Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Float64AddValue(builder *flatbuffers.Builder, value float64) { + builder.PrependFloat64Slot(0, value, 0.0) +} +func Float64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Int16.go b/pkg/fbs/comm/datalayer/Int16.go index b2ac256..7f4e9bf 100644 --- a/pkg/fbs/comm/datalayer/Int16.go +++ b/pkg/fbs/comm/datalayer/Int16.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int16T struct { - Value int16 -} - -func (t *Int16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int16Start(builder) - Int16AddValue(builder, t.Value) - return Int16End(builder) -} - -func (rcv *Int16) UnPackTo(t *Int16T) { - t.Value = rcv.Value() -} - -func (rcv *Int16) UnPack() *Int16T { - if rcv == nil { return nil } - t := &Int16T{} - rcv.UnPackTo(t) - return t -} - -type Int16 struct { - _tab flatbuffers.Table -} - -func GetRootAsInt16(buf []byte, offset flatbuffers.UOffsetT) *Int16 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int16{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt16(buf []byte, offset flatbuffers.UOffsetT) *Int16 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int16{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int16) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int16) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int16) Value() int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int16) MutateValue(n int16) bool { - return rcv._tab.MutateInt16Slot(4, n) -} - -func Int16Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int16AddValue(builder *flatbuffers.Builder, value int16) { - builder.PrependInt16Slot(0, value, 0) -} -func Int16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int16T struct { + Value int16 +} + +func (t *Int16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int16Start(builder) + Int16AddValue(builder, t.Value) + return Int16End(builder) +} + +func (rcv *Int16) UnPackTo(t *Int16T) { + t.Value = rcv.Value() +} + +func (rcv *Int16) UnPack() *Int16T { + if rcv == nil { return nil } + t := &Int16T{} + rcv.UnPackTo(t) + return t +} + +type Int16 struct { + _tab flatbuffers.Table +} + +func GetRootAsInt16(buf []byte, offset flatbuffers.UOffsetT) *Int16 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int16{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt16(buf []byte, offset flatbuffers.UOffsetT) *Int16 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int16{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int16) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int16) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int16) Value() int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int16) MutateValue(n int16) bool { + return rcv._tab.MutateInt16Slot(4, n) +} + +func Int16Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int16AddValue(builder *flatbuffers.Builder, value int16) { + builder.PrependInt16Slot(0, value, 0) +} +func Int16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Int32.go b/pkg/fbs/comm/datalayer/Int32.go index d086d3d..d1de6bf 100644 --- a/pkg/fbs/comm/datalayer/Int32.go +++ b/pkg/fbs/comm/datalayer/Int32.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int32T struct { - Value int32 -} - -func (t *Int32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int32Start(builder) - Int32AddValue(builder, t.Value) - return Int32End(builder) -} - -func (rcv *Int32) UnPackTo(t *Int32T) { - t.Value = rcv.Value() -} - -func (rcv *Int32) UnPack() *Int32T { - if rcv == nil { return nil } - t := &Int32T{} - rcv.UnPackTo(t) - return t -} - -type Int32 struct { - _tab flatbuffers.Table -} - -func GetRootAsInt32(buf []byte, offset flatbuffers.UOffsetT) *Int32 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int32{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt32(buf []byte, offset flatbuffers.UOffsetT) *Int32 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int32{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int32) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int32) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int32) Value() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int32) MutateValue(n int32) bool { - return rcv._tab.MutateInt32Slot(4, n) -} - -func Int32Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int32AddValue(builder *flatbuffers.Builder, value int32) { - builder.PrependInt32Slot(0, value, 0) -} -func Int32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int32T struct { + Value int32 +} + +func (t *Int32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int32Start(builder) + Int32AddValue(builder, t.Value) + return Int32End(builder) +} + +func (rcv *Int32) UnPackTo(t *Int32T) { + t.Value = rcv.Value() +} + +func (rcv *Int32) UnPack() *Int32T { + if rcv == nil { return nil } + t := &Int32T{} + rcv.UnPackTo(t) + return t +} + +type Int32 struct { + _tab flatbuffers.Table +} + +func GetRootAsInt32(buf []byte, offset flatbuffers.UOffsetT) *Int32 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int32{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt32(buf []byte, offset flatbuffers.UOffsetT) *Int32 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int32{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int32) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int32) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int32) Value() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int32) MutateValue(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +func Int32Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int32AddValue(builder *flatbuffers.Builder, value int32) { + builder.PrependInt32Slot(0, value, 0) +} +func Int32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Int64.go b/pkg/fbs/comm/datalayer/Int64.go index 8a52354..4ea0468 100644 --- a/pkg/fbs/comm/datalayer/Int64.go +++ b/pkg/fbs/comm/datalayer/Int64.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int64T struct { - Value int64 -} - -func (t *Int64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int64Start(builder) - Int64AddValue(builder, t.Value) - return Int64End(builder) -} - -func (rcv *Int64) UnPackTo(t *Int64T) { - t.Value = rcv.Value() -} - -func (rcv *Int64) UnPack() *Int64T { - if rcv == nil { return nil } - t := &Int64T{} - rcv.UnPackTo(t) - return t -} - -type Int64 struct { - _tab flatbuffers.Table -} - -func GetRootAsInt64(buf []byte, offset flatbuffers.UOffsetT) *Int64 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int64{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt64(buf []byte, offset flatbuffers.UOffsetT) *Int64 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int64{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int64) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int64) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int64) Value() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int64) MutateValue(n int64) bool { - return rcv._tab.MutateInt64Slot(4, n) -} - -func Int64Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int64AddValue(builder *flatbuffers.Builder, value int64) { - builder.PrependInt64Slot(0, value, 0) -} -func Int64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int64T struct { + Value int64 +} + +func (t *Int64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int64Start(builder) + Int64AddValue(builder, t.Value) + return Int64End(builder) +} + +func (rcv *Int64) UnPackTo(t *Int64T) { + t.Value = rcv.Value() +} + +func (rcv *Int64) UnPack() *Int64T { + if rcv == nil { return nil } + t := &Int64T{} + rcv.UnPackTo(t) + return t +} + +type Int64 struct { + _tab flatbuffers.Table +} + +func GetRootAsInt64(buf []byte, offset flatbuffers.UOffsetT) *Int64 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int64{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt64(buf []byte, offset flatbuffers.UOffsetT) *Int64 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int64{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int64) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int64) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int64) Value() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int64) MutateValue(n int64) bool { + return rcv._tab.MutateInt64Slot(4, n) +} + +func Int64Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int64AddValue(builder *flatbuffers.Builder, value int64) { + builder.PrependInt64Slot(0, value, 0) +} +func Int64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Int8.go b/pkg/fbs/comm/datalayer/Int8.go index 766e588..c8250ba 100644 --- a/pkg/fbs/comm/datalayer/Int8.go +++ b/pkg/fbs/comm/datalayer/Int8.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int8T struct { - Value int8 -} - -func (t *Int8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int8Start(builder) - Int8AddValue(builder, t.Value) - return Int8End(builder) -} - -func (rcv *Int8) UnPackTo(t *Int8T) { - t.Value = rcv.Value() -} - -func (rcv *Int8) UnPack() *Int8T { - if rcv == nil { return nil } - t := &Int8T{} - rcv.UnPackTo(t) - return t -} - -type Int8 struct { - _tab flatbuffers.Table -} - -func GetRootAsInt8(buf []byte, offset flatbuffers.UOffsetT) *Int8 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int8{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt8(buf []byte, offset flatbuffers.UOffsetT) *Int8 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int8{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int8) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int8) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int8) Value() int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int8) MutateValue(n int8) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -func Int8Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int8AddValue(builder *flatbuffers.Builder, value int8) { - builder.PrependInt8Slot(0, value, 0) -} -func Int8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int8T struct { + Value int8 +} + +func (t *Int8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int8Start(builder) + Int8AddValue(builder, t.Value) + return Int8End(builder) +} + +func (rcv *Int8) UnPackTo(t *Int8T) { + t.Value = rcv.Value() +} + +func (rcv *Int8) UnPack() *Int8T { + if rcv == nil { return nil } + t := &Int8T{} + rcv.UnPackTo(t) + return t +} + +type Int8 struct { + _tab flatbuffers.Table +} + +func GetRootAsInt8(buf []byte, offset flatbuffers.UOffsetT) *Int8 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int8{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt8(buf []byte, offset flatbuffers.UOffsetT) *Int8 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int8{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int8) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int8) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int8) Value() int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt8(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int8) MutateValue(n int8) bool { + return rcv._tab.MutateInt8Slot(4, n) +} + +func Int8Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int8AddValue(builder *flatbuffers.Builder, value int8) { + builder.PrependInt8Slot(0, value, 0) +} +func Int8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/LocaleText.go b/pkg/fbs/comm/datalayer/LocaleText.go index 0125615..9c5418d 100644 --- a/pkg/fbs/comm/datalayer/LocaleText.go +++ b/pkg/fbs/comm/datalayer/LocaleText.go @@ -1,90 +1,92 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LocaleTextT struct { - Id string - Text string -} - -func (t *LocaleTextT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - idOffset := builder.CreateString(t.Id) - textOffset := builder.CreateString(t.Text) - LocaleTextStart(builder) - LocaleTextAddId(builder, idOffset) - LocaleTextAddText(builder, textOffset) - return LocaleTextEnd(builder) -} - -func (rcv *LocaleText) UnPackTo(t *LocaleTextT) { - t.Id = string(rcv.Id()) - t.Text = string(rcv.Text()) -} - -func (rcv *LocaleText) UnPack() *LocaleTextT { - if rcv == nil { return nil } - t := &LocaleTextT{} - rcv.UnPackTo(t) - return t -} - -type LocaleText struct { - _tab flatbuffers.Table -} - -func GetRootAsLocaleText(buf []byte, offset flatbuffers.UOffsetT) *LocaleText { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LocaleText{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLocaleText(buf []byte, offset flatbuffers.UOffsetT) *LocaleText { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LocaleText{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LocaleText) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LocaleText) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LocaleText) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LocaleText) Text() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func LocaleTextStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func LocaleTextAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) -} -func LocaleTextAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(text), 0) -} -func LocaleTextEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LocaleTextT struct { + Id string + Text string +} + +func (t *LocaleTextT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + idOffset := builder.CreateString(t.Id) + textOffset := builder.CreateString(t.Text) + LocaleTextStart(builder) + LocaleTextAddId(builder, idOffset) + LocaleTextAddText(builder, textOffset) + return LocaleTextEnd(builder) +} + +func (rcv *LocaleText) UnPackTo(t *LocaleTextT) { + t.Id = string(rcv.Id()) + t.Text = string(rcv.Text()) +} + +func (rcv *LocaleText) UnPack() *LocaleTextT { + if rcv == nil { return nil } + t := &LocaleTextT{} + rcv.UnPackTo(t) + return t +} + +type LocaleText struct { + _tab flatbuffers.Table +} + +func GetRootAsLocaleText(buf []byte, offset flatbuffers.UOffsetT) *LocaleText { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LocaleText{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLocaleText(buf []byte, offset flatbuffers.UOffsetT) *LocaleText { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LocaleText{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LocaleText) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LocaleText) Table() flatbuffers.Table { + return rcv._tab +} + +/// iso 639.1 +func (rcv *LocaleText) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// iso 639.1 +func (rcv *LocaleText) Text() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func LocaleTextStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func LocaleTextAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) +} +func LocaleTextAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(text), 0) +} +func LocaleTextEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Memory.go b/pkg/fbs/comm/datalayer/Memory.go index 4f3dc9f..8990c5b 100644 --- a/pkg/fbs/comm/datalayer/Memory.go +++ b/pkg/fbs/comm/datalayer/Memory.go @@ -1,129 +1,137 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MemoryT struct { - Type MemoryType - Id string - SizeBytes uint32 - AccessType AccessType -} - -func (t *MemoryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - idOffset := builder.CreateString(t.Id) - MemoryStart(builder) - MemoryAddType(builder, t.Type) - MemoryAddId(builder, idOffset) - MemoryAddSizeBytes(builder, t.SizeBytes) - MemoryAddAccessType(builder, t.AccessType) - return MemoryEnd(builder) -} - -func (rcv *Memory) UnPackTo(t *MemoryT) { - t.Type = rcv.Type() - t.Id = string(rcv.Id()) - t.SizeBytes = rcv.SizeBytes() - t.AccessType = rcv.AccessType() -} - -func (rcv *Memory) UnPack() *MemoryT { - if rcv == nil { return nil } - t := &MemoryT{} - rcv.UnPackTo(t) - return t -} - -type Memory struct { - _tab flatbuffers.Table -} - -func GetRootAsMemory(buf []byte, offset flatbuffers.UOffsetT) *Memory { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Memory{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMemory(buf []byte, offset flatbuffers.UOffsetT) *Memory { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Memory{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Memory) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Memory) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Memory) Type() MemoryType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return MemoryType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Memory) MutateType(n MemoryType) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *Memory) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Memory) SizeBytes() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Memory) MutateSizeBytes(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *Memory) AccessType() AccessType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return AccessType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Memory) MutateAccessType(n AccessType) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -func MemoryStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func MemoryAddType(builder *flatbuffers.Builder, type_ MemoryType) { - builder.PrependInt8Slot(0, int8(type_), 0) -} -func MemoryAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) -} -func MemoryAddSizeBytes(builder *flatbuffers.Builder, sizeBytes uint32) { - builder.PrependUint32Slot(2, sizeBytes, 0) -} -func MemoryAddAccessType(builder *flatbuffers.Builder, accessType AccessType) { - builder.PrependInt8Slot(3, int8(accessType), 0) -} -func MemoryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MemoryT struct { + Type MemoryType + Id string + SizeBytes uint32 + AccessType AccessType +} + +func (t *MemoryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + idOffset := builder.CreateString(t.Id) + MemoryStart(builder) + MemoryAddType(builder, t.Type) + MemoryAddId(builder, idOffset) + MemoryAddSizeBytes(builder, t.SizeBytes) + MemoryAddAccessType(builder, t.AccessType) + return MemoryEnd(builder) +} + +func (rcv *Memory) UnPackTo(t *MemoryT) { + t.Type = rcv.Type() + t.Id = string(rcv.Id()) + t.SizeBytes = rcv.SizeBytes() + t.AccessType = rcv.AccessType() +} + +func (rcv *Memory) UnPack() *MemoryT { + if rcv == nil { return nil } + t := &MemoryT{} + rcv.UnPackTo(t) + return t +} + +type Memory struct { + _tab flatbuffers.Table +} + +func GetRootAsMemory(buf []byte, offset flatbuffers.UOffsetT) *Memory { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Memory{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMemory(buf []byte, offset flatbuffers.UOffsetT) *Memory { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Memory{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Memory) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Memory) Table() flatbuffers.Table { + return rcv._tab +} + +/// memory type +func (rcv *Memory) Type() MemoryType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return MemoryType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// memory type +func (rcv *Memory) MutateType(n MemoryType) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +/// identification of the memory - contains how to access memory +func (rcv *Memory) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// identification of the memory - contains how to access memory +/// size of usable bytes of memory +func (rcv *Memory) SizeBytes() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// size of usable bytes of memory +func (rcv *Memory) MutateSizeBytes(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// how to access memory +func (rcv *Memory) AccessType() AccessType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return AccessType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// how to access memory +func (rcv *Memory) MutateAccessType(n AccessType) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +func MemoryStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func MemoryAddType(builder *flatbuffers.Builder, type_ MemoryType) { + builder.PrependInt8Slot(0, int8(type_), 0) +} +func MemoryAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) +} +func MemoryAddSizeBytes(builder *flatbuffers.Builder, sizeBytes uint32) { + builder.PrependUint32Slot(2, sizeBytes, 0) +} +func MemoryAddAccessType(builder *flatbuffers.Builder, accessType AccessType) { + builder.PrependInt8Slot(3, int8(accessType), 0) +} +func MemoryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/MemoryMap.go b/pkg/fbs/comm/datalayer/MemoryMap.go index 7895b8e..b7503ff 100644 --- a/pkg/fbs/comm/datalayer/MemoryMap.go +++ b/pkg/fbs/comm/datalayer/MemoryMap.go @@ -1,126 +1,150 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MemoryMapT struct { - Variables []*VariableT - Revision uint32 -} - -func (t *MemoryMapT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - variablesOffset := flatbuffers.UOffsetT(0) - if t.Variables != nil { - variablesLength := len(t.Variables) - variablesOffsets := make([]flatbuffers.UOffsetT, variablesLength) - for j := 0; j < variablesLength; j++ { - variablesOffsets[j] = t.Variables[j].Pack(builder) - } - MemoryMapStartVariablesVector(builder, variablesLength) - for j := variablesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(variablesOffsets[j]) - } - variablesOffset = builder.EndVector(variablesLength) - } - MemoryMapStart(builder) - MemoryMapAddVariables(builder, variablesOffset) - MemoryMapAddRevision(builder, t.Revision) - return MemoryMapEnd(builder) -} - -func (rcv *MemoryMap) UnPackTo(t *MemoryMapT) { - variablesLength := rcv.VariablesLength() - t.Variables = make([]*VariableT, variablesLength) - for j := 0; j < variablesLength; j++ { - x := Variable{} - rcv.Variables(&x, j) - t.Variables[j] = x.UnPack() - } - t.Revision = rcv.Revision() -} - -func (rcv *MemoryMap) UnPack() *MemoryMapT { - if rcv == nil { return nil } - t := &MemoryMapT{} - rcv.UnPackTo(t) - return t -} - -type MemoryMap struct { - _tab flatbuffers.Table -} - -func GetRootAsMemoryMap(buf []byte, offset flatbuffers.UOffsetT) *MemoryMap { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MemoryMap{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMemoryMap(buf []byte, offset flatbuffers.UOffsetT) *MemoryMap { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MemoryMap{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MemoryMap) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MemoryMap) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MemoryMap) Variables(obj *Variable, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *MemoryMap) VariablesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *MemoryMap) Revision() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *MemoryMap) MutateRevision(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func MemoryMapStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func MemoryMapAddVariables(builder *flatbuffers.Builder, variables flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(variables), 0) -} -func MemoryMapStartVariablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MemoryMapAddRevision(builder *flatbuffers.Builder, revision uint32) { - builder.PrependUint32Slot(1, revision, 0) -} -func MemoryMapEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MemoryMapT struct { + Variables []*VariableT + Revision uint32 + DisableInputImage bool +} + +func (t *MemoryMapT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + variablesOffset := flatbuffers.UOffsetT(0) + if t.Variables != nil { + variablesLength := len(t.Variables) + variablesOffsets := make([]flatbuffers.UOffsetT, variablesLength) + for j := 0; j < variablesLength; j++ { + variablesOffsets[j] = t.Variables[j].Pack(builder) + } + MemoryMapStartVariablesVector(builder, variablesLength) + for j := variablesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(variablesOffsets[j]) + } + variablesOffset = builder.EndVector(variablesLength) + } + MemoryMapStart(builder) + MemoryMapAddVariables(builder, variablesOffset) + MemoryMapAddRevision(builder, t.Revision) + MemoryMapAddDisableInputImage(builder, t.DisableInputImage) + return MemoryMapEnd(builder) +} + +func (rcv *MemoryMap) UnPackTo(t *MemoryMapT) { + variablesLength := rcv.VariablesLength() + t.Variables = make([]*VariableT, variablesLength) + for j := 0; j < variablesLength; j++ { + x := Variable{} + rcv.Variables(&x, j) + t.Variables[j] = x.UnPack() + } + t.Revision = rcv.Revision() + t.DisableInputImage = rcv.DisableInputImage() +} + +func (rcv *MemoryMap) UnPack() *MemoryMapT { + if rcv == nil { return nil } + t := &MemoryMapT{} + rcv.UnPackTo(t) + return t +} + +type MemoryMap struct { + _tab flatbuffers.Table +} + +func GetRootAsMemoryMap(buf []byte, offset flatbuffers.UOffsetT) *MemoryMap { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MemoryMap{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMemoryMap(buf []byte, offset flatbuffers.UOffsetT) *MemoryMap { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MemoryMap{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MemoryMap) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MemoryMap) Table() flatbuffers.Table { + return rcv._tab +} + +/// array of variables +func (rcv *MemoryMap) Variables(obj *Variable, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *MemoryMap) VariablesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// array of variables +/// revision number- changes every time on variables changes +func (rcv *MemoryMap) Revision() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// revision number- changes every time on variables changes +func (rcv *MemoryMap) MutateRevision(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// Disable input buffer so save one copy from image to data +func (rcv *MemoryMap) DisableInputImage() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Disable input buffer so save one copy from image to data +func (rcv *MemoryMap) MutateDisableInputImage(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func MemoryMapStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func MemoryMapAddVariables(builder *flatbuffers.Builder, variables flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(variables), 0) +} +func MemoryMapStartVariablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MemoryMapAddRevision(builder *flatbuffers.Builder, revision uint32) { + builder.PrependUint32Slot(1, revision, 0) +} +func MemoryMapAddDisableInputImage(builder *flatbuffers.Builder, disableInputImage bool) { + builder.PrependBoolSlot(2, disableInputImage, false) +} +func MemoryMapEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/MemoryType.go b/pkg/fbs/comm/datalayer/MemoryType.go index cc1e031..a95fca5 100644 --- a/pkg/fbs/comm/datalayer/MemoryType.go +++ b/pkg/fbs/comm/datalayer/MemoryType.go @@ -1,38 +1,42 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type MemoryType int8 - -const ( - MemoryTypeUnknown MemoryType = 0 - MemoryTypeInput MemoryType = 1 - MemoryTypeOutput MemoryType = 2 - MemoryTypeSharedRetain MemoryType = 3 - MemoryTypeShared MemoryType = 4 -) - -var EnumNamesMemoryType = map[MemoryType]string{ - MemoryTypeUnknown: "Unknown", - MemoryTypeInput: "Input", - MemoryTypeOutput: "Output", - MemoryTypeSharedRetain: "SharedRetain", - MemoryTypeShared: "Shared", -} - -var EnumValuesMemoryType = map[string]MemoryType{ - "Unknown": MemoryTypeUnknown, - "Input": MemoryTypeInput, - "Output": MemoryTypeOutput, - "SharedRetain": MemoryTypeSharedRetain, - "Shared": MemoryTypeShared, -} - -func (v MemoryType) String() string { - if s, ok := EnumNamesMemoryType[v]; ok { - return s - } - return "MemoryType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type MemoryType int8 + +const ( + MemoryTypeUnknown MemoryType = 0 + /// data flow from owner to user + MemoryTypeInput MemoryType = 1 + /// data flow from user to owner + MemoryTypeOutput MemoryType = 2 + /// shared ram in retain area + MemoryTypeSharedRetain MemoryType = 3 + /// shared ram + MemoryTypeShared MemoryType = 4 +) + +var EnumNamesMemoryType = map[MemoryType]string{ + MemoryTypeUnknown: "Unknown", + MemoryTypeInput: "Input", + MemoryTypeOutput: "Output", + MemoryTypeSharedRetain: "SharedRetain", + MemoryTypeShared: "Shared", +} + +var EnumValuesMemoryType = map[string]MemoryType{ + "Unknown": MemoryTypeUnknown, + "Input": MemoryTypeInput, + "Output": MemoryTypeOutput, + "SharedRetain": MemoryTypeSharedRetain, + "Shared": MemoryTypeShared, +} + +func (v MemoryType) String() string { + if s, ok := EnumNamesMemoryType[v]; ok { + return s + } + return "MemoryType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/MessageDetail.go b/pkg/fbs/comm/datalayer/MessageDetail.go index ca12a7e..8340819 100644 --- a/pkg/fbs/comm/datalayer/MessageDetail.go +++ b/pkg/fbs/comm/datalayer/MessageDetail.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MessageDetailT struct { - Timestamp uint64 -} - -func (t *MessageDetailT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MessageDetailStart(builder) - MessageDetailAddTimestamp(builder, t.Timestamp) - return MessageDetailEnd(builder) -} - -func (rcv *MessageDetail) UnPackTo(t *MessageDetailT) { - t.Timestamp = rcv.Timestamp() -} - -func (rcv *MessageDetail) UnPack() *MessageDetailT { - if rcv == nil { return nil } - t := &MessageDetailT{} - rcv.UnPackTo(t) - return t -} - -type MessageDetail struct { - _tab flatbuffers.Table -} - -func GetRootAsMessageDetail(buf []byte, offset flatbuffers.UOffsetT) *MessageDetail { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MessageDetail{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMessageDetail(buf []byte, offset flatbuffers.UOffsetT) *MessageDetail { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MessageDetail{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MessageDetail) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MessageDetail) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MessageDetail) Timestamp() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *MessageDetail) MutateTimestamp(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func MessageDetailStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MessageDetailAddTimestamp(builder *flatbuffers.Builder, timestamp uint64) { - builder.PrependUint64Slot(0, timestamp, 0) -} -func MessageDetailEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MessageDetailT struct { + Timestamp uint64 +} + +func (t *MessageDetailT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MessageDetailStart(builder) + MessageDetailAddTimestamp(builder, t.Timestamp) + return MessageDetailEnd(builder) +} + +func (rcv *MessageDetail) UnPackTo(t *MessageDetailT) { + t.Timestamp = rcv.Timestamp() +} + +func (rcv *MessageDetail) UnPack() *MessageDetailT { + if rcv == nil { return nil } + t := &MessageDetailT{} + rcv.UnPackTo(t) + return t +} + +type MessageDetail struct { + _tab flatbuffers.Table +} + +func GetRootAsMessageDetail(buf []byte, offset flatbuffers.UOffsetT) *MessageDetail { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MessageDetail{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMessageDetail(buf []byte, offset flatbuffers.UOffsetT) *MessageDetail { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MessageDetail{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MessageDetail) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MessageDetail) Table() flatbuffers.Table { + return rcv._tab +} + +/// source timestamp of message as FILETIME +func (rcv *MessageDetail) Timestamp() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// source timestamp of message as FILETIME +func (rcv *MessageDetail) MutateTimestamp(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func MessageDetailStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MessageDetailAddTimestamp(builder *flatbuffers.Builder, timestamp uint64) { + builder.PrependUint64Slot(0, timestamp, 0) +} +func MessageDetailEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Metadata.go b/pkg/fbs/comm/datalayer/Metadata.go index 644a020..9c039f7 100644 --- a/pkg/fbs/comm/datalayer/Metadata.go +++ b/pkg/fbs/comm/datalayer/Metadata.go @@ -1,368 +1,372 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MetadataT struct { - NodeClass NodeClass - Operations *AllowedOperationsT - Description string - DescriptionUrl string - DisplayName string - DisplayFormat DisplayFormat - Unit string - Extensions []*ExtensionT - References []*ReferenceT - Descriptions []*LocaleTextT - DisplayNames []*LocaleTextT -} - -func (t *MetadataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - operationsOffset := t.Operations.Pack(builder) - descriptionOffset := builder.CreateString(t.Description) - descriptionUrlOffset := builder.CreateString(t.DescriptionUrl) - displayNameOffset := builder.CreateString(t.DisplayName) - unitOffset := builder.CreateString(t.Unit) - extensionsOffset := flatbuffers.UOffsetT(0) - if t.Extensions != nil { - extensionsLength := len(t.Extensions) - extensionsOffsets := make([]flatbuffers.UOffsetT, extensionsLength) - for j := 0; j < extensionsLength; j++ { - extensionsOffsets[j] = t.Extensions[j].Pack(builder) - } - MetadataStartExtensionsVector(builder, extensionsLength) - for j := extensionsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(extensionsOffsets[j]) - } - extensionsOffset = builder.EndVector(extensionsLength) - } - referencesOffset := flatbuffers.UOffsetT(0) - if t.References != nil { - referencesLength := len(t.References) - referencesOffsets := make([]flatbuffers.UOffsetT, referencesLength) - for j := 0; j < referencesLength; j++ { - referencesOffsets[j] = t.References[j].Pack(builder) - } - MetadataStartReferencesVector(builder, referencesLength) - for j := referencesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(referencesOffsets[j]) - } - referencesOffset = builder.EndVector(referencesLength) - } - descriptionsOffset := flatbuffers.UOffsetT(0) - if t.Descriptions != nil { - descriptionsLength := len(t.Descriptions) - descriptionsOffsets := make([]flatbuffers.UOffsetT, descriptionsLength) - for j := 0; j < descriptionsLength; j++ { - descriptionsOffsets[j] = t.Descriptions[j].Pack(builder) - } - MetadataStartDescriptionsVector(builder, descriptionsLength) - for j := descriptionsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(descriptionsOffsets[j]) - } - descriptionsOffset = builder.EndVector(descriptionsLength) - } - displayNamesOffset := flatbuffers.UOffsetT(0) - if t.DisplayNames != nil { - displayNamesLength := len(t.DisplayNames) - displayNamesOffsets := make([]flatbuffers.UOffsetT, displayNamesLength) - for j := 0; j < displayNamesLength; j++ { - displayNamesOffsets[j] = t.DisplayNames[j].Pack(builder) - } - MetadataStartDisplayNamesVector(builder, displayNamesLength) - for j := displayNamesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(displayNamesOffsets[j]) - } - displayNamesOffset = builder.EndVector(displayNamesLength) - } - MetadataStart(builder) - MetadataAddNodeClass(builder, t.NodeClass) - MetadataAddOperations(builder, operationsOffset) - MetadataAddDescription(builder, descriptionOffset) - MetadataAddDescriptionUrl(builder, descriptionUrlOffset) - MetadataAddDisplayName(builder, displayNameOffset) - MetadataAddDisplayFormat(builder, t.DisplayFormat) - MetadataAddUnit(builder, unitOffset) - MetadataAddExtensions(builder, extensionsOffset) - MetadataAddReferences(builder, referencesOffset) - MetadataAddDescriptions(builder, descriptionsOffset) - MetadataAddDisplayNames(builder, displayNamesOffset) - return MetadataEnd(builder) -} - -func (rcv *Metadata) UnPackTo(t *MetadataT) { - t.NodeClass = rcv.NodeClass() - t.Operations = rcv.Operations(nil).UnPack() - t.Description = string(rcv.Description()) - t.DescriptionUrl = string(rcv.DescriptionUrl()) - t.DisplayName = string(rcv.DisplayName()) - t.DisplayFormat = rcv.DisplayFormat() - t.Unit = string(rcv.Unit()) - extensionsLength := rcv.ExtensionsLength() - t.Extensions = make([]*ExtensionT, extensionsLength) - for j := 0; j < extensionsLength; j++ { - x := Extension{} - rcv.Extensions(&x, j) - t.Extensions[j] = x.UnPack() - } - referencesLength := rcv.ReferencesLength() - t.References = make([]*ReferenceT, referencesLength) - for j := 0; j < referencesLength; j++ { - x := Reference{} - rcv.References(&x, j) - t.References[j] = x.UnPack() - } - descriptionsLength := rcv.DescriptionsLength() - t.Descriptions = make([]*LocaleTextT, descriptionsLength) - for j := 0; j < descriptionsLength; j++ { - x := LocaleText{} - rcv.Descriptions(&x, j) - t.Descriptions[j] = x.UnPack() - } - displayNamesLength := rcv.DisplayNamesLength() - t.DisplayNames = make([]*LocaleTextT, displayNamesLength) - for j := 0; j < displayNamesLength; j++ { - x := LocaleText{} - rcv.DisplayNames(&x, j) - t.DisplayNames[j] = x.UnPack() - } -} - -func (rcv *Metadata) UnPack() *MetadataT { - if rcv == nil { return nil } - t := &MetadataT{} - rcv.UnPackTo(t) - return t -} - -type Metadata struct { - _tab flatbuffers.Table -} - -func GetRootAsMetadata(buf []byte, offset flatbuffers.UOffsetT) *Metadata { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Metadata{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMetadata(buf []byte, offset flatbuffers.UOffsetT) *Metadata { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Metadata{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Metadata) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Metadata) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Metadata) NodeClass() NodeClass { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return NodeClass(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Metadata) MutateNodeClass(n NodeClass) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *Metadata) Operations(obj *AllowedOperations) *AllowedOperations { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AllowedOperations) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Metadata) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Metadata) DescriptionUrl() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Metadata) DisplayName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Metadata) DisplayFormat() DisplayFormat { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return DisplayFormat(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Metadata) MutateDisplayFormat(n DisplayFormat) bool { - return rcv._tab.MutateInt8Slot(14, int8(n)) -} - -func (rcv *Metadata) Unit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Metadata) Extensions(obj *Extension, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Metadata) ExtensionsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Metadata) References(obj *Reference, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Metadata) ReferencesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Metadata) Descriptions(obj *LocaleText, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Metadata) DescriptionsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Metadata) DisplayNames(obj *LocaleText, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Metadata) DisplayNamesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func MetadataStart(builder *flatbuffers.Builder) { - builder.StartObject(11) -} -func MetadataAddNodeClass(builder *flatbuffers.Builder, nodeClass NodeClass) { - builder.PrependInt8Slot(0, int8(nodeClass), 0) -} -func MetadataAddOperations(builder *flatbuffers.Builder, operations flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(operations), 0) -} -func MetadataAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(description), 0) -} -func MetadataAddDescriptionUrl(builder *flatbuffers.Builder, descriptionUrl flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(descriptionUrl), 0) -} -func MetadataAddDisplayName(builder *flatbuffers.Builder, displayName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(displayName), 0) -} -func MetadataAddDisplayFormat(builder *flatbuffers.Builder, displayFormat DisplayFormat) { - builder.PrependInt8Slot(5, int8(displayFormat), 0) -} -func MetadataAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(unit), 0) -} -func MetadataAddExtensions(builder *flatbuffers.Builder, extensions flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(extensions), 0) -} -func MetadataStartExtensionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MetadataAddReferences(builder *flatbuffers.Builder, references flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(references), 0) -} -func MetadataStartReferencesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MetadataAddDescriptions(builder *flatbuffers.Builder, descriptions flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(descriptions), 0) -} -func MetadataStartDescriptionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MetadataAddDisplayNames(builder *flatbuffers.Builder, displayNames flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(displayNames), 0) -} -func MetadataStartDisplayNamesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MetadataT struct { + NodeClass NodeClass + Operations *AllowedOperationsT + Description string + DescriptionUrl string + DisplayName string + DisplayFormat DisplayFormat + Unit string + Extensions []*ExtensionT + References []*ReferenceT + Descriptions []*LocaleTextT + DisplayNames []*LocaleTextT +} + +func (t *MetadataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + operationsOffset := t.Operations.Pack(builder) + descriptionOffset := builder.CreateString(t.Description) + descriptionUrlOffset := builder.CreateString(t.DescriptionUrl) + displayNameOffset := builder.CreateString(t.DisplayName) + unitOffset := builder.CreateString(t.Unit) + extensionsOffset := flatbuffers.UOffsetT(0) + if t.Extensions != nil { + extensionsLength := len(t.Extensions) + extensionsOffsets := make([]flatbuffers.UOffsetT, extensionsLength) + for j := 0; j < extensionsLength; j++ { + extensionsOffsets[j] = t.Extensions[j].Pack(builder) + } + MetadataStartExtensionsVector(builder, extensionsLength) + for j := extensionsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(extensionsOffsets[j]) + } + extensionsOffset = builder.EndVector(extensionsLength) + } + referencesOffset := flatbuffers.UOffsetT(0) + if t.References != nil { + referencesLength := len(t.References) + referencesOffsets := make([]flatbuffers.UOffsetT, referencesLength) + for j := 0; j < referencesLength; j++ { + referencesOffsets[j] = t.References[j].Pack(builder) + } + MetadataStartReferencesVector(builder, referencesLength) + for j := referencesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(referencesOffsets[j]) + } + referencesOffset = builder.EndVector(referencesLength) + } + descriptionsOffset := flatbuffers.UOffsetT(0) + if t.Descriptions != nil { + descriptionsLength := len(t.Descriptions) + descriptionsOffsets := make([]flatbuffers.UOffsetT, descriptionsLength) + for j := 0; j < descriptionsLength; j++ { + descriptionsOffsets[j] = t.Descriptions[j].Pack(builder) + } + MetadataStartDescriptionsVector(builder, descriptionsLength) + for j := descriptionsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(descriptionsOffsets[j]) + } + descriptionsOffset = builder.EndVector(descriptionsLength) + } + displayNamesOffset := flatbuffers.UOffsetT(0) + if t.DisplayNames != nil { + displayNamesLength := len(t.DisplayNames) + displayNamesOffsets := make([]flatbuffers.UOffsetT, displayNamesLength) + for j := 0; j < displayNamesLength; j++ { + displayNamesOffsets[j] = t.DisplayNames[j].Pack(builder) + } + MetadataStartDisplayNamesVector(builder, displayNamesLength) + for j := displayNamesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(displayNamesOffsets[j]) + } + displayNamesOffset = builder.EndVector(displayNamesLength) + } + MetadataStart(builder) + MetadataAddNodeClass(builder, t.NodeClass) + MetadataAddOperations(builder, operationsOffset) + MetadataAddDescription(builder, descriptionOffset) + MetadataAddDescriptionUrl(builder, descriptionUrlOffset) + MetadataAddDisplayName(builder, displayNameOffset) + MetadataAddDisplayFormat(builder, t.DisplayFormat) + MetadataAddUnit(builder, unitOffset) + MetadataAddExtensions(builder, extensionsOffset) + MetadataAddReferences(builder, referencesOffset) + MetadataAddDescriptions(builder, descriptionsOffset) + MetadataAddDisplayNames(builder, displayNamesOffset) + return MetadataEnd(builder) +} + +func (rcv *Metadata) UnPackTo(t *MetadataT) { + t.NodeClass = rcv.NodeClass() + t.Operations = rcv.Operations(nil).UnPack() + t.Description = string(rcv.Description()) + t.DescriptionUrl = string(rcv.DescriptionUrl()) + t.DisplayName = string(rcv.DisplayName()) + t.DisplayFormat = rcv.DisplayFormat() + t.Unit = string(rcv.Unit()) + extensionsLength := rcv.ExtensionsLength() + t.Extensions = make([]*ExtensionT, extensionsLength) + for j := 0; j < extensionsLength; j++ { + x := Extension{} + rcv.Extensions(&x, j) + t.Extensions[j] = x.UnPack() + } + referencesLength := rcv.ReferencesLength() + t.References = make([]*ReferenceT, referencesLength) + for j := 0; j < referencesLength; j++ { + x := Reference{} + rcv.References(&x, j) + t.References[j] = x.UnPack() + } + descriptionsLength := rcv.DescriptionsLength() + t.Descriptions = make([]*LocaleTextT, descriptionsLength) + for j := 0; j < descriptionsLength; j++ { + x := LocaleText{} + rcv.Descriptions(&x, j) + t.Descriptions[j] = x.UnPack() + } + displayNamesLength := rcv.DisplayNamesLength() + t.DisplayNames = make([]*LocaleTextT, displayNamesLength) + for j := 0; j < displayNamesLength; j++ { + x := LocaleText{} + rcv.DisplayNames(&x, j) + t.DisplayNames[j] = x.UnPack() + } +} + +func (rcv *Metadata) UnPack() *MetadataT { + if rcv == nil { return nil } + t := &MetadataT{} + rcv.UnPackTo(t) + return t +} + +type Metadata struct { + _tab flatbuffers.Table +} + +func GetRootAsMetadata(buf []byte, offset flatbuffers.UOffsetT) *Metadata { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Metadata{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMetadata(buf []byte, offset flatbuffers.UOffsetT) *Metadata { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Metadata{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Metadata) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Metadata) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Metadata) NodeClass() NodeClass { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return NodeClass(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Metadata) MutateNodeClass(n NodeClass) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func (rcv *Metadata) Operations(obj *AllowedOperations) *AllowedOperations { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AllowedOperations) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// markdown text only +func (rcv *Metadata) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// markdown text only +/// URL to description +func (rcv *Metadata) DescriptionUrl() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// URL to description +func (rcv *Metadata) DisplayName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Metadata) DisplayFormat() DisplayFormat { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return DisplayFormat(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Metadata) MutateDisplayFormat(n DisplayFormat) bool { + return rcv._tab.MutateInt8Slot(14, int8(n)) +} + +func (rcv *Metadata) Unit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Metadata) Extensions(obj *Extension, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Metadata) ExtensionsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Metadata) References(obj *Reference, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Metadata) ReferencesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Metadata) Descriptions(obj *LocaleText, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Metadata) DescriptionsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Metadata) DisplayNames(obj *LocaleText, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Metadata) DisplayNamesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func MetadataStart(builder *flatbuffers.Builder) { + builder.StartObject(11) +} +func MetadataAddNodeClass(builder *flatbuffers.Builder, nodeClass NodeClass) { + builder.PrependInt8Slot(0, int8(nodeClass), 0) +} +func MetadataAddOperations(builder *flatbuffers.Builder, operations flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(operations), 0) +} +func MetadataAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(description), 0) +} +func MetadataAddDescriptionUrl(builder *flatbuffers.Builder, descriptionUrl flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(descriptionUrl), 0) +} +func MetadataAddDisplayName(builder *flatbuffers.Builder, displayName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(displayName), 0) +} +func MetadataAddDisplayFormat(builder *flatbuffers.Builder, displayFormat DisplayFormat) { + builder.PrependInt8Slot(5, int8(displayFormat), 0) +} +func MetadataAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(unit), 0) +} +func MetadataAddExtensions(builder *flatbuffers.Builder, extensions flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(extensions), 0) +} +func MetadataStartExtensionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MetadataAddReferences(builder *flatbuffers.Builder, references flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(references), 0) +} +func MetadataStartReferencesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MetadataAddDescriptions(builder *flatbuffers.Builder, descriptions flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(descriptions), 0) +} +func MetadataStartDescriptionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MetadataAddDisplayNames(builder *flatbuffers.Builder, displayNames flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(displayNames), 0) +} +func MetadataStartDisplayNamesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/MetadataDB.go b/pkg/fbs/comm/datalayer/MetadataDB.go index 9a2d18d..7face3e 100644 --- a/pkg/fbs/comm/datalayer/MetadataDB.go +++ b/pkg/fbs/comm/datalayer/MetadataDB.go @@ -1,163 +1,163 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MetadataDBT struct { - Address string - Childs []*MetadataDBT - Asterisk *MetadataDBT - Metadata *MetadataT -} - -func (t *MetadataDBT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - addressOffset := builder.CreateString(t.Address) - childsOffset := flatbuffers.UOffsetT(0) - if t.Childs != nil { - childsLength := len(t.Childs) - childsOffsets := make([]flatbuffers.UOffsetT, childsLength) - for j := 0; j < childsLength; j++ { - childsOffsets[j] = t.Childs[j].Pack(builder) - } - MetadataDBStartChildsVector(builder, childsLength) - for j := childsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(childsOffsets[j]) - } - childsOffset = builder.EndVector(childsLength) - } - asteriskOffset := t.Asterisk.Pack(builder) - metadataOffset := t.Metadata.Pack(builder) - MetadataDBStart(builder) - MetadataDBAddAddress(builder, addressOffset) - MetadataDBAddChilds(builder, childsOffset) - MetadataDBAddAsterisk(builder, asteriskOffset) - MetadataDBAddMetadata(builder, metadataOffset) - return MetadataDBEnd(builder) -} - -func (rcv *MetadataDB) UnPackTo(t *MetadataDBT) { - t.Address = string(rcv.Address()) - childsLength := rcv.ChildsLength() - t.Childs = make([]*MetadataDBT, childsLength) - for j := 0; j < childsLength; j++ { - x := MetadataDB{} - rcv.Childs(&x, j) - t.Childs[j] = x.UnPack() - } - t.Asterisk = rcv.Asterisk(nil).UnPack() - t.Metadata = rcv.Metadata(nil).UnPack() -} - -func (rcv *MetadataDB) UnPack() *MetadataDBT { - if rcv == nil { return nil } - t := &MetadataDBT{} - rcv.UnPackTo(t) - return t -} - -type MetadataDB struct { - _tab flatbuffers.Table -} - -func GetRootAsMetadataDB(buf []byte, offset flatbuffers.UOffsetT) *MetadataDB { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MetadataDB{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMetadataDB(buf []byte, offset flatbuffers.UOffsetT) *MetadataDB { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MetadataDB{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MetadataDB) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MetadataDB) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MetadataDB) Address() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *MetadataDB) Childs(obj *MetadataDB, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *MetadataDB) ChildsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *MetadataDB) Asterisk(obj *MetadataDB) *MetadataDB { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MetadataDB) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MetadataDB) Metadata(obj *Metadata) *Metadata { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Metadata) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MetadataDBStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func MetadataDBAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) -} -func MetadataDBAddChilds(builder *flatbuffers.Builder, childs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(childs), 0) -} -func MetadataDBStartChildsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MetadataDBAddAsterisk(builder *flatbuffers.Builder, asterisk flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(asterisk), 0) -} -func MetadataDBAddMetadata(builder *flatbuffers.Builder, metadata flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(metadata), 0) -} -func MetadataDBEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MetadataDBT struct { + Address string + Childs []*MetadataDBT + Asterisk *MetadataDBT + Metadata *MetadataT +} + +func (t *MetadataDBT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + addressOffset := builder.CreateString(t.Address) + childsOffset := flatbuffers.UOffsetT(0) + if t.Childs != nil { + childsLength := len(t.Childs) + childsOffsets := make([]flatbuffers.UOffsetT, childsLength) + for j := 0; j < childsLength; j++ { + childsOffsets[j] = t.Childs[j].Pack(builder) + } + MetadataDBStartChildsVector(builder, childsLength) + for j := childsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(childsOffsets[j]) + } + childsOffset = builder.EndVector(childsLength) + } + asteriskOffset := t.Asterisk.Pack(builder) + metadataOffset := t.Metadata.Pack(builder) + MetadataDBStart(builder) + MetadataDBAddAddress(builder, addressOffset) + MetadataDBAddChilds(builder, childsOffset) + MetadataDBAddAsterisk(builder, asteriskOffset) + MetadataDBAddMetadata(builder, metadataOffset) + return MetadataDBEnd(builder) +} + +func (rcv *MetadataDB) UnPackTo(t *MetadataDBT) { + t.Address = string(rcv.Address()) + childsLength := rcv.ChildsLength() + t.Childs = make([]*MetadataDBT, childsLength) + for j := 0; j < childsLength; j++ { + x := MetadataDB{} + rcv.Childs(&x, j) + t.Childs[j] = x.UnPack() + } + t.Asterisk = rcv.Asterisk(nil).UnPack() + t.Metadata = rcv.Metadata(nil).UnPack() +} + +func (rcv *MetadataDB) UnPack() *MetadataDBT { + if rcv == nil { return nil } + t := &MetadataDBT{} + rcv.UnPackTo(t) + return t +} + +type MetadataDB struct { + _tab flatbuffers.Table +} + +func GetRootAsMetadataDB(buf []byte, offset flatbuffers.UOffsetT) *MetadataDB { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MetadataDB{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMetadataDB(buf []byte, offset flatbuffers.UOffsetT) *MetadataDB { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MetadataDB{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MetadataDB) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MetadataDB) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MetadataDB) Address() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *MetadataDB) Childs(obj *MetadataDB, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *MetadataDB) ChildsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *MetadataDB) Asterisk(obj *MetadataDB) *MetadataDB { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MetadataDB) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MetadataDB) Metadata(obj *Metadata) *Metadata { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Metadata) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MetadataDBStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func MetadataDBAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) +} +func MetadataDBAddChilds(builder *flatbuffers.Builder, childs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(childs), 0) +} +func MetadataDBStartChildsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MetadataDBAddAsterisk(builder *flatbuffers.Builder, asterisk flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(asterisk), 0) +} +func MetadataDBAddMetadata(builder *flatbuffers.Builder, metadata flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(metadata), 0) +} +func MetadataDBEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/NTelBufferConfig.go b/pkg/fbs/comm/datalayer/NTelBufferConfig.go index a31a4ca..0fd20f3 100644 --- a/pkg/fbs/comm/datalayer/NTelBufferConfig.go +++ b/pkg/fbs/comm/datalayer/NTelBufferConfig.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NTelBufferConfigT struct { - DefaultN uint16 -} - -func (t *NTelBufferConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - NTelBufferConfigStart(builder) - NTelBufferConfigAddDefaultN(builder, t.DefaultN) - return NTelBufferConfigEnd(builder) -} - -func (rcv *NTelBufferConfig) UnPackTo(t *NTelBufferConfigT) { - t.DefaultN = rcv.DefaultN() -} - -func (rcv *NTelBufferConfig) UnPack() *NTelBufferConfigT { - if rcv == nil { return nil } - t := &NTelBufferConfigT{} - rcv.UnPackTo(t) - return t -} - -type NTelBufferConfig struct { - _tab flatbuffers.Table -} - -func GetRootAsNTelBufferConfig(buf []byte, offset flatbuffers.UOffsetT) *NTelBufferConfig { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NTelBufferConfig{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNTelBufferConfig(buf []byte, offset flatbuffers.UOffsetT) *NTelBufferConfig { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NTelBufferConfig{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NTelBufferConfig) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NTelBufferConfig) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NTelBufferConfig) DefaultN() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 6 -} - -func (rcv *NTelBufferConfig) MutateDefaultN(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func NTelBufferConfigStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NTelBufferConfigAddDefaultN(builder *flatbuffers.Builder, defaultN uint16) { - builder.PrependUint16Slot(0, defaultN, 6) -} -func NTelBufferConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NTelBufferConfigT struct { + DefaultN uint16 +} + +func (t *NTelBufferConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + NTelBufferConfigStart(builder) + NTelBufferConfigAddDefaultN(builder, t.DefaultN) + return NTelBufferConfigEnd(builder) +} + +func (rcv *NTelBufferConfig) UnPackTo(t *NTelBufferConfigT) { + t.DefaultN = rcv.DefaultN() +} + +func (rcv *NTelBufferConfig) UnPack() *NTelBufferConfigT { + if rcv == nil { return nil } + t := &NTelBufferConfigT{} + rcv.UnPackTo(t) + return t +} + +type NTelBufferConfig struct { + _tab flatbuffers.Table +} + +func GetRootAsNTelBufferConfig(buf []byte, offset flatbuffers.UOffsetT) *NTelBufferConfig { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NTelBufferConfig{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNTelBufferConfig(buf []byte, offset flatbuffers.UOffsetT) *NTelBufferConfig { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NTelBufferConfig{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NTelBufferConfig) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NTelBufferConfig) Table() flatbuffers.Table { + return rcv._tab +} + +/// number of buffer used if ntel buffer is used +func (rcv *NTelBufferConfig) DefaultN() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 6 +} + +/// number of buffer used if ntel buffer is used +func (rcv *NTelBufferConfig) MutateDefaultN(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func NTelBufferConfigStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NTelBufferConfigAddDefaultN(builder *flatbuffers.Builder, defaultN uint16) { + builder.PrependUint16Slot(0, defaultN, 6) +} +func NTelBufferConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/NodeClass.go b/pkg/fbs/comm/datalayer/NodeClass.go index 00eb00d..f2b0a8b 100644 --- a/pkg/fbs/comm/datalayer/NodeClass.go +++ b/pkg/fbs/comm/datalayer/NodeClass.go @@ -1,47 +1,47 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type NodeClass int8 - -const ( - NodeClassNode NodeClass = 0 - NodeClassMethod NodeClass = 1 - NodeClassType NodeClass = 2 - NodeClassVariable NodeClass = 3 - NodeClassCollection NodeClass = 4 - NodeClassResource NodeClass = 5 - NodeClassProgram NodeClass = 6 - NodeClassFolder NodeClass = 7 -) - -var EnumNamesNodeClass = map[NodeClass]string{ - NodeClassNode: "Node", - NodeClassMethod: "Method", - NodeClassType: "Type", - NodeClassVariable: "Variable", - NodeClassCollection: "Collection", - NodeClassResource: "Resource", - NodeClassProgram: "Program", - NodeClassFolder: "Folder", -} - -var EnumValuesNodeClass = map[string]NodeClass{ - "Node": NodeClassNode, - "Method": NodeClassMethod, - "Type": NodeClassType, - "Variable": NodeClassVariable, - "Collection": NodeClassCollection, - "Resource": NodeClassResource, - "Program": NodeClassProgram, - "Folder": NodeClassFolder, -} - -func (v NodeClass) String() string { - if s, ok := EnumNamesNodeClass[v]; ok { - return s - } - return "NodeClass(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type NodeClass int8 + +const ( + NodeClassNode NodeClass = 0 + NodeClassMethod NodeClass = 1 + NodeClassType NodeClass = 2 + NodeClassVariable NodeClass = 3 + NodeClassCollection NodeClass = 4 + NodeClassResource NodeClass = 5 + NodeClassProgram NodeClass = 6 + NodeClassFolder NodeClass = 7 +) + +var EnumNamesNodeClass = map[NodeClass]string{ + NodeClassNode: "Node", + NodeClassMethod: "Method", + NodeClassType: "Type", + NodeClassVariable: "Variable", + NodeClassCollection: "Collection", + NodeClassResource: "Resource", + NodeClassProgram: "Program", + NodeClassFolder: "Folder", +} + +var EnumValuesNodeClass = map[string]NodeClass{ + "Node": NodeClassNode, + "Method": NodeClassMethod, + "Type": NodeClassType, + "Variable": NodeClassVariable, + "Collection": NodeClassCollection, + "Resource": NodeClassResource, + "Program": NodeClassProgram, + "Folder": NodeClassFolder, +} + +func (v NodeClass) String() string { + if s, ok := EnumNamesNodeClass[v]; ok { + return s + } + return "NodeClass(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/NotifyInfo.go b/pkg/fbs/comm/datalayer/NotifyInfo.go index 4485dd5..d6abdc9 100644 --- a/pkg/fbs/comm/datalayer/NotifyInfo.go +++ b/pkg/fbs/comm/datalayer/NotifyInfo.go @@ -1,111 +1,115 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NotifyInfoT struct { - Node string - Timestamp uint64 - NotifyType NotifyType -} - -func (t *NotifyInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nodeOffset := builder.CreateString(t.Node) - NotifyInfoStart(builder) - NotifyInfoAddNode(builder, nodeOffset) - NotifyInfoAddTimestamp(builder, t.Timestamp) - NotifyInfoAddNotifyType(builder, t.NotifyType) - return NotifyInfoEnd(builder) -} - -func (rcv *NotifyInfo) UnPackTo(t *NotifyInfoT) { - t.Node = string(rcv.Node()) - t.Timestamp = rcv.Timestamp() - t.NotifyType = rcv.NotifyType() -} - -func (rcv *NotifyInfo) UnPack() *NotifyInfoT { - if rcv == nil { return nil } - t := &NotifyInfoT{} - rcv.UnPackTo(t) - return t -} - -type NotifyInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsNotifyInfo(buf []byte, offset flatbuffers.UOffsetT) *NotifyInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NotifyInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNotifyInfo(buf []byte, offset flatbuffers.UOffsetT) *NotifyInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NotifyInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NotifyInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NotifyInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NotifyInfo) Node() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *NotifyInfo) Timestamp() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *NotifyInfo) MutateTimestamp(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func (rcv *NotifyInfo) NotifyType() NotifyType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return NotifyType(rcv._tab.GetInt32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *NotifyInfo) MutateNotifyType(n NotifyType) bool { - return rcv._tab.MutateInt32Slot(8, int32(n)) -} - -func NotifyInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func NotifyInfoAddNode(builder *flatbuffers.Builder, node flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(node), 0) -} -func NotifyInfoAddTimestamp(builder *flatbuffers.Builder, timestamp uint64) { - builder.PrependUint64Slot(1, timestamp, 0) -} -func NotifyInfoAddNotifyType(builder *flatbuffers.Builder, notifyType NotifyType) { - builder.PrependInt32Slot(2, int32(notifyType), 0) -} -func NotifyInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NotifyInfoT struct { + Node string + Timestamp uint64 + NotifyType NotifyType +} + +func (t *NotifyInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nodeOffset := builder.CreateString(t.Node) + NotifyInfoStart(builder) + NotifyInfoAddNode(builder, nodeOffset) + NotifyInfoAddTimestamp(builder, t.Timestamp) + NotifyInfoAddNotifyType(builder, t.NotifyType) + return NotifyInfoEnd(builder) +} + +func (rcv *NotifyInfo) UnPackTo(t *NotifyInfoT) { + t.Node = string(rcv.Node()) + t.Timestamp = rcv.Timestamp() + t.NotifyType = rcv.NotifyType() +} + +func (rcv *NotifyInfo) UnPack() *NotifyInfoT { + if rcv == nil { return nil } + t := &NotifyInfoT{} + rcv.UnPackTo(t) + return t +} + +type NotifyInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsNotifyInfo(buf []byte, offset flatbuffers.UOffsetT) *NotifyInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NotifyInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNotifyInfo(buf []byte, offset flatbuffers.UOffsetT) *NotifyInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NotifyInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NotifyInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NotifyInfo) Table() flatbuffers.Table { + return rcv._tab +} + +/// Node address +func (rcv *NotifyInfo) Node() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Node address +/// Filetime: Contains a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC). +func (rcv *NotifyInfo) Timestamp() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Filetime: Contains a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC). +func (rcv *NotifyInfo) MutateTimestamp(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +func (rcv *NotifyInfo) NotifyType() NotifyType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return NotifyType(rcv._tab.GetInt32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *NotifyInfo) MutateNotifyType(n NotifyType) bool { + return rcv._tab.MutateInt32Slot(8, int32(n)) +} + +func NotifyInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func NotifyInfoAddNode(builder *flatbuffers.Builder, node flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(node), 0) +} +func NotifyInfoAddTimestamp(builder *flatbuffers.Builder, timestamp uint64) { + builder.PrependUint64Slot(1, timestamp, 0) +} +func NotifyInfoAddNotifyType(builder *flatbuffers.Builder, notifyType NotifyType) { + builder.PrependInt32Slot(2, int32(notifyType), 0) +} +func NotifyInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/NotifyType.go b/pkg/fbs/comm/datalayer/NotifyType.go index 303beef..8f5eda5 100644 --- a/pkg/fbs/comm/datalayer/NotifyType.go +++ b/pkg/fbs/comm/datalayer/NotifyType.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type NotifyType int32 - -const ( - NotifyTypeData NotifyType = 0 - NotifyTypeBrowse NotifyType = 1 - NotifyTypeMetadata NotifyType = 2 - NotifyTypeKeepalive NotifyType = 3 -) - -var EnumNamesNotifyType = map[NotifyType]string{ - NotifyTypeData: "Data", - NotifyTypeBrowse: "Browse", - NotifyTypeMetadata: "Metadata", - NotifyTypeKeepalive: "Keepalive", -} - -var EnumValuesNotifyType = map[string]NotifyType{ - "Data": NotifyTypeData, - "Browse": NotifyTypeBrowse, - "Metadata": NotifyTypeMetadata, - "Keepalive": NotifyTypeKeepalive, -} - -func (v NotifyType) String() string { - if s, ok := EnumNamesNotifyType[v]; ok { - return s - } - return "NotifyType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type NotifyType int32 + +const ( + NotifyTypeData NotifyType = 0 + NotifyTypeBrowse NotifyType = 1 + NotifyTypeMetadata NotifyType = 2 + NotifyTypeKeepalive NotifyType = 3 +) + +var EnumNamesNotifyType = map[NotifyType]string{ + NotifyTypeData: "Data", + NotifyTypeBrowse: "Browse", + NotifyTypeMetadata: "Metadata", + NotifyTypeKeepalive: "Keepalive", +} + +var EnumValuesNotifyType = map[string]NotifyType{ + "Data": NotifyTypeData, + "Browse": NotifyTypeBrowse, + "Metadata": NotifyTypeMetadata, + "Keepalive": NotifyTypeKeepalive, +} + +func (v NotifyType) String() string { + if s, ok := EnumNamesNotifyType[v]; ok { + return s + } + return "NotifyType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/PersistenceParam.go b/pkg/fbs/comm/datalayer/PersistenceParam.go index 4cf0e69..9e044c8 100644 --- a/pkg/fbs/comm/datalayer/PersistenceParam.go +++ b/pkg/fbs/comm/datalayer/PersistenceParam.go @@ -1,105 +1,114 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type PersistenceParamT struct { - ConfigurationPath string - Id string - Phase string -} - -func (t *PersistenceParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - configurationPathOffset := builder.CreateString(t.ConfigurationPath) - idOffset := builder.CreateString(t.Id) - phaseOffset := builder.CreateString(t.Phase) - PersistenceParamStart(builder) - PersistenceParamAddConfigurationPath(builder, configurationPathOffset) - PersistenceParamAddId(builder, idOffset) - PersistenceParamAddPhase(builder, phaseOffset) - return PersistenceParamEnd(builder) -} - -func (rcv *PersistenceParam) UnPackTo(t *PersistenceParamT) { - t.ConfigurationPath = string(rcv.ConfigurationPath()) - t.Id = string(rcv.Id()) - t.Phase = string(rcv.Phase()) -} - -func (rcv *PersistenceParam) UnPack() *PersistenceParamT { - if rcv == nil { return nil } - t := &PersistenceParamT{} - rcv.UnPackTo(t) - return t -} - -type PersistenceParam struct { - _tab flatbuffers.Table -} - -func GetRootAsPersistenceParam(buf []byte, offset flatbuffers.UOffsetT) *PersistenceParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &PersistenceParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsPersistenceParam(buf []byte, offset flatbuffers.UOffsetT) *PersistenceParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &PersistenceParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *PersistenceParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *PersistenceParam) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *PersistenceParam) ConfigurationPath() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *PersistenceParam) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *PersistenceParam) Phase() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func PersistenceParamStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func PersistenceParamAddConfigurationPath(builder *flatbuffers.Builder, configurationPath flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(configurationPath), 0) -} -func PersistenceParamAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) -} -func PersistenceParamAddPhase(builder *flatbuffers.Builder, phase flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(phase), 0) -} -func PersistenceParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the persistence operation +/// the type inforamtion of this flatbuffer is provided under "types/datalayer/persistence-param" +/// at implementation of "onMetadata()" return this path as create type reference +type PersistenceParamT struct { + ConfigurationPath string + Id string + Phase string +} + +func (t *PersistenceParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + configurationPathOffset := builder.CreateString(t.ConfigurationPath) + idOffset := builder.CreateString(t.Id) + phaseOffset := builder.CreateString(t.Phase) + PersistenceParamStart(builder) + PersistenceParamAddConfigurationPath(builder, configurationPathOffset) + PersistenceParamAddId(builder, idOffset) + PersistenceParamAddPhase(builder, phaseOffset) + return PersistenceParamEnd(builder) +} + +func (rcv *PersistenceParam) UnPackTo(t *PersistenceParamT) { + t.ConfigurationPath = string(rcv.ConfigurationPath()) + t.Id = string(rcv.Id()) + t.Phase = string(rcv.Phase()) +} + +func (rcv *PersistenceParam) UnPack() *PersistenceParamT { + if rcv == nil { return nil } + t := &PersistenceParamT{} + rcv.UnPackTo(t) + return t +} + +type PersistenceParam struct { + _tab flatbuffers.Table +} + +func GetRootAsPersistenceParam(buf []byte, offset flatbuffers.UOffsetT) *PersistenceParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &PersistenceParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsPersistenceParam(buf []byte, offset flatbuffers.UOffsetT) *PersistenceParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &PersistenceParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *PersistenceParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *PersistenceParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// the directory of the configuration to be loaded, or the directory of the target configuration in case of a save operation +func (rcv *PersistenceParam) ConfigurationPath() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// the directory of the configuration to be loaded, or the directory of the target configuration in case of a save operation +/// a random code which identifies the instance of save or load operation +func (rcv *PersistenceParam) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// a random code which identifies the instance of save or load operation +/// specifies the current processing phase of a save or load operation +func (rcv *PersistenceParam) Phase() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// specifies the current processing phase of a save or load operation +func PersistenceParamStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func PersistenceParamAddConfigurationPath(builder *flatbuffers.Builder, configurationPath flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(configurationPath), 0) +} +func PersistenceParamAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) +} +func PersistenceParamAddPhase(builder *flatbuffers.Builder, phase flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(phase), 0) +} +func PersistenceParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Problem.go b/pkg/fbs/comm/datalayer/Problem.go index 76ba20a..ff3e020 100644 --- a/pkg/fbs/comm/datalayer/Problem.go +++ b/pkg/fbs/comm/datalayer/Problem.go @@ -1,354 +1,418 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProblemT struct { - Type string - Title string - Status int32 - Detail string - Instance string - MainDiagnosisCode string - DetailedDiagnosisCode string - DynamicDescription string - Severity Severity - Links []string - Entity string - MoreInfo []byte - Cause []*ProblemT -} - -func (t *ProblemT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - typeOffset := builder.CreateString(t.Type) - titleOffset := builder.CreateString(t.Title) - detailOffset := builder.CreateString(t.Detail) - instanceOffset := builder.CreateString(t.Instance) - mainDiagnosisCodeOffset := builder.CreateString(t.MainDiagnosisCode) - detailedDiagnosisCodeOffset := builder.CreateString(t.DetailedDiagnosisCode) - dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) - linksOffset := flatbuffers.UOffsetT(0) - if t.Links != nil { - linksLength := len(t.Links) - linksOffsets := make([]flatbuffers.UOffsetT, linksLength) - for j := 0; j < linksLength; j++ { - linksOffsets[j] = builder.CreateString(t.Links[j]) - } - ProblemStartLinksVector(builder, linksLength) - for j := linksLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(linksOffsets[j]) - } - linksOffset = builder.EndVector(linksLength) - } - entityOffset := builder.CreateString(t.Entity) - moreInfoOffset := flatbuffers.UOffsetT(0) - if t.MoreInfo != nil { - moreInfoOffset = builder.CreateByteString(t.MoreInfo) - } - causeOffset := flatbuffers.UOffsetT(0) - if t.Cause != nil { - causeLength := len(t.Cause) - causeOffsets := make([]flatbuffers.UOffsetT, causeLength) - for j := 0; j < causeLength; j++ { - causeOffsets[j] = t.Cause[j].Pack(builder) - } - ProblemStartCauseVector(builder, causeLength) - for j := causeLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(causeOffsets[j]) - } - causeOffset = builder.EndVector(causeLength) - } - ProblemStart(builder) - ProblemAddType(builder, typeOffset) - ProblemAddTitle(builder, titleOffset) - ProblemAddStatus(builder, t.Status) - ProblemAddDetail(builder, detailOffset) - ProblemAddInstance(builder, instanceOffset) - ProblemAddMainDiagnosisCode(builder, mainDiagnosisCodeOffset) - ProblemAddDetailedDiagnosisCode(builder, detailedDiagnosisCodeOffset) - ProblemAddDynamicDescription(builder, dynamicDescriptionOffset) - ProblemAddSeverity(builder, t.Severity) - ProblemAddLinks(builder, linksOffset) - ProblemAddEntity(builder, entityOffset) - ProblemAddMoreInfo(builder, moreInfoOffset) - ProblemAddCause(builder, causeOffset) - return ProblemEnd(builder) -} - -func (rcv *Problem) UnPackTo(t *ProblemT) { - t.Type = string(rcv.Type()) - t.Title = string(rcv.Title()) - t.Status = rcv.Status() - t.Detail = string(rcv.Detail()) - t.Instance = string(rcv.Instance()) - t.MainDiagnosisCode = string(rcv.MainDiagnosisCode()) - t.DetailedDiagnosisCode = string(rcv.DetailedDiagnosisCode()) - t.DynamicDescription = string(rcv.DynamicDescription()) - t.Severity = rcv.Severity() - linksLength := rcv.LinksLength() - t.Links = make([]string, linksLength) - for j := 0; j < linksLength; j++ { - t.Links[j] = string(rcv.Links(j)) - } - t.Entity = string(rcv.Entity()) - t.MoreInfo = rcv.MoreInfoBytes() - causeLength := rcv.CauseLength() - t.Cause = make([]*ProblemT, causeLength) - for j := 0; j < causeLength; j++ { - x := Problem{} - rcv.Cause(&x, j) - t.Cause[j] = x.UnPack() - } -} - -func (rcv *Problem) UnPack() *ProblemT { - if rcv == nil { return nil } - t := &ProblemT{} - rcv.UnPackTo(t) - return t -} - -type Problem struct { - _tab flatbuffers.Table -} - -func GetRootAsProblem(buf []byte, offset flatbuffers.UOffsetT) *Problem { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Problem{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProblem(buf []byte, offset flatbuffers.UOffsetT) *Problem { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Problem{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Problem) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Problem) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Problem) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) Title() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) Status() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Problem) MutateStatus(n int32) bool { - return rcv._tab.MutateInt32Slot(8, n) -} - -func (rcv *Problem) Detail() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) Instance() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) MainDiagnosisCode() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) DetailedDiagnosisCode() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) DynamicDescription() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) Severity() Severity { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return Severity(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Problem) MutateSeverity(n Severity) bool { - return rcv._tab.MutateInt8Slot(20, int8(n)) -} - -func (rcv *Problem) Links(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Problem) LinksLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Problem) Entity() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) MoreInfo(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *Problem) MoreInfoLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Problem) MoreInfoBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Problem) MutateMoreInfo(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *Problem) Cause(obj *Problem, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Problem) CauseLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ProblemStart(builder *flatbuffers.Builder) { - builder.StartObject(13) -} -func ProblemAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(type_), 0) -} -func ProblemAddTitle(builder *flatbuffers.Builder, title flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(title), 0) -} -func ProblemAddStatus(builder *flatbuffers.Builder, status int32) { - builder.PrependInt32Slot(2, status, 0) -} -func ProblemAddDetail(builder *flatbuffers.Builder, detail flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(detail), 0) -} -func ProblemAddInstance(builder *flatbuffers.Builder, instance flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(instance), 0) -} -func ProblemAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(mainDiagnosisCode), 0) -} -func ProblemAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(detailedDiagnosisCode), 0) -} -func ProblemAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dynamicDescription), 0) -} -func ProblemAddSeverity(builder *flatbuffers.Builder, severity Severity) { - builder.PrependInt8Slot(8, int8(severity), 0) -} -func ProblemAddLinks(builder *flatbuffers.Builder, links flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(links), 0) -} -func ProblemStartLinksVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProblemAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(entity), 0) -} -func ProblemAddMoreInfo(builder *flatbuffers.Builder, moreInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(moreInfo), 0) -} -func ProblemStartMoreInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ProblemAddCause(builder *flatbuffers.Builder, cause flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(12, flatbuffers.UOffsetT(cause), 0) -} -func ProblemStartCauseVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProblemEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProblemT struct { + Type string + Title string + Status int32 + Detail string + Instance string + MainDiagnosisCode string + DetailedDiagnosisCode string + DynamicDescription string + Severity Severity + Links []string + Entity string + MoreInfo []byte + Cause []*ProblemT +} + +func (t *ProblemT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + typeOffset := builder.CreateString(t.Type) + titleOffset := builder.CreateString(t.Title) + detailOffset := builder.CreateString(t.Detail) + instanceOffset := builder.CreateString(t.Instance) + mainDiagnosisCodeOffset := builder.CreateString(t.MainDiagnosisCode) + detailedDiagnosisCodeOffset := builder.CreateString(t.DetailedDiagnosisCode) + dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) + linksOffset := flatbuffers.UOffsetT(0) + if t.Links != nil { + linksLength := len(t.Links) + linksOffsets := make([]flatbuffers.UOffsetT, linksLength) + for j := 0; j < linksLength; j++ { + linksOffsets[j] = builder.CreateString(t.Links[j]) + } + ProblemStartLinksVector(builder, linksLength) + for j := linksLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(linksOffsets[j]) + } + linksOffset = builder.EndVector(linksLength) + } + entityOffset := builder.CreateString(t.Entity) + moreInfoOffset := flatbuffers.UOffsetT(0) + if t.MoreInfo != nil { + moreInfoOffset = builder.CreateByteString(t.MoreInfo) + } + causeOffset := flatbuffers.UOffsetT(0) + if t.Cause != nil { + causeLength := len(t.Cause) + causeOffsets := make([]flatbuffers.UOffsetT, causeLength) + for j := 0; j < causeLength; j++ { + causeOffsets[j] = t.Cause[j].Pack(builder) + } + ProblemStartCauseVector(builder, causeLength) + for j := causeLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(causeOffsets[j]) + } + causeOffset = builder.EndVector(causeLength) + } + ProblemStart(builder) + ProblemAddType(builder, typeOffset) + ProblemAddTitle(builder, titleOffset) + ProblemAddStatus(builder, t.Status) + ProblemAddDetail(builder, detailOffset) + ProblemAddInstance(builder, instanceOffset) + ProblemAddMainDiagnosisCode(builder, mainDiagnosisCodeOffset) + ProblemAddDetailedDiagnosisCode(builder, detailedDiagnosisCodeOffset) + ProblemAddDynamicDescription(builder, dynamicDescriptionOffset) + ProblemAddSeverity(builder, t.Severity) + ProblemAddLinks(builder, linksOffset) + ProblemAddEntity(builder, entityOffset) + ProblemAddMoreInfo(builder, moreInfoOffset) + ProblemAddCause(builder, causeOffset) + return ProblemEnd(builder) +} + +func (rcv *Problem) UnPackTo(t *ProblemT) { + t.Type = string(rcv.Type()) + t.Title = string(rcv.Title()) + t.Status = rcv.Status() + t.Detail = string(rcv.Detail()) + t.Instance = string(rcv.Instance()) + t.MainDiagnosisCode = string(rcv.MainDiagnosisCode()) + t.DetailedDiagnosisCode = string(rcv.DetailedDiagnosisCode()) + t.DynamicDescription = string(rcv.DynamicDescription()) + t.Severity = rcv.Severity() + linksLength := rcv.LinksLength() + t.Links = make([]string, linksLength) + for j := 0; j < linksLength; j++ { + t.Links[j] = string(rcv.Links(j)) + } + t.Entity = string(rcv.Entity()) + t.MoreInfo = rcv.MoreInfoBytes() + causeLength := rcv.CauseLength() + t.Cause = make([]*ProblemT, causeLength) + for j := 0; j < causeLength; j++ { + x := Problem{} + rcv.Cause(&x, j) + t.Cause[j] = x.UnPack() + } +} + +func (rcv *Problem) UnPack() *ProblemT { + if rcv == nil { return nil } + t := &ProblemT{} + rcv.UnPackTo(t) + return t +} + +type Problem struct { + _tab flatbuffers.Table +} + +func GetRootAsProblem(buf []byte, offset flatbuffers.UOffsetT) *Problem { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Problem{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProblem(buf []byte, offset flatbuffers.UOffsetT) *Problem { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Problem{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Problem) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Problem) Table() flatbuffers.Table { + return rcv._tab +} + +/// A URI reference [RFC3986] that identifies the problem type. +/// This specification encourages that, when dereferenced, +/// it provide human-readable documentation for the problem type +/// (e.g., using HTML [W3C.REC-html5-20141028]). When this member +/// is not present, its value is assumed to be "about:blank". +func (rcv *Problem) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// A URI reference [RFC3986] that identifies the problem type. +/// This specification encourages that, when dereferenced, +/// it provide human-readable documentation for the problem type +/// (e.g., using HTML [W3C.REC-html5-20141028]). When this member +/// is not present, its value is assumed to be "about:blank". +/// A short, human-readable summary of the problem type. +/// It SHOULD NOT change from occurrence to occurrence of the problem, +/// except for purposes of localization (e.g., using proactive content +/// negotiation; see [RFC7231], Section 3.4). +func (rcv *Problem) Title() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// A short, human-readable summary of the problem type. +/// It SHOULD NOT change from occurrence to occurrence of the problem, +/// except for purposes of localization (e.g., using proactive content +/// negotiation; see [RFC7231], Section 3.4). +/// The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. +/// This will be added by the webserver - so you don't have to fill this field. +func (rcv *Problem) Status() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +/// The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. +/// This will be added by the webserver - so you don't have to fill this field. +func (rcv *Problem) MutateStatus(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +/// A human-readable explanation specific to this occurrence of the problem. +func (rcv *Problem) Detail() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// A human-readable explanation specific to this occurrence of the problem. +/// A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. +func (rcv *Problem) Instance() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. +/// The main diagnosis code was/is issued by the system that caused the problem. +/// This code can be used to track down the root cause and source of the error. +/// It can be used to search in the documentation for a solution. +/// It SHOULD NOT change from occurrence to occurrence of the same problem. +/// example: 080F0100 +func (rcv *Problem) MainDiagnosisCode() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The main diagnosis code was/is issued by the system that caused the problem. +/// This code can be used to track down the root cause and source of the error. +/// It can be used to search in the documentation for a solution. +/// It SHOULD NOT change from occurrence to occurrence of the same problem. +/// example: 080F0100 +/// The detailed diagnosis code issued by the system that caused the problem. +/// This code can be used to track down the detailed cause and source of the error. +/// It can be used to search in the documentation for a solution. +/// The detailed diagnosis code gives additional information about the cause of the error. +/// It SHOULD NOT change from occurrence to occurrence of the same problem. +/// example: 00666001 +func (rcv *Problem) DetailedDiagnosisCode() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The detailed diagnosis code issued by the system that caused the problem. +/// This code can be used to track down the detailed cause and source of the error. +/// It can be used to search in the documentation for a solution. +/// The detailed diagnosis code gives additional information about the cause of the error. +/// It SHOULD NOT change from occurrence to occurrence of the same problem. +/// example: 00666001 +/// A dynamic description gives detailed information about the occurrence of a problem. +/// It can change between different occurrences of the same error. +/// example: value = -4.5 +func (rcv *Problem) DynamicDescription() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// A dynamic description gives detailed information about the occurrence of a problem. +/// It can change between different occurrences of the same error. +/// example: value = -4.5 +/// Severity of a problem as defined RFC5424 of the Syslog standard, see https://tools.ietf.org/html/rfc5424' +func (rcv *Problem) Severity() Severity { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return Severity(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Severity of a problem as defined RFC5424 of the Syslog standard, see https://tools.ietf.org/html/rfc5424' +func (rcv *Problem) MutateSeverity(n Severity) bool { + return rcv._tab.MutateInt8Slot(20, int8(n)) +} + +/// Collection of links to fix the problem. E.g. links to online user manual, to an online community (using tags) or a developer chat (e.g. Slack). +func (rcv *Problem) Links(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Problem) LinksLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Collection of links to fix the problem. E.g. links to online user manual, to an online community (using tags) or a developer chat (e.g. Slack). +/// Resource or entity which causes the problem +func (rcv *Problem) Entity() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Resource or entity which causes the problem +/// More information about the problem (key/value pair) +func (rcv *Problem) MoreInfo(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *Problem) MoreInfoLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Problem) MoreInfoBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// More information about the problem (key/value pair) +func (rcv *Problem) MutateMoreInfo(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +/// Cause of the problem +func (rcv *Problem) Cause(obj *Problem, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Problem) CauseLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Cause of the problem +func ProblemStart(builder *flatbuffers.Builder) { + builder.StartObject(13) +} +func ProblemAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(type_), 0) +} +func ProblemAddTitle(builder *flatbuffers.Builder, title flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(title), 0) +} +func ProblemAddStatus(builder *flatbuffers.Builder, status int32) { + builder.PrependInt32Slot(2, status, 0) +} +func ProblemAddDetail(builder *flatbuffers.Builder, detail flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(detail), 0) +} +func ProblemAddInstance(builder *flatbuffers.Builder, instance flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(instance), 0) +} +func ProblemAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(mainDiagnosisCode), 0) +} +func ProblemAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(detailedDiagnosisCode), 0) +} +func ProblemAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dynamicDescription), 0) +} +func ProblemAddSeverity(builder *flatbuffers.Builder, severity Severity) { + builder.PrependInt8Slot(8, int8(severity), 0) +} +func ProblemAddLinks(builder *flatbuffers.Builder, links flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(links), 0) +} +func ProblemStartLinksVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProblemAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(entity), 0) +} +func ProblemAddMoreInfo(builder *flatbuffers.Builder, moreInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(moreInfo), 0) +} +func ProblemStartMoreInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ProblemAddCause(builder *flatbuffers.Builder, cause flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(12, flatbuffers.UOffsetT(cause), 0) +} +func ProblemStartCauseVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProblemEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ProgramTask.go b/pkg/fbs/comm/datalayer/ProgramTask.go index 464b228..3cf40e1 100644 --- a/pkg/fbs/comm/datalayer/ProgramTask.go +++ b/pkg/fbs/comm/datalayer/ProgramTask.go @@ -1,146 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProgramTaskT struct { - Id string - State ProgramTaskState - Progress uint32 - Result *DiagnosisT - ProgressInfo string -} - -func (t *ProgramTaskT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - idOffset := builder.CreateString(t.Id) - resultOffset := t.Result.Pack(builder) - progressInfoOffset := builder.CreateString(t.ProgressInfo) - ProgramTaskStart(builder) - ProgramTaskAddId(builder, idOffset) - ProgramTaskAddState(builder, t.State) - ProgramTaskAddProgress(builder, t.Progress) - ProgramTaskAddResult(builder, resultOffset) - ProgramTaskAddProgressInfo(builder, progressInfoOffset) - return ProgramTaskEnd(builder) -} - -func (rcv *ProgramTask) UnPackTo(t *ProgramTaskT) { - t.Id = string(rcv.Id()) - t.State = rcv.State() - t.Progress = rcv.Progress() - t.Result = rcv.Result(nil).UnPack() - t.ProgressInfo = string(rcv.ProgressInfo()) -} - -func (rcv *ProgramTask) UnPack() *ProgramTaskT { - if rcv == nil { return nil } - t := &ProgramTaskT{} - rcv.UnPackTo(t) - return t -} - -type ProgramTask struct { - _tab flatbuffers.Table -} - -func GetRootAsProgramTask(buf []byte, offset flatbuffers.UOffsetT) *ProgramTask { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ProgramTask{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProgramTask(buf []byte, offset flatbuffers.UOffsetT) *ProgramTask { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ProgramTask{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ProgramTask) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProgramTask) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ProgramTask) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ProgramTask) State() ProgramTaskState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return ProgramTaskState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ProgramTask) MutateState(n ProgramTaskState) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func (rcv *ProgramTask) Progress() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ProgramTask) MutateProgress(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *ProgramTask) Result(obj *Diagnosis) *Diagnosis { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Diagnosis) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ProgramTask) ProgressInfo() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ProgramTaskStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func ProgramTaskAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) -} -func ProgramTaskAddState(builder *flatbuffers.Builder, state ProgramTaskState) { - builder.PrependInt8Slot(1, int8(state), 0) -} -func ProgramTaskAddProgress(builder *flatbuffers.Builder, progress uint32) { - builder.PrependUint32Slot(2, progress, 0) -} -func ProgramTaskAddResult(builder *flatbuffers.Builder, result flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(result), 0) -} -func ProgramTaskAddProgressInfo(builder *flatbuffers.Builder, progressInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(progressInfo), 0) -} -func ProgramTaskEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProgramTaskT struct { + Id string + State ProgramTaskState + Progress uint32 + Result *DiagnosisT + ProgressInfo string +} + +func (t *ProgramTaskT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + idOffset := builder.CreateString(t.Id) + resultOffset := t.Result.Pack(builder) + progressInfoOffset := builder.CreateString(t.ProgressInfo) + ProgramTaskStart(builder) + ProgramTaskAddId(builder, idOffset) + ProgramTaskAddState(builder, t.State) + ProgramTaskAddProgress(builder, t.Progress) + ProgramTaskAddResult(builder, resultOffset) + ProgramTaskAddProgressInfo(builder, progressInfoOffset) + return ProgramTaskEnd(builder) +} + +func (rcv *ProgramTask) UnPackTo(t *ProgramTaskT) { + t.Id = string(rcv.Id()) + t.State = rcv.State() + t.Progress = rcv.Progress() + t.Result = rcv.Result(nil).UnPack() + t.ProgressInfo = string(rcv.ProgressInfo()) +} + +func (rcv *ProgramTask) UnPack() *ProgramTaskT { + if rcv == nil { return nil } + t := &ProgramTaskT{} + rcv.UnPackTo(t) + return t +} + +type ProgramTask struct { + _tab flatbuffers.Table +} + +func GetRootAsProgramTask(buf []byte, offset flatbuffers.UOffsetT) *ProgramTask { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ProgramTask{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProgramTask(buf []byte, offset flatbuffers.UOffsetT) *ProgramTask { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ProgramTask{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ProgramTask) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProgramTask) Table() flatbuffers.Table { + return rcv._tab +} + +/// id of the task +func (rcv *ProgramTask) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// id of the task +/// state of the task +func (rcv *ProgramTask) State() ProgramTaskState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return ProgramTaskState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// state of the task +func (rcv *ProgramTask) MutateState(n ProgramTaskState) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// Progress of the task in percent, if it's not possible to calculate, set state to running and progress to 0 +func (rcv *ProgramTask) Progress() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Progress of the task in percent, if it's not possible to calculate, set state to running and progress to 0 +func (rcv *ProgramTask) MutateProgress(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// result of task; +func (rcv *ProgramTask) Result(obj *Diagnosis) *Diagnosis { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Diagnosis) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// result of task; +/// Additional progress information +func (rcv *ProgramTask) ProgressInfo() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Additional progress information +func ProgramTaskStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func ProgramTaskAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) +} +func ProgramTaskAddState(builder *flatbuffers.Builder, state ProgramTaskState) { + builder.PrependInt8Slot(1, int8(state), 0) +} +func ProgramTaskAddProgress(builder *flatbuffers.Builder, progress uint32) { + builder.PrependUint32Slot(2, progress, 0) +} +func ProgramTaskAddResult(builder *flatbuffers.Builder, result flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(result), 0) +} +func ProgramTaskAddProgressInfo(builder *flatbuffers.Builder, progressInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(progressInfo), 0) +} +func ProgramTaskEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ProgramTaskAll.go b/pkg/fbs/comm/datalayer/ProgramTaskAll.go index 508f320..e7a0fe7 100644 --- a/pkg/fbs/comm/datalayer/ProgramTaskAll.go +++ b/pkg/fbs/comm/datalayer/ProgramTaskAll.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProgramTaskAllT struct { - Tasks []*ProgramTaskT -} - -func (t *ProgramTaskAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TasksOffset := flatbuffers.UOffsetT(0) - if t.Tasks != nil { - TasksLength := len(t.Tasks) - TasksOffsets := make([]flatbuffers.UOffsetT, TasksLength) - for j := 0; j < TasksLength; j++ { - TasksOffsets[j] = t.Tasks[j].Pack(builder) - } - ProgramTaskAllStartTasksVector(builder, TasksLength) - for j := TasksLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(TasksOffsets[j]) - } - TasksOffset = builder.EndVector(TasksLength) - } - ProgramTaskAllStart(builder) - ProgramTaskAllAddTasks(builder, TasksOffset) - return ProgramTaskAllEnd(builder) -} - -func (rcv *ProgramTaskAll) UnPackTo(t *ProgramTaskAllT) { - TasksLength := rcv.TasksLength() - t.Tasks = make([]*ProgramTaskT, TasksLength) - for j := 0; j < TasksLength; j++ { - x := ProgramTask{} - rcv.Tasks(&x, j) - t.Tasks[j] = x.UnPack() - } -} - -func (rcv *ProgramTaskAll) UnPack() *ProgramTaskAllT { - if rcv == nil { return nil } - t := &ProgramTaskAllT{} - rcv.UnPackTo(t) - return t -} - -type ProgramTaskAll struct { - _tab flatbuffers.Table -} - -func GetRootAsProgramTaskAll(buf []byte, offset flatbuffers.UOffsetT) *ProgramTaskAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ProgramTaskAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProgramTaskAll(buf []byte, offset flatbuffers.UOffsetT) *ProgramTaskAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ProgramTaskAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ProgramTaskAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProgramTaskAll) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ProgramTaskAll) Tasks(obj *ProgramTask, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ProgramTaskAll) TasksLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ProgramTaskAllStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ProgramTaskAllAddTasks(builder *flatbuffers.Builder, Tasks flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(Tasks), 0) -} -func ProgramTaskAllStartTasksVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProgramTaskAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProgramTaskAllT struct { + Tasks []*ProgramTaskT +} + +func (t *ProgramTaskAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TasksOffset := flatbuffers.UOffsetT(0) + if t.Tasks != nil { + TasksLength := len(t.Tasks) + TasksOffsets := make([]flatbuffers.UOffsetT, TasksLength) + for j := 0; j < TasksLength; j++ { + TasksOffsets[j] = t.Tasks[j].Pack(builder) + } + ProgramTaskAllStartTasksVector(builder, TasksLength) + for j := TasksLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(TasksOffsets[j]) + } + TasksOffset = builder.EndVector(TasksLength) + } + ProgramTaskAllStart(builder) + ProgramTaskAllAddTasks(builder, TasksOffset) + return ProgramTaskAllEnd(builder) +} + +func (rcv *ProgramTaskAll) UnPackTo(t *ProgramTaskAllT) { + TasksLength := rcv.TasksLength() + t.Tasks = make([]*ProgramTaskT, TasksLength) + for j := 0; j < TasksLength; j++ { + x := ProgramTask{} + rcv.Tasks(&x, j) + t.Tasks[j] = x.UnPack() + } +} + +func (rcv *ProgramTaskAll) UnPack() *ProgramTaskAllT { + if rcv == nil { return nil } + t := &ProgramTaskAllT{} + rcv.UnPackTo(t) + return t +} + +type ProgramTaskAll struct { + _tab flatbuffers.Table +} + +func GetRootAsProgramTaskAll(buf []byte, offset flatbuffers.UOffsetT) *ProgramTaskAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ProgramTaskAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProgramTaskAll(buf []byte, offset flatbuffers.UOffsetT) *ProgramTaskAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ProgramTaskAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ProgramTaskAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProgramTaskAll) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ProgramTaskAll) Tasks(obj *ProgramTask, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ProgramTaskAll) TasksLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ProgramTaskAllStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ProgramTaskAllAddTasks(builder *flatbuffers.Builder, Tasks flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(Tasks), 0) +} +func ProgramTaskAllStartTasksVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProgramTaskAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ProgramTaskState.go b/pkg/fbs/comm/datalayer/ProgramTaskState.go index 690c0e0..ec6172f 100644 --- a/pkg/fbs/comm/datalayer/ProgramTaskState.go +++ b/pkg/fbs/comm/datalayer/ProgramTaskState.go @@ -1,35 +1,39 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type ProgramTaskState int8 - -const ( - ProgramTaskStatepending ProgramTaskState = 0 - ProgramTaskStatefailed ProgramTaskState = 1 - ProgramTaskStatedone ProgramTaskState = 2 - ProgramTaskStaterunning ProgramTaskState = 3 -) - -var EnumNamesProgramTaskState = map[ProgramTaskState]string{ - ProgramTaskStatepending: "pending", - ProgramTaskStatefailed: "failed", - ProgramTaskStatedone: "done", - ProgramTaskStaterunning: "running", -} - -var EnumValuesProgramTaskState = map[string]ProgramTaskState{ - "pending": ProgramTaskStatepending, - "failed": ProgramTaskStatefailed, - "done": ProgramTaskStatedone, - "running": ProgramTaskStaterunning, -} - -func (v ProgramTaskState) String() string { - if s, ok := EnumNamesProgramTaskState[v]; ok { - return s - } - return "ProgramTaskState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type ProgramTaskState int8 + +const ( + /// task is pending and not been started + ProgramTaskStatepending ProgramTaskState = 0 + /// task finished with failure + ProgramTaskStatefailed ProgramTaskState = 1 + /// task is successfully done + ProgramTaskStatedone ProgramTaskState = 2 + /// task is running + ProgramTaskStaterunning ProgramTaskState = 3 +) + +var EnumNamesProgramTaskState = map[ProgramTaskState]string{ + ProgramTaskStatepending: "pending", + ProgramTaskStatefailed: "failed", + ProgramTaskStatedone: "done", + ProgramTaskStaterunning: "running", +} + +var EnumValuesProgramTaskState = map[string]ProgramTaskState{ + "pending": ProgramTaskStatepending, + "failed": ProgramTaskStatefailed, + "done": ProgramTaskStatedone, + "running": ProgramTaskStaterunning, +} + +func (v ProgramTaskState) String() string { + if s, ok := EnumNamesProgramTaskState[v]; ok { + return s + } + return "ProgramTaskState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/Properties.go b/pkg/fbs/comm/datalayer/Properties.go index 500ca41..cb97724 100644 --- a/pkg/fbs/comm/datalayer/Properties.go +++ b/pkg/fbs/comm/datalayer/Properties.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - "strconv" - - flatbuffers "github.com/google/flatbuffers/go" -) - -type Properties byte - -const ( - PropertiesNONE Properties = 0 - PropertiesSampling Properties = 1 - PropertiesQueueing Properties = 2 - PropertiesDataChangeFilter Properties = 3 - PropertiesChangeEvents Properties = 4 - PropertiesCounting Properties = 5 -) - -var EnumNamesProperties = map[Properties]string{ - PropertiesNONE: "NONE", - PropertiesSampling: "Sampling", - PropertiesQueueing: "Queueing", - PropertiesDataChangeFilter: "DataChangeFilter", - PropertiesChangeEvents: "ChangeEvents", - PropertiesCounting: "Counting", -} - -var EnumValuesProperties = map[string]Properties{ - "NONE": PropertiesNONE, - "Sampling": PropertiesSampling, - "Queueing": PropertiesQueueing, - "DataChangeFilter": PropertiesDataChangeFilter, - "ChangeEvents": PropertiesChangeEvents, - "Counting": PropertiesCounting, -} - -func (v Properties) String() string { - if s, ok := EnumNamesProperties[v]; ok { - return s - } - return "Properties(" + strconv.FormatInt(int64(v), 10) + ")" -} - -type PropertiesT struct { - Type Properties - Value interface{} -} - -func (t *PropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { - return 0 - } - switch t.Type { - case PropertiesSampling: - return t.Value.(*SamplingT).Pack(builder) - case PropertiesQueueing: - return t.Value.(*QueueingT).Pack(builder) - case PropertiesDataChangeFilter: - return t.Value.(*DataChangeFilterT).Pack(builder) - case PropertiesChangeEvents: - return t.Value.(*ChangeEventsT).Pack(builder) - case PropertiesCounting: - return t.Value.(*CountingT).Pack(builder) - } - return 0 -} - -func (rcv Properties) UnPack(table flatbuffers.Table) *PropertiesT { - switch rcv { - case PropertiesSampling: - x := Sampling{_tab: table} - return &PropertiesT{ Type: PropertiesSampling, Value: x.UnPack() } - case PropertiesQueueing: - x := Queueing{_tab: table} - return &PropertiesT{ Type: PropertiesQueueing, Value: x.UnPack() } - case PropertiesDataChangeFilter: - x := DataChangeFilter{_tab: table} - return &PropertiesT{ Type: PropertiesDataChangeFilter, Value: x.UnPack() } - case PropertiesChangeEvents: - x := ChangeEvents{_tab: table} - return &PropertiesT{ Type: PropertiesChangeEvents, Value: x.UnPack() } - case PropertiesCounting: - x := Counting{_tab: table} - return &PropertiesT{ Type: PropertiesCounting, Value: x.UnPack() } - } - return nil -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + "strconv" + + flatbuffers "github.com/google/flatbuffers/go" +) + +type Properties byte + +const ( + PropertiesNONE Properties = 0 + PropertiesSampling Properties = 1 + PropertiesQueueing Properties = 2 + PropertiesDataChangeFilter Properties = 3 + PropertiesChangeEvents Properties = 4 + PropertiesCounting Properties = 5 +) + +var EnumNamesProperties = map[Properties]string{ + PropertiesNONE: "NONE", + PropertiesSampling: "Sampling", + PropertiesQueueing: "Queueing", + PropertiesDataChangeFilter: "DataChangeFilter", + PropertiesChangeEvents: "ChangeEvents", + PropertiesCounting: "Counting", +} + +var EnumValuesProperties = map[string]Properties{ + "NONE": PropertiesNONE, + "Sampling": PropertiesSampling, + "Queueing": PropertiesQueueing, + "DataChangeFilter": PropertiesDataChangeFilter, + "ChangeEvents": PropertiesChangeEvents, + "Counting": PropertiesCounting, +} + +func (v Properties) String() string { + if s, ok := EnumNamesProperties[v]; ok { + return s + } + return "Properties(" + strconv.FormatInt(int64(v), 10) + ")" +} + +type PropertiesT struct { + Type Properties + Value interface{} +} + +func (t *PropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { + return 0 + } + switch t.Type { + case PropertiesSampling: + return t.Value.(*SamplingT).Pack(builder) + case PropertiesQueueing: + return t.Value.(*QueueingT).Pack(builder) + case PropertiesDataChangeFilter: + return t.Value.(*DataChangeFilterT).Pack(builder) + case PropertiesChangeEvents: + return t.Value.(*ChangeEventsT).Pack(builder) + case PropertiesCounting: + return t.Value.(*CountingT).Pack(builder) + } + return 0 +} + +func (rcv Properties) UnPack(table flatbuffers.Table) *PropertiesT { + switch rcv { + case PropertiesSampling: + x := Sampling{_tab: table} + return &PropertiesT{ Type: PropertiesSampling, Value: x.UnPack() } + case PropertiesQueueing: + x := Queueing{_tab: table} + return &PropertiesT{ Type: PropertiesQueueing, Value: x.UnPack() } + case PropertiesDataChangeFilter: + x := DataChangeFilter{_tab: table} + return &PropertiesT{ Type: PropertiesDataChangeFilter, Value: x.UnPack() } + case PropertiesChangeEvents: + x := ChangeEvents{_tab: table} + return &PropertiesT{ Type: PropertiesChangeEvents, Value: x.UnPack() } + case PropertiesCounting: + x := Counting{_tab: table} + return &PropertiesT{ Type: PropertiesCounting, Value: x.UnPack() } + } + return nil +} diff --git a/pkg/fbs/comm/datalayer/Property.go b/pkg/fbs/comm/datalayer/Property.go index 7523118..1f46db4 100644 --- a/pkg/fbs/comm/datalayer/Property.go +++ b/pkg/fbs/comm/datalayer/Property.go @@ -1,98 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type PropertyT struct { - Rule *PropertiesT -} - -func (t *PropertyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ruleOffset := t.Rule.Pack(builder) - - PropertyStart(builder) - if t.Rule != nil { - PropertyAddRuleType(builder, t.Rule.Type) - } - PropertyAddRule(builder, ruleOffset) - return PropertyEnd(builder) -} - -func (rcv *Property) UnPackTo(t *PropertyT) { - ruleTable := flatbuffers.Table{} - if rcv.Rule(&ruleTable) { - t.Rule = rcv.RuleType().UnPack(ruleTable) - } -} - -func (rcv *Property) UnPack() *PropertyT { - if rcv == nil { return nil } - t := &PropertyT{} - rcv.UnPackTo(t) - return t -} - -type Property struct { - _tab flatbuffers.Table -} - -func GetRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Property{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Property{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Property) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Property) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Property) RuleType() Properties { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Properties(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Property) MutateRuleType(n Properties) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *Property) Rule(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -func PropertyStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func PropertyAddRuleType(builder *flatbuffers.Builder, ruleType Properties) { - builder.PrependByteSlot(0, byte(ruleType), 0) -} -func PropertyAddRule(builder *flatbuffers.Builder, rule flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(rule), 0) -} -func PropertyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// The table Property can be used to set additional optional properties which influence the subcription behaviour. +/// If no Properties are given, default values will be used automatically. +type PropertyT struct { + Rule *PropertiesT +} + +func (t *PropertyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ruleOffset := t.Rule.Pack(builder) + + PropertyStart(builder) + if t.Rule != nil { + PropertyAddRuleType(builder, t.Rule.Type) + } + PropertyAddRule(builder, ruleOffset) + return PropertyEnd(builder) +} + +func (rcv *Property) UnPackTo(t *PropertyT) { + ruleTable := flatbuffers.Table{} + if rcv.Rule(&ruleTable) { + t.Rule = rcv.RuleType().UnPack(ruleTable) + } +} + +func (rcv *Property) UnPack() *PropertyT { + if rcv == nil { return nil } + t := &PropertyT{} + rcv.UnPackTo(t) + return t +} + +type Property struct { + _tab flatbuffers.Table +} + +func GetRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Property{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Property{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Property) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Property) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Property) RuleType() Properties { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Properties(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Property) MutateRuleType(n Properties) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *Property) Rule(obj *flatbuffers.Table) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + rcv._tab.Union(obj, o) + return true + } + return false +} + +func PropertyStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func PropertyAddRuleType(builder *flatbuffers.Builder, ruleType Properties) { + builder.PrependByteSlot(0, byte(ruleType), 0) +} +func PropertyAddRule(builder *flatbuffers.Builder, rule flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(rule), 0) +} +func PropertyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/QueueBehaviour.go b/pkg/fbs/comm/datalayer/QueueBehaviour.go index dafaea2..f297934 100644 --- a/pkg/fbs/comm/datalayer/QueueBehaviour.go +++ b/pkg/fbs/comm/datalayer/QueueBehaviour.go @@ -1,29 +1,29 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type QueueBehaviour int32 - -const ( - QueueBehaviourDiscardOldest QueueBehaviour = 0 - QueueBehaviourDiscardNewest QueueBehaviour = 1 -) - -var EnumNamesQueueBehaviour = map[QueueBehaviour]string{ - QueueBehaviourDiscardOldest: "DiscardOldest", - QueueBehaviourDiscardNewest: "DiscardNewest", -} - -var EnumValuesQueueBehaviour = map[string]QueueBehaviour{ - "DiscardOldest": QueueBehaviourDiscardOldest, - "DiscardNewest": QueueBehaviourDiscardNewest, -} - -func (v QueueBehaviour) String() string { - if s, ok := EnumNamesQueueBehaviour[v]; ok { - return s - } - return "QueueBehaviour(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type QueueBehaviour int32 + +const ( + QueueBehaviourDiscardOldest QueueBehaviour = 0 + QueueBehaviourDiscardNewest QueueBehaviour = 1 +) + +var EnumNamesQueueBehaviour = map[QueueBehaviour]string{ + QueueBehaviourDiscardOldest: "DiscardOldest", + QueueBehaviourDiscardNewest: "DiscardNewest", +} + +var EnumValuesQueueBehaviour = map[string]QueueBehaviour{ + "DiscardOldest": QueueBehaviourDiscardOldest, + "DiscardNewest": QueueBehaviourDiscardNewest, +} + +func (v QueueBehaviour) String() string { + if s, ok := EnumNamesQueueBehaviour[v]; ok { + return s + } + return "QueueBehaviour(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/Queueing.go b/pkg/fbs/comm/datalayer/Queueing.go index 0b523a2..1c940a9 100644 --- a/pkg/fbs/comm/datalayer/Queueing.go +++ b/pkg/fbs/comm/datalayer/Queueing.go @@ -1,96 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type QueueingT struct { - QueueSize uint32 - Behaviour QueueBehaviour -} - -func (t *QueueingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - QueueingStart(builder) - QueueingAddQueueSize(builder, t.QueueSize) - QueueingAddBehaviour(builder, t.Behaviour) - return QueueingEnd(builder) -} - -func (rcv *Queueing) UnPackTo(t *QueueingT) { - t.QueueSize = rcv.QueueSize() - t.Behaviour = rcv.Behaviour() -} - -func (rcv *Queueing) UnPack() *QueueingT { - if rcv == nil { return nil } - t := &QueueingT{} - rcv.UnPackTo(t) - return t -} - -type Queueing struct { - _tab flatbuffers.Table -} - -func GetRootAsQueueing(buf []byte, offset flatbuffers.UOffsetT) *Queueing { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Queueing{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsQueueing(buf []byte, offset flatbuffers.UOffsetT) *Queueing { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Queueing{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Queueing) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Queueing) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Queueing) QueueSize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 10 -} - -func (rcv *Queueing) MutateQueueSize(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *Queueing) Behaviour() QueueBehaviour { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return QueueBehaviour(rcv._tab.GetInt32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Queueing) MutateBehaviour(n QueueBehaviour) bool { - return rcv._tab.MutateInt32Slot(6, int32(n)) -} - -func QueueingStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func QueueingAddQueueSize(builder *flatbuffers.Builder, queueSize uint32) { - builder.PrependUint32Slot(0, queueSize, 10) -} -func QueueingAddBehaviour(builder *flatbuffers.Builder, behaviour QueueBehaviour) { - builder.PrependInt32Slot(1, int32(behaviour), 0) -} -func QueueingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type QueueingT struct { + QueueSize uint32 + Behaviour QueueBehaviour +} + +func (t *QueueingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + QueueingStart(builder) + QueueingAddQueueSize(builder, t.QueueSize) + QueueingAddBehaviour(builder, t.Behaviour) + return QueueingEnd(builder) +} + +func (rcv *Queueing) UnPackTo(t *QueueingT) { + t.QueueSize = rcv.QueueSize() + t.Behaviour = rcv.Behaviour() +} + +func (rcv *Queueing) UnPack() *QueueingT { + if rcv == nil { return nil } + t := &QueueingT{} + rcv.UnPackTo(t) + return t +} + +type Queueing struct { + _tab flatbuffers.Table +} + +func GetRootAsQueueing(buf []byte, offset flatbuffers.UOffsetT) *Queueing { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Queueing{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsQueueing(buf []byte, offset flatbuffers.UOffsetT) *Queueing { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Queueing{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Queueing) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Queueing) Table() flatbuffers.Table { + return rcv._tab +} + +/// size of buffer +func (rcv *Queueing) QueueSize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 10 +} + +/// size of buffer +func (rcv *Queueing) MutateQueueSize(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// The queing strategy. Decided what data should be sent or disarded when the queue runs full before it could be sent. +func (rcv *Queueing) Behaviour() QueueBehaviour { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return QueueBehaviour(rcv._tab.GetInt32(o + rcv._tab.Pos)) + } + return 0 +} + +/// The queing strategy. Decided what data should be sent or disarded when the queue runs full before it could be sent. +func (rcv *Queueing) MutateBehaviour(n QueueBehaviour) bool { + return rcv._tab.MutateInt32Slot(6, int32(n)) +} + +func QueueingStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func QueueingAddQueueSize(builder *flatbuffers.Builder, queueSize uint32) { + builder.PrependUint32Slot(0, queueSize, 10) +} +func QueueingAddBehaviour(builder *flatbuffers.Builder, behaviour QueueBehaviour) { + builder.PrependInt32Slot(1, int32(behaviour), 0) +} +func QueueingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Raw.go b/pkg/fbs/comm/datalayer/Raw.go index 9c3504e..5f891a8 100644 --- a/pkg/fbs/comm/datalayer/Raw.go +++ b/pkg/fbs/comm/datalayer/Raw.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RawT struct { - Value []int8 -} - -func (t *RawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := flatbuffers.UOffsetT(0) - if t.Value != nil { - valueLength := len(t.Value) - RawStartValueVector(builder, valueLength) - for j := valueLength - 1; j >= 0; j-- { - builder.PrependInt8(t.Value[j]) - } - valueOffset = builder.EndVector(valueLength) - } - RawStart(builder) - RawAddValue(builder, valueOffset) - return RawEnd(builder) -} - -func (rcv *Raw) UnPackTo(t *RawT) { - valueLength := rcv.ValueLength() - t.Value = make([]int8, valueLength) - for j := 0; j < valueLength; j++ { - t.Value[j] = rcv.Value(j) - } -} - -func (rcv *Raw) UnPack() *RawT { - if rcv == nil { return nil } - t := &RawT{} - rcv.UnPackTo(t) - return t -} - -type Raw struct { - _tab flatbuffers.Table -} - -func GetRootAsRaw(buf []byte, offset flatbuffers.UOffsetT) *Raw { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Raw{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRaw(buf []byte, offset flatbuffers.UOffsetT) *Raw { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Raw{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Raw) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Raw) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Raw) Value(j int) int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *Raw) ValueLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Raw) MutateValue(j int, n int8) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func RawStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func RawAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func RawStartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func RawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RawT struct { + Value []int8 +} + +func (t *RawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := flatbuffers.UOffsetT(0) + if t.Value != nil { + valueLength := len(t.Value) + RawStartValueVector(builder, valueLength) + for j := valueLength - 1; j >= 0; j-- { + builder.PrependInt8(t.Value[j]) + } + valueOffset = builder.EndVector(valueLength) + } + RawStart(builder) + RawAddValue(builder, valueOffset) + return RawEnd(builder) +} + +func (rcv *Raw) UnPackTo(t *RawT) { + valueLength := rcv.ValueLength() + t.Value = make([]int8, valueLength) + for j := 0; j < valueLength; j++ { + t.Value[j] = rcv.Value(j) + } +} + +func (rcv *Raw) UnPack() *RawT { + if rcv == nil { return nil } + t := &RawT{} + rcv.UnPackTo(t) + return t +} + +type Raw struct { + _tab flatbuffers.Table +} + +func GetRootAsRaw(buf []byte, offset flatbuffers.UOffsetT) *Raw { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Raw{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRaw(buf []byte, offset flatbuffers.UOffsetT) *Raw { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Raw{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Raw) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Raw) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Raw) Value(j int) int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *Raw) ValueLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Raw) MutateValue(j int, n int8) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func RawStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func RawAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func RawStartValueVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func RawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/RealtimeConfig.go b/pkg/fbs/comm/datalayer/RealtimeConfig.go index 713bd0e..47e229e 100644 --- a/pkg/fbs/comm/datalayer/RealtimeConfig.go +++ b/pkg/fbs/comm/datalayer/RealtimeConfig.go @@ -1,98 +1,103 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RealtimeConfigT struct { - DefaultInputAcessType AccessType - NTelBufConfig *NTelBufferConfigT -} - -func (t *RealtimeConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nTelBufConfigOffset := t.NTelBufConfig.Pack(builder) - RealtimeConfigStart(builder) - RealtimeConfigAddDefaultInputAcessType(builder, t.DefaultInputAcessType) - RealtimeConfigAddNTelBufConfig(builder, nTelBufConfigOffset) - return RealtimeConfigEnd(builder) -} - -func (rcv *RealtimeConfig) UnPackTo(t *RealtimeConfigT) { - t.DefaultInputAcessType = rcv.DefaultInputAcessType() - t.NTelBufConfig = rcv.NTelBufConfig(nil).UnPack() -} - -func (rcv *RealtimeConfig) UnPack() *RealtimeConfigT { - if rcv == nil { return nil } - t := &RealtimeConfigT{} - rcv.UnPackTo(t) - return t -} - -type RealtimeConfig struct { - _tab flatbuffers.Table -} - -func GetRootAsRealtimeConfig(buf []byte, offset flatbuffers.UOffsetT) *RealtimeConfig { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RealtimeConfig{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRealtimeConfig(buf []byte, offset flatbuffers.UOffsetT) *RealtimeConfig { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RealtimeConfig{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RealtimeConfig) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RealtimeConfig) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RealtimeConfig) DefaultInputAcessType() AccessType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return AccessType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -func (rcv *RealtimeConfig) MutateDefaultInputAcessType(n AccessType) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *RealtimeConfig) NTelBufConfig(obj *NTelBufferConfig) *NTelBufferConfig { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(NTelBufferConfig) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func RealtimeConfigStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func RealtimeConfigAddDefaultInputAcessType(builder *flatbuffers.Builder, defaultInputAcessType AccessType) { - builder.PrependInt8Slot(0, int8(defaultInputAcessType), 2) -} -func RealtimeConfigAddNTelBufConfig(builder *flatbuffers.Builder, nTelBufConfig flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(nTelBufConfig), 0) -} -func RealtimeConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of realtime input buffer system +type RealtimeConfigT struct { + DefaultInputAcessType AccessType + NTelBufConfig *NTelBufferConfigT +} + +func (t *RealtimeConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nTelBufConfigOffset := t.NTelBufConfig.Pack(builder) + RealtimeConfigStart(builder) + RealtimeConfigAddDefaultInputAcessType(builder, t.DefaultInputAcessType) + RealtimeConfigAddNTelBufConfig(builder, nTelBufConfigOffset) + return RealtimeConfigEnd(builder) +} + +func (rcv *RealtimeConfig) UnPackTo(t *RealtimeConfigT) { + t.DefaultInputAcessType = rcv.DefaultInputAcessType() + t.NTelBufConfig = rcv.NTelBufConfig(nil).UnPack() +} + +func (rcv *RealtimeConfig) UnPack() *RealtimeConfigT { + if rcv == nil { return nil } + t := &RealtimeConfigT{} + rcv.UnPackTo(t) + return t +} + +type RealtimeConfig struct { + _tab flatbuffers.Table +} + +func GetRootAsRealtimeConfig(buf []byte, offset flatbuffers.UOffsetT) *RealtimeConfig { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RealtimeConfig{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRealtimeConfig(buf []byte, offset flatbuffers.UOffsetT) *RealtimeConfig { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RealtimeConfig{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RealtimeConfig) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RealtimeConfig) Table() flatbuffers.Table { + return rcv._tab +} + +/// default buffer type used for Data Layer RT input +func (rcv *RealtimeConfig) DefaultInputAcessType() AccessType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return AccessType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// default buffer type used for Data Layer RT input +func (rcv *RealtimeConfig) MutateDefaultInputAcessType(n AccessType) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +/// Configuration if NTelBuf is configured in defaultInputAcessType +func (rcv *RealtimeConfig) NTelBufConfig(obj *NTelBufferConfig) *NTelBufferConfig { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(NTelBufferConfig) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Configuration if NTelBuf is configured in defaultInputAcessType +func RealtimeConfigStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func RealtimeConfigAddDefaultInputAcessType(builder *flatbuffers.Builder, defaultInputAcessType AccessType) { + builder.PrependInt8Slot(0, int8(defaultInputAcessType), 2) +} +func RealtimeConfigAddNTelBufConfig(builder *flatbuffers.Builder, nTelBufConfig flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(nTelBufConfig), 0) +} +func RealtimeConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Reference.go b/pkg/fbs/comm/datalayer/Reference.go index 1b32a60..5cc867e 100644 --- a/pkg/fbs/comm/datalayer/Reference.go +++ b/pkg/fbs/comm/datalayer/Reference.go @@ -1,90 +1,94 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ReferenceT struct { - Type string - TargetAddress string -} - -func (t *ReferenceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - typeOffset := builder.CreateString(t.Type) - targetAddressOffset := builder.CreateString(t.TargetAddress) - ReferenceStart(builder) - ReferenceAddType(builder, typeOffset) - ReferenceAddTargetAddress(builder, targetAddressOffset) - return ReferenceEnd(builder) -} - -func (rcv *Reference) UnPackTo(t *ReferenceT) { - t.Type = string(rcv.Type()) - t.TargetAddress = string(rcv.TargetAddress()) -} - -func (rcv *Reference) UnPack() *ReferenceT { - if rcv == nil { return nil } - t := &ReferenceT{} - rcv.UnPackTo(t) - return t -} - -type Reference struct { - _tab flatbuffers.Table -} - -func GetRootAsReference(buf []byte, offset flatbuffers.UOffsetT) *Reference { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Reference{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsReference(buf []byte, offset flatbuffers.UOffsetT) *Reference { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Reference{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Reference) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Reference) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Reference) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Reference) TargetAddress() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ReferenceStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ReferenceAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(type_), 0) -} -func ReferenceAddTargetAddress(builder *flatbuffers.Builder, targetAddress flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(targetAddress), 0) -} -func ReferenceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ReferenceT struct { + Type string + TargetAddress string +} + +func (t *ReferenceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + typeOffset := builder.CreateString(t.Type) + targetAddressOffset := builder.CreateString(t.TargetAddress) + ReferenceStart(builder) + ReferenceAddType(builder, typeOffset) + ReferenceAddTargetAddress(builder, targetAddressOffset) + return ReferenceEnd(builder) +} + +func (rcv *Reference) UnPackTo(t *ReferenceT) { + t.Type = string(rcv.Type()) + t.TargetAddress = string(rcv.TargetAddress()) +} + +func (rcv *Reference) UnPack() *ReferenceT { + if rcv == nil { return nil } + t := &ReferenceT{} + rcv.UnPackTo(t) + return t +} + +type Reference struct { + _tab flatbuffers.Table +} + +func GetRootAsReference(buf []byte, offset flatbuffers.UOffsetT) *Reference { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Reference{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsReference(buf []byte, offset flatbuffers.UOffsetT) *Reference { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Reference{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Reference) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Reference) Table() flatbuffers.Table { + return rcv._tab +} + +/// nodeid of type "readType", "writeType", "createType", ... +func (rcv *Reference) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// nodeid of type "readType", "writeType", "createType", ... +/// full qualified address of target +func (rcv *Reference) TargetAddress() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// full qualified address of target +func ReferenceStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ReferenceAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(type_), 0) +} +func ReferenceAddTargetAddress(builder *flatbuffers.Builder, targetAddress flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(targetAddress), 0) +} +func ReferenceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/RetainStats.go b/pkg/fbs/comm/datalayer/RetainStats.go index 98b10a2..8109f56 100644 --- a/pkg/fbs/comm/datalayer/RetainStats.go +++ b/pkg/fbs/comm/datalayer/RetainStats.go @@ -1,183 +1,197 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RetainStatsT struct { - Total uint32 - Free uint32 - Used uint32 - BiggestFree uint32 - SyncCounter uint32 - LastUsed uint32 - Info string -} - -func (t *RetainStatsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - infoOffset := builder.CreateString(t.Info) - RetainStatsStart(builder) - RetainStatsAddTotal(builder, t.Total) - RetainStatsAddFree(builder, t.Free) - RetainStatsAddUsed(builder, t.Used) - RetainStatsAddBiggestFree(builder, t.BiggestFree) - RetainStatsAddSyncCounter(builder, t.SyncCounter) - RetainStatsAddLastUsed(builder, t.LastUsed) - RetainStatsAddInfo(builder, infoOffset) - return RetainStatsEnd(builder) -} - -func (rcv *RetainStats) UnPackTo(t *RetainStatsT) { - t.Total = rcv.Total() - t.Free = rcv.Free() - t.Used = rcv.Used() - t.BiggestFree = rcv.BiggestFree() - t.SyncCounter = rcv.SyncCounter() - t.LastUsed = rcv.LastUsed() - t.Info = string(rcv.Info()) -} - -func (rcv *RetainStats) UnPack() *RetainStatsT { - if rcv == nil { return nil } - t := &RetainStatsT{} - rcv.UnPackTo(t) - return t -} - -type RetainStats struct { - _tab flatbuffers.Table -} - -func GetRootAsRetainStats(buf []byte, offset flatbuffers.UOffsetT) *RetainStats { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RetainStats{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRetainStats(buf []byte, offset flatbuffers.UOffsetT) *RetainStats { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RetainStats{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RetainStats) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RetainStats) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RetainStats) Total() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RetainStats) MutateTotal(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *RetainStats) Free() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RetainStats) MutateFree(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *RetainStats) Used() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RetainStats) MutateUsed(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *RetainStats) BiggestFree() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RetainStats) MutateBiggestFree(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *RetainStats) SyncCounter() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RetainStats) MutateSyncCounter(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *RetainStats) LastUsed() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RetainStats) MutateLastUsed(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *RetainStats) Info() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func RetainStatsStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func RetainStatsAddTotal(builder *flatbuffers.Builder, total uint32) { - builder.PrependUint32Slot(0, total, 0) -} -func RetainStatsAddFree(builder *flatbuffers.Builder, free uint32) { - builder.PrependUint32Slot(1, free, 0) -} -func RetainStatsAddUsed(builder *flatbuffers.Builder, used uint32) { - builder.PrependUint32Slot(2, used, 0) -} -func RetainStatsAddBiggestFree(builder *flatbuffers.Builder, biggestFree uint32) { - builder.PrependUint32Slot(3, biggestFree, 0) -} -func RetainStatsAddSyncCounter(builder *flatbuffers.Builder, syncCounter uint32) { - builder.PrependUint32Slot(4, syncCounter, 0) -} -func RetainStatsAddLastUsed(builder *flatbuffers.Builder, lastUsed uint32) { - builder.PrependUint32Slot(5, lastUsed, 0) -} -func RetainStatsAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(info), 0) -} -func RetainStatsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RetainStatsT struct { + Total uint32 + Free uint32 + Used uint32 + BiggestFree uint32 + SyncCounter uint32 + LastUsed uint32 + Info string +} + +func (t *RetainStatsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + infoOffset := builder.CreateString(t.Info) + RetainStatsStart(builder) + RetainStatsAddTotal(builder, t.Total) + RetainStatsAddFree(builder, t.Free) + RetainStatsAddUsed(builder, t.Used) + RetainStatsAddBiggestFree(builder, t.BiggestFree) + RetainStatsAddSyncCounter(builder, t.SyncCounter) + RetainStatsAddLastUsed(builder, t.LastUsed) + RetainStatsAddInfo(builder, infoOffset) + return RetainStatsEnd(builder) +} + +func (rcv *RetainStats) UnPackTo(t *RetainStatsT) { + t.Total = rcv.Total() + t.Free = rcv.Free() + t.Used = rcv.Used() + t.BiggestFree = rcv.BiggestFree() + t.SyncCounter = rcv.SyncCounter() + t.LastUsed = rcv.LastUsed() + t.Info = string(rcv.Info()) +} + +func (rcv *RetainStats) UnPack() *RetainStatsT { + if rcv == nil { return nil } + t := &RetainStatsT{} + rcv.UnPackTo(t) + return t +} + +type RetainStats struct { + _tab flatbuffers.Table +} + +func GetRootAsRetainStats(buf []byte, offset flatbuffers.UOffsetT) *RetainStats { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RetainStats{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRetainStats(buf []byte, offset flatbuffers.UOffsetT) *RetainStats { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RetainStats{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RetainStats) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RetainStats) Table() flatbuffers.Table { + return rcv._tab +} + +/// total size of memory in bytes +func (rcv *RetainStats) Total() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// total size of memory in bytes +func (rcv *RetainStats) MutateTotal(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// free size of memory in bytes +func (rcv *RetainStats) Free() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// free size of memory in bytes +func (rcv *RetainStats) MutateFree(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// used size of memory in bytes +func (rcv *RetainStats) Used() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// used size of memory in bytes +func (rcv *RetainStats) MutateUsed(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// biggest free chunk of memory in bytes +func (rcv *RetainStats) BiggestFree() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// biggest free chunk of memory in bytes +func (rcv *RetainStats) MutateBiggestFree(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +/// now often was the nvram synced +func (rcv *RetainStats) SyncCounter() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// now often was the nvram synced +func (rcv *RetainStats) MutateSyncCounter(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +/// last used offset +func (rcv *RetainStats) LastUsed() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// last used offset +func (rcv *RetainStats) MutateLastUsed(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +/// debug information of shared memory +func (rcv *RetainStats) Info() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// debug information of shared memory +func RetainStatsStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func RetainStatsAddTotal(builder *flatbuffers.Builder, total uint32) { + builder.PrependUint32Slot(0, total, 0) +} +func RetainStatsAddFree(builder *flatbuffers.Builder, free uint32) { + builder.PrependUint32Slot(1, free, 0) +} +func RetainStatsAddUsed(builder *flatbuffers.Builder, used uint32) { + builder.PrependUint32Slot(2, used, 0) +} +func RetainStatsAddBiggestFree(builder *flatbuffers.Builder, biggestFree uint32) { + builder.PrependUint32Slot(3, biggestFree, 0) +} +func RetainStatsAddSyncCounter(builder *flatbuffers.Builder, syncCounter uint32) { + builder.PrependUint32Slot(4, syncCounter, 0) +} +func RetainStatsAddLastUsed(builder *flatbuffers.Builder, lastUsed uint32) { + builder.PrependUint32Slot(5, lastUsed, 0) +} +func RetainStatsAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(info), 0) +} +func RetainStatsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Sampling.go b/pkg/fbs/comm/datalayer/Sampling.go index c0e2e11..4b18cec 100644 --- a/pkg/fbs/comm/datalayer/Sampling.go +++ b/pkg/fbs/comm/datalayer/Sampling.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SamplingT struct { - SamplingInterval uint64 -} - -func (t *SamplingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SamplingStart(builder) - SamplingAddSamplingInterval(builder, t.SamplingInterval) - return SamplingEnd(builder) -} - -func (rcv *Sampling) UnPackTo(t *SamplingT) { - t.SamplingInterval = rcv.SamplingInterval() -} - -func (rcv *Sampling) UnPack() *SamplingT { - if rcv == nil { return nil } - t := &SamplingT{} - rcv.UnPackTo(t) - return t -} - -type Sampling struct { - _tab flatbuffers.Table -} - -func GetRootAsSampling(buf []byte, offset flatbuffers.UOffsetT) *Sampling { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Sampling{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSampling(buf []byte, offset flatbuffers.UOffsetT) *Sampling { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Sampling{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Sampling) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Sampling) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Sampling) SamplingInterval() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 1000000 -} - -func (rcv *Sampling) MutateSamplingInterval(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func SamplingStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SamplingAddSamplingInterval(builder *flatbuffers.Builder, samplingInterval uint64) { - builder.PrependUint64Slot(0, samplingInterval, 1000000) -} -func SamplingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SamplingT struct { + SamplingInterval uint64 +} + +func (t *SamplingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SamplingStart(builder) + SamplingAddSamplingInterval(builder, t.SamplingInterval) + return SamplingEnd(builder) +} + +func (rcv *Sampling) UnPackTo(t *SamplingT) { + t.SamplingInterval = rcv.SamplingInterval() +} + +func (rcv *Sampling) UnPack() *SamplingT { + if rcv == nil { return nil } + t := &SamplingT{} + rcv.UnPackTo(t) + return t +} + +type Sampling struct { + _tab flatbuffers.Table +} + +func GetRootAsSampling(buf []byte, offset flatbuffers.UOffsetT) *Sampling { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Sampling{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSampling(buf []byte, offset flatbuffers.UOffsetT) *Sampling { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Sampling{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Sampling) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Sampling) Table() flatbuffers.Table { + return rcv._tab +} + +/// sample time in µ seconds for minimum sampling of data - currently only multiples of 1000 are supported +func (rcv *Sampling) SamplingInterval() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 1000000 +} + +/// sample time in µ seconds for minimum sampling of data - currently only multiples of 1000 are supported +func (rcv *Sampling) MutateSamplingInterval(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func SamplingStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SamplingAddSamplingInterval(builder *flatbuffers.Builder, samplingInterval uint64) { + builder.PrependUint64Slot(0, samplingInterval, 1000000) +} +func SamplingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Scope.go b/pkg/fbs/comm/datalayer/Scope.go index 32edb0f..6ecb00a 100644 --- a/pkg/fbs/comm/datalayer/Scope.go +++ b/pkg/fbs/comm/datalayer/Scope.go @@ -1,277 +1,291 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ScopeT struct { - Identifier string - Name string - Description string - PermissionsR []string - PermissionsRW []string - PermissionsX []string - PermissionsRWX []string -} - -func (t *ScopeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - identifierOffset := builder.CreateString(t.Identifier) - nameOffset := builder.CreateString(t.Name) - descriptionOffset := builder.CreateString(t.Description) - permissionsROffset := flatbuffers.UOffsetT(0) - if t.PermissionsR != nil { - permissionsRLength := len(t.PermissionsR) - permissionsROffsets := make([]flatbuffers.UOffsetT, permissionsRLength) - for j := 0; j < permissionsRLength; j++ { - permissionsROffsets[j] = builder.CreateString(t.PermissionsR[j]) - } - ScopeStartPermissionsRVector(builder, permissionsRLength) - for j := permissionsRLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(permissionsROffsets[j]) - } - permissionsROffset = builder.EndVector(permissionsRLength) - } - permissionsRWOffset := flatbuffers.UOffsetT(0) - if t.PermissionsRW != nil { - permissionsRWLength := len(t.PermissionsRW) - permissionsRWOffsets := make([]flatbuffers.UOffsetT, permissionsRWLength) - for j := 0; j < permissionsRWLength; j++ { - permissionsRWOffsets[j] = builder.CreateString(t.PermissionsRW[j]) - } - ScopeStartPermissionsRWVector(builder, permissionsRWLength) - for j := permissionsRWLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(permissionsRWOffsets[j]) - } - permissionsRWOffset = builder.EndVector(permissionsRWLength) - } - permissionsXOffset := flatbuffers.UOffsetT(0) - if t.PermissionsX != nil { - permissionsXLength := len(t.PermissionsX) - permissionsXOffsets := make([]flatbuffers.UOffsetT, permissionsXLength) - for j := 0; j < permissionsXLength; j++ { - permissionsXOffsets[j] = builder.CreateString(t.PermissionsX[j]) - } - ScopeStartPermissionsXVector(builder, permissionsXLength) - for j := permissionsXLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(permissionsXOffsets[j]) - } - permissionsXOffset = builder.EndVector(permissionsXLength) - } - permissionsRWXOffset := flatbuffers.UOffsetT(0) - if t.PermissionsRWX != nil { - permissionsRWXLength := len(t.PermissionsRWX) - permissionsRWXOffsets := make([]flatbuffers.UOffsetT, permissionsRWXLength) - for j := 0; j < permissionsRWXLength; j++ { - permissionsRWXOffsets[j] = builder.CreateString(t.PermissionsRWX[j]) - } - ScopeStartPermissionsRWXVector(builder, permissionsRWXLength) - for j := permissionsRWXLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(permissionsRWXOffsets[j]) - } - permissionsRWXOffset = builder.EndVector(permissionsRWXLength) - } - ScopeStart(builder) - ScopeAddIdentifier(builder, identifierOffset) - ScopeAddName(builder, nameOffset) - ScopeAddDescription(builder, descriptionOffset) - ScopeAddPermissionsR(builder, permissionsROffset) - ScopeAddPermissionsRW(builder, permissionsRWOffset) - ScopeAddPermissionsX(builder, permissionsXOffset) - ScopeAddPermissionsRWX(builder, permissionsRWXOffset) - return ScopeEnd(builder) -} - -func (rcv *Scope) UnPackTo(t *ScopeT) { - t.Identifier = string(rcv.Identifier()) - t.Name = string(rcv.Name()) - t.Description = string(rcv.Description()) - permissionsRLength := rcv.PermissionsRLength() - t.PermissionsR = make([]string, permissionsRLength) - for j := 0; j < permissionsRLength; j++ { - t.PermissionsR[j] = string(rcv.PermissionsR(j)) - } - permissionsRWLength := rcv.PermissionsRWLength() - t.PermissionsRW = make([]string, permissionsRWLength) - for j := 0; j < permissionsRWLength; j++ { - t.PermissionsRW[j] = string(rcv.PermissionsRW(j)) - } - permissionsXLength := rcv.PermissionsXLength() - t.PermissionsX = make([]string, permissionsXLength) - for j := 0; j < permissionsXLength; j++ { - t.PermissionsX[j] = string(rcv.PermissionsX(j)) - } - permissionsRWXLength := rcv.PermissionsRWXLength() - t.PermissionsRWX = make([]string, permissionsRWXLength) - for j := 0; j < permissionsRWXLength; j++ { - t.PermissionsRWX[j] = string(rcv.PermissionsRWX(j)) - } -} - -func (rcv *Scope) UnPack() *ScopeT { - if rcv == nil { return nil } - t := &ScopeT{} - rcv.UnPackTo(t) - return t -} - -type Scope struct { - _tab flatbuffers.Table -} - -func GetRootAsScope(buf []byte, offset flatbuffers.UOffsetT) *Scope { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Scope{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsScope(buf []byte, offset flatbuffers.UOffsetT) *Scope { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Scope{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Scope) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Scope) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Scope) Identifier() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Scope) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Scope) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Scope) PermissionsR(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Scope) PermissionsRLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Scope) PermissionsRW(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Scope) PermissionsRWLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Scope) PermissionsX(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Scope) PermissionsXLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Scope) PermissionsRWX(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Scope) PermissionsRWXLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ScopeStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func ScopeAddIdentifier(builder *flatbuffers.Builder, identifier flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(identifier), 0) -} -func ScopeAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) -} -func ScopeAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(description), 0) -} -func ScopeAddPermissionsR(builder *flatbuffers.Builder, permissionsR flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(permissionsR), 0) -} -func ScopeStartPermissionsRVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ScopeAddPermissionsRW(builder *flatbuffers.Builder, permissionsRW flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(permissionsRW), 0) -} -func ScopeStartPermissionsRWVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ScopeAddPermissionsX(builder *flatbuffers.Builder, permissionsX flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(permissionsX), 0) -} -func ScopeStartPermissionsXVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ScopeAddPermissionsRWX(builder *flatbuffers.Builder, permissionsRWX flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(permissionsRWX), 0) -} -func ScopeStartPermissionsRWXVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ScopeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ScopeT struct { + Identifier string + Name string + Description string + PermissionsR []string + PermissionsRW []string + PermissionsX []string + PermissionsRWX []string +} + +func (t *ScopeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + identifierOffset := builder.CreateString(t.Identifier) + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + permissionsROffset := flatbuffers.UOffsetT(0) + if t.PermissionsR != nil { + permissionsRLength := len(t.PermissionsR) + permissionsROffsets := make([]flatbuffers.UOffsetT, permissionsRLength) + for j := 0; j < permissionsRLength; j++ { + permissionsROffsets[j] = builder.CreateString(t.PermissionsR[j]) + } + ScopeStartPermissionsRVector(builder, permissionsRLength) + for j := permissionsRLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(permissionsROffsets[j]) + } + permissionsROffset = builder.EndVector(permissionsRLength) + } + permissionsRWOffset := flatbuffers.UOffsetT(0) + if t.PermissionsRW != nil { + permissionsRWLength := len(t.PermissionsRW) + permissionsRWOffsets := make([]flatbuffers.UOffsetT, permissionsRWLength) + for j := 0; j < permissionsRWLength; j++ { + permissionsRWOffsets[j] = builder.CreateString(t.PermissionsRW[j]) + } + ScopeStartPermissionsRWVector(builder, permissionsRWLength) + for j := permissionsRWLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(permissionsRWOffsets[j]) + } + permissionsRWOffset = builder.EndVector(permissionsRWLength) + } + permissionsXOffset := flatbuffers.UOffsetT(0) + if t.PermissionsX != nil { + permissionsXLength := len(t.PermissionsX) + permissionsXOffsets := make([]flatbuffers.UOffsetT, permissionsXLength) + for j := 0; j < permissionsXLength; j++ { + permissionsXOffsets[j] = builder.CreateString(t.PermissionsX[j]) + } + ScopeStartPermissionsXVector(builder, permissionsXLength) + for j := permissionsXLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(permissionsXOffsets[j]) + } + permissionsXOffset = builder.EndVector(permissionsXLength) + } + permissionsRWXOffset := flatbuffers.UOffsetT(0) + if t.PermissionsRWX != nil { + permissionsRWXLength := len(t.PermissionsRWX) + permissionsRWXOffsets := make([]flatbuffers.UOffsetT, permissionsRWXLength) + for j := 0; j < permissionsRWXLength; j++ { + permissionsRWXOffsets[j] = builder.CreateString(t.PermissionsRWX[j]) + } + ScopeStartPermissionsRWXVector(builder, permissionsRWXLength) + for j := permissionsRWXLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(permissionsRWXOffsets[j]) + } + permissionsRWXOffset = builder.EndVector(permissionsRWXLength) + } + ScopeStart(builder) + ScopeAddIdentifier(builder, identifierOffset) + ScopeAddName(builder, nameOffset) + ScopeAddDescription(builder, descriptionOffset) + ScopeAddPermissionsR(builder, permissionsROffset) + ScopeAddPermissionsRW(builder, permissionsRWOffset) + ScopeAddPermissionsX(builder, permissionsXOffset) + ScopeAddPermissionsRWX(builder, permissionsRWXOffset) + return ScopeEnd(builder) +} + +func (rcv *Scope) UnPackTo(t *ScopeT) { + t.Identifier = string(rcv.Identifier()) + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + permissionsRLength := rcv.PermissionsRLength() + t.PermissionsR = make([]string, permissionsRLength) + for j := 0; j < permissionsRLength; j++ { + t.PermissionsR[j] = string(rcv.PermissionsR(j)) + } + permissionsRWLength := rcv.PermissionsRWLength() + t.PermissionsRW = make([]string, permissionsRWLength) + for j := 0; j < permissionsRWLength; j++ { + t.PermissionsRW[j] = string(rcv.PermissionsRW(j)) + } + permissionsXLength := rcv.PermissionsXLength() + t.PermissionsX = make([]string, permissionsXLength) + for j := 0; j < permissionsXLength; j++ { + t.PermissionsX[j] = string(rcv.PermissionsX(j)) + } + permissionsRWXLength := rcv.PermissionsRWXLength() + t.PermissionsRWX = make([]string, permissionsRWXLength) + for j := 0; j < permissionsRWXLength; j++ { + t.PermissionsRWX[j] = string(rcv.PermissionsRWX(j)) + } +} + +func (rcv *Scope) UnPack() *ScopeT { + if rcv == nil { return nil } + t := &ScopeT{} + rcv.UnPackTo(t) + return t +} + +type Scope struct { + _tab flatbuffers.Table +} + +func GetRootAsScope(buf []byte, offset flatbuffers.UOffsetT) *Scope { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Scope{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsScope(buf []byte, offset flatbuffers.UOffsetT) *Scope { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Scope{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Scope) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Scope) Table() flatbuffers.Table { + return rcv._tab +} + +/// Identifier of the Scope +func (rcv *Scope) Identifier() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Identifier of the Scope +/// Human readable name of the Scope +func (rcv *Scope) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Human readable name of the Scope +/// Description of the Scope +func (rcv *Scope) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Description of the Scope +/// List of permission string for read operations +func (rcv *Scope) PermissionsR(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Scope) PermissionsRLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of permission string for read operations +/// List of permission string for read/write operations +func (rcv *Scope) PermissionsRW(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Scope) PermissionsRWLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of permission string for read/write operations +/// List of permission string for execute operations +func (rcv *Scope) PermissionsX(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Scope) PermissionsXLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of permission string for execute operations +/// List of permission string for all operations +func (rcv *Scope) PermissionsRWX(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Scope) PermissionsRWXLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of permission string for all operations +func ScopeStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func ScopeAddIdentifier(builder *flatbuffers.Builder, identifier flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(identifier), 0) +} +func ScopeAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) +} +func ScopeAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(description), 0) +} +func ScopeAddPermissionsR(builder *flatbuffers.Builder, permissionsR flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(permissionsR), 0) +} +func ScopeStartPermissionsRVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ScopeAddPermissionsRW(builder *flatbuffers.Builder, permissionsRW flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(permissionsRW), 0) +} +func ScopeStartPermissionsRWVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ScopeAddPermissionsX(builder *flatbuffers.Builder, permissionsX flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(permissionsX), 0) +} +func ScopeStartPermissionsXVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ScopeAddPermissionsRWX(builder *flatbuffers.Builder, permissionsRWX flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(permissionsRWX), 0) +} +func ScopeStartPermissionsRWXVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ScopeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Scopes.go b/pkg/fbs/comm/datalayer/Scopes.go index 96b346d..2e54fb1 100644 --- a/pkg/fbs/comm/datalayer/Scopes.go +++ b/pkg/fbs/comm/datalayer/Scopes.go @@ -1,108 +1,110 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ScopesT struct { - Scopes []*ScopeT -} - -func (t *ScopesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - scopesOffset := flatbuffers.UOffsetT(0) - if t.Scopes != nil { - scopesLength := len(t.Scopes) - scopesOffsets := make([]flatbuffers.UOffsetT, scopesLength) - for j := 0; j < scopesLength; j++ { - scopesOffsets[j] = t.Scopes[j].Pack(builder) - } - ScopesStartScopesVector(builder, scopesLength) - for j := scopesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(scopesOffsets[j]) - } - scopesOffset = builder.EndVector(scopesLength) - } - ScopesStart(builder) - ScopesAddScopes(builder, scopesOffset) - return ScopesEnd(builder) -} - -func (rcv *Scopes) UnPackTo(t *ScopesT) { - scopesLength := rcv.ScopesLength() - t.Scopes = make([]*ScopeT, scopesLength) - for j := 0; j < scopesLength; j++ { - x := Scope{} - rcv.Scopes(&x, j) - t.Scopes[j] = x.UnPack() - } -} - -func (rcv *Scopes) UnPack() *ScopesT { - if rcv == nil { return nil } - t := &ScopesT{} - rcv.UnPackTo(t) - return t -} - -type Scopes struct { - _tab flatbuffers.Table -} - -func GetRootAsScopes(buf []byte, offset flatbuffers.UOffsetT) *Scopes { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Scopes{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsScopes(buf []byte, offset flatbuffers.UOffsetT) *Scopes { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Scopes{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Scopes) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Scopes) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Scopes) Scopes(obj *Scope, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Scopes) ScopesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ScopesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ScopesAddScopes(builder *flatbuffers.Builder, scopes flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(scopes), 0) -} -func ScopesStartScopesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ScopesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ScopesT struct { + Scopes []*ScopeT +} + +func (t *ScopesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + scopesOffset := flatbuffers.UOffsetT(0) + if t.Scopes != nil { + scopesLength := len(t.Scopes) + scopesOffsets := make([]flatbuffers.UOffsetT, scopesLength) + for j := 0; j < scopesLength; j++ { + scopesOffsets[j] = t.Scopes[j].Pack(builder) + } + ScopesStartScopesVector(builder, scopesLength) + for j := scopesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(scopesOffsets[j]) + } + scopesOffset = builder.EndVector(scopesLength) + } + ScopesStart(builder) + ScopesAddScopes(builder, scopesOffset) + return ScopesEnd(builder) +} + +func (rcv *Scopes) UnPackTo(t *ScopesT) { + scopesLength := rcv.ScopesLength() + t.Scopes = make([]*ScopeT, scopesLength) + for j := 0; j < scopesLength; j++ { + x := Scope{} + rcv.Scopes(&x, j) + t.Scopes[j] = x.UnPack() + } +} + +func (rcv *Scopes) UnPack() *ScopesT { + if rcv == nil { return nil } + t := &ScopesT{} + rcv.UnPackTo(t) + return t +} + +type Scopes struct { + _tab flatbuffers.Table +} + +func GetRootAsScopes(buf []byte, offset flatbuffers.UOffsetT) *Scopes { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Scopes{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsScopes(buf []byte, offset flatbuffers.UOffsetT) *Scopes { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Scopes{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Scopes) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Scopes) Table() flatbuffers.Table { + return rcv._tab +} + +/// List of scopes +func (rcv *Scopes) Scopes(obj *Scope, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Scopes) ScopesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of scopes +func ScopesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ScopesAddScopes(builder *flatbuffers.Builder, scopes flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(scopes), 0) +} +func ScopesStartScopesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ScopesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/ServerSettings.go b/pkg/fbs/comm/datalayer/ServerSettings.go index 07b1f09..fb34981 100644 --- a/pkg/fbs/comm/datalayer/ServerSettings.go +++ b/pkg/fbs/comm/datalayer/ServerSettings.go @@ -1,147 +1,177 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ServerSettingsT struct { - ServerIdlePingTimeout uint32 - ServerWaitResponseTimeout uint32 - ServerMaxMessageSize uint32 - DebugAddress string - ServerMaxRtSize uint32 -} - -func (t *ServerSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - debugAddressOffset := builder.CreateString(t.DebugAddress) - ServerSettingsStart(builder) - ServerSettingsAddServerIdlePingTimeout(builder, t.ServerIdlePingTimeout) - ServerSettingsAddServerWaitResponseTimeout(builder, t.ServerWaitResponseTimeout) - ServerSettingsAddServerMaxMessageSize(builder, t.ServerMaxMessageSize) - ServerSettingsAddDebugAddress(builder, debugAddressOffset) - ServerSettingsAddServerMaxRtSize(builder, t.ServerMaxRtSize) - return ServerSettingsEnd(builder) -} - -func (rcv *ServerSettings) UnPackTo(t *ServerSettingsT) { - t.ServerIdlePingTimeout = rcv.ServerIdlePingTimeout() - t.ServerWaitResponseTimeout = rcv.ServerWaitResponseTimeout() - t.ServerMaxMessageSize = rcv.ServerMaxMessageSize() - t.DebugAddress = string(rcv.DebugAddress()) - t.ServerMaxRtSize = rcv.ServerMaxRtSize() -} - -func (rcv *ServerSettings) UnPack() *ServerSettingsT { - if rcv == nil { return nil } - t := &ServerSettingsT{} - rcv.UnPackTo(t) - return t -} - -type ServerSettings struct { - _tab flatbuffers.Table -} - -func GetRootAsServerSettings(buf []byte, offset flatbuffers.UOffsetT) *ServerSettings { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ServerSettings{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsServerSettings(buf []byte, offset flatbuffers.UOffsetT) *ServerSettings { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ServerSettings{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ServerSettings) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ServerSettings) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ServerSettings) ServerIdlePingTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 30000 -} - -func (rcv *ServerSettings) MutateServerIdlePingTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *ServerSettings) ServerWaitResponseTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 3000 -} - -func (rcv *ServerSettings) MutateServerWaitResponseTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *ServerSettings) ServerMaxMessageSize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 52428800 -} - -func (rcv *ServerSettings) MutateServerMaxMessageSize(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *ServerSettings) DebugAddress() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ServerSettings) ServerMaxRtSize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 1048576 -} - -func (rcv *ServerSettings) MutateServerMaxRtSize(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func ServerSettingsStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func ServerSettingsAddServerIdlePingTimeout(builder *flatbuffers.Builder, serverIdlePingTimeout uint32) { - builder.PrependUint32Slot(0, serverIdlePingTimeout, 30000) -} -func ServerSettingsAddServerWaitResponseTimeout(builder *flatbuffers.Builder, serverWaitResponseTimeout uint32) { - builder.PrependUint32Slot(1, serverWaitResponseTimeout, 3000) -} -func ServerSettingsAddServerMaxMessageSize(builder *flatbuffers.Builder, serverMaxMessageSize uint32) { - builder.PrependUint32Slot(2, serverMaxMessageSize, 52428800) -} -func ServerSettingsAddDebugAddress(builder *flatbuffers.Builder, debugAddress flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(debugAddress), 0) -} -func ServerSettingsAddServerMaxRtSize(builder *flatbuffers.Builder, serverMaxRtSize uint32) { - builder.PrependUint32Slot(4, serverMaxRtSize, 1048576) -} -func ServerSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ServerSettingsT struct { + ServerIdlePingTimeout uint32 + ServerWaitResponseTimeout uint32 + ServerMaxMessageSize uint32 + DebugAddress string + ServerMaxRtSize uint32 + ServerEmulatedNvramSize uint32 +} + +func (t *ServerSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + debugAddressOffset := builder.CreateString(t.DebugAddress) + ServerSettingsStart(builder) + ServerSettingsAddServerIdlePingTimeout(builder, t.ServerIdlePingTimeout) + ServerSettingsAddServerWaitResponseTimeout(builder, t.ServerWaitResponseTimeout) + ServerSettingsAddServerMaxMessageSize(builder, t.ServerMaxMessageSize) + ServerSettingsAddDebugAddress(builder, debugAddressOffset) + ServerSettingsAddServerMaxRtSize(builder, t.ServerMaxRtSize) + ServerSettingsAddServerEmulatedNvramSize(builder, t.ServerEmulatedNvramSize) + return ServerSettingsEnd(builder) +} + +func (rcv *ServerSettings) UnPackTo(t *ServerSettingsT) { + t.ServerIdlePingTimeout = rcv.ServerIdlePingTimeout() + t.ServerWaitResponseTimeout = rcv.ServerWaitResponseTimeout() + t.ServerMaxMessageSize = rcv.ServerMaxMessageSize() + t.DebugAddress = string(rcv.DebugAddress()) + t.ServerMaxRtSize = rcv.ServerMaxRtSize() + t.ServerEmulatedNvramSize = rcv.ServerEmulatedNvramSize() +} + +func (rcv *ServerSettings) UnPack() *ServerSettingsT { + if rcv == nil { return nil } + t := &ServerSettingsT{} + rcv.UnPackTo(t) + return t +} + +type ServerSettings struct { + _tab flatbuffers.Table +} + +func GetRootAsServerSettings(buf []byte, offset flatbuffers.UOffsetT) *ServerSettings { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ServerSettings{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsServerSettings(buf []byte, offset flatbuffers.UOffsetT) *ServerSettings { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ServerSettings{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ServerSettings) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ServerSettings) Table() flatbuffers.Table { + return rcv._tab +} + +/// after this time send a ping to not used provider is send to test if provider is still alive +func (rcv *ServerSettings) ServerIdlePingTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 30000 +} + +/// after this time send a ping to not used provider is send to test if provider is still alive +func (rcv *ServerSettings) MutateServerIdlePingTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// after this time a response from provider is expected - if there is no answer a provider is assumed to be dead --> kick provider out of routing +func (rcv *ServerSettings) ServerWaitResponseTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 3000 +} + +/// after this time a response from provider is expected - if there is no answer a provider is assumed to be dead --> kick provider out of routing +func (rcv *ServerSettings) MutateServerWaitResponseTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// maximum inbound message size +func (rcv *ServerSettings) ServerMaxMessageSize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 52428800 +} + +/// maximum inbound message size +func (rcv *ServerSettings) MutateServerMaxMessageSize(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// Address to debug disconnect +func (rcv *ServerSettings) DebugAddress() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Address to debug disconnect +/// Maximum size of a RT area +func (rcv *ServerSettings) ServerMaxRtSize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 1048576 +} + +/// Maximum size of a RT area +func (rcv *ServerSettings) MutateServerMaxRtSize(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +/// Emulated NVRam size - will be active after a restart of app.automationcore +func (rcv *ServerSettings) ServerEmulatedNvramSize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 122880 +} + +/// Emulated NVRam size - will be active after a restart of app.automationcore +func (rcv *ServerSettings) MutateServerEmulatedNvramSize(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func ServerSettingsStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func ServerSettingsAddServerIdlePingTimeout(builder *flatbuffers.Builder, serverIdlePingTimeout uint32) { + builder.PrependUint32Slot(0, serverIdlePingTimeout, 30000) +} +func ServerSettingsAddServerWaitResponseTimeout(builder *flatbuffers.Builder, serverWaitResponseTimeout uint32) { + builder.PrependUint32Slot(1, serverWaitResponseTimeout, 3000) +} +func ServerSettingsAddServerMaxMessageSize(builder *flatbuffers.Builder, serverMaxMessageSize uint32) { + builder.PrependUint32Slot(2, serverMaxMessageSize, 52428800) +} +func ServerSettingsAddDebugAddress(builder *flatbuffers.Builder, debugAddress flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(debugAddress), 0) +} +func ServerSettingsAddServerMaxRtSize(builder *flatbuffers.Builder, serverMaxRtSize uint32) { + builder.PrependUint32Slot(4, serverMaxRtSize, 1048576) +} +func ServerSettingsAddServerEmulatedNvramSize(builder *flatbuffers.Builder, serverEmulatedNvramSize uint32) { + builder.PrependUint32Slot(5, serverEmulatedNvramSize, 122880) +} +func ServerSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Severity.go b/pkg/fbs/comm/datalayer/Severity.go index 3220ece..054f9bb 100644 --- a/pkg/fbs/comm/datalayer/Severity.go +++ b/pkg/fbs/comm/datalayer/Severity.go @@ -1,47 +1,47 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import "strconv" - -type Severity int8 - -const ( - SeverityEmergency Severity = 0 - SeverityAlert Severity = 1 - SeverityCritical Severity = 2 - SeverityError Severity = 3 - SeverityWarning Severity = 4 - SeverityNotice Severity = 5 - SeverityInformational Severity = 6 - SeverityDebug Severity = 7 -) - -var EnumNamesSeverity = map[Severity]string{ - SeverityEmergency: "Emergency", - SeverityAlert: "Alert", - SeverityCritical: "Critical", - SeverityError: "Error", - SeverityWarning: "Warning", - SeverityNotice: "Notice", - SeverityInformational: "Informational", - SeverityDebug: "Debug", -} - -var EnumValuesSeverity = map[string]Severity{ - "Emergency": SeverityEmergency, - "Alert": SeverityAlert, - "Critical": SeverityCritical, - "Error": SeverityError, - "Warning": SeverityWarning, - "Notice": SeverityNotice, - "Informational": SeverityInformational, - "Debug": SeverityDebug, -} - -func (v Severity) String() string { - if s, ok := EnumNamesSeverity[v]; ok { - return s - } - return "Severity(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import "strconv" + +type Severity int8 + +const ( + SeverityEmergency Severity = 0 + SeverityAlert Severity = 1 + SeverityCritical Severity = 2 + SeverityError Severity = 3 + SeverityWarning Severity = 4 + SeverityNotice Severity = 5 + SeverityInformational Severity = 6 + SeverityDebug Severity = 7 +) + +var EnumNamesSeverity = map[Severity]string{ + SeverityEmergency: "Emergency", + SeverityAlert: "Alert", + SeverityCritical: "Critical", + SeverityError: "Error", + SeverityWarning: "Warning", + SeverityNotice: "Notice", + SeverityInformational: "Informational", + SeverityDebug: "Debug", +} + +var EnumValuesSeverity = map[string]Severity{ + "Emergency": SeverityEmergency, + "Alert": SeverityAlert, + "Critical": SeverityCritical, + "Error": SeverityError, + "Warning": SeverityWarning, + "Notice": SeverityNotice, + "Informational": SeverityInformational, + "Debug": SeverityDebug, +} + +func (v Severity) String() string { + if s, ok := EnumNamesSeverity[v]; ok { + return s + } + return "Severity(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/datalayer/String.go b/pkg/fbs/comm/datalayer/String.go index 2f538a7..dff8a56 100644 --- a/pkg/fbs/comm/datalayer/String.go +++ b/pkg/fbs/comm/datalayer/String.go @@ -1,75 +1,75 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StringT struct { - Value string -} - -func (t *StringT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := builder.CreateString(t.Value) - StringStart(builder) - StringAddValue(builder, valueOffset) - return StringEnd(builder) -} - -func (rcv *String) UnPackTo(t *StringT) { - t.Value = string(rcv.Value()) -} - -func (rcv *String) UnPack() *StringT { - if rcv == nil { return nil } - t := &StringT{} - rcv.UnPackTo(t) - return t -} - -type String struct { - _tab flatbuffers.Table -} - -func GetRootAsString(buf []byte, offset flatbuffers.UOffsetT) *String { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &String{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsString(buf []byte, offset flatbuffers.UOffsetT) *String { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &String{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *String) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *String) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *String) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func StringStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StringAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func StringEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StringT struct { + Value string +} + +func (t *StringT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := builder.CreateString(t.Value) + StringStart(builder) + StringAddValue(builder, valueOffset) + return StringEnd(builder) +} + +func (rcv *String) UnPackTo(t *StringT) { + t.Value = string(rcv.Value()) +} + +func (rcv *String) UnPack() *StringT { + if rcv == nil { return nil } + t := &StringT{} + rcv.UnPackTo(t) + return t +} + +type String struct { + _tab flatbuffers.Table +} + +func GetRootAsString(buf []byte, offset flatbuffers.UOffsetT) *String { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &String{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsString(buf []byte, offset flatbuffers.UOffsetT) *String { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &String{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *String) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *String) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *String) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func StringStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StringAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func StringEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/SubscriptionData.go b/pkg/fbs/comm/datalayer/SubscriptionData.go index 0ce880c..d44b1bf 100644 --- a/pkg/fbs/comm/datalayer/SubscriptionData.go +++ b/pkg/fbs/comm/datalayer/SubscriptionData.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SubscriptionDataT struct { - Properties *SubscriptionPropertiesT - Nodes []string -} - -func (t *SubscriptionDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - propertiesOffset := t.Properties.Pack(builder) - nodesOffset := flatbuffers.UOffsetT(0) - if t.Nodes != nil { - nodesLength := len(t.Nodes) - nodesOffsets := make([]flatbuffers.UOffsetT, nodesLength) - for j := 0; j < nodesLength; j++ { - nodesOffsets[j] = builder.CreateString(t.Nodes[j]) - } - SubscriptionDataStartNodesVector(builder, nodesLength) - for j := nodesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(nodesOffsets[j]) - } - nodesOffset = builder.EndVector(nodesLength) - } - SubscriptionDataStart(builder) - SubscriptionDataAddProperties(builder, propertiesOffset) - SubscriptionDataAddNodes(builder, nodesOffset) - return SubscriptionDataEnd(builder) -} - -func (rcv *SubscriptionData) UnPackTo(t *SubscriptionDataT) { - t.Properties = rcv.Properties(nil).UnPack() - nodesLength := rcv.NodesLength() - t.Nodes = make([]string, nodesLength) - for j := 0; j < nodesLength; j++ { - t.Nodes[j] = string(rcv.Nodes(j)) - } -} - -func (rcv *SubscriptionData) UnPack() *SubscriptionDataT { - if rcv == nil { return nil } - t := &SubscriptionDataT{} - rcv.UnPackTo(t) - return t -} - -type SubscriptionData struct { - _tab flatbuffers.Table -} - -func GetRootAsSubscriptionData(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SubscriptionData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSubscriptionData(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SubscriptionData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SubscriptionData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SubscriptionData) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SubscriptionData) Properties(obj *SubscriptionProperties) *SubscriptionProperties { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SubscriptionProperties) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SubscriptionData) Nodes(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SubscriptionData) NodesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func SubscriptionDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SubscriptionDataAddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(properties), 0) -} -func SubscriptionDataAddNodes(builder *flatbuffers.Builder, nodes flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(nodes), 0) -} -func SubscriptionDataStartNodesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SubscriptionDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SubscriptionDataT struct { + Properties *SubscriptionPropertiesT + Nodes []string +} + +func (t *SubscriptionDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + propertiesOffset := t.Properties.Pack(builder) + nodesOffset := flatbuffers.UOffsetT(0) + if t.Nodes != nil { + nodesLength := len(t.Nodes) + nodesOffsets := make([]flatbuffers.UOffsetT, nodesLength) + for j := 0; j < nodesLength; j++ { + nodesOffsets[j] = builder.CreateString(t.Nodes[j]) + } + SubscriptionDataStartNodesVector(builder, nodesLength) + for j := nodesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(nodesOffsets[j]) + } + nodesOffset = builder.EndVector(nodesLength) + } + SubscriptionDataStart(builder) + SubscriptionDataAddProperties(builder, propertiesOffset) + SubscriptionDataAddNodes(builder, nodesOffset) + return SubscriptionDataEnd(builder) +} + +func (rcv *SubscriptionData) UnPackTo(t *SubscriptionDataT) { + t.Properties = rcv.Properties(nil).UnPack() + nodesLength := rcv.NodesLength() + t.Nodes = make([]string, nodesLength) + for j := 0; j < nodesLength; j++ { + t.Nodes[j] = string(rcv.Nodes(j)) + } +} + +func (rcv *SubscriptionData) UnPack() *SubscriptionDataT { + if rcv == nil { return nil } + t := &SubscriptionDataT{} + rcv.UnPackTo(t) + return t +} + +type SubscriptionData struct { + _tab flatbuffers.Table +} + +func GetRootAsSubscriptionData(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SubscriptionData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSubscriptionData(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SubscriptionData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SubscriptionData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SubscriptionData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SubscriptionData) Properties(obj *SubscriptionProperties) *SubscriptionProperties { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SubscriptionProperties) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SubscriptionData) Nodes(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SubscriptionData) NodesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func SubscriptionDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SubscriptionDataAddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(properties), 0) +} +func SubscriptionDataAddNodes(builder *flatbuffers.Builder, nodes flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(nodes), 0) +} +func SubscriptionDataStartNodesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SubscriptionDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/SubscriptionProperties.go b/pkg/fbs/comm/datalayer/SubscriptionProperties.go index 651c9a8..ea4d74d 100644 --- a/pkg/fbs/comm/datalayer/SubscriptionProperties.go +++ b/pkg/fbs/comm/datalayer/SubscriptionProperties.go @@ -1,177 +1,187 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SubscriptionPropertiesT struct { - Id string - KeepaliveInterval uint32 - PublishInterval uint32 - Rules []*PropertyT - ErrorInterval uint32 -} - -func (t *SubscriptionPropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - idOffset := builder.CreateString(t.Id) - rulesOffset := flatbuffers.UOffsetT(0) - if t.Rules != nil { - rulesLength := len(t.Rules) - rulesOffsets := make([]flatbuffers.UOffsetT, rulesLength) - for j := 0; j < rulesLength; j++ { - rulesOffsets[j] = t.Rules[j].Pack(builder) - } - SubscriptionPropertiesStartRulesVector(builder, rulesLength) - for j := rulesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(rulesOffsets[j]) - } - rulesOffset = builder.EndVector(rulesLength) - } - SubscriptionPropertiesStart(builder) - SubscriptionPropertiesAddId(builder, idOffset) - SubscriptionPropertiesAddKeepaliveInterval(builder, t.KeepaliveInterval) - SubscriptionPropertiesAddPublishInterval(builder, t.PublishInterval) - SubscriptionPropertiesAddRules(builder, rulesOffset) - SubscriptionPropertiesAddErrorInterval(builder, t.ErrorInterval) - return SubscriptionPropertiesEnd(builder) -} - -func (rcv *SubscriptionProperties) UnPackTo(t *SubscriptionPropertiesT) { - t.Id = string(rcv.Id()) - t.KeepaliveInterval = rcv.KeepaliveInterval() - t.PublishInterval = rcv.PublishInterval() - rulesLength := rcv.RulesLength() - t.Rules = make([]*PropertyT, rulesLength) - for j := 0; j < rulesLength; j++ { - x := Property{} - rcv.Rules(&x, j) - t.Rules[j] = x.UnPack() - } - t.ErrorInterval = rcv.ErrorInterval() -} - -func (rcv *SubscriptionProperties) UnPack() *SubscriptionPropertiesT { - if rcv == nil { return nil } - t := &SubscriptionPropertiesT{} - rcv.UnPackTo(t) - return t -} - -type SubscriptionProperties struct { - _tab flatbuffers.Table -} - -func GetRootAsSubscriptionProperties(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionProperties { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SubscriptionProperties{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSubscriptionProperties(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionProperties { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SubscriptionProperties{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SubscriptionProperties) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SubscriptionProperties) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SubscriptionProperties) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SubscriptionProperties) KeepaliveInterval() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 60000 -} - -func (rcv *SubscriptionProperties) MutateKeepaliveInterval(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *SubscriptionProperties) PublishInterval() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 1000 -} - -func (rcv *SubscriptionProperties) MutatePublishInterval(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *SubscriptionProperties) Rules(obj *Property, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SubscriptionProperties) RulesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SubscriptionProperties) ErrorInterval() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 10000 -} - -func (rcv *SubscriptionProperties) MutateErrorInterval(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func SubscriptionPropertiesStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func SubscriptionPropertiesAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) -} -func SubscriptionPropertiesAddKeepaliveInterval(builder *flatbuffers.Builder, keepaliveInterval uint32) { - builder.PrependUint32Slot(1, keepaliveInterval, 60000) -} -func SubscriptionPropertiesAddPublishInterval(builder *flatbuffers.Builder, publishInterval uint32) { - builder.PrependUint32Slot(2, publishInterval, 1000) -} -func SubscriptionPropertiesAddRules(builder *flatbuffers.Builder, rules flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(rules), 0) -} -func SubscriptionPropertiesStartRulesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SubscriptionPropertiesAddErrorInterval(builder *flatbuffers.Builder, errorInterval uint32) { - builder.PrependUint32Slot(4, errorInterval, 10000) -} -func SubscriptionPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SubscriptionPropertiesT struct { + Id string + KeepaliveInterval uint32 + PublishInterval uint32 + Rules []*PropertyT + ErrorInterval uint32 +} + +func (t *SubscriptionPropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + idOffset := builder.CreateString(t.Id) + rulesOffset := flatbuffers.UOffsetT(0) + if t.Rules != nil { + rulesLength := len(t.Rules) + rulesOffsets := make([]flatbuffers.UOffsetT, rulesLength) + for j := 0; j < rulesLength; j++ { + rulesOffsets[j] = t.Rules[j].Pack(builder) + } + SubscriptionPropertiesStartRulesVector(builder, rulesLength) + for j := rulesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(rulesOffsets[j]) + } + rulesOffset = builder.EndVector(rulesLength) + } + SubscriptionPropertiesStart(builder) + SubscriptionPropertiesAddId(builder, idOffset) + SubscriptionPropertiesAddKeepaliveInterval(builder, t.KeepaliveInterval) + SubscriptionPropertiesAddPublishInterval(builder, t.PublishInterval) + SubscriptionPropertiesAddRules(builder, rulesOffset) + SubscriptionPropertiesAddErrorInterval(builder, t.ErrorInterval) + return SubscriptionPropertiesEnd(builder) +} + +func (rcv *SubscriptionProperties) UnPackTo(t *SubscriptionPropertiesT) { + t.Id = string(rcv.Id()) + t.KeepaliveInterval = rcv.KeepaliveInterval() + t.PublishInterval = rcv.PublishInterval() + rulesLength := rcv.RulesLength() + t.Rules = make([]*PropertyT, rulesLength) + for j := 0; j < rulesLength; j++ { + x := Property{} + rcv.Rules(&x, j) + t.Rules[j] = x.UnPack() + } + t.ErrorInterval = rcv.ErrorInterval() +} + +func (rcv *SubscriptionProperties) UnPack() *SubscriptionPropertiesT { + if rcv == nil { return nil } + t := &SubscriptionPropertiesT{} + rcv.UnPackTo(t) + return t +} + +type SubscriptionProperties struct { + _tab flatbuffers.Table +} + +func GetRootAsSubscriptionProperties(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionProperties { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SubscriptionProperties{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSubscriptionProperties(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionProperties { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SubscriptionProperties{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SubscriptionProperties) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SubscriptionProperties) Table() flatbuffers.Table { + return rcv._tab +} + +/// user identification for subscribtion Use it update and dispose the old subscription +func (rcv *SubscriptionProperties) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// user identification for subscribtion Use it update and dispose the old subscription +/// keepalive in milli seconds for subscription - this time is used to detect life status of providers +func (rcv *SubscriptionProperties) KeepaliveInterval() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 60000 +} + +/// keepalive in milli seconds for subscription - this time is used to detect life status of providers +func (rcv *SubscriptionProperties) MutateKeepaliveInterval(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// time in milli seconds for upper limit of publish messages to not get flooded with new messages +func (rcv *SubscriptionProperties) PublishInterval() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 1000 +} + +/// time in milli seconds for upper limit of publish messages to not get flooded with new messages +func (rcv *SubscriptionProperties) MutatePublishInterval(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// Rules for subscription +func (rcv *SubscriptionProperties) Rules(obj *Property, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SubscriptionProperties) RulesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Rules for subscription +/// time in milli seconds to re-read data if an error was received for a nodex +func (rcv *SubscriptionProperties) ErrorInterval() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 10000 +} + +/// time in milli seconds to re-read data if an error was received for a nodex +func (rcv *SubscriptionProperties) MutateErrorInterval(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func SubscriptionPropertiesStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func SubscriptionPropertiesAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) +} +func SubscriptionPropertiesAddKeepaliveInterval(builder *flatbuffers.Builder, keepaliveInterval uint32) { + builder.PrependUint32Slot(1, keepaliveInterval, 60000) +} +func SubscriptionPropertiesAddPublishInterval(builder *flatbuffers.Builder, publishInterval uint32) { + builder.PrependUint32Slot(2, publishInterval, 1000) +} +func SubscriptionPropertiesAddRules(builder *flatbuffers.Builder, rules flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(rules), 0) +} +func SubscriptionPropertiesStartRulesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SubscriptionPropertiesAddErrorInterval(builder *flatbuffers.Builder, errorInterval uint32) { + builder.PrependUint32Slot(4, errorInterval, 10000) +} +func SubscriptionPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/SubscriptionSettings.go b/pkg/fbs/comm/datalayer/SubscriptionSettings.go index 86d95b9..6fb00ba 100644 --- a/pkg/fbs/comm/datalayer/SubscriptionSettings.go +++ b/pkg/fbs/comm/datalayer/SubscriptionSettings.go @@ -1,132 +1,160 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SubscriptionSettingsT struct { - MinimumPublishInterval uint32 - MinimumSampleInterval uint64 - MaximumBufferSize uint32 - MinimumErrorInterval uint32 -} - -func (t *SubscriptionSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SubscriptionSettingsStart(builder) - SubscriptionSettingsAddMinimumPublishInterval(builder, t.MinimumPublishInterval) - SubscriptionSettingsAddMinimumSampleInterval(builder, t.MinimumSampleInterval) - SubscriptionSettingsAddMaximumBufferSize(builder, t.MaximumBufferSize) - SubscriptionSettingsAddMinimumErrorInterval(builder, t.MinimumErrorInterval) - return SubscriptionSettingsEnd(builder) -} - -func (rcv *SubscriptionSettings) UnPackTo(t *SubscriptionSettingsT) { - t.MinimumPublishInterval = rcv.MinimumPublishInterval() - t.MinimumSampleInterval = rcv.MinimumSampleInterval() - t.MaximumBufferSize = rcv.MaximumBufferSize() - t.MinimumErrorInterval = rcv.MinimumErrorInterval() -} - -func (rcv *SubscriptionSettings) UnPack() *SubscriptionSettingsT { - if rcv == nil { return nil } - t := &SubscriptionSettingsT{} - rcv.UnPackTo(t) - return t -} - -type SubscriptionSettings struct { - _tab flatbuffers.Table -} - -func GetRootAsSubscriptionSettings(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionSettings { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SubscriptionSettings{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSubscriptionSettings(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionSettings { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SubscriptionSettings{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SubscriptionSettings) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SubscriptionSettings) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SubscriptionSettings) MinimumPublishInterval() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 50 -} - -func (rcv *SubscriptionSettings) MutateMinimumPublishInterval(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *SubscriptionSettings) MinimumSampleInterval() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 100000 -} - -func (rcv *SubscriptionSettings) MutateMinimumSampleInterval(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func (rcv *SubscriptionSettings) MaximumBufferSize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 50 -} - -func (rcv *SubscriptionSettings) MutateMaximumBufferSize(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *SubscriptionSettings) MinimumErrorInterval() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 10000 -} - -func (rcv *SubscriptionSettings) MutateMinimumErrorInterval(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func SubscriptionSettingsStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SubscriptionSettingsAddMinimumPublishInterval(builder *flatbuffers.Builder, minimumPublishInterval uint32) { - builder.PrependUint32Slot(0, minimumPublishInterval, 50) -} -func SubscriptionSettingsAddMinimumSampleInterval(builder *flatbuffers.Builder, minimumSampleInterval uint64) { - builder.PrependUint64Slot(1, minimumSampleInterval, 100000) -} -func SubscriptionSettingsAddMaximumBufferSize(builder *flatbuffers.Builder, maximumBufferSize uint32) { - builder.PrependUint32Slot(2, maximumBufferSize, 50) -} -func SubscriptionSettingsAddMinimumErrorInterval(builder *flatbuffers.Builder, minimumErrorInterval uint32) { - builder.PrependUint32Slot(3, minimumErrorInterval, 10000) -} -func SubscriptionSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SubscriptionSettingsT struct { + MinimumPublishInterval uint32 + MinimumSampleInterval uint64 + MaximumBufferSize uint32 + MinimumErrorInterval uint32 + MaximumRTSubscribedNodes uint32 +} + +func (t *SubscriptionSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SubscriptionSettingsStart(builder) + SubscriptionSettingsAddMinimumPublishInterval(builder, t.MinimumPublishInterval) + SubscriptionSettingsAddMinimumSampleInterval(builder, t.MinimumSampleInterval) + SubscriptionSettingsAddMaximumBufferSize(builder, t.MaximumBufferSize) + SubscriptionSettingsAddMinimumErrorInterval(builder, t.MinimumErrorInterval) + SubscriptionSettingsAddMaximumRTSubscribedNodes(builder, t.MaximumRTSubscribedNodes) + return SubscriptionSettingsEnd(builder) +} + +func (rcv *SubscriptionSettings) UnPackTo(t *SubscriptionSettingsT) { + t.MinimumPublishInterval = rcv.MinimumPublishInterval() + t.MinimumSampleInterval = rcv.MinimumSampleInterval() + t.MaximumBufferSize = rcv.MaximumBufferSize() + t.MinimumErrorInterval = rcv.MinimumErrorInterval() + t.MaximumRTSubscribedNodes = rcv.MaximumRTSubscribedNodes() +} + +func (rcv *SubscriptionSettings) UnPack() *SubscriptionSettingsT { + if rcv == nil { return nil } + t := &SubscriptionSettingsT{} + rcv.UnPackTo(t) + return t +} + +type SubscriptionSettings struct { + _tab flatbuffers.Table +} + +func GetRootAsSubscriptionSettings(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionSettings { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SubscriptionSettings{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSubscriptionSettings(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionSettings { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SubscriptionSettings{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SubscriptionSettings) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SubscriptionSettings) Table() flatbuffers.Table { + return rcv._tab +} + +/// minimum publish interval in milliseconds +func (rcv *SubscriptionSettings) MinimumPublishInterval() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 50 +} + +/// minimum publish interval in milliseconds +func (rcv *SubscriptionSettings) MutateMinimumPublishInterval(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// minimum sampling interval in microseconds +func (rcv *SubscriptionSettings) MinimumSampleInterval() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 100000 +} + +/// minimum sampling interval in microseconds +func (rcv *SubscriptionSettings) MutateMinimumSampleInterval(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +/// maximum size of buffer +func (rcv *SubscriptionSettings) MaximumBufferSize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 50 +} + +/// maximum size of buffer +func (rcv *SubscriptionSettings) MutateMaximumBufferSize(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// minimum error interval +func (rcv *SubscriptionSettings) MinimumErrorInterval() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 10000 +} + +/// minimum error interval +func (rcv *SubscriptionSettings) MutateMinimumErrorInterval(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +/// Maximum allowed count of RT Subscriptions to addresses +func (rcv *SubscriptionSettings) MaximumRTSubscribedNodes() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 50 +} + +/// Maximum allowed count of RT Subscriptions to addresses +func (rcv *SubscriptionSettings) MutateMaximumRTSubscribedNodes(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func SubscriptionSettingsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func SubscriptionSettingsAddMinimumPublishInterval(builder *flatbuffers.Builder, minimumPublishInterval uint32) { + builder.PrependUint32Slot(0, minimumPublishInterval, 50) +} +func SubscriptionSettingsAddMinimumSampleInterval(builder *flatbuffers.Builder, minimumSampleInterval uint64) { + builder.PrependUint64Slot(1, minimumSampleInterval, 100000) +} +func SubscriptionSettingsAddMaximumBufferSize(builder *flatbuffers.Builder, maximumBufferSize uint32) { + builder.PrependUint32Slot(2, maximumBufferSize, 50) +} +func SubscriptionSettingsAddMinimumErrorInterval(builder *flatbuffers.Builder, minimumErrorInterval uint32) { + builder.PrependUint32Slot(3, minimumErrorInterval, 10000) +} +func SubscriptionSettingsAddMaximumRTSubscribedNodes(builder *flatbuffers.Builder, maximumRTSubscribedNodes uint32) { + builder.PrependUint32Slot(4, maximumRTSubscribedNodes, 50) +} +func SubscriptionSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/SubscriptionStatistics.go b/pkg/fbs/comm/datalayer/SubscriptionStatistics.go new file mode 100644 index 0000000..3b5ec27 --- /dev/null +++ b/pkg/fbs/comm/datalayer/SubscriptionStatistics.go @@ -0,0 +1,140 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SubscriptionStatisticsT struct { + NumberClients uint32 + NumberSubscriptions uint32 + NumberSubscribedNodes uint32 + NumberRTSubscribedNodes uint32 +} + +func (t *SubscriptionStatisticsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SubscriptionStatisticsStart(builder) + SubscriptionStatisticsAddNumberClients(builder, t.NumberClients) + SubscriptionStatisticsAddNumberSubscriptions(builder, t.NumberSubscriptions) + SubscriptionStatisticsAddNumberSubscribedNodes(builder, t.NumberSubscribedNodes) + SubscriptionStatisticsAddNumberRTSubscribedNodes(builder, t.NumberRTSubscribedNodes) + return SubscriptionStatisticsEnd(builder) +} + +func (rcv *SubscriptionStatistics) UnPackTo(t *SubscriptionStatisticsT) { + t.NumberClients = rcv.NumberClients() + t.NumberSubscriptions = rcv.NumberSubscriptions() + t.NumberSubscribedNodes = rcv.NumberSubscribedNodes() + t.NumberRTSubscribedNodes = rcv.NumberRTSubscribedNodes() +} + +func (rcv *SubscriptionStatistics) UnPack() *SubscriptionStatisticsT { + if rcv == nil { return nil } + t := &SubscriptionStatisticsT{} + rcv.UnPackTo(t) + return t +} + +type SubscriptionStatistics struct { + _tab flatbuffers.Table +} + +func GetRootAsSubscriptionStatistics(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionStatistics { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SubscriptionStatistics{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSubscriptionStatistics(buf []byte, offset flatbuffers.UOffsetT) *SubscriptionStatistics { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SubscriptionStatistics{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SubscriptionStatistics) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SubscriptionStatistics) Table() flatbuffers.Table { + return rcv._tab +} + +/// Number of clients with subscriptions +func (rcv *SubscriptionStatistics) NumberClients() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Number of clients with subscriptions +func (rcv *SubscriptionStatistics) MutateNumberClients(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// Number of subscriptions +func (rcv *SubscriptionStatistics) NumberSubscriptions() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Number of subscriptions +func (rcv *SubscriptionStatistics) MutateNumberSubscriptions(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// Number of subscribed nodes; +func (rcv *SubscriptionStatistics) NumberSubscribedNodes() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Number of subscribed nodes; +func (rcv *SubscriptionStatistics) MutateNumberSubscribedNodes(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// Number of realtime subscribed nodes +func (rcv *SubscriptionStatistics) NumberRTSubscribedNodes() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Number of realtime subscribed nodes +func (rcv *SubscriptionStatistics) MutateNumberRTSubscribedNodes(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func SubscriptionStatisticsStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SubscriptionStatisticsAddNumberClients(builder *flatbuffers.Builder, numberClients uint32) { + builder.PrependUint32Slot(0, numberClients, 0) +} +func SubscriptionStatisticsAddNumberSubscriptions(builder *flatbuffers.Builder, numberSubscriptions uint32) { + builder.PrependUint32Slot(1, numberSubscriptions, 0) +} +func SubscriptionStatisticsAddNumberSubscribedNodes(builder *flatbuffers.Builder, numberSubscribedNodes uint32) { + builder.PrependUint32Slot(2, numberSubscribedNodes, 0) +} +func SubscriptionStatisticsAddNumberRTSubscribedNodes(builder *flatbuffers.Builder, numberRTSubscribedNodes uint32) { + builder.PrependUint32Slot(3, numberRTSubscribedNodes, 0) +} +func SubscriptionStatisticsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Timestamp.go b/pkg/fbs/comm/datalayer/Timestamp.go index 4a9e3e5..171f2fd 100644 --- a/pkg/fbs/comm/datalayer/Timestamp.go +++ b/pkg/fbs/comm/datalayer/Timestamp.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TimestampT struct { - Value uint64 -} - -func (t *TimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TimestampStart(builder) - TimestampAddValue(builder, t.Value) - return TimestampEnd(builder) -} - -func (rcv *Timestamp) UnPackTo(t *TimestampT) { - t.Value = rcv.Value() -} - -func (rcv *Timestamp) UnPack() *TimestampT { - if rcv == nil { return nil } - t := &TimestampT{} - rcv.UnPackTo(t) - return t -} - -type Timestamp struct { - _tab flatbuffers.Table -} - -func GetRootAsTimestamp(buf []byte, offset flatbuffers.UOffsetT) *Timestamp { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Timestamp{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTimestamp(buf []byte, offset flatbuffers.UOffsetT) *Timestamp { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Timestamp{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Timestamp) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Timestamp) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Timestamp) Value() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Timestamp) MutateValue(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func TimestampStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func TimestampAddValue(builder *flatbuffers.Builder, value uint64) { - builder.PrependUint64Slot(0, value, 0) -} -func TimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TimestampT struct { + Value uint64 +} + +func (t *TimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TimestampStart(builder) + TimestampAddValue(builder, t.Value) + return TimestampEnd(builder) +} + +func (rcv *Timestamp) UnPackTo(t *TimestampT) { + t.Value = rcv.Value() +} + +func (rcv *Timestamp) UnPack() *TimestampT { + if rcv == nil { return nil } + t := &TimestampT{} + rcv.UnPackTo(t) + return t +} + +type Timestamp struct { + _tab flatbuffers.Table +} + +func GetRootAsTimestamp(buf []byte, offset flatbuffers.UOffsetT) *Timestamp { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Timestamp{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTimestamp(buf []byte, offset flatbuffers.UOffsetT) *Timestamp { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Timestamp{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Timestamp) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Timestamp) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Timestamp) Value() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Timestamp) MutateValue(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func TimestampStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func TimestampAddValue(builder *flatbuffers.Builder, value uint64) { + builder.PrependUint64Slot(0, value, 0) +} +func TimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Token.go b/pkg/fbs/comm/datalayer/Token.go index 35f8bd1..d134796 100644 --- a/pkg/fbs/comm/datalayer/Token.go +++ b/pkg/fbs/comm/datalayer/Token.go @@ -1,235 +1,237 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TokenT struct { - Claims []*ClaimT - Id string - Iat uint64 - Exp uint64 - Name string - Plchandle uint64 - Scope []string -} - -func (t *TokenT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - claimsOffset := flatbuffers.UOffsetT(0) - if t.Claims != nil { - claimsLength := len(t.Claims) - claimsOffsets := make([]flatbuffers.UOffsetT, claimsLength) - for j := 0; j < claimsLength; j++ { - claimsOffsets[j] = t.Claims[j].Pack(builder) - } - TokenStartClaimsVector(builder, claimsLength) - for j := claimsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(claimsOffsets[j]) - } - claimsOffset = builder.EndVector(claimsLength) - } - idOffset := builder.CreateString(t.Id) - nameOffset := builder.CreateString(t.Name) - scopeOffset := flatbuffers.UOffsetT(0) - if t.Scope != nil { - scopeLength := len(t.Scope) - scopeOffsets := make([]flatbuffers.UOffsetT, scopeLength) - for j := 0; j < scopeLength; j++ { - scopeOffsets[j] = builder.CreateString(t.Scope[j]) - } - TokenStartScopeVector(builder, scopeLength) - for j := scopeLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(scopeOffsets[j]) - } - scopeOffset = builder.EndVector(scopeLength) - } - TokenStart(builder) - TokenAddClaims(builder, claimsOffset) - TokenAddId(builder, idOffset) - TokenAddIat(builder, t.Iat) - TokenAddExp(builder, t.Exp) - TokenAddName(builder, nameOffset) - TokenAddPlchandle(builder, t.Plchandle) - TokenAddScope(builder, scopeOffset) - return TokenEnd(builder) -} - -func (rcv *Token) UnPackTo(t *TokenT) { - claimsLength := rcv.ClaimsLength() - t.Claims = make([]*ClaimT, claimsLength) - for j := 0; j < claimsLength; j++ { - x := Claim{} - rcv.Claims(&x, j) - t.Claims[j] = x.UnPack() - } - t.Id = string(rcv.Id()) - t.Iat = rcv.Iat() - t.Exp = rcv.Exp() - t.Name = string(rcv.Name()) - t.Plchandle = rcv.Plchandle() - scopeLength := rcv.ScopeLength() - t.Scope = make([]string, scopeLength) - for j := 0; j < scopeLength; j++ { - t.Scope[j] = string(rcv.Scope(j)) - } -} - -func (rcv *Token) UnPack() *TokenT { - if rcv == nil { return nil } - t := &TokenT{} - rcv.UnPackTo(t) - return t -} - -type Token struct { - _tab flatbuffers.Table -} - -func GetRootAsToken(buf []byte, offset flatbuffers.UOffsetT) *Token { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Token{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsToken(buf []byte, offset flatbuffers.UOffsetT) *Token { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Token{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Token) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Token) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Token) Claims(obj *Claim, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Token) ClaimsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Token) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Token) Iat() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Token) MutateIat(n uint64) bool { - return rcv._tab.MutateUint64Slot(8, n) -} - -func (rcv *Token) Exp() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Token) MutateExp(n uint64) bool { - return rcv._tab.MutateUint64Slot(10, n) -} - -func (rcv *Token) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Token) Plchandle() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Token) MutatePlchandle(n uint64) bool { - return rcv._tab.MutateUint64Slot(14, n) -} - -func (rcv *Token) Scope(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Token) ScopeLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func TokenStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func TokenAddClaims(builder *flatbuffers.Builder, claims flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(claims), 0) -} -func TokenStartClaimsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func TokenAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) -} -func TokenAddIat(builder *flatbuffers.Builder, iat uint64) { - builder.PrependUint64Slot(2, iat, 0) -} -func TokenAddExp(builder *flatbuffers.Builder, exp uint64) { - builder.PrependUint64Slot(3, exp, 0) -} -func TokenAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(name), 0) -} -func TokenAddPlchandle(builder *flatbuffers.Builder, plchandle uint64) { - builder.PrependUint64Slot(5, plchandle, 0) -} -func TokenAddScope(builder *flatbuffers.Builder, scope flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(scope), 0) -} -func TokenStartScopeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func TokenEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TokenT struct { + Claims []*ClaimT + Id string + Iat uint64 + Exp uint64 + Name string + Plchandle uint64 + Scope []string +} + +func (t *TokenT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + claimsOffset := flatbuffers.UOffsetT(0) + if t.Claims != nil { + claimsLength := len(t.Claims) + claimsOffsets := make([]flatbuffers.UOffsetT, claimsLength) + for j := 0; j < claimsLength; j++ { + claimsOffsets[j] = t.Claims[j].Pack(builder) + } + TokenStartClaimsVector(builder, claimsLength) + for j := claimsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(claimsOffsets[j]) + } + claimsOffset = builder.EndVector(claimsLength) + } + idOffset := builder.CreateString(t.Id) + nameOffset := builder.CreateString(t.Name) + scopeOffset := flatbuffers.UOffsetT(0) + if t.Scope != nil { + scopeLength := len(t.Scope) + scopeOffsets := make([]flatbuffers.UOffsetT, scopeLength) + for j := 0; j < scopeLength; j++ { + scopeOffsets[j] = builder.CreateString(t.Scope[j]) + } + TokenStartScopeVector(builder, scopeLength) + for j := scopeLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(scopeOffsets[j]) + } + scopeOffset = builder.EndVector(scopeLength) + } + TokenStart(builder) + TokenAddClaims(builder, claimsOffset) + TokenAddId(builder, idOffset) + TokenAddIat(builder, t.Iat) + TokenAddExp(builder, t.Exp) + TokenAddName(builder, nameOffset) + TokenAddPlchandle(builder, t.Plchandle) + TokenAddScope(builder, scopeOffset) + return TokenEnd(builder) +} + +func (rcv *Token) UnPackTo(t *TokenT) { + claimsLength := rcv.ClaimsLength() + t.Claims = make([]*ClaimT, claimsLength) + for j := 0; j < claimsLength; j++ { + x := Claim{} + rcv.Claims(&x, j) + t.Claims[j] = x.UnPack() + } + t.Id = string(rcv.Id()) + t.Iat = rcv.Iat() + t.Exp = rcv.Exp() + t.Name = string(rcv.Name()) + t.Plchandle = rcv.Plchandle() + scopeLength := rcv.ScopeLength() + t.Scope = make([]string, scopeLength) + for j := 0; j < scopeLength; j++ { + t.Scope[j] = string(rcv.Scope(j)) + } +} + +func (rcv *Token) UnPack() *TokenT { + if rcv == nil { return nil } + t := &TokenT{} + rcv.UnPackTo(t) + return t +} + +type Token struct { + _tab flatbuffers.Table +} + +func GetRootAsToken(buf []byte, offset flatbuffers.UOffsetT) *Token { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Token{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsToken(buf []byte, offset flatbuffers.UOffsetT) *Token { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Token{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Token) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Token) Table() flatbuffers.Table { + return rcv._tab +} + +/// for all unknown claims - not in fields below +func (rcv *Token) Claims(obj *Claim, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Token) ClaimsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// for all unknown claims - not in fields below +func (rcv *Token) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Token) Iat() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Token) MutateIat(n uint64) bool { + return rcv._tab.MutateUint64Slot(8, n) +} + +func (rcv *Token) Exp() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Token) MutateExp(n uint64) bool { + return rcv._tab.MutateUint64Slot(10, n) +} + +func (rcv *Token) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Token) Plchandle() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Token) MutatePlchandle(n uint64) bool { + return rcv._tab.MutateUint64Slot(14, n) +} + +func (rcv *Token) Scope(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Token) ScopeLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func TokenStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func TokenAddClaims(builder *flatbuffers.Builder, claims flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(claims), 0) +} +func TokenStartClaimsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func TokenAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) +} +func TokenAddIat(builder *flatbuffers.Builder, iat uint64) { + builder.PrependUint64Slot(2, iat, 0) +} +func TokenAddExp(builder *flatbuffers.Builder, exp uint64) { + builder.PrependUint64Slot(3, exp, 0) +} +func TokenAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(name), 0) +} +func TokenAddPlchandle(builder *flatbuffers.Builder, plchandle uint64) { + builder.PrependUint64Slot(5, plchandle, 0) +} +func TokenAddScope(builder *flatbuffers.Builder, scope flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(scope), 0) +} +func TokenStartScopeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func TokenEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/UInt16.go b/pkg/fbs/comm/datalayer/UInt16.go index 9481262..1905eb5 100644 --- a/pkg/fbs/comm/datalayer/UInt16.go +++ b/pkg/fbs/comm/datalayer/UInt16.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type UInt16T struct { - Value uint16 -} - -func (t *UInt16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - UInt16Start(builder) - UInt16AddValue(builder, t.Value) - return UInt16End(builder) -} - -func (rcv *UInt16) UnPackTo(t *UInt16T) { - t.Value = rcv.Value() -} - -func (rcv *UInt16) UnPack() *UInt16T { - if rcv == nil { return nil } - t := &UInt16T{} - rcv.UnPackTo(t) - return t -} - -type UInt16 struct { - _tab flatbuffers.Table -} - -func GetRootAsUInt16(buf []byte, offset flatbuffers.UOffsetT) *UInt16 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UInt16{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUInt16(buf []byte, offset flatbuffers.UOffsetT) *UInt16 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UInt16{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UInt16) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UInt16) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *UInt16) Value() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *UInt16) MutateValue(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func UInt16Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func UInt16AddValue(builder *flatbuffers.Builder, value uint16) { - builder.PrependUint16Slot(0, value, 0) -} -func UInt16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type UInt16T struct { + Value uint16 +} + +func (t *UInt16T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + UInt16Start(builder) + UInt16AddValue(builder, t.Value) + return UInt16End(builder) +} + +func (rcv *UInt16) UnPackTo(t *UInt16T) { + t.Value = rcv.Value() +} + +func (rcv *UInt16) UnPack() *UInt16T { + if rcv == nil { return nil } + t := &UInt16T{} + rcv.UnPackTo(t) + return t +} + +type UInt16 struct { + _tab flatbuffers.Table +} + +func GetRootAsUInt16(buf []byte, offset flatbuffers.UOffsetT) *UInt16 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UInt16{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUInt16(buf []byte, offset flatbuffers.UOffsetT) *UInt16 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UInt16{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UInt16) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UInt16) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *UInt16) Value() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *UInt16) MutateValue(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func UInt16Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func UInt16AddValue(builder *flatbuffers.Builder, value uint16) { + builder.PrependUint16Slot(0, value, 0) +} +func UInt16End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/UInt32.go b/pkg/fbs/comm/datalayer/UInt32.go index 284886b..2e2e9a4 100644 --- a/pkg/fbs/comm/datalayer/UInt32.go +++ b/pkg/fbs/comm/datalayer/UInt32.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type UInt32T struct { - Value uint32 -} - -func (t *UInt32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - UInt32Start(builder) - UInt32AddValue(builder, t.Value) - return UInt32End(builder) -} - -func (rcv *UInt32) UnPackTo(t *UInt32T) { - t.Value = rcv.Value() -} - -func (rcv *UInt32) UnPack() *UInt32T { - if rcv == nil { return nil } - t := &UInt32T{} - rcv.UnPackTo(t) - return t -} - -type UInt32 struct { - _tab flatbuffers.Table -} - -func GetRootAsUInt32(buf []byte, offset flatbuffers.UOffsetT) *UInt32 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UInt32{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUInt32(buf []byte, offset flatbuffers.UOffsetT) *UInt32 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UInt32{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UInt32) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UInt32) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *UInt32) Value() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *UInt32) MutateValue(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func UInt32Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func UInt32AddValue(builder *flatbuffers.Builder, value uint32) { - builder.PrependUint32Slot(0, value, 0) -} -func UInt32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type UInt32T struct { + Value uint32 +} + +func (t *UInt32T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + UInt32Start(builder) + UInt32AddValue(builder, t.Value) + return UInt32End(builder) +} + +func (rcv *UInt32) UnPackTo(t *UInt32T) { + t.Value = rcv.Value() +} + +func (rcv *UInt32) UnPack() *UInt32T { + if rcv == nil { return nil } + t := &UInt32T{} + rcv.UnPackTo(t) + return t +} + +type UInt32 struct { + _tab flatbuffers.Table +} + +func GetRootAsUInt32(buf []byte, offset flatbuffers.UOffsetT) *UInt32 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UInt32{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUInt32(buf []byte, offset flatbuffers.UOffsetT) *UInt32 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UInt32{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UInt32) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UInt32) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *UInt32) Value() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *UInt32) MutateValue(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func UInt32Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func UInt32AddValue(builder *flatbuffers.Builder, value uint32) { + builder.PrependUint32Slot(0, value, 0) +} +func UInt32End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/UInt64.go b/pkg/fbs/comm/datalayer/UInt64.go index 8369009..5b37a7e 100644 --- a/pkg/fbs/comm/datalayer/UInt64.go +++ b/pkg/fbs/comm/datalayer/UInt64.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type UInt64T struct { - Value uint64 -} - -func (t *UInt64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - UInt64Start(builder) - UInt64AddValue(builder, t.Value) - return UInt64End(builder) -} - -func (rcv *UInt64) UnPackTo(t *UInt64T) { - t.Value = rcv.Value() -} - -func (rcv *UInt64) UnPack() *UInt64T { - if rcv == nil { return nil } - t := &UInt64T{} - rcv.UnPackTo(t) - return t -} - -type UInt64 struct { - _tab flatbuffers.Table -} - -func GetRootAsUInt64(buf []byte, offset flatbuffers.UOffsetT) *UInt64 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UInt64{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUInt64(buf []byte, offset flatbuffers.UOffsetT) *UInt64 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UInt64{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UInt64) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UInt64) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *UInt64) Value() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *UInt64) MutateValue(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func UInt64Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func UInt64AddValue(builder *flatbuffers.Builder, value uint64) { - builder.PrependUint64Slot(0, value, 0) -} -func UInt64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type UInt64T struct { + Value uint64 +} + +func (t *UInt64T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + UInt64Start(builder) + UInt64AddValue(builder, t.Value) + return UInt64End(builder) +} + +func (rcv *UInt64) UnPackTo(t *UInt64T) { + t.Value = rcv.Value() +} + +func (rcv *UInt64) UnPack() *UInt64T { + if rcv == nil { return nil } + t := &UInt64T{} + rcv.UnPackTo(t) + return t +} + +type UInt64 struct { + _tab flatbuffers.Table +} + +func GetRootAsUInt64(buf []byte, offset flatbuffers.UOffsetT) *UInt64 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UInt64{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUInt64(buf []byte, offset flatbuffers.UOffsetT) *UInt64 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UInt64{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UInt64) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UInt64) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *UInt64) Value() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *UInt64) MutateValue(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func UInt64Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func UInt64AddValue(builder *flatbuffers.Builder, value uint64) { + builder.PrependUint64Slot(0, value, 0) +} +func UInt64End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/UInt8.go b/pkg/fbs/comm/datalayer/UInt8.go index 5202120..1289f35 100644 --- a/pkg/fbs/comm/datalayer/UInt8.go +++ b/pkg/fbs/comm/datalayer/UInt8.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type UInt8T struct { - Value byte -} - -func (t *UInt8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - UInt8Start(builder) - UInt8AddValue(builder, t.Value) - return UInt8End(builder) -} - -func (rcv *UInt8) UnPackTo(t *UInt8T) { - t.Value = rcv.Value() -} - -func (rcv *UInt8) UnPack() *UInt8T { - if rcv == nil { return nil } - t := &UInt8T{} - rcv.UnPackTo(t) - return t -} - -type UInt8 struct { - _tab flatbuffers.Table -} - -func GetRootAsUInt8(buf []byte, offset flatbuffers.UOffsetT) *UInt8 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UInt8{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUInt8(buf []byte, offset flatbuffers.UOffsetT) *UInt8 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UInt8{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UInt8) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UInt8) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *UInt8) Value() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *UInt8) MutateValue(n byte) bool { - return rcv._tab.MutateByteSlot(4, n) -} - -func UInt8Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func UInt8AddValue(builder *flatbuffers.Builder, value byte) { - builder.PrependByteSlot(0, value, 0) -} -func UInt8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type UInt8T struct { + Value byte +} + +func (t *UInt8T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + UInt8Start(builder) + UInt8AddValue(builder, t.Value) + return UInt8End(builder) +} + +func (rcv *UInt8) UnPackTo(t *UInt8T) { + t.Value = rcv.Value() +} + +func (rcv *UInt8) UnPack() *UInt8T { + if rcv == nil { return nil } + t := &UInt8T{} + rcv.UnPackTo(t) + return t +} + +type UInt8 struct { + _tab flatbuffers.Table +} + +func GetRootAsUInt8(buf []byte, offset flatbuffers.UOffsetT) *UInt8 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UInt8{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUInt8(buf []byte, offset flatbuffers.UOffsetT) *UInt8 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UInt8{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UInt8) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UInt8) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *UInt8) Value() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *UInt8) MutateValue(n byte) bool { + return rcv._tab.MutateByteSlot(4, n) +} + +func UInt8Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func UInt8AddValue(builder *flatbuffers.Builder, value byte) { + builder.PrependByteSlot(0, value, 0) +} +func UInt8End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Variable.go b/pkg/fbs/comm/datalayer/Variable.go index 4b490b9..164e50a 100644 --- a/pkg/fbs/comm/datalayer/Variable.go +++ b/pkg/fbs/comm/datalayer/Variable.go @@ -1,126 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type VariableT struct { - Name string - Bitoffset uint32 - Bitsize uint32 - Type string -} - -func (t *VariableT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - typeOffset := builder.CreateString(t.Type) - VariableStart(builder) - VariableAddName(builder, nameOffset) - VariableAddBitoffset(builder, t.Bitoffset) - VariableAddBitsize(builder, t.Bitsize) - VariableAddType(builder, typeOffset) - return VariableEnd(builder) -} - -func (rcv *Variable) UnPackTo(t *VariableT) { - t.Name = string(rcv.Name()) - t.Bitoffset = rcv.Bitoffset() - t.Bitsize = rcv.Bitsize() - t.Type = string(rcv.Type()) -} - -func (rcv *Variable) UnPack() *VariableT { - if rcv == nil { return nil } - t := &VariableT{} - rcv.UnPackTo(t) - return t -} - -type Variable struct { - _tab flatbuffers.Table -} - -func GetRootAsVariable(buf []byte, offset flatbuffers.UOffsetT) *Variable { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Variable{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsVariable(buf []byte, offset flatbuffers.UOffsetT) *Variable { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Variable{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Variable) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Variable) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Variable) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Variable) Bitoffset() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Variable) MutateBitoffset(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Variable) Bitsize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Variable) MutateBitsize(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *Variable) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func VariableStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func VariableAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func VariableAddBitoffset(builder *flatbuffers.Builder, bitoffset uint32) { - builder.PrependUint32Slot(1, bitoffset, 0) -} -func VariableAddBitsize(builder *flatbuffers.Builder, bitsize uint32) { - builder.PrependUint32Slot(2, bitsize, 0) -} -func VariableAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(type_), 0) -} -func VariableEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type VariableT struct { + Name string + Bitoffset uint32 + Bitsize uint32 + Type string + Metadata *MetadataT +} + +func (t *VariableT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + typeOffset := builder.CreateString(t.Type) + metadataOffset := t.Metadata.Pack(builder) + VariableStart(builder) + VariableAddName(builder, nameOffset) + VariableAddBitoffset(builder, t.Bitoffset) + VariableAddBitsize(builder, t.Bitsize) + VariableAddType(builder, typeOffset) + VariableAddMetadata(builder, metadataOffset) + return VariableEnd(builder) +} + +func (rcv *Variable) UnPackTo(t *VariableT) { + t.Name = string(rcv.Name()) + t.Bitoffset = rcv.Bitoffset() + t.Bitsize = rcv.Bitsize() + t.Type = string(rcv.Type()) + t.Metadata = rcv.Metadata(nil).UnPack() +} + +func (rcv *Variable) UnPack() *VariableT { + if rcv == nil { return nil } + t := &VariableT{} + rcv.UnPackTo(t) + return t +} + +type Variable struct { + _tab flatbuffers.Table +} + +func GetRootAsVariable(buf []byte, offset flatbuffers.UOffsetT) *Variable { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Variable{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsVariable(buf []byte, offset flatbuffers.UOffsetT) *Variable { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Variable{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Variable) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Variable) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of the variable +func (rcv *Variable) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the variable +/// Offset (in bits) of variable in memory +func (rcv *Variable) Bitoffset() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Offset (in bits) of variable in memory +func (rcv *Variable) MutateBitoffset(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// Size (in bits) of variable in memory +func (rcv *Variable) Bitsize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Size (in bits) of variable in memory +func (rcv *Variable) MutateBitsize(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// type information +func (rcv *Variable) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// type information +/// metadata of the variable +func (rcv *Variable) Metadata(obj *Metadata) *Metadata { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Metadata) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// metadata of the variable +func VariableStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func VariableAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func VariableAddBitoffset(builder *flatbuffers.Builder, bitoffset uint32) { + builder.PrependUint32Slot(1, bitoffset, 0) +} +func VariableAddBitsize(builder *flatbuffers.Builder, bitsize uint32) { + builder.PrependUint32Slot(2, bitsize, 0) +} +func VariableAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(type_), 0) +} +func VariableAddMetadata(builder *flatbuffers.Builder, metadata flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(metadata), 0) +} +func VariableEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Watchlist.go b/pkg/fbs/comm/datalayer/Watchlist.go index fb88757..0a4dbc9 100644 --- a/pkg/fbs/comm/datalayer/Watchlist.go +++ b/pkg/fbs/comm/datalayer/Watchlist.go @@ -1,118 +1,122 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type WatchlistT struct { - Name string - Items []string -} - -func (t *WatchlistT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - itemsOffset := flatbuffers.UOffsetT(0) - if t.Items != nil { - itemsLength := len(t.Items) - itemsOffsets := make([]flatbuffers.UOffsetT, itemsLength) - for j := 0; j < itemsLength; j++ { - itemsOffsets[j] = builder.CreateString(t.Items[j]) - } - WatchlistStartItemsVector(builder, itemsLength) - for j := itemsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(itemsOffsets[j]) - } - itemsOffset = builder.EndVector(itemsLength) - } - WatchlistStart(builder) - WatchlistAddName(builder, nameOffset) - WatchlistAddItems(builder, itemsOffset) - return WatchlistEnd(builder) -} - -func (rcv *Watchlist) UnPackTo(t *WatchlistT) { - t.Name = string(rcv.Name()) - itemsLength := rcv.ItemsLength() - t.Items = make([]string, itemsLength) - for j := 0; j < itemsLength; j++ { - t.Items[j] = string(rcv.Items(j)) - } -} - -func (rcv *Watchlist) UnPack() *WatchlistT { - if rcv == nil { return nil } - t := &WatchlistT{} - rcv.UnPackTo(t) - return t -} - -type Watchlist struct { - _tab flatbuffers.Table -} - -func GetRootAsWatchlist(buf []byte, offset flatbuffers.UOffsetT) *Watchlist { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Watchlist{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsWatchlist(buf []byte, offset flatbuffers.UOffsetT) *Watchlist { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Watchlist{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Watchlist) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Watchlist) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Watchlist) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Watchlist) Items(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Watchlist) ItemsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func WatchlistStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func WatchlistAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func WatchlistAddItems(builder *flatbuffers.Builder, items flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(items), 0) -} -func WatchlistStartItemsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func WatchlistEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type WatchlistT struct { + Name string + Items []string +} + +func (t *WatchlistT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + itemsOffset := flatbuffers.UOffsetT(0) + if t.Items != nil { + itemsLength := len(t.Items) + itemsOffsets := make([]flatbuffers.UOffsetT, itemsLength) + for j := 0; j < itemsLength; j++ { + itemsOffsets[j] = builder.CreateString(t.Items[j]) + } + WatchlistStartItemsVector(builder, itemsLength) + for j := itemsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(itemsOffsets[j]) + } + itemsOffset = builder.EndVector(itemsLength) + } + WatchlistStart(builder) + WatchlistAddName(builder, nameOffset) + WatchlistAddItems(builder, itemsOffset) + return WatchlistEnd(builder) +} + +func (rcv *Watchlist) UnPackTo(t *WatchlistT) { + t.Name = string(rcv.Name()) + itemsLength := rcv.ItemsLength() + t.Items = make([]string, itemsLength) + for j := 0; j < itemsLength; j++ { + t.Items[j] = string(rcv.Items(j)) + } +} + +func (rcv *Watchlist) UnPack() *WatchlistT { + if rcv == nil { return nil } + t := &WatchlistT{} + rcv.UnPackTo(t) + return t +} + +type Watchlist struct { + _tab flatbuffers.Table +} + +func GetRootAsWatchlist(buf []byte, offset flatbuffers.UOffsetT) *Watchlist { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Watchlist{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsWatchlist(buf []byte, offset flatbuffers.UOffsetT) *Watchlist { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Watchlist{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Watchlist) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Watchlist) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the watchlist +func (rcv *Watchlist) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the watchlist +/// items of the watchlist +func (rcv *Watchlist) Items(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Watchlist) ItemsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// items of the watchlist +func WatchlistStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func WatchlistAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func WatchlistAddItems(builder *flatbuffers.Builder, items flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(items), 0) +} +func WatchlistStartItemsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func WatchlistEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/Watchlists.go b/pkg/fbs/comm/datalayer/Watchlists.go index 3fbe122..944d1a5 100644 --- a/pkg/fbs/comm/datalayer/Watchlists.go +++ b/pkg/fbs/comm/datalayer/Watchlists.go @@ -1,108 +1,110 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package datalayer - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type WatchlistsT struct { - Watchlists []*WatchlistT -} - -func (t *WatchlistsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - watchlistsOffset := flatbuffers.UOffsetT(0) - if t.Watchlists != nil { - watchlistsLength := len(t.Watchlists) - watchlistsOffsets := make([]flatbuffers.UOffsetT, watchlistsLength) - for j := 0; j < watchlistsLength; j++ { - watchlistsOffsets[j] = t.Watchlists[j].Pack(builder) - } - WatchlistsStartWatchlistsVector(builder, watchlistsLength) - for j := watchlistsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(watchlistsOffsets[j]) - } - watchlistsOffset = builder.EndVector(watchlistsLength) - } - WatchlistsStart(builder) - WatchlistsAddWatchlists(builder, watchlistsOffset) - return WatchlistsEnd(builder) -} - -func (rcv *Watchlists) UnPackTo(t *WatchlistsT) { - watchlistsLength := rcv.WatchlistsLength() - t.Watchlists = make([]*WatchlistT, watchlistsLength) - for j := 0; j < watchlistsLength; j++ { - x := Watchlist{} - rcv.Watchlists(&x, j) - t.Watchlists[j] = x.UnPack() - } -} - -func (rcv *Watchlists) UnPack() *WatchlistsT { - if rcv == nil { return nil } - t := &WatchlistsT{} - rcv.UnPackTo(t) - return t -} - -type Watchlists struct { - _tab flatbuffers.Table -} - -func GetRootAsWatchlists(buf []byte, offset flatbuffers.UOffsetT) *Watchlists { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Watchlists{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsWatchlists(buf []byte, offset flatbuffers.UOffsetT) *Watchlists { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Watchlists{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Watchlists) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Watchlists) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Watchlists) Watchlists(obj *Watchlist, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Watchlists) WatchlistsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func WatchlistsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func WatchlistsAddWatchlists(builder *flatbuffers.Builder, watchlists flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(watchlists), 0) -} -func WatchlistsStartWatchlistsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func WatchlistsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package datalayer + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type WatchlistsT struct { + Watchlists []*WatchlistT +} + +func (t *WatchlistsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + watchlistsOffset := flatbuffers.UOffsetT(0) + if t.Watchlists != nil { + watchlistsLength := len(t.Watchlists) + watchlistsOffsets := make([]flatbuffers.UOffsetT, watchlistsLength) + for j := 0; j < watchlistsLength; j++ { + watchlistsOffsets[j] = t.Watchlists[j].Pack(builder) + } + WatchlistsStartWatchlistsVector(builder, watchlistsLength) + for j := watchlistsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(watchlistsOffsets[j]) + } + watchlistsOffset = builder.EndVector(watchlistsLength) + } + WatchlistsStart(builder) + WatchlistsAddWatchlists(builder, watchlistsOffset) + return WatchlistsEnd(builder) +} + +func (rcv *Watchlists) UnPackTo(t *WatchlistsT) { + watchlistsLength := rcv.WatchlistsLength() + t.Watchlists = make([]*WatchlistT, watchlistsLength) + for j := 0; j < watchlistsLength; j++ { + x := Watchlist{} + rcv.Watchlists(&x, j) + t.Watchlists[j] = x.UnPack() + } +} + +func (rcv *Watchlists) UnPack() *WatchlistsT { + if rcv == nil { return nil } + t := &WatchlistsT{} + rcv.UnPackTo(t) + return t +} + +type Watchlists struct { + _tab flatbuffers.Table +} + +func GetRootAsWatchlists(buf []byte, offset flatbuffers.UOffsetT) *Watchlists { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Watchlists{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsWatchlists(buf []byte, offset flatbuffers.UOffsetT) *Watchlists { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Watchlists{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Watchlists) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Watchlists) Table() flatbuffers.Table { + return rcv._tab +} + +/// Watchlists +func (rcv *Watchlists) Watchlists(obj *Watchlist, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Watchlists) WatchlistsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Watchlists +func WatchlistsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func WatchlistsAddWatchlists(builder *flatbuffers.Builder, watchlists flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(watchlists), 0) +} +func WatchlistsStartWatchlistsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func WatchlistsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Bundle.go b/pkg/fbs/comm/datalayer/framework/Bundle.go index 5b19f0d..c9f9693 100644 --- a/pkg/fbs/comm/datalayer/framework/Bundle.go +++ b/pkg/fbs/comm/datalayer/framework/Bundle.go @@ -1,222 +1,222 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type BundleT struct { - Name string - Version string - Location string - Id int64 - Components []*ComponentT - State string - Active bool - Installed bool -} - -func (t *BundleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - versionOffset := builder.CreateString(t.Version) - locationOffset := builder.CreateString(t.Location) - componentsOffset := flatbuffers.UOffsetT(0) - if t.Components != nil { - componentsLength := len(t.Components) - componentsOffsets := make([]flatbuffers.UOffsetT, componentsLength) - for j := 0; j < componentsLength; j++ { - componentsOffsets[j] = t.Components[j].Pack(builder) - } - BundleStartComponentsVector(builder, componentsLength) - for j := componentsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(componentsOffsets[j]) - } - componentsOffset = builder.EndVector(componentsLength) - } - stateOffset := builder.CreateString(t.State) - BundleStart(builder) - BundleAddName(builder, nameOffset) - BundleAddVersion(builder, versionOffset) - BundleAddLocation(builder, locationOffset) - BundleAddId(builder, t.Id) - BundleAddComponents(builder, componentsOffset) - BundleAddState(builder, stateOffset) - BundleAddActive(builder, t.Active) - BundleAddInstalled(builder, t.Installed) - return BundleEnd(builder) -} - -func (rcv *Bundle) UnPackTo(t *BundleT) { - t.Name = string(rcv.Name()) - t.Version = string(rcv.Version()) - t.Location = string(rcv.Location()) - t.Id = rcv.Id() - componentsLength := rcv.ComponentsLength() - t.Components = make([]*ComponentT, componentsLength) - for j := 0; j < componentsLength; j++ { - x := Component{} - rcv.Components(&x, j) - t.Components[j] = x.UnPack() - } - t.State = string(rcv.State()) - t.Active = rcv.Active() - t.Installed = rcv.Installed() -} - -func (rcv *Bundle) UnPack() *BundleT { - if rcv == nil { return nil } - t := &BundleT{} - rcv.UnPackTo(t) - return t -} - -type Bundle struct { - _tab flatbuffers.Table -} - -func GetRootAsBundle(buf []byte, offset flatbuffers.UOffsetT) *Bundle { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Bundle{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBundle(buf []byte, offset flatbuffers.UOffsetT) *Bundle { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Bundle{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Bundle) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Bundle) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Bundle) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Bundle) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Bundle) Location() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Bundle) Id() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Bundle) MutateId(n int64) bool { - return rcv._tab.MutateInt64Slot(10, n) -} - -func (rcv *Bundle) Components(obj *Component, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Bundle) ComponentsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Bundle) State() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Bundle) Active() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Bundle) MutateActive(n bool) bool { - return rcv._tab.MutateBoolSlot(16, n) -} - -func (rcv *Bundle) Installed() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Bundle) MutateInstalled(n bool) bool { - return rcv._tab.MutateBoolSlot(18, n) -} - -func BundleStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func BundleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func BundleAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) -} -func BundleAddLocation(builder *flatbuffers.Builder, location flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(location), 0) -} -func BundleAddId(builder *flatbuffers.Builder, id int64) { - builder.PrependInt64Slot(3, id, 0) -} -func BundleAddComponents(builder *flatbuffers.Builder, components flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(components), 0) -} -func BundleStartComponentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func BundleAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(state), 0) -} -func BundleAddActive(builder *flatbuffers.Builder, active bool) { - builder.PrependBoolSlot(6, active, false) -} -func BundleAddInstalled(builder *flatbuffers.Builder, installed bool) { - builder.PrependBoolSlot(7, installed, false) -} -func BundleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type BundleT struct { + Name string + Version string + Location string + Id int64 + Components []*ComponentT + State string + Active bool + Installed bool +} + +func (t *BundleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + versionOffset := builder.CreateString(t.Version) + locationOffset := builder.CreateString(t.Location) + componentsOffset := flatbuffers.UOffsetT(0) + if t.Components != nil { + componentsLength := len(t.Components) + componentsOffsets := make([]flatbuffers.UOffsetT, componentsLength) + for j := 0; j < componentsLength; j++ { + componentsOffsets[j] = t.Components[j].Pack(builder) + } + BundleStartComponentsVector(builder, componentsLength) + for j := componentsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(componentsOffsets[j]) + } + componentsOffset = builder.EndVector(componentsLength) + } + stateOffset := builder.CreateString(t.State) + BundleStart(builder) + BundleAddName(builder, nameOffset) + BundleAddVersion(builder, versionOffset) + BundleAddLocation(builder, locationOffset) + BundleAddId(builder, t.Id) + BundleAddComponents(builder, componentsOffset) + BundleAddState(builder, stateOffset) + BundleAddActive(builder, t.Active) + BundleAddInstalled(builder, t.Installed) + return BundleEnd(builder) +} + +func (rcv *Bundle) UnPackTo(t *BundleT) { + t.Name = string(rcv.Name()) + t.Version = string(rcv.Version()) + t.Location = string(rcv.Location()) + t.Id = rcv.Id() + componentsLength := rcv.ComponentsLength() + t.Components = make([]*ComponentT, componentsLength) + for j := 0; j < componentsLength; j++ { + x := Component{} + rcv.Components(&x, j) + t.Components[j] = x.UnPack() + } + t.State = string(rcv.State()) + t.Active = rcv.Active() + t.Installed = rcv.Installed() +} + +func (rcv *Bundle) UnPack() *BundleT { + if rcv == nil { return nil } + t := &BundleT{} + rcv.UnPackTo(t) + return t +} + +type Bundle struct { + _tab flatbuffers.Table +} + +func GetRootAsBundle(buf []byte, offset flatbuffers.UOffsetT) *Bundle { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Bundle{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBundle(buf []byte, offset flatbuffers.UOffsetT) *Bundle { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Bundle{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Bundle) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Bundle) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Bundle) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Bundle) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Bundle) Location() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Bundle) Id() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Bundle) MutateId(n int64) bool { + return rcv._tab.MutateInt64Slot(10, n) +} + +func (rcv *Bundle) Components(obj *Component, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Bundle) ComponentsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Bundle) State() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Bundle) Active() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Bundle) MutateActive(n bool) bool { + return rcv._tab.MutateBoolSlot(16, n) +} + +func (rcv *Bundle) Installed() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Bundle) MutateInstalled(n bool) bool { + return rcv._tab.MutateBoolSlot(18, n) +} + +func BundleStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func BundleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func BundleAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) +} +func BundleAddLocation(builder *flatbuffers.Builder, location flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(location), 0) +} +func BundleAddId(builder *flatbuffers.Builder, id int64) { + builder.PrependInt64Slot(3, id, 0) +} +func BundleAddComponents(builder *flatbuffers.Builder, components flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(components), 0) +} +func BundleStartComponentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func BundleAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(state), 0) +} +func BundleAddActive(builder *flatbuffers.Builder, active bool) { + builder.PrependBoolSlot(6, active, false) +} +func BundleAddInstalled(builder *flatbuffers.Builder, installed bool) { + builder.PrependBoolSlot(7, installed, false) +} +func BundleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/BundleList.go b/pkg/fbs/comm/datalayer/framework/BundleList.go index 4f80e8e..56f1405 100644 --- a/pkg/fbs/comm/datalayer/framework/BundleList.go +++ b/pkg/fbs/comm/datalayer/framework/BundleList.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type BundleListT struct { - Bundles []*BundleT -} - -func (t *BundleListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - bundlesOffset := flatbuffers.UOffsetT(0) - if t.Bundles != nil { - bundlesLength := len(t.Bundles) - bundlesOffsets := make([]flatbuffers.UOffsetT, bundlesLength) - for j := 0; j < bundlesLength; j++ { - bundlesOffsets[j] = t.Bundles[j].Pack(builder) - } - BundleListStartBundlesVector(builder, bundlesLength) - for j := bundlesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(bundlesOffsets[j]) - } - bundlesOffset = builder.EndVector(bundlesLength) - } - BundleListStart(builder) - BundleListAddBundles(builder, bundlesOffset) - return BundleListEnd(builder) -} - -func (rcv *BundleList) UnPackTo(t *BundleListT) { - bundlesLength := rcv.BundlesLength() - t.Bundles = make([]*BundleT, bundlesLength) - for j := 0; j < bundlesLength; j++ { - x := Bundle{} - rcv.Bundles(&x, j) - t.Bundles[j] = x.UnPack() - } -} - -func (rcv *BundleList) UnPack() *BundleListT { - if rcv == nil { return nil } - t := &BundleListT{} - rcv.UnPackTo(t) - return t -} - -type BundleList struct { - _tab flatbuffers.Table -} - -func GetRootAsBundleList(buf []byte, offset flatbuffers.UOffsetT) *BundleList { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &BundleList{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBundleList(buf []byte, offset flatbuffers.UOffsetT) *BundleList { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &BundleList{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *BundleList) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *BundleList) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *BundleList) Bundles(obj *Bundle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *BundleList) BundlesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func BundleListStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func BundleListAddBundles(builder *flatbuffers.Builder, bundles flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(bundles), 0) -} -func BundleListStartBundlesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func BundleListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type BundleListT struct { + Bundles []*BundleT +} + +func (t *BundleListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + bundlesOffset := flatbuffers.UOffsetT(0) + if t.Bundles != nil { + bundlesLength := len(t.Bundles) + bundlesOffsets := make([]flatbuffers.UOffsetT, bundlesLength) + for j := 0; j < bundlesLength; j++ { + bundlesOffsets[j] = t.Bundles[j].Pack(builder) + } + BundleListStartBundlesVector(builder, bundlesLength) + for j := bundlesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(bundlesOffsets[j]) + } + bundlesOffset = builder.EndVector(bundlesLength) + } + BundleListStart(builder) + BundleListAddBundles(builder, bundlesOffset) + return BundleListEnd(builder) +} + +func (rcv *BundleList) UnPackTo(t *BundleListT) { + bundlesLength := rcv.BundlesLength() + t.Bundles = make([]*BundleT, bundlesLength) + for j := 0; j < bundlesLength; j++ { + x := Bundle{} + rcv.Bundles(&x, j) + t.Bundles[j] = x.UnPack() + } +} + +func (rcv *BundleList) UnPack() *BundleListT { + if rcv == nil { return nil } + t := &BundleListT{} + rcv.UnPackTo(t) + return t +} + +type BundleList struct { + _tab flatbuffers.Table +} + +func GetRootAsBundleList(buf []byte, offset flatbuffers.UOffsetT) *BundleList { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &BundleList{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBundleList(buf []byte, offset flatbuffers.UOffsetT) *BundleList { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &BundleList{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *BundleList) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *BundleList) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *BundleList) Bundles(obj *Bundle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *BundleList) BundlesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func BundleListStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func BundleListAddBundles(builder *flatbuffers.Builder, bundles flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(bundles), 0) +} +func BundleListStartBundlesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func BundleListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Component.go b/pkg/fbs/comm/datalayer/framework/Component.go index 0c5fa9e..a2fef4e 100644 --- a/pkg/fbs/comm/datalayer/framework/Component.go +++ b/pkg/fbs/comm/datalayer/framework/Component.go @@ -1,219 +1,219 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ComponentT struct { - Name string - Id string - Active bool - State string - Interfaces []*Interface_T - Dependencies []*DependencyT -} - -func (t *ComponentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - idOffset := builder.CreateString(t.Id) - stateOffset := builder.CreateString(t.State) - interfacesOffset := flatbuffers.UOffsetT(0) - if t.Interfaces != nil { - interfacesLength := len(t.Interfaces) - interfacesOffsets := make([]flatbuffers.UOffsetT, interfacesLength) - for j := 0; j < interfacesLength; j++ { - interfacesOffsets[j] = t.Interfaces[j].Pack(builder) - } - ComponentStartInterfacesVector(builder, interfacesLength) - for j := interfacesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(interfacesOffsets[j]) - } - interfacesOffset = builder.EndVector(interfacesLength) - } - dependenciesOffset := flatbuffers.UOffsetT(0) - if t.Dependencies != nil { - dependenciesLength := len(t.Dependencies) - dependenciesOffsets := make([]flatbuffers.UOffsetT, dependenciesLength) - for j := 0; j < dependenciesLength; j++ { - dependenciesOffsets[j] = t.Dependencies[j].Pack(builder) - } - ComponentStartDependenciesVector(builder, dependenciesLength) - for j := dependenciesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(dependenciesOffsets[j]) - } - dependenciesOffset = builder.EndVector(dependenciesLength) - } - ComponentStart(builder) - ComponentAddName(builder, nameOffset) - ComponentAddId(builder, idOffset) - ComponentAddActive(builder, t.Active) - ComponentAddState(builder, stateOffset) - ComponentAddInterfaces(builder, interfacesOffset) - ComponentAddDependencies(builder, dependenciesOffset) - return ComponentEnd(builder) -} - -func (rcv *Component) UnPackTo(t *ComponentT) { - t.Name = string(rcv.Name()) - t.Id = string(rcv.Id()) - t.Active = rcv.Active() - t.State = string(rcv.State()) - interfacesLength := rcv.InterfacesLength() - t.Interfaces = make([]*Interface_T, interfacesLength) - for j := 0; j < interfacesLength; j++ { - x := Interface_{} - rcv.Interfaces(&x, j) - t.Interfaces[j] = x.UnPack() - } - dependenciesLength := rcv.DependenciesLength() - t.Dependencies = make([]*DependencyT, dependenciesLength) - for j := 0; j < dependenciesLength; j++ { - x := Dependency{} - rcv.Dependencies(&x, j) - t.Dependencies[j] = x.UnPack() - } -} - -func (rcv *Component) UnPack() *ComponentT { - if rcv == nil { return nil } - t := &ComponentT{} - rcv.UnPackTo(t) - return t -} - -type Component struct { - _tab flatbuffers.Table -} - -func GetRootAsComponent(buf []byte, offset flatbuffers.UOffsetT) *Component { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Component{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsComponent(buf []byte, offset flatbuffers.UOffsetT) *Component { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Component{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Component) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Component) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Component) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Component) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Component) Active() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Component) MutateActive(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *Component) State() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Component) Interfaces(obj *Interface_, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Component) InterfacesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Component) Dependencies(obj *Dependency, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Component) DependenciesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ComponentStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func ComponentAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func ComponentAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) -} -func ComponentAddActive(builder *flatbuffers.Builder, active bool) { - builder.PrependBoolSlot(2, active, false) -} -func ComponentAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(state), 0) -} -func ComponentAddInterfaces(builder *flatbuffers.Builder, interfaces flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(interfaces), 0) -} -func ComponentStartInterfacesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ComponentAddDependencies(builder *flatbuffers.Builder, dependencies flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(dependencies), 0) -} -func ComponentStartDependenciesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ComponentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ComponentT struct { + Name string + Id string + Active bool + State string + Interfaces []*Interface_T + Dependencies []*DependencyT +} + +func (t *ComponentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + idOffset := builder.CreateString(t.Id) + stateOffset := builder.CreateString(t.State) + interfacesOffset := flatbuffers.UOffsetT(0) + if t.Interfaces != nil { + interfacesLength := len(t.Interfaces) + interfacesOffsets := make([]flatbuffers.UOffsetT, interfacesLength) + for j := 0; j < interfacesLength; j++ { + interfacesOffsets[j] = t.Interfaces[j].Pack(builder) + } + ComponentStartInterfacesVector(builder, interfacesLength) + for j := interfacesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(interfacesOffsets[j]) + } + interfacesOffset = builder.EndVector(interfacesLength) + } + dependenciesOffset := flatbuffers.UOffsetT(0) + if t.Dependencies != nil { + dependenciesLength := len(t.Dependencies) + dependenciesOffsets := make([]flatbuffers.UOffsetT, dependenciesLength) + for j := 0; j < dependenciesLength; j++ { + dependenciesOffsets[j] = t.Dependencies[j].Pack(builder) + } + ComponentStartDependenciesVector(builder, dependenciesLength) + for j := dependenciesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(dependenciesOffsets[j]) + } + dependenciesOffset = builder.EndVector(dependenciesLength) + } + ComponentStart(builder) + ComponentAddName(builder, nameOffset) + ComponentAddId(builder, idOffset) + ComponentAddActive(builder, t.Active) + ComponentAddState(builder, stateOffset) + ComponentAddInterfaces(builder, interfacesOffset) + ComponentAddDependencies(builder, dependenciesOffset) + return ComponentEnd(builder) +} + +func (rcv *Component) UnPackTo(t *ComponentT) { + t.Name = string(rcv.Name()) + t.Id = string(rcv.Id()) + t.Active = rcv.Active() + t.State = string(rcv.State()) + interfacesLength := rcv.InterfacesLength() + t.Interfaces = make([]*Interface_T, interfacesLength) + for j := 0; j < interfacesLength; j++ { + x := Interface_{} + rcv.Interfaces(&x, j) + t.Interfaces[j] = x.UnPack() + } + dependenciesLength := rcv.DependenciesLength() + t.Dependencies = make([]*DependencyT, dependenciesLength) + for j := 0; j < dependenciesLength; j++ { + x := Dependency{} + rcv.Dependencies(&x, j) + t.Dependencies[j] = x.UnPack() + } +} + +func (rcv *Component) UnPack() *ComponentT { + if rcv == nil { return nil } + t := &ComponentT{} + rcv.UnPackTo(t) + return t +} + +type Component struct { + _tab flatbuffers.Table +} + +func GetRootAsComponent(buf []byte, offset flatbuffers.UOffsetT) *Component { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Component{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsComponent(buf []byte, offset flatbuffers.UOffsetT) *Component { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Component{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Component) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Component) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Component) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Component) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Component) Active() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Component) MutateActive(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *Component) State() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Component) Interfaces(obj *Interface_, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Component) InterfacesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Component) Dependencies(obj *Dependency, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Component) DependenciesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ComponentStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func ComponentAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func ComponentAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(id), 0) +} +func ComponentAddActive(builder *flatbuffers.Builder, active bool) { + builder.PrependBoolSlot(2, active, false) +} +func ComponentAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(state), 0) +} +func ComponentAddInterfaces(builder *flatbuffers.Builder, interfaces flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(interfaces), 0) +} +func ComponentStartInterfacesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ComponentAddDependencies(builder *flatbuffers.Builder, dependencies flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(dependencies), 0) +} +func ComponentStartDependenciesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ComponentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/ComponentList.go b/pkg/fbs/comm/datalayer/framework/ComponentList.go index 57551ad..cd16b2f 100644 --- a/pkg/fbs/comm/datalayer/framework/ComponentList.go +++ b/pkg/fbs/comm/datalayer/framework/ComponentList.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ComponentListT struct { - Components []*ComponentT -} - -func (t *ComponentListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - componentsOffset := flatbuffers.UOffsetT(0) - if t.Components != nil { - componentsLength := len(t.Components) - componentsOffsets := make([]flatbuffers.UOffsetT, componentsLength) - for j := 0; j < componentsLength; j++ { - componentsOffsets[j] = t.Components[j].Pack(builder) - } - ComponentListStartComponentsVector(builder, componentsLength) - for j := componentsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(componentsOffsets[j]) - } - componentsOffset = builder.EndVector(componentsLength) - } - ComponentListStart(builder) - ComponentListAddComponents(builder, componentsOffset) - return ComponentListEnd(builder) -} - -func (rcv *ComponentList) UnPackTo(t *ComponentListT) { - componentsLength := rcv.ComponentsLength() - t.Components = make([]*ComponentT, componentsLength) - for j := 0; j < componentsLength; j++ { - x := Component{} - rcv.Components(&x, j) - t.Components[j] = x.UnPack() - } -} - -func (rcv *ComponentList) UnPack() *ComponentListT { - if rcv == nil { return nil } - t := &ComponentListT{} - rcv.UnPackTo(t) - return t -} - -type ComponentList struct { - _tab flatbuffers.Table -} - -func GetRootAsComponentList(buf []byte, offset flatbuffers.UOffsetT) *ComponentList { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ComponentList{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsComponentList(buf []byte, offset flatbuffers.UOffsetT) *ComponentList { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ComponentList{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ComponentList) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ComponentList) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ComponentList) Components(obj *Component, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ComponentList) ComponentsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ComponentListStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ComponentListAddComponents(builder *flatbuffers.Builder, components flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(components), 0) -} -func ComponentListStartComponentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ComponentListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ComponentListT struct { + Components []*ComponentT +} + +func (t *ComponentListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + componentsOffset := flatbuffers.UOffsetT(0) + if t.Components != nil { + componentsLength := len(t.Components) + componentsOffsets := make([]flatbuffers.UOffsetT, componentsLength) + for j := 0; j < componentsLength; j++ { + componentsOffsets[j] = t.Components[j].Pack(builder) + } + ComponentListStartComponentsVector(builder, componentsLength) + for j := componentsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(componentsOffsets[j]) + } + componentsOffset = builder.EndVector(componentsLength) + } + ComponentListStart(builder) + ComponentListAddComponents(builder, componentsOffset) + return ComponentListEnd(builder) +} + +func (rcv *ComponentList) UnPackTo(t *ComponentListT) { + componentsLength := rcv.ComponentsLength() + t.Components = make([]*ComponentT, componentsLength) + for j := 0; j < componentsLength; j++ { + x := Component{} + rcv.Components(&x, j) + t.Components[j] = x.UnPack() + } +} + +func (rcv *ComponentList) UnPack() *ComponentListT { + if rcv == nil { return nil } + t := &ComponentListT{} + rcv.UnPackTo(t) + return t +} + +type ComponentList struct { + _tab flatbuffers.Table +} + +func GetRootAsComponentList(buf []byte, offset flatbuffers.UOffsetT) *ComponentList { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ComponentList{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsComponentList(buf []byte, offset flatbuffers.UOffsetT) *ComponentList { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ComponentList{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ComponentList) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ComponentList) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ComponentList) Components(obj *Component, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ComponentList) ComponentsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ComponentListStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ComponentListAddComponents(builder *flatbuffers.Builder, components flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(components), 0) +} +func ComponentListStartComponentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ComponentListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Dependency.go b/pkg/fbs/comm/datalayer/framework/Dependency.go index 25d98fa..a25f77f 100644 --- a/pkg/fbs/comm/datalayer/framework/Dependency.go +++ b/pkg/fbs/comm/datalayer/framework/Dependency.go @@ -1,126 +1,126 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DependencyT struct { - Name string - Available bool - Required bool - Filter string -} - -func (t *DependencyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - filterOffset := builder.CreateString(t.Filter) - DependencyStart(builder) - DependencyAddName(builder, nameOffset) - DependencyAddAvailable(builder, t.Available) - DependencyAddRequired(builder, t.Required) - DependencyAddFilter(builder, filterOffset) - return DependencyEnd(builder) -} - -func (rcv *Dependency) UnPackTo(t *DependencyT) { - t.Name = string(rcv.Name()) - t.Available = rcv.Available() - t.Required = rcv.Required() - t.Filter = string(rcv.Filter()) -} - -func (rcv *Dependency) UnPack() *DependencyT { - if rcv == nil { return nil } - t := &DependencyT{} - rcv.UnPackTo(t) - return t -} - -type Dependency struct { - _tab flatbuffers.Table -} - -func GetRootAsDependency(buf []byte, offset flatbuffers.UOffsetT) *Dependency { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Dependency{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDependency(buf []byte, offset flatbuffers.UOffsetT) *Dependency { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Dependency{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Dependency) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Dependency) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Dependency) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Dependency) Available() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Dependency) MutateAvailable(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *Dependency) Required() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Dependency) MutateRequired(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *Dependency) Filter() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DependencyStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func DependencyAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func DependencyAddAvailable(builder *flatbuffers.Builder, available bool) { - builder.PrependBoolSlot(1, available, false) -} -func DependencyAddRequired(builder *flatbuffers.Builder, required bool) { - builder.PrependBoolSlot(2, required, false) -} -func DependencyAddFilter(builder *flatbuffers.Builder, filter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(filter), 0) -} -func DependencyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DependencyT struct { + Name string + Available bool + Required bool + Filter string +} + +func (t *DependencyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + filterOffset := builder.CreateString(t.Filter) + DependencyStart(builder) + DependencyAddName(builder, nameOffset) + DependencyAddAvailable(builder, t.Available) + DependencyAddRequired(builder, t.Required) + DependencyAddFilter(builder, filterOffset) + return DependencyEnd(builder) +} + +func (rcv *Dependency) UnPackTo(t *DependencyT) { + t.Name = string(rcv.Name()) + t.Available = rcv.Available() + t.Required = rcv.Required() + t.Filter = string(rcv.Filter()) +} + +func (rcv *Dependency) UnPack() *DependencyT { + if rcv == nil { return nil } + t := &DependencyT{} + rcv.UnPackTo(t) + return t +} + +type Dependency struct { + _tab flatbuffers.Table +} + +func GetRootAsDependency(buf []byte, offset flatbuffers.UOffsetT) *Dependency { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Dependency{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDependency(buf []byte, offset flatbuffers.UOffsetT) *Dependency { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Dependency{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Dependency) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Dependency) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Dependency) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Dependency) Available() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Dependency) MutateAvailable(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *Dependency) Required() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Dependency) MutateRequired(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *Dependency) Filter() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func DependencyStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func DependencyAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func DependencyAddAvailable(builder *flatbuffers.Builder, available bool) { + builder.PrependBoolSlot(1, available, false) +} +func DependencyAddRequired(builder *flatbuffers.Builder, required bool) { + builder.PrependBoolSlot(2, required, false) +} +func DependencyAddFilter(builder *flatbuffers.Builder, filter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(filter), 0) +} +func DependencyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/DependencyList.go b/pkg/fbs/comm/datalayer/framework/DependencyList.go index 1ce8a04..98f1709 100644 --- a/pkg/fbs/comm/datalayer/framework/DependencyList.go +++ b/pkg/fbs/comm/datalayer/framework/DependencyList.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DependencyListT struct { - Dependencies []*DependencyT -} - -func (t *DependencyListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dependenciesOffset := flatbuffers.UOffsetT(0) - if t.Dependencies != nil { - dependenciesLength := len(t.Dependencies) - dependenciesOffsets := make([]flatbuffers.UOffsetT, dependenciesLength) - for j := 0; j < dependenciesLength; j++ { - dependenciesOffsets[j] = t.Dependencies[j].Pack(builder) - } - DependencyListStartDependenciesVector(builder, dependenciesLength) - for j := dependenciesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(dependenciesOffsets[j]) - } - dependenciesOffset = builder.EndVector(dependenciesLength) - } - DependencyListStart(builder) - DependencyListAddDependencies(builder, dependenciesOffset) - return DependencyListEnd(builder) -} - -func (rcv *DependencyList) UnPackTo(t *DependencyListT) { - dependenciesLength := rcv.DependenciesLength() - t.Dependencies = make([]*DependencyT, dependenciesLength) - for j := 0; j < dependenciesLength; j++ { - x := Dependency{} - rcv.Dependencies(&x, j) - t.Dependencies[j] = x.UnPack() - } -} - -func (rcv *DependencyList) UnPack() *DependencyListT { - if rcv == nil { return nil } - t := &DependencyListT{} - rcv.UnPackTo(t) - return t -} - -type DependencyList struct { - _tab flatbuffers.Table -} - -func GetRootAsDependencyList(buf []byte, offset flatbuffers.UOffsetT) *DependencyList { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DependencyList{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDependencyList(buf []byte, offset flatbuffers.UOffsetT) *DependencyList { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DependencyList{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DependencyList) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DependencyList) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DependencyList) Dependencies(obj *Dependency, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *DependencyList) DependenciesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func DependencyListStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func DependencyListAddDependencies(builder *flatbuffers.Builder, dependencies flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(dependencies), 0) -} -func DependencyListStartDependenciesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func DependencyListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DependencyListT struct { + Dependencies []*DependencyT +} + +func (t *DependencyListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dependenciesOffset := flatbuffers.UOffsetT(0) + if t.Dependencies != nil { + dependenciesLength := len(t.Dependencies) + dependenciesOffsets := make([]flatbuffers.UOffsetT, dependenciesLength) + for j := 0; j < dependenciesLength; j++ { + dependenciesOffsets[j] = t.Dependencies[j].Pack(builder) + } + DependencyListStartDependenciesVector(builder, dependenciesLength) + for j := dependenciesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(dependenciesOffsets[j]) + } + dependenciesOffset = builder.EndVector(dependenciesLength) + } + DependencyListStart(builder) + DependencyListAddDependencies(builder, dependenciesOffset) + return DependencyListEnd(builder) +} + +func (rcv *DependencyList) UnPackTo(t *DependencyListT) { + dependenciesLength := rcv.DependenciesLength() + t.Dependencies = make([]*DependencyT, dependenciesLength) + for j := 0; j < dependenciesLength; j++ { + x := Dependency{} + rcv.Dependencies(&x, j) + t.Dependencies[j] = x.UnPack() + } +} + +func (rcv *DependencyList) UnPack() *DependencyListT { + if rcv == nil { return nil } + t := &DependencyListT{} + rcv.UnPackTo(t) + return t +} + +type DependencyList struct { + _tab flatbuffers.Table +} + +func GetRootAsDependencyList(buf []byte, offset flatbuffers.UOffsetT) *DependencyList { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DependencyList{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDependencyList(buf []byte, offset flatbuffers.UOffsetT) *DependencyList { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DependencyList{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DependencyList) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DependencyList) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DependencyList) Dependencies(obj *Dependency, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *DependencyList) DependenciesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func DependencyListStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DependencyListAddDependencies(builder *flatbuffers.Builder, dependencies flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(dependencies), 0) +} +func DependencyListStartDependenciesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func DependencyListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Exception.go b/pkg/fbs/comm/datalayer/framework/Exception.go index f2a8159..3a4a3ad 100644 --- a/pkg/fbs/comm/datalayer/framework/Exception.go +++ b/pkg/fbs/comm/datalayer/framework/Exception.go @@ -1,188 +1,188 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ExceptionT struct { - Date string - Name string - Signal string - Code string - Register *RegisterT - Stack []*StackentryT -} - -func (t *ExceptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dateOffset := builder.CreateString(t.Date) - nameOffset := builder.CreateString(t.Name) - signalOffset := builder.CreateString(t.Signal) - codeOffset := builder.CreateString(t.Code) - registerOffset := t.Register.Pack(builder) - stackOffset := flatbuffers.UOffsetT(0) - if t.Stack != nil { - stackLength := len(t.Stack) - stackOffsets := make([]flatbuffers.UOffsetT, stackLength) - for j := 0; j < stackLength; j++ { - stackOffsets[j] = t.Stack[j].Pack(builder) - } - ExceptionStartStackVector(builder, stackLength) - for j := stackLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(stackOffsets[j]) - } - stackOffset = builder.EndVector(stackLength) - } - ExceptionStart(builder) - ExceptionAddDate(builder, dateOffset) - ExceptionAddName(builder, nameOffset) - ExceptionAddSignal(builder, signalOffset) - ExceptionAddCode(builder, codeOffset) - ExceptionAddRegister(builder, registerOffset) - ExceptionAddStack(builder, stackOffset) - return ExceptionEnd(builder) -} - -func (rcv *Exception) UnPackTo(t *ExceptionT) { - t.Date = string(rcv.Date()) - t.Name = string(rcv.Name()) - t.Signal = string(rcv.Signal()) - t.Code = string(rcv.Code()) - t.Register = rcv.Register(nil).UnPack() - stackLength := rcv.StackLength() - t.Stack = make([]*StackentryT, stackLength) - for j := 0; j < stackLength; j++ { - x := Stackentry{} - rcv.Stack(&x, j) - t.Stack[j] = x.UnPack() - } -} - -func (rcv *Exception) UnPack() *ExceptionT { - if rcv == nil { return nil } - t := &ExceptionT{} - rcv.UnPackTo(t) - return t -} - -type Exception struct { - _tab flatbuffers.Table -} - -func GetRootAsException(buf []byte, offset flatbuffers.UOffsetT) *Exception { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Exception{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsException(buf []byte, offset flatbuffers.UOffsetT) *Exception { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Exception{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Exception) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Exception) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Exception) Date() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Exception) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Exception) Signal() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Exception) Code() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Exception) Register(obj *Register) *Register { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Register) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Exception) Stack(obj *Stackentry, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Exception) StackLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ExceptionStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func ExceptionAddDate(builder *flatbuffers.Builder, date flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(date), 0) -} -func ExceptionAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) -} -func ExceptionAddSignal(builder *flatbuffers.Builder, signal flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(signal), 0) -} -func ExceptionAddCode(builder *flatbuffers.Builder, code flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(code), 0) -} -func ExceptionAddRegister(builder *flatbuffers.Builder, register flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(register), 0) -} -func ExceptionAddStack(builder *flatbuffers.Builder, stack flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(stack), 0) -} -func ExceptionStartStackVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ExceptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ExceptionT struct { + Date string + Name string + Signal string + Code string + Register *RegisterT + Stack []*StackentryT +} + +func (t *ExceptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dateOffset := builder.CreateString(t.Date) + nameOffset := builder.CreateString(t.Name) + signalOffset := builder.CreateString(t.Signal) + codeOffset := builder.CreateString(t.Code) + registerOffset := t.Register.Pack(builder) + stackOffset := flatbuffers.UOffsetT(0) + if t.Stack != nil { + stackLength := len(t.Stack) + stackOffsets := make([]flatbuffers.UOffsetT, stackLength) + for j := 0; j < stackLength; j++ { + stackOffsets[j] = t.Stack[j].Pack(builder) + } + ExceptionStartStackVector(builder, stackLength) + for j := stackLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(stackOffsets[j]) + } + stackOffset = builder.EndVector(stackLength) + } + ExceptionStart(builder) + ExceptionAddDate(builder, dateOffset) + ExceptionAddName(builder, nameOffset) + ExceptionAddSignal(builder, signalOffset) + ExceptionAddCode(builder, codeOffset) + ExceptionAddRegister(builder, registerOffset) + ExceptionAddStack(builder, stackOffset) + return ExceptionEnd(builder) +} + +func (rcv *Exception) UnPackTo(t *ExceptionT) { + t.Date = string(rcv.Date()) + t.Name = string(rcv.Name()) + t.Signal = string(rcv.Signal()) + t.Code = string(rcv.Code()) + t.Register = rcv.Register(nil).UnPack() + stackLength := rcv.StackLength() + t.Stack = make([]*StackentryT, stackLength) + for j := 0; j < stackLength; j++ { + x := Stackentry{} + rcv.Stack(&x, j) + t.Stack[j] = x.UnPack() + } +} + +func (rcv *Exception) UnPack() *ExceptionT { + if rcv == nil { return nil } + t := &ExceptionT{} + rcv.UnPackTo(t) + return t +} + +type Exception struct { + _tab flatbuffers.Table +} + +func GetRootAsException(buf []byte, offset flatbuffers.UOffsetT) *Exception { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Exception{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsException(buf []byte, offset flatbuffers.UOffsetT) *Exception { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Exception{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Exception) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Exception) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Exception) Date() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Exception) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Exception) Signal() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Exception) Code() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Exception) Register(obj *Register) *Register { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Register) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Exception) Stack(obj *Stackentry, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Exception) StackLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ExceptionStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func ExceptionAddDate(builder *flatbuffers.Builder, date flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(date), 0) +} +func ExceptionAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) +} +func ExceptionAddSignal(builder *flatbuffers.Builder, signal flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(signal), 0) +} +func ExceptionAddCode(builder *flatbuffers.Builder, code flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(code), 0) +} +func ExceptionAddRegister(builder *flatbuffers.Builder, register flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(register), 0) +} +func ExceptionAddStack(builder *flatbuffers.Builder, stack flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(stack), 0) +} +func ExceptionStartStackVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ExceptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Exceptions.go b/pkg/fbs/comm/datalayer/framework/Exceptions.go index b9921e2..8b37ce6 100644 --- a/pkg/fbs/comm/datalayer/framework/Exceptions.go +++ b/pkg/fbs/comm/datalayer/framework/Exceptions.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ExceptionsT struct { - Exceptions []*ExceptionT -} - -func (t *ExceptionsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - exceptionsOffset := flatbuffers.UOffsetT(0) - if t.Exceptions != nil { - exceptionsLength := len(t.Exceptions) - exceptionsOffsets := make([]flatbuffers.UOffsetT, exceptionsLength) - for j := 0; j < exceptionsLength; j++ { - exceptionsOffsets[j] = t.Exceptions[j].Pack(builder) - } - ExceptionsStartExceptionsVector(builder, exceptionsLength) - for j := exceptionsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(exceptionsOffsets[j]) - } - exceptionsOffset = builder.EndVector(exceptionsLength) - } - ExceptionsStart(builder) - ExceptionsAddExceptions(builder, exceptionsOffset) - return ExceptionsEnd(builder) -} - -func (rcv *Exceptions) UnPackTo(t *ExceptionsT) { - exceptionsLength := rcv.ExceptionsLength() - t.Exceptions = make([]*ExceptionT, exceptionsLength) - for j := 0; j < exceptionsLength; j++ { - x := Exception{} - rcv.Exceptions(&x, j) - t.Exceptions[j] = x.UnPack() - } -} - -func (rcv *Exceptions) UnPack() *ExceptionsT { - if rcv == nil { return nil } - t := &ExceptionsT{} - rcv.UnPackTo(t) - return t -} - -type Exceptions struct { - _tab flatbuffers.Table -} - -func GetRootAsExceptions(buf []byte, offset flatbuffers.UOffsetT) *Exceptions { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Exceptions{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsExceptions(buf []byte, offset flatbuffers.UOffsetT) *Exceptions { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Exceptions{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Exceptions) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Exceptions) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Exceptions) Exceptions(obj *Exception, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Exceptions) ExceptionsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ExceptionsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ExceptionsAddExceptions(builder *flatbuffers.Builder, exceptions flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(exceptions), 0) -} -func ExceptionsStartExceptionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ExceptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ExceptionsT struct { + Exceptions []*ExceptionT +} + +func (t *ExceptionsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + exceptionsOffset := flatbuffers.UOffsetT(0) + if t.Exceptions != nil { + exceptionsLength := len(t.Exceptions) + exceptionsOffsets := make([]flatbuffers.UOffsetT, exceptionsLength) + for j := 0; j < exceptionsLength; j++ { + exceptionsOffsets[j] = t.Exceptions[j].Pack(builder) + } + ExceptionsStartExceptionsVector(builder, exceptionsLength) + for j := exceptionsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(exceptionsOffsets[j]) + } + exceptionsOffset = builder.EndVector(exceptionsLength) + } + ExceptionsStart(builder) + ExceptionsAddExceptions(builder, exceptionsOffset) + return ExceptionsEnd(builder) +} + +func (rcv *Exceptions) UnPackTo(t *ExceptionsT) { + exceptionsLength := rcv.ExceptionsLength() + t.Exceptions = make([]*ExceptionT, exceptionsLength) + for j := 0; j < exceptionsLength; j++ { + x := Exception{} + rcv.Exceptions(&x, j) + t.Exceptions[j] = x.UnPack() + } +} + +func (rcv *Exceptions) UnPack() *ExceptionsT { + if rcv == nil { return nil } + t := &ExceptionsT{} + rcv.UnPackTo(t) + return t +} + +type Exceptions struct { + _tab flatbuffers.Table +} + +func GetRootAsExceptions(buf []byte, offset flatbuffers.UOffsetT) *Exceptions { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Exceptions{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsExceptions(buf []byte, offset flatbuffers.UOffsetT) *Exceptions { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Exceptions{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Exceptions) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Exceptions) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Exceptions) Exceptions(obj *Exception, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Exceptions) ExceptionsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ExceptionsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ExceptionsAddExceptions(builder *flatbuffers.Builder, exceptions flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(exceptions), 0) +} +func ExceptionsStartExceptionsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ExceptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/InterfaceList_.go b/pkg/fbs/comm/datalayer/framework/InterfaceList_.go index ba1287c..5619e2c 100644 --- a/pkg/fbs/comm/datalayer/framework/InterfaceList_.go +++ b/pkg/fbs/comm/datalayer/framework/InterfaceList_.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type InterfaceList_T struct { - Interfaces []*Interface_T -} - -func (t *InterfaceList_T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - interfacesOffset := flatbuffers.UOffsetT(0) - if t.Interfaces != nil { - interfacesLength := len(t.Interfaces) - interfacesOffsets := make([]flatbuffers.UOffsetT, interfacesLength) - for j := 0; j < interfacesLength; j++ { - interfacesOffsets[j] = t.Interfaces[j].Pack(builder) - } - InterfaceList_StartInterfacesVector(builder, interfacesLength) - for j := interfacesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(interfacesOffsets[j]) - } - interfacesOffset = builder.EndVector(interfacesLength) - } - InterfaceList_Start(builder) - InterfaceList_AddInterfaces(builder, interfacesOffset) - return InterfaceList_End(builder) -} - -func (rcv *InterfaceList_) UnPackTo(t *InterfaceList_T) { - interfacesLength := rcv.InterfacesLength() - t.Interfaces = make([]*Interface_T, interfacesLength) - for j := 0; j < interfacesLength; j++ { - x := Interface_{} - rcv.Interfaces(&x, j) - t.Interfaces[j] = x.UnPack() - } -} - -func (rcv *InterfaceList_) UnPack() *InterfaceList_T { - if rcv == nil { return nil } - t := &InterfaceList_T{} - rcv.UnPackTo(t) - return t -} - -type InterfaceList_ struct { - _tab flatbuffers.Table -} - -func GetRootAsInterfaceList_(buf []byte, offset flatbuffers.UOffsetT) *InterfaceList_ { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &InterfaceList_{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInterfaceList_(buf []byte, offset flatbuffers.UOffsetT) *InterfaceList_ { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &InterfaceList_{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *InterfaceList_) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *InterfaceList_) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *InterfaceList_) Interfaces(obj *Interface_, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *InterfaceList_) InterfacesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func InterfaceList_Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func InterfaceList_AddInterfaces(builder *flatbuffers.Builder, interfaces flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(interfaces), 0) -} -func InterfaceList_StartInterfacesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func InterfaceList_End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InterfaceList_T struct { + Interfaces []*Interface_T +} + +func (t *InterfaceList_T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + interfacesOffset := flatbuffers.UOffsetT(0) + if t.Interfaces != nil { + interfacesLength := len(t.Interfaces) + interfacesOffsets := make([]flatbuffers.UOffsetT, interfacesLength) + for j := 0; j < interfacesLength; j++ { + interfacesOffsets[j] = t.Interfaces[j].Pack(builder) + } + InterfaceList_StartInterfacesVector(builder, interfacesLength) + for j := interfacesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(interfacesOffsets[j]) + } + interfacesOffset = builder.EndVector(interfacesLength) + } + InterfaceList_Start(builder) + InterfaceList_AddInterfaces(builder, interfacesOffset) + return InterfaceList_End(builder) +} + +func (rcv *InterfaceList_) UnPackTo(t *InterfaceList_T) { + interfacesLength := rcv.InterfacesLength() + t.Interfaces = make([]*Interface_T, interfacesLength) + for j := 0; j < interfacesLength; j++ { + x := Interface_{} + rcv.Interfaces(&x, j) + t.Interfaces[j] = x.UnPack() + } +} + +func (rcv *InterfaceList_) UnPack() *InterfaceList_T { + if rcv == nil { return nil } + t := &InterfaceList_T{} + rcv.UnPackTo(t) + return t +} + +type InterfaceList_ struct { + _tab flatbuffers.Table +} + +func GetRootAsInterfaceList_(buf []byte, offset flatbuffers.UOffsetT) *InterfaceList_ { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &InterfaceList_{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInterfaceList_(buf []byte, offset flatbuffers.UOffsetT) *InterfaceList_ { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &InterfaceList_{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *InterfaceList_) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *InterfaceList_) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *InterfaceList_) Interfaces(obj *Interface_, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *InterfaceList_) InterfacesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func InterfaceList_Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func InterfaceList_AddInterfaces(builder *flatbuffers.Builder, interfaces flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(interfaces), 0) +} +func InterfaceList_StartInterfacesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func InterfaceList_End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Interface_.go b/pkg/fbs/comm/datalayer/framework/Interface_.go index 20b872d..720400b 100644 --- a/pkg/fbs/comm/datalayer/framework/Interface_.go +++ b/pkg/fbs/comm/datalayer/framework/Interface_.go @@ -1,153 +1,153 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Interface_T struct { - Name string - Version string - Language string - Properties []*PropertyT -} - -func (t *Interface_T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - versionOffset := builder.CreateString(t.Version) - languageOffset := builder.CreateString(t.Language) - propertiesOffset := flatbuffers.UOffsetT(0) - if t.Properties != nil { - propertiesLength := len(t.Properties) - propertiesOffsets := make([]flatbuffers.UOffsetT, propertiesLength) - for j := 0; j < propertiesLength; j++ { - propertiesOffsets[j] = t.Properties[j].Pack(builder) - } - Interface_StartPropertiesVector(builder, propertiesLength) - for j := propertiesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(propertiesOffsets[j]) - } - propertiesOffset = builder.EndVector(propertiesLength) - } - Interface_Start(builder) - Interface_AddName(builder, nameOffset) - Interface_AddVersion(builder, versionOffset) - Interface_AddLanguage(builder, languageOffset) - Interface_AddProperties(builder, propertiesOffset) - return Interface_End(builder) -} - -func (rcv *Interface_) UnPackTo(t *Interface_T) { - t.Name = string(rcv.Name()) - t.Version = string(rcv.Version()) - t.Language = string(rcv.Language()) - propertiesLength := rcv.PropertiesLength() - t.Properties = make([]*PropertyT, propertiesLength) - for j := 0; j < propertiesLength; j++ { - x := Property{} - rcv.Properties(&x, j) - t.Properties[j] = x.UnPack() - } -} - -func (rcv *Interface_) UnPack() *Interface_T { - if rcv == nil { return nil } - t := &Interface_T{} - rcv.UnPackTo(t) - return t -} - -type Interface_ struct { - _tab flatbuffers.Table -} - -func GetRootAsInterface_(buf []byte, offset flatbuffers.UOffsetT) *Interface_ { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Interface_{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInterface_(buf []byte, offset flatbuffers.UOffsetT) *Interface_ { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Interface_{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Interface_) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Interface_) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Interface_) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Interface_) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Interface_) Language() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Interface_) Properties(obj *Property, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Interface_) PropertiesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func Interface_Start(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func Interface_AddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func Interface_AddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) -} -func Interface_AddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(language), 0) -} -func Interface_AddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(properties), 0) -} -func Interface_StartPropertiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func Interface_End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Interface_T struct { + Name string + Version string + Language string + Properties []*PropertyT +} + +func (t *Interface_T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + versionOffset := builder.CreateString(t.Version) + languageOffset := builder.CreateString(t.Language) + propertiesOffset := flatbuffers.UOffsetT(0) + if t.Properties != nil { + propertiesLength := len(t.Properties) + propertiesOffsets := make([]flatbuffers.UOffsetT, propertiesLength) + for j := 0; j < propertiesLength; j++ { + propertiesOffsets[j] = t.Properties[j].Pack(builder) + } + Interface_StartPropertiesVector(builder, propertiesLength) + for j := propertiesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(propertiesOffsets[j]) + } + propertiesOffset = builder.EndVector(propertiesLength) + } + Interface_Start(builder) + Interface_AddName(builder, nameOffset) + Interface_AddVersion(builder, versionOffset) + Interface_AddLanguage(builder, languageOffset) + Interface_AddProperties(builder, propertiesOffset) + return Interface_End(builder) +} + +func (rcv *Interface_) UnPackTo(t *Interface_T) { + t.Name = string(rcv.Name()) + t.Version = string(rcv.Version()) + t.Language = string(rcv.Language()) + propertiesLength := rcv.PropertiesLength() + t.Properties = make([]*PropertyT, propertiesLength) + for j := 0; j < propertiesLength; j++ { + x := Property{} + rcv.Properties(&x, j) + t.Properties[j] = x.UnPack() + } +} + +func (rcv *Interface_) UnPack() *Interface_T { + if rcv == nil { return nil } + t := &Interface_T{} + rcv.UnPackTo(t) + return t +} + +type Interface_ struct { + _tab flatbuffers.Table +} + +func GetRootAsInterface_(buf []byte, offset flatbuffers.UOffsetT) *Interface_ { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Interface_{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInterface_(buf []byte, offset flatbuffers.UOffsetT) *Interface_ { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Interface_{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Interface_) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Interface_) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Interface_) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface_) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface_) Language() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface_) Properties(obj *Property, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Interface_) PropertiesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func Interface_Start(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func Interface_AddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func Interface_AddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) +} +func Interface_AddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(language), 0) +} +func Interface_AddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(properties), 0) +} +func Interface_StartPropertiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func Interface_End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Property.go b/pkg/fbs/comm/datalayer/framework/Property.go index a7d9383..a44f719 100644 --- a/pkg/fbs/comm/datalayer/framework/Property.go +++ b/pkg/fbs/comm/datalayer/framework/Property.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type PropertyT struct { - Name string - Value string -} - -func (t *PropertyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - valueOffset := builder.CreateString(t.Value) - PropertyStart(builder) - PropertyAddName(builder, nameOffset) - PropertyAddValue(builder, valueOffset) - return PropertyEnd(builder) -} - -func (rcv *Property) UnPackTo(t *PropertyT) { - t.Name = string(rcv.Name()) - t.Value = string(rcv.Value()) -} - -func (rcv *Property) UnPack() *PropertyT { - if rcv == nil { return nil } - t := &PropertyT{} - rcv.UnPackTo(t) - return t -} - -type Property struct { - _tab flatbuffers.Table -} - -func GetRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Property{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Property{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Property) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Property) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Property) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Property) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func PropertyStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func PropertyAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func PropertyAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) -} -func PropertyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type PropertyT struct { + Name string + Value string +} + +func (t *PropertyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueOffset := builder.CreateString(t.Value) + PropertyStart(builder) + PropertyAddName(builder, nameOffset) + PropertyAddValue(builder, valueOffset) + return PropertyEnd(builder) +} + +func (rcv *Property) UnPackTo(t *PropertyT) { + t.Name = string(rcv.Name()) + t.Value = string(rcv.Value()) +} + +func (rcv *Property) UnPack() *PropertyT { + if rcv == nil { return nil } + t := &PropertyT{} + rcv.UnPackTo(t) + return t +} + +type Property struct { + _tab flatbuffers.Table +} + +func GetRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Property{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProperty(buf []byte, offset flatbuffers.UOffsetT) *Property { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Property{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Property) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Property) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Property) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Property) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func PropertyStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func PropertyAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func PropertyAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func PropertyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/PropertyList.go b/pkg/fbs/comm/datalayer/framework/PropertyList.go index bf30905..2f2d918 100644 --- a/pkg/fbs/comm/datalayer/framework/PropertyList.go +++ b/pkg/fbs/comm/datalayer/framework/PropertyList.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type PropertyListT struct { - Properties []*PropertyT -} - -func (t *PropertyListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - propertiesOffset := flatbuffers.UOffsetT(0) - if t.Properties != nil { - propertiesLength := len(t.Properties) - propertiesOffsets := make([]flatbuffers.UOffsetT, propertiesLength) - for j := 0; j < propertiesLength; j++ { - propertiesOffsets[j] = t.Properties[j].Pack(builder) - } - PropertyListStartPropertiesVector(builder, propertiesLength) - for j := propertiesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(propertiesOffsets[j]) - } - propertiesOffset = builder.EndVector(propertiesLength) - } - PropertyListStart(builder) - PropertyListAddProperties(builder, propertiesOffset) - return PropertyListEnd(builder) -} - -func (rcv *PropertyList) UnPackTo(t *PropertyListT) { - propertiesLength := rcv.PropertiesLength() - t.Properties = make([]*PropertyT, propertiesLength) - for j := 0; j < propertiesLength; j++ { - x := Property{} - rcv.Properties(&x, j) - t.Properties[j] = x.UnPack() - } -} - -func (rcv *PropertyList) UnPack() *PropertyListT { - if rcv == nil { return nil } - t := &PropertyListT{} - rcv.UnPackTo(t) - return t -} - -type PropertyList struct { - _tab flatbuffers.Table -} - -func GetRootAsPropertyList(buf []byte, offset flatbuffers.UOffsetT) *PropertyList { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &PropertyList{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsPropertyList(buf []byte, offset flatbuffers.UOffsetT) *PropertyList { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &PropertyList{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *PropertyList) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *PropertyList) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *PropertyList) Properties(obj *Property, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *PropertyList) PropertiesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func PropertyListStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func PropertyListAddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(properties), 0) -} -func PropertyListStartPropertiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func PropertyListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type PropertyListT struct { + Properties []*PropertyT +} + +func (t *PropertyListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + propertiesOffset := flatbuffers.UOffsetT(0) + if t.Properties != nil { + propertiesLength := len(t.Properties) + propertiesOffsets := make([]flatbuffers.UOffsetT, propertiesLength) + for j := 0; j < propertiesLength; j++ { + propertiesOffsets[j] = t.Properties[j].Pack(builder) + } + PropertyListStartPropertiesVector(builder, propertiesLength) + for j := propertiesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(propertiesOffsets[j]) + } + propertiesOffset = builder.EndVector(propertiesLength) + } + PropertyListStart(builder) + PropertyListAddProperties(builder, propertiesOffset) + return PropertyListEnd(builder) +} + +func (rcv *PropertyList) UnPackTo(t *PropertyListT) { + propertiesLength := rcv.PropertiesLength() + t.Properties = make([]*PropertyT, propertiesLength) + for j := 0; j < propertiesLength; j++ { + x := Property{} + rcv.Properties(&x, j) + t.Properties[j] = x.UnPack() + } +} + +func (rcv *PropertyList) UnPack() *PropertyListT { + if rcv == nil { return nil } + t := &PropertyListT{} + rcv.UnPackTo(t) + return t +} + +type PropertyList struct { + _tab flatbuffers.Table +} + +func GetRootAsPropertyList(buf []byte, offset flatbuffers.UOffsetT) *PropertyList { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &PropertyList{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsPropertyList(buf []byte, offset flatbuffers.UOffsetT) *PropertyList { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &PropertyList{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *PropertyList) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *PropertyList) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *PropertyList) Properties(obj *Property, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *PropertyList) PropertiesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func PropertyListStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func PropertyListAddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(properties), 0) +} +func PropertyListStartPropertiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func PropertyListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Register.go b/pkg/fbs/comm/datalayer/framework/Register.go index 4eadba4..013142f 100644 --- a/pkg/fbs/comm/datalayer/framework/Register.go +++ b/pkg/fbs/comm/datalayer/framework/Register.go @@ -1,105 +1,105 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RegisterT struct { - IP string - SP string - BP string -} - -func (t *RegisterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - IPOffset := builder.CreateString(t.IP) - SPOffset := builder.CreateString(t.SP) - BPOffset := builder.CreateString(t.BP) - RegisterStart(builder) - RegisterAddIP(builder, IPOffset) - RegisterAddSP(builder, SPOffset) - RegisterAddBP(builder, BPOffset) - return RegisterEnd(builder) -} - -func (rcv *Register) UnPackTo(t *RegisterT) { - t.IP = string(rcv.IP()) - t.SP = string(rcv.SP()) - t.BP = string(rcv.BP()) -} - -func (rcv *Register) UnPack() *RegisterT { - if rcv == nil { return nil } - t := &RegisterT{} - rcv.UnPackTo(t) - return t -} - -type Register struct { - _tab flatbuffers.Table -} - -func GetRootAsRegister(buf []byte, offset flatbuffers.UOffsetT) *Register { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Register{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRegister(buf []byte, offset flatbuffers.UOffsetT) *Register { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Register{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Register) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Register) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Register) IP() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Register) SP() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Register) BP() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func RegisterStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func RegisterAddIP(builder *flatbuffers.Builder, IP flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(IP), 0) -} -func RegisterAddSP(builder *flatbuffers.Builder, SP flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(SP), 0) -} -func RegisterAddBP(builder *flatbuffers.Builder, BP flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(BP), 0) -} -func RegisterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RegisterT struct { + IP string + SP string + BP string +} + +func (t *RegisterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + IPOffset := builder.CreateString(t.IP) + SPOffset := builder.CreateString(t.SP) + BPOffset := builder.CreateString(t.BP) + RegisterStart(builder) + RegisterAddIP(builder, IPOffset) + RegisterAddSP(builder, SPOffset) + RegisterAddBP(builder, BPOffset) + return RegisterEnd(builder) +} + +func (rcv *Register) UnPackTo(t *RegisterT) { + t.IP = string(rcv.IP()) + t.SP = string(rcv.SP()) + t.BP = string(rcv.BP()) +} + +func (rcv *Register) UnPack() *RegisterT { + if rcv == nil { return nil } + t := &RegisterT{} + rcv.UnPackTo(t) + return t +} + +type Register struct { + _tab flatbuffers.Table +} + +func GetRootAsRegister(buf []byte, offset flatbuffers.UOffsetT) *Register { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Register{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRegister(buf []byte, offset flatbuffers.UOffsetT) *Register { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Register{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Register) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Register) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Register) IP() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Register) SP() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Register) BP() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func RegisterStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func RegisterAddIP(builder *flatbuffers.Builder, IP flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(IP), 0) +} +func RegisterAddSP(builder *flatbuffers.Builder, SP flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(SP), 0) +} +func RegisterAddBP(builder *flatbuffers.Builder, BP flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(BP), 0) +} +func RegisterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/framework/Stackentry.go b/pkg/fbs/comm/datalayer/framework/Stackentry.go index 27b90c9..f87dfd9 100644 --- a/pkg/fbs/comm/datalayer/framework/Stackentry.go +++ b/pkg/fbs/comm/datalayer/framework/Stackentry.go @@ -1,93 +1,93 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package framework - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StackentryT struct { - Frame uint32 - Stack string -} - -func (t *StackentryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - stackOffset := builder.CreateString(t.Stack) - StackentryStart(builder) - StackentryAddFrame(builder, t.Frame) - StackentryAddStack(builder, stackOffset) - return StackentryEnd(builder) -} - -func (rcv *Stackentry) UnPackTo(t *StackentryT) { - t.Frame = rcv.Frame() - t.Stack = string(rcv.Stack()) -} - -func (rcv *Stackentry) UnPack() *StackentryT { - if rcv == nil { return nil } - t := &StackentryT{} - rcv.UnPackTo(t) - return t -} - -type Stackentry struct { - _tab flatbuffers.Table -} - -func GetRootAsStackentry(buf []byte, offset flatbuffers.UOffsetT) *Stackentry { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Stackentry{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStackentry(buf []byte, offset flatbuffers.UOffsetT) *Stackentry { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Stackentry{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Stackentry) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Stackentry) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Stackentry) Frame() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Stackentry) MutateFrame(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *Stackentry) Stack() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func StackentryStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func StackentryAddFrame(builder *flatbuffers.Builder, frame uint32) { - builder.PrependUint32Slot(0, frame, 0) -} -func StackentryAddStack(builder *flatbuffers.Builder, stack flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(stack), 0) -} -func StackentryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package framework + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StackentryT struct { + Frame uint32 + Stack string +} + +func (t *StackentryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + stackOffset := builder.CreateString(t.Stack) + StackentryStart(builder) + StackentryAddFrame(builder, t.Frame) + StackentryAddStack(builder, stackOffset) + return StackentryEnd(builder) +} + +func (rcv *Stackentry) UnPackTo(t *StackentryT) { + t.Frame = rcv.Frame() + t.Stack = string(rcv.Stack()) +} + +func (rcv *Stackentry) UnPack() *StackentryT { + if rcv == nil { return nil } + t := &StackentryT{} + rcv.UnPackTo(t) + return t +} + +type Stackentry struct { + _tab flatbuffers.Table +} + +func GetRootAsStackentry(buf []byte, offset flatbuffers.UOffsetT) *Stackentry { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Stackentry{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStackentry(buf []byte, offset flatbuffers.UOffsetT) *Stackentry { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Stackentry{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Stackentry) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Stackentry) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Stackentry) Frame() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Stackentry) MutateFrame(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *Stackentry) Stack() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func StackentryStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func StackentryAddFrame(builder *flatbuffers.Builder, frame uint32) { + builder.PrependUint32Slot(0, frame, 0) +} +func StackentryAddStack(builder *flatbuffers.Builder, stack flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(stack), 0) +} +func StackentryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/remote/ConfigItem.go b/pkg/fbs/comm/datalayer/remote/ConfigItem.go index b1dad4d..2d70ffe 100644 --- a/pkg/fbs/comm/datalayer/remote/ConfigItem.go +++ b/pkg/fbs/comm/datalayer/remote/ConfigItem.go @@ -1,90 +1,94 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package remote - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ConfigItemT struct { - Name string - Address string -} - -func (t *ConfigItemT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - addressOffset := builder.CreateString(t.Address) - ConfigItemStart(builder) - ConfigItemAddName(builder, nameOffset) - ConfigItemAddAddress(builder, addressOffset) - return ConfigItemEnd(builder) -} - -func (rcv *ConfigItem) UnPackTo(t *ConfigItemT) { - t.Name = string(rcv.Name()) - t.Address = string(rcv.Address()) -} - -func (rcv *ConfigItem) UnPack() *ConfigItemT { - if rcv == nil { return nil } - t := &ConfigItemT{} - rcv.UnPackTo(t) - return t -} - -type ConfigItem struct { - _tab flatbuffers.Table -} - -func GetRootAsConfigItem(buf []byte, offset flatbuffers.UOffsetT) *ConfigItem { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ConfigItem{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsConfigItem(buf []byte, offset flatbuffers.UOffsetT) *ConfigItem { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ConfigItem{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ConfigItem) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ConfigItem) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ConfigItem) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ConfigItem) Address() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ConfigItemStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ConfigItemAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func ConfigItemAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(address), 0) -} -func ConfigItemEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package remote + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ConfigItemT struct { + Name string + Address string +} + +func (t *ConfigItemT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + addressOffset := builder.CreateString(t.Address) + ConfigItemStart(builder) + ConfigItemAddName(builder, nameOffset) + ConfigItemAddAddress(builder, addressOffset) + return ConfigItemEnd(builder) +} + +func (rcv *ConfigItem) UnPackTo(t *ConfigItemT) { + t.Name = string(rcv.Name()) + t.Address = string(rcv.Address()) +} + +func (rcv *ConfigItem) UnPack() *ConfigItemT { + if rcv == nil { return nil } + t := &ConfigItemT{} + rcv.UnPackTo(t) + return t +} + +type ConfigItem struct { + _tab flatbuffers.Table +} + +func GetRootAsConfigItem(buf []byte, offset flatbuffers.UOffsetT) *ConfigItem { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ConfigItem{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsConfigItem(buf []byte, offset flatbuffers.UOffsetT) *ConfigItem { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ConfigItem{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ConfigItem) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ConfigItem) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the remote connection +func (rcv *ConfigItem) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the remote connection +/// remote data layer connection string +func (rcv *ConfigItem) Address() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// remote data layer connection string +func ConfigItemStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ConfigItemAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func ConfigItemAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(address), 0) +} +func ConfigItemEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/datalayer/remote/RemoteConfig.go b/pkg/fbs/comm/datalayer/remote/RemoteConfig.go index 98741fe..8fadbeb 100644 --- a/pkg/fbs/comm/datalayer/remote/RemoteConfig.go +++ b/pkg/fbs/comm/datalayer/remote/RemoteConfig.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package remote - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RemoteConfigT struct { - Remotes []*ConfigItemT -} - -func (t *RemoteConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - remotesOffset := flatbuffers.UOffsetT(0) - if t.Remotes != nil { - remotesLength := len(t.Remotes) - remotesOffsets := make([]flatbuffers.UOffsetT, remotesLength) - for j := 0; j < remotesLength; j++ { - remotesOffsets[j] = t.Remotes[j].Pack(builder) - } - RemoteConfigStartRemotesVector(builder, remotesLength) - for j := remotesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(remotesOffsets[j]) - } - remotesOffset = builder.EndVector(remotesLength) - } - RemoteConfigStart(builder) - RemoteConfigAddRemotes(builder, remotesOffset) - return RemoteConfigEnd(builder) -} - -func (rcv *RemoteConfig) UnPackTo(t *RemoteConfigT) { - remotesLength := rcv.RemotesLength() - t.Remotes = make([]*ConfigItemT, remotesLength) - for j := 0; j < remotesLength; j++ { - x := ConfigItem{} - rcv.Remotes(&x, j) - t.Remotes[j] = x.UnPack() - } -} - -func (rcv *RemoteConfig) UnPack() *RemoteConfigT { - if rcv == nil { return nil } - t := &RemoteConfigT{} - rcv.UnPackTo(t) - return t -} - -type RemoteConfig struct { - _tab flatbuffers.Table -} - -func GetRootAsRemoteConfig(buf []byte, offset flatbuffers.UOffsetT) *RemoteConfig { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RemoteConfig{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRemoteConfig(buf []byte, offset flatbuffers.UOffsetT) *RemoteConfig { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RemoteConfig{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RemoteConfig) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RemoteConfig) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RemoteConfig) Remotes(obj *ConfigItem, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *RemoteConfig) RemotesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func RemoteConfigStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func RemoteConfigAddRemotes(builder *flatbuffers.Builder, remotes flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(remotes), 0) -} -func RemoteConfigStartRemotesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func RemoteConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package remote + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RemoteConfigT struct { + Remotes []*ConfigItemT +} + +func (t *RemoteConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + remotesOffset := flatbuffers.UOffsetT(0) + if t.Remotes != nil { + remotesLength := len(t.Remotes) + remotesOffsets := make([]flatbuffers.UOffsetT, remotesLength) + for j := 0; j < remotesLength; j++ { + remotesOffsets[j] = t.Remotes[j].Pack(builder) + } + RemoteConfigStartRemotesVector(builder, remotesLength) + for j := remotesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(remotesOffsets[j]) + } + remotesOffset = builder.EndVector(remotesLength) + } + RemoteConfigStart(builder) + RemoteConfigAddRemotes(builder, remotesOffset) + return RemoteConfigEnd(builder) +} + +func (rcv *RemoteConfig) UnPackTo(t *RemoteConfigT) { + remotesLength := rcv.RemotesLength() + t.Remotes = make([]*ConfigItemT, remotesLength) + for j := 0; j < remotesLength; j++ { + x := ConfigItem{} + rcv.Remotes(&x, j) + t.Remotes[j] = x.UnPack() + } +} + +func (rcv *RemoteConfig) UnPack() *RemoteConfigT { + if rcv == nil { return nil } + t := &RemoteConfigT{} + rcv.UnPackTo(t) + return t +} + +type RemoteConfig struct { + _tab flatbuffers.Table +} + +func GetRootAsRemoteConfig(buf []byte, offset flatbuffers.UOffsetT) *RemoteConfig { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RemoteConfig{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRemoteConfig(buf []byte, offset flatbuffers.UOffsetT) *RemoteConfig { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RemoteConfig{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RemoteConfig) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RemoteConfig) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *RemoteConfig) Remotes(obj *ConfigItem, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *RemoteConfig) RemotesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func RemoteConfigStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func RemoteConfigAddRemotes(builder *flatbuffers.Builder, remotes flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(remotes), 0) +} +func RemoteConfigStartRemotesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func RemoteConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AddressMappingEntry.go b/pkg/fbs/comm/ethercat/master/fbs/AddressMappingEntry.go index c98d57b..4846537 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AddressMappingEntry.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AddressMappingEntry.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AddressMappingEntryT struct { - Address *AddressedRequestT - SlaveName string -} - -func (t *AddressMappingEntryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - addressOffset := t.Address.Pack(builder) - slaveNameOffset := builder.CreateString(t.SlaveName) - AddressMappingEntryStart(builder) - AddressMappingEntryAddAddress(builder, addressOffset) - AddressMappingEntryAddSlaveName(builder, slaveNameOffset) - return AddressMappingEntryEnd(builder) -} - -func (rcv *AddressMappingEntry) UnPackTo(t *AddressMappingEntryT) { - t.Address = rcv.Address(nil).UnPack() - t.SlaveName = string(rcv.SlaveName()) -} - -func (rcv *AddressMappingEntry) UnPack() *AddressMappingEntryT { - if rcv == nil { return nil } - t := &AddressMappingEntryT{} - rcv.UnPackTo(t) - return t -} - -type AddressMappingEntry struct { - _tab flatbuffers.Table -} - -func GetRootAsAddressMappingEntry(buf []byte, offset flatbuffers.UOffsetT) *AddressMappingEntry { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AddressMappingEntry{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAddressMappingEntry(buf []byte, offset flatbuffers.UOffsetT) *AddressMappingEntry { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AddressMappingEntry{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AddressMappingEntry) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AddressMappingEntry) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AddressMappingEntry) Address(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *AddressMappingEntry) SlaveName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func AddressMappingEntryStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AddressMappingEntryAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) -} -func AddressMappingEntryAddSlaveName(builder *flatbuffers.Builder, slaveName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(slaveName), 0) -} -func AddressMappingEntryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AddressMappingEntryT struct { + Address *AddressedRequestT + SlaveName string +} + +func (t *AddressMappingEntryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + addressOffset := t.Address.Pack(builder) + slaveNameOffset := builder.CreateString(t.SlaveName) + AddressMappingEntryStart(builder) + AddressMappingEntryAddAddress(builder, addressOffset) + AddressMappingEntryAddSlaveName(builder, slaveNameOffset) + return AddressMappingEntryEnd(builder) +} + +func (rcv *AddressMappingEntry) UnPackTo(t *AddressMappingEntryT) { + t.Address = rcv.Address(nil).UnPack() + t.SlaveName = string(rcv.SlaveName()) +} + +func (rcv *AddressMappingEntry) UnPack() *AddressMappingEntryT { + if rcv == nil { return nil } + t := &AddressMappingEntryT{} + rcv.UnPackTo(t) + return t +} + +type AddressMappingEntry struct { + _tab flatbuffers.Table +} + +func GetRootAsAddressMappingEntry(buf []byte, offset flatbuffers.UOffsetT) *AddressMappingEntry { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AddressMappingEntry{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAddressMappingEntry(buf []byte, offset flatbuffers.UOffsetT) *AddressMappingEntry { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AddressMappingEntry{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AddressMappingEntry) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AddressMappingEntry) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AddressMappingEntry) Address(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *AddressMappingEntry) SlaveName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func AddressMappingEntryStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AddressMappingEntryAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) +} +func AddressMappingEntryAddSlaveName(builder *flatbuffers.Builder, slaveName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(slaveName), 0) +} +func AddressMappingEntryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AddressedRequest.go b/pkg/fbs/comm/ethercat/master/fbs/AddressedRequest.go index 866a3ad..18c4b48 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AddressedRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AddressedRequest.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AddressedRequestT struct { - AddressType Addresstype - Address uint16 -} - -func (t *AddressedRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AddressedRequestStart(builder) - AddressedRequestAddAddressType(builder, t.AddressType) - AddressedRequestAddAddress(builder, t.Address) - return AddressedRequestEnd(builder) -} - -func (rcv *AddressedRequest) UnPackTo(t *AddressedRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() -} - -func (rcv *AddressedRequest) UnPack() *AddressedRequestT { - if rcv == nil { return nil } - t := &AddressedRequestT{} - rcv.UnPackTo(t) - return t -} - -type AddressedRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsAddressedRequest(buf []byte, offset flatbuffers.UOffsetT) *AddressedRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AddressedRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAddressedRequest(buf []byte, offset flatbuffers.UOffsetT) *AddressedRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AddressedRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AddressedRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AddressedRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AddressedRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AddressedRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *AddressedRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AddressedRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func AddressedRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AddressedRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func AddressedRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func AddressedRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AddressedRequestT struct { + AddressType Addresstype + Address uint16 +} + +func (t *AddressedRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AddressedRequestStart(builder) + AddressedRequestAddAddressType(builder, t.AddressType) + AddressedRequestAddAddress(builder, t.Address) + return AddressedRequestEnd(builder) +} + +func (rcv *AddressedRequest) UnPackTo(t *AddressedRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() +} + +func (rcv *AddressedRequest) UnPack() *AddressedRequestT { + if rcv == nil { return nil } + t := &AddressedRequestT{} + rcv.UnPackTo(t) + return t +} + +type AddressedRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsAddressedRequest(buf []byte, offset flatbuffers.UOffsetT) *AddressedRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AddressedRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAddressedRequest(buf []byte, offset flatbuffers.UOffsetT) *AddressedRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AddressedRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AddressedRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AddressedRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AddressedRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AddressedRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *AddressedRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AddressedRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func AddressedRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AddressedRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func AddressedRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func AddressedRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/Addresstype.go b/pkg/fbs/comm/ethercat/master/fbs/Addresstype.go index 46e88b6..c876b0b 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/Addresstype.go +++ b/pkg/fbs/comm/ethercat/master/fbs/Addresstype.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type Addresstype byte - -const ( - Addresstypeundefined Addresstype = 0 - Addresstypeautoincrement Addresstype = 1 - Addresstypefixedphysical Addresstype = 2 -) - -var EnumNamesAddresstype = map[Addresstype]string{ - Addresstypeundefined: "undefined", - Addresstypeautoincrement: "autoincrement", - Addresstypefixedphysical: "fixedphysical", -} - -var EnumValuesAddresstype = map[string]Addresstype{ - "undefined": Addresstypeundefined, - "autoincrement": Addresstypeautoincrement, - "fixedphysical": Addresstypefixedphysical, -} - -func (v Addresstype) String() string { - if s, ok := EnumNamesAddresstype[v]; ok { - return s - } - return "Addresstype(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type Addresstype byte + +const ( + Addresstypeundefined Addresstype = 0 + Addresstypeautoincrement Addresstype = 1 + Addresstypefixedphysical Addresstype = 2 +) + +var EnumNamesAddresstype = map[Addresstype]string{ + Addresstypeundefined: "undefined", + Addresstypeautoincrement: "autoincrement", + Addresstypefixedphysical: "fixedphysical", +} + +var EnumValuesAddresstype = map[string]Addresstype{ + "undefined": Addresstypeundefined, + "autoincrement": Addresstypeautoincrement, + "fixedphysical": Addresstypefixedphysical, +} + +func (v Addresstype) String() string { + if s, ok := EnumNamesAddresstype[v]; ok { + return s + } + return "Addresstype(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfo.go b/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfo.go index b6e733a..7fa78c8 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfo.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeConfigInfoT struct { - Request *AddressedRequestT - Response *AoeConfigInfoResponseT -} - -func (t *AoeConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - AoeConfigInfoStart(builder) - AoeConfigInfoAddRequest(builder, requestOffset) - AoeConfigInfoAddResponse(builder, responseOffset) - return AoeConfigInfoEnd(builder) -} - -func (rcv *AoeConfigInfo) UnPackTo(t *AoeConfigInfoT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *AoeConfigInfo) UnPack() *AoeConfigInfoT { - if rcv == nil { return nil } - t := &AoeConfigInfoT{} - rcv.UnPackTo(t) - return t -} - -type AoeConfigInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeConfigInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeConfigInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeConfigInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeConfigInfo) Request(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *AoeConfigInfo) Response(obj *AoeConfigInfoResponse) *AoeConfigInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AoeConfigInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func AoeConfigInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AoeConfigInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func AoeConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func AoeConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeConfigInfoT struct { + Request *AddressedRequestT + Response *AoeConfigInfoResponseT +} + +func (t *AoeConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + AoeConfigInfoStart(builder) + AoeConfigInfoAddRequest(builder, requestOffset) + AoeConfigInfoAddResponse(builder, responseOffset) + return AoeConfigInfoEnd(builder) +} + +func (rcv *AoeConfigInfo) UnPackTo(t *AoeConfigInfoT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *AoeConfigInfo) UnPack() *AoeConfigInfoT { + if rcv == nil { return nil } + t := &AoeConfigInfoT{} + rcv.UnPackTo(t) + return t +} + +type AoeConfigInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeConfigInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeConfigInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeConfigInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeConfigInfo) Request(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *AoeConfigInfo) Response(obj *AoeConfigInfoResponse) *AoeConfigInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AoeConfigInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func AoeConfigInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AoeConfigInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func AoeConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func AoeConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfoResponse.go index f3858ae..d57897e 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeConfigInfoResponse.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeConfigInfoResponseT struct { - NetId []byte -} - -func (t *AoeConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - netIdOffset := flatbuffers.UOffsetT(0) - if t.NetId != nil { - netIdOffset = builder.CreateByteString(t.NetId) - } - AoeConfigInfoResponseStart(builder) - AoeConfigInfoResponseAddNetId(builder, netIdOffset) - return AoeConfigInfoResponseEnd(builder) -} - -func (rcv *AoeConfigInfoResponse) UnPackTo(t *AoeConfigInfoResponseT) { - t.NetId = rcv.NetIdBytes() -} - -func (rcv *AoeConfigInfoResponse) UnPack() *AoeConfigInfoResponseT { - if rcv == nil { return nil } - t := &AoeConfigInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type AoeConfigInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeConfigInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeConfigInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeConfigInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeConfigInfoResponse) NetId(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *AoeConfigInfoResponse) NetIdLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *AoeConfigInfoResponse) NetIdBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AoeConfigInfoResponse) MutateNetId(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func AoeConfigInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AoeConfigInfoResponseAddNetId(builder *flatbuffers.Builder, netId flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(netId), 0) -} -func AoeConfigInfoResponseStartNetIdVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func AoeConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeConfigInfoResponseT struct { + NetId []byte +} + +func (t *AoeConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + netIdOffset := flatbuffers.UOffsetT(0) + if t.NetId != nil { + netIdOffset = builder.CreateByteString(t.NetId) + } + AoeConfigInfoResponseStart(builder) + AoeConfigInfoResponseAddNetId(builder, netIdOffset) + return AoeConfigInfoResponseEnd(builder) +} + +func (rcv *AoeConfigInfoResponse) UnPackTo(t *AoeConfigInfoResponseT) { + t.NetId = rcv.NetIdBytes() +} + +func (rcv *AoeConfigInfoResponse) UnPack() *AoeConfigInfoResponseT { + if rcv == nil { return nil } + t := &AoeConfigInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type AoeConfigInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeConfigInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeConfigInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeConfigInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeConfigInfoResponse) NetId(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *AoeConfigInfoResponse) NetIdLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *AoeConfigInfoResponse) NetIdBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AoeConfigInfoResponse) MutateNetId(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func AoeConfigInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AoeConfigInfoResponseAddNetId(builder *flatbuffers.Builder, netId flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(netId), 0) +} +func AoeConfigInfoResponseStartNetIdVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func AoeConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeControl.go b/pkg/fbs/comm/ethercat/master/fbs/AoeControl.go index 0fcdfb1..ffb1324 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeControl.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeControl.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeControlT struct { - Request *AoeControlRequestT - Response *AoeControlResponseT -} - -func (t *AoeControlT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - AoeControlStart(builder) - AoeControlAddRequest(builder, requestOffset) - AoeControlAddResponse(builder, responseOffset) - return AoeControlEnd(builder) -} - -func (rcv *AoeControl) UnPackTo(t *AoeControlT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *AoeControl) UnPack() *AoeControlT { - if rcv == nil { return nil } - t := &AoeControlT{} - rcv.UnPackTo(t) - return t -} - -type AoeControl struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeControl(buf []byte, offset flatbuffers.UOffsetT) *AoeControl { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeControl{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeControl(buf []byte, offset flatbuffers.UOffsetT) *AoeControl { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeControl{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeControl) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeControl) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeControl) Request(obj *AoeControlRequest) *AoeControlRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AoeControlRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *AoeControl) Response(obj *AoeControlResponse) *AoeControlResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AoeControlResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func AoeControlStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AoeControlAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func AoeControlAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func AoeControlEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeControlT struct { + Request *AoeControlRequestT + Response *AoeControlResponseT +} + +func (t *AoeControlT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + AoeControlStart(builder) + AoeControlAddRequest(builder, requestOffset) + AoeControlAddResponse(builder, responseOffset) + return AoeControlEnd(builder) +} + +func (rcv *AoeControl) UnPackTo(t *AoeControlT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *AoeControl) UnPack() *AoeControlT { + if rcv == nil { return nil } + t := &AoeControlT{} + rcv.UnPackTo(t) + return t +} + +type AoeControl struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeControl(buf []byte, offset flatbuffers.UOffsetT) *AoeControl { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeControl{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeControl(buf []byte, offset flatbuffers.UOffsetT) *AoeControl { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeControl{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeControl) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeControl) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeControl) Request(obj *AoeControlRequest) *AoeControlRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AoeControlRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *AoeControl) Response(obj *AoeControlResponse) *AoeControlResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AoeControlResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func AoeControlStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AoeControlAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func AoeControlAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func AoeControlEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeControlRequest.go b/pkg/fbs/comm/ethercat/master/fbs/AoeControlRequest.go index d9c619c..bcbe952 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeControlRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeControlRequest.go @@ -1,244 +1,244 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeControlRequestT struct { - AddressType Addresstype - Address uint16 - TargetNetId []byte - TargetPort uint16 - AoeState uint16 - DeviceState uint16 - Data []byte -} - -func (t *AoeControlRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - targetNetIdOffset := flatbuffers.UOffsetT(0) - if t.TargetNetId != nil { - targetNetIdOffset = builder.CreateByteString(t.TargetNetId) - } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - AoeControlRequestStart(builder) - AoeControlRequestAddAddressType(builder, t.AddressType) - AoeControlRequestAddAddress(builder, t.Address) - AoeControlRequestAddTargetNetId(builder, targetNetIdOffset) - AoeControlRequestAddTargetPort(builder, t.TargetPort) - AoeControlRequestAddAoeState(builder, t.AoeState) - AoeControlRequestAddDeviceState(builder, t.DeviceState) - AoeControlRequestAddData(builder, dataOffset) - return AoeControlRequestEnd(builder) -} - -func (rcv *AoeControlRequest) UnPackTo(t *AoeControlRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.TargetNetId = rcv.TargetNetIdBytes() - t.TargetPort = rcv.TargetPort() - t.AoeState = rcv.AoeState() - t.DeviceState = rcv.DeviceState() - t.Data = rcv.DataBytes() -} - -func (rcv *AoeControlRequest) UnPack() *AoeControlRequestT { - if rcv == nil { return nil } - t := &AoeControlRequestT{} - rcv.UnPackTo(t) - return t -} - -type AoeControlRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeControlRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeControlRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeControlRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeControlRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeControlRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeControlRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeControlRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeControlRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeControlRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AoeControlRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *AoeControlRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeControlRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *AoeControlRequest) TargetNetId(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *AoeControlRequest) TargetNetIdLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *AoeControlRequest) TargetNetIdBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AoeControlRequest) MutateTargetNetId(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *AoeControlRequest) TargetPort() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeControlRequest) MutateTargetPort(n uint16) bool { - return rcv._tab.MutateUint16Slot(10, n) -} - -func (rcv *AoeControlRequest) AoeState() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeControlRequest) MutateAoeState(n uint16) bool { - return rcv._tab.MutateUint16Slot(12, n) -} - -func (rcv *AoeControlRequest) DeviceState() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeControlRequest) MutateDeviceState(n uint16) bool { - return rcv._tab.MutateUint16Slot(14, n) -} - -func (rcv *AoeControlRequest) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *AoeControlRequest) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *AoeControlRequest) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AoeControlRequest) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func AoeControlRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func AoeControlRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func AoeControlRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func AoeControlRequestAddTargetNetId(builder *flatbuffers.Builder, targetNetId flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(targetNetId), 0) -} -func AoeControlRequestStartTargetNetIdVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func AoeControlRequestAddTargetPort(builder *flatbuffers.Builder, targetPort uint16) { - builder.PrependUint16Slot(3, targetPort, 0) -} -func AoeControlRequestAddAoeState(builder *flatbuffers.Builder, aoeState uint16) { - builder.PrependUint16Slot(4, aoeState, 0) -} -func AoeControlRequestAddDeviceState(builder *flatbuffers.Builder, deviceState uint16) { - builder.PrependUint16Slot(5, deviceState, 0) -} -func AoeControlRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(data), 0) -} -func AoeControlRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func AoeControlRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeControlRequestT struct { + AddressType Addresstype + Address uint16 + TargetNetId []byte + TargetPort uint16 + AoeState uint16 + DeviceState uint16 + Data []byte +} + +func (t *AoeControlRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + targetNetIdOffset := flatbuffers.UOffsetT(0) + if t.TargetNetId != nil { + targetNetIdOffset = builder.CreateByteString(t.TargetNetId) + } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + AoeControlRequestStart(builder) + AoeControlRequestAddAddressType(builder, t.AddressType) + AoeControlRequestAddAddress(builder, t.Address) + AoeControlRequestAddTargetNetId(builder, targetNetIdOffset) + AoeControlRequestAddTargetPort(builder, t.TargetPort) + AoeControlRequestAddAoeState(builder, t.AoeState) + AoeControlRequestAddDeviceState(builder, t.DeviceState) + AoeControlRequestAddData(builder, dataOffset) + return AoeControlRequestEnd(builder) +} + +func (rcv *AoeControlRequest) UnPackTo(t *AoeControlRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.TargetNetId = rcv.TargetNetIdBytes() + t.TargetPort = rcv.TargetPort() + t.AoeState = rcv.AoeState() + t.DeviceState = rcv.DeviceState() + t.Data = rcv.DataBytes() +} + +func (rcv *AoeControlRequest) UnPack() *AoeControlRequestT { + if rcv == nil { return nil } + t := &AoeControlRequestT{} + rcv.UnPackTo(t) + return t +} + +type AoeControlRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeControlRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeControlRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeControlRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeControlRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeControlRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeControlRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeControlRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeControlRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeControlRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AoeControlRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *AoeControlRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeControlRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *AoeControlRequest) TargetNetId(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *AoeControlRequest) TargetNetIdLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *AoeControlRequest) TargetNetIdBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AoeControlRequest) MutateTargetNetId(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *AoeControlRequest) TargetPort() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeControlRequest) MutateTargetPort(n uint16) bool { + return rcv._tab.MutateUint16Slot(10, n) +} + +func (rcv *AoeControlRequest) AoeState() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeControlRequest) MutateAoeState(n uint16) bool { + return rcv._tab.MutateUint16Slot(12, n) +} + +func (rcv *AoeControlRequest) DeviceState() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeControlRequest) MutateDeviceState(n uint16) bool { + return rcv._tab.MutateUint16Slot(14, n) +} + +func (rcv *AoeControlRequest) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *AoeControlRequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *AoeControlRequest) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AoeControlRequest) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func AoeControlRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func AoeControlRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func AoeControlRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func AoeControlRequestAddTargetNetId(builder *flatbuffers.Builder, targetNetId flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(targetNetId), 0) +} +func AoeControlRequestStartTargetNetIdVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func AoeControlRequestAddTargetPort(builder *flatbuffers.Builder, targetPort uint16) { + builder.PrependUint16Slot(3, targetPort, 0) +} +func AoeControlRequestAddAoeState(builder *flatbuffers.Builder, aoeState uint16) { + builder.PrependUint16Slot(4, aoeState, 0) +} +func AoeControlRequestAddDeviceState(builder *flatbuffers.Builder, deviceState uint16) { + builder.PrependUint16Slot(5, deviceState, 0) +} +func AoeControlRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(data), 0) +} +func AoeControlRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func AoeControlRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeControlResponse.go b/pkg/fbs/comm/ethercat/master/fbs/AoeControlResponse.go index 50c5da4..68bcabc 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeControlResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeControlResponse.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeControlResponseT struct { - ErrorCode uint32 - CmdResult uint32 -} - -func (t *AoeControlResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AoeControlResponseStart(builder) - AoeControlResponseAddErrorCode(builder, t.ErrorCode) - AoeControlResponseAddCmdResult(builder, t.CmdResult) - return AoeControlResponseEnd(builder) -} - -func (rcv *AoeControlResponse) UnPackTo(t *AoeControlResponseT) { - t.ErrorCode = rcv.ErrorCode() - t.CmdResult = rcv.CmdResult() -} - -func (rcv *AoeControlResponse) UnPack() *AoeControlResponseT { - if rcv == nil { return nil } - t := &AoeControlResponseT{} - rcv.UnPackTo(t) - return t -} - -type AoeControlResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeControlResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeControlResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeControlResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeControlResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeControlResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeControlResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeControlResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeControlResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeControlResponse) ErrorCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeControlResponse) MutateErrorCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *AoeControlResponse) CmdResult() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeControlResponse) MutateCmdResult(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func AoeControlResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AoeControlResponseAddErrorCode(builder *flatbuffers.Builder, errorCode uint32) { - builder.PrependUint32Slot(0, errorCode, 0) -} -func AoeControlResponseAddCmdResult(builder *flatbuffers.Builder, cmdResult uint32) { - builder.PrependUint32Slot(1, cmdResult, 0) -} -func AoeControlResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeControlResponseT struct { + ErrorCode uint32 + CmdResult uint32 +} + +func (t *AoeControlResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AoeControlResponseStart(builder) + AoeControlResponseAddErrorCode(builder, t.ErrorCode) + AoeControlResponseAddCmdResult(builder, t.CmdResult) + return AoeControlResponseEnd(builder) +} + +func (rcv *AoeControlResponse) UnPackTo(t *AoeControlResponseT) { + t.ErrorCode = rcv.ErrorCode() + t.CmdResult = rcv.CmdResult() +} + +func (rcv *AoeControlResponse) UnPack() *AoeControlResponseT { + if rcv == nil { return nil } + t := &AoeControlResponseT{} + rcv.UnPackTo(t) + return t +} + +type AoeControlResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeControlResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeControlResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeControlResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeControlResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeControlResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeControlResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeControlResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeControlResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeControlResponse) ErrorCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeControlResponse) MutateErrorCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *AoeControlResponse) CmdResult() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeControlResponse) MutateCmdResult(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func AoeControlResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AoeControlResponseAddErrorCode(builder *flatbuffers.Builder, errorCode uint32) { + builder.PrependUint32Slot(0, errorCode, 0) +} +func AoeControlResponseAddCmdResult(builder *flatbuffers.Builder, cmdResult uint32) { + builder.PrependUint32Slot(1, cmdResult, 0) +} +func AoeControlResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeData.go b/pkg/fbs/comm/ethercat/master/fbs/AoeData.go index 90ffec4..7e3cdbe 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeData.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeData.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeDataT struct { - Request *AoeDataRequestT - Response *AoeDataResponseT -} - -func (t *AoeDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - AoeDataStart(builder) - AoeDataAddRequest(builder, requestOffset) - AoeDataAddResponse(builder, responseOffset) - return AoeDataEnd(builder) -} - -func (rcv *AoeData) UnPackTo(t *AoeDataT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *AoeData) UnPack() *AoeDataT { - if rcv == nil { return nil } - t := &AoeDataT{} - rcv.UnPackTo(t) - return t -} - -type AoeData struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeData(buf []byte, offset flatbuffers.UOffsetT) *AoeData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeData(buf []byte, offset flatbuffers.UOffsetT) *AoeData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeData) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeData) Request(obj *AoeDataRequest) *AoeDataRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AoeDataRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *AoeData) Response(obj *AoeDataResponse) *AoeDataResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AoeDataResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func AoeDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AoeDataAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func AoeDataAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func AoeDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeDataT struct { + Request *AoeDataRequestT + Response *AoeDataResponseT +} + +func (t *AoeDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + AoeDataStart(builder) + AoeDataAddRequest(builder, requestOffset) + AoeDataAddResponse(builder, responseOffset) + return AoeDataEnd(builder) +} + +func (rcv *AoeData) UnPackTo(t *AoeDataT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *AoeData) UnPack() *AoeDataT { + if rcv == nil { return nil } + t := &AoeDataT{} + rcv.UnPackTo(t) + return t +} + +type AoeData struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeData(buf []byte, offset flatbuffers.UOffsetT) *AoeData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeData(buf []byte, offset flatbuffers.UOffsetT) *AoeData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeData) Request(obj *AoeDataRequest) *AoeDataRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AoeDataRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *AoeData) Response(obj *AoeDataResponse) *AoeDataResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AoeDataResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func AoeDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AoeDataAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func AoeDataAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func AoeDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeDataRequest.go b/pkg/fbs/comm/ethercat/master/fbs/AoeDataRequest.go index d98533e..00ff4fd 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeDataRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeDataRequest.go @@ -1,262 +1,262 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeDataRequestT struct { - AddressType Addresstype - Address uint16 - TargetNetId []byte - TargetPort uint16 - IndexGroup uint32 - IndexOffset uint32 - Data []byte - MaxLength uint32 -} - -func (t *AoeDataRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - targetNetIdOffset := flatbuffers.UOffsetT(0) - if t.TargetNetId != nil { - targetNetIdOffset = builder.CreateByteString(t.TargetNetId) - } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - AoeDataRequestStart(builder) - AoeDataRequestAddAddressType(builder, t.AddressType) - AoeDataRequestAddAddress(builder, t.Address) - AoeDataRequestAddTargetNetId(builder, targetNetIdOffset) - AoeDataRequestAddTargetPort(builder, t.TargetPort) - AoeDataRequestAddIndexGroup(builder, t.IndexGroup) - AoeDataRequestAddIndexOffset(builder, t.IndexOffset) - AoeDataRequestAddData(builder, dataOffset) - AoeDataRequestAddMaxLength(builder, t.MaxLength) - return AoeDataRequestEnd(builder) -} - -func (rcv *AoeDataRequest) UnPackTo(t *AoeDataRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.TargetNetId = rcv.TargetNetIdBytes() - t.TargetPort = rcv.TargetPort() - t.IndexGroup = rcv.IndexGroup() - t.IndexOffset = rcv.IndexOffset() - t.Data = rcv.DataBytes() - t.MaxLength = rcv.MaxLength() -} - -func (rcv *AoeDataRequest) UnPack() *AoeDataRequestT { - if rcv == nil { return nil } - t := &AoeDataRequestT{} - rcv.UnPackTo(t) - return t -} - -type AoeDataRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeDataRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeDataRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeDataRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeDataRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeDataRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeDataRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeDataRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeDataRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeDataRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AoeDataRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *AoeDataRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeDataRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *AoeDataRequest) TargetNetId(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *AoeDataRequest) TargetNetIdLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *AoeDataRequest) TargetNetIdBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AoeDataRequest) MutateTargetNetId(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *AoeDataRequest) TargetPort() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeDataRequest) MutateTargetPort(n uint16) bool { - return rcv._tab.MutateUint16Slot(10, n) -} - -func (rcv *AoeDataRequest) IndexGroup() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeDataRequest) MutateIndexGroup(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *AoeDataRequest) IndexOffset() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeDataRequest) MutateIndexOffset(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *AoeDataRequest) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *AoeDataRequest) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *AoeDataRequest) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AoeDataRequest) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *AoeDataRequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeDataRequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(18, n) -} - -func AoeDataRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func AoeDataRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func AoeDataRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func AoeDataRequestAddTargetNetId(builder *flatbuffers.Builder, targetNetId flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(targetNetId), 0) -} -func AoeDataRequestStartTargetNetIdVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func AoeDataRequestAddTargetPort(builder *flatbuffers.Builder, targetPort uint16) { - builder.PrependUint16Slot(3, targetPort, 0) -} -func AoeDataRequestAddIndexGroup(builder *flatbuffers.Builder, indexGroup uint32) { - builder.PrependUint32Slot(4, indexGroup, 0) -} -func AoeDataRequestAddIndexOffset(builder *flatbuffers.Builder, indexOffset uint32) { - builder.PrependUint32Slot(5, indexOffset, 0) -} -func AoeDataRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(data), 0) -} -func AoeDataRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func AoeDataRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(7, maxLength, 0) -} -func AoeDataRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeDataRequestT struct { + AddressType Addresstype + Address uint16 + TargetNetId []byte + TargetPort uint16 + IndexGroup uint32 + IndexOffset uint32 + Data []byte + MaxLength uint32 +} + +func (t *AoeDataRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + targetNetIdOffset := flatbuffers.UOffsetT(0) + if t.TargetNetId != nil { + targetNetIdOffset = builder.CreateByteString(t.TargetNetId) + } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + AoeDataRequestStart(builder) + AoeDataRequestAddAddressType(builder, t.AddressType) + AoeDataRequestAddAddress(builder, t.Address) + AoeDataRequestAddTargetNetId(builder, targetNetIdOffset) + AoeDataRequestAddTargetPort(builder, t.TargetPort) + AoeDataRequestAddIndexGroup(builder, t.IndexGroup) + AoeDataRequestAddIndexOffset(builder, t.IndexOffset) + AoeDataRequestAddData(builder, dataOffset) + AoeDataRequestAddMaxLength(builder, t.MaxLength) + return AoeDataRequestEnd(builder) +} + +func (rcv *AoeDataRequest) UnPackTo(t *AoeDataRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.TargetNetId = rcv.TargetNetIdBytes() + t.TargetPort = rcv.TargetPort() + t.IndexGroup = rcv.IndexGroup() + t.IndexOffset = rcv.IndexOffset() + t.Data = rcv.DataBytes() + t.MaxLength = rcv.MaxLength() +} + +func (rcv *AoeDataRequest) UnPack() *AoeDataRequestT { + if rcv == nil { return nil } + t := &AoeDataRequestT{} + rcv.UnPackTo(t) + return t +} + +type AoeDataRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeDataRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeDataRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeDataRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeDataRequest(buf []byte, offset flatbuffers.UOffsetT) *AoeDataRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeDataRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeDataRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeDataRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeDataRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AoeDataRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *AoeDataRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeDataRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *AoeDataRequest) TargetNetId(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *AoeDataRequest) TargetNetIdLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *AoeDataRequest) TargetNetIdBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AoeDataRequest) MutateTargetNetId(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *AoeDataRequest) TargetPort() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeDataRequest) MutateTargetPort(n uint16) bool { + return rcv._tab.MutateUint16Slot(10, n) +} + +func (rcv *AoeDataRequest) IndexGroup() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeDataRequest) MutateIndexGroup(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *AoeDataRequest) IndexOffset() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeDataRequest) MutateIndexOffset(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func (rcv *AoeDataRequest) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *AoeDataRequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *AoeDataRequest) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AoeDataRequest) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *AoeDataRequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeDataRequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +func AoeDataRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func AoeDataRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func AoeDataRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func AoeDataRequestAddTargetNetId(builder *flatbuffers.Builder, targetNetId flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(targetNetId), 0) +} +func AoeDataRequestStartTargetNetIdVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func AoeDataRequestAddTargetPort(builder *flatbuffers.Builder, targetPort uint16) { + builder.PrependUint16Slot(3, targetPort, 0) +} +func AoeDataRequestAddIndexGroup(builder *flatbuffers.Builder, indexGroup uint32) { + builder.PrependUint32Slot(4, indexGroup, 0) +} +func AoeDataRequestAddIndexOffset(builder *flatbuffers.Builder, indexOffset uint32) { + builder.PrependUint32Slot(5, indexOffset, 0) +} +func AoeDataRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(data), 0) +} +func AoeDataRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func AoeDataRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(7, maxLength, 0) +} +func AoeDataRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/AoeDataResponse.go b/pkg/fbs/comm/ethercat/master/fbs/AoeDataResponse.go index e12050c..a4ef956 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/AoeDataResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/AoeDataResponse.go @@ -1,143 +1,143 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AoeDataResponseT struct { - Data []byte - ErrorCode uint32 - CmdResult uint32 -} - -func (t *AoeDataResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - AoeDataResponseStart(builder) - AoeDataResponseAddData(builder, dataOffset) - AoeDataResponseAddErrorCode(builder, t.ErrorCode) - AoeDataResponseAddCmdResult(builder, t.CmdResult) - return AoeDataResponseEnd(builder) -} - -func (rcv *AoeDataResponse) UnPackTo(t *AoeDataResponseT) { - t.Data = rcv.DataBytes() - t.ErrorCode = rcv.ErrorCode() - t.CmdResult = rcv.CmdResult() -} - -func (rcv *AoeDataResponse) UnPack() *AoeDataResponseT { - if rcv == nil { return nil } - t := &AoeDataResponseT{} - rcv.UnPackTo(t) - return t -} - -type AoeDataResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsAoeDataResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeDataResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AoeDataResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAoeDataResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeDataResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AoeDataResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AoeDataResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AoeDataResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AoeDataResponse) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *AoeDataResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *AoeDataResponse) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AoeDataResponse) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *AoeDataResponse) ErrorCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeDataResponse) MutateErrorCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *AoeDataResponse) CmdResult() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AoeDataResponse) MutateCmdResult(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func AoeDataResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func AoeDataResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func AoeDataResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func AoeDataResponseAddErrorCode(builder *flatbuffers.Builder, errorCode uint32) { - builder.PrependUint32Slot(1, errorCode, 0) -} -func AoeDataResponseAddCmdResult(builder *flatbuffers.Builder, cmdResult uint32) { - builder.PrependUint32Slot(2, cmdResult, 0) -} -func AoeDataResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AoeDataResponseT struct { + Data []byte + ErrorCode uint32 + CmdResult uint32 +} + +func (t *AoeDataResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + AoeDataResponseStart(builder) + AoeDataResponseAddData(builder, dataOffset) + AoeDataResponseAddErrorCode(builder, t.ErrorCode) + AoeDataResponseAddCmdResult(builder, t.CmdResult) + return AoeDataResponseEnd(builder) +} + +func (rcv *AoeDataResponse) UnPackTo(t *AoeDataResponseT) { + t.Data = rcv.DataBytes() + t.ErrorCode = rcv.ErrorCode() + t.CmdResult = rcv.CmdResult() +} + +func (rcv *AoeDataResponse) UnPack() *AoeDataResponseT { + if rcv == nil { return nil } + t := &AoeDataResponseT{} + rcv.UnPackTo(t) + return t +} + +type AoeDataResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsAoeDataResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeDataResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AoeDataResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAoeDataResponse(buf []byte, offset flatbuffers.UOffsetT) *AoeDataResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AoeDataResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AoeDataResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AoeDataResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AoeDataResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *AoeDataResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *AoeDataResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AoeDataResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *AoeDataResponse) ErrorCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeDataResponse) MutateErrorCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *AoeDataResponse) CmdResult() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AoeDataResponse) MutateCmdResult(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func AoeDataResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AoeDataResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func AoeDataResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func AoeDataResponseAddErrorCode(builder *flatbuffers.Builder, errorCode uint32) { + builder.PrependUint32Slot(1, errorCode, 0) +} +func AoeDataResponseAddCmdResult(builder *flatbuffers.Builder, cmdResult uint32) { + builder.PrependUint32Slot(2, cmdResult, 0) +} +func AoeDataResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCounters.go b/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCounters.go index 6739a3e..7ef2dcc 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCounters.go +++ b/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCounters.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type BusLoadStatisticCountersT struct { - Response *BusLoadStatisticCountersResponseT -} - -func (t *BusLoadStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - BusLoadStatisticCountersStart(builder) - BusLoadStatisticCountersAddResponse(builder, responseOffset) - return BusLoadStatisticCountersEnd(builder) -} - -func (rcv *BusLoadStatisticCounters) UnPackTo(t *BusLoadStatisticCountersT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *BusLoadStatisticCounters) UnPack() *BusLoadStatisticCountersT { - if rcv == nil { return nil } - t := &BusLoadStatisticCountersT{} - rcv.UnPackTo(t) - return t -} - -type BusLoadStatisticCounters struct { - _tab flatbuffers.Table -} - -func GetRootAsBusLoadStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &BusLoadStatisticCounters{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBusLoadStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &BusLoadStatisticCounters{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *BusLoadStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *BusLoadStatisticCounters) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *BusLoadStatisticCounters) Response(obj *BusLoadStatisticCountersResponse) *BusLoadStatisticCountersResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(BusLoadStatisticCountersResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func BusLoadStatisticCountersStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func BusLoadStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func BusLoadStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type BusLoadStatisticCountersT struct { + Response *BusLoadStatisticCountersResponseT +} + +func (t *BusLoadStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + BusLoadStatisticCountersStart(builder) + BusLoadStatisticCountersAddResponse(builder, responseOffset) + return BusLoadStatisticCountersEnd(builder) +} + +func (rcv *BusLoadStatisticCounters) UnPackTo(t *BusLoadStatisticCountersT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *BusLoadStatisticCounters) UnPack() *BusLoadStatisticCountersT { + if rcv == nil { return nil } + t := &BusLoadStatisticCountersT{} + rcv.UnPackTo(t) + return t +} + +type BusLoadStatisticCounters struct { + _tab flatbuffers.Table +} + +func GetRootAsBusLoadStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &BusLoadStatisticCounters{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBusLoadStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &BusLoadStatisticCounters{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *BusLoadStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *BusLoadStatisticCounters) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *BusLoadStatisticCounters) Response(obj *BusLoadStatisticCountersResponse) *BusLoadStatisticCountersResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(BusLoadStatisticCountersResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func BusLoadStatisticCountersStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func BusLoadStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func BusLoadStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCountersResponse.go b/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCountersResponse.go index 645bc9f..3dc2041 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCountersResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/BusLoadStatisticCountersResponse.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type BusLoadStatisticCountersResponseT struct { - TxBytesPerSecond *MinActMaxValuesT - TxBytesPerCycle *MinActMaxValuesT -} - -func (t *BusLoadStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - BusLoadStatisticCountersResponseStart(builder) - txBytesPerSecondOffset := t.TxBytesPerSecond.Pack(builder) - BusLoadStatisticCountersResponseAddTxBytesPerSecond(builder, txBytesPerSecondOffset) - txBytesPerCycleOffset := t.TxBytesPerCycle.Pack(builder) - BusLoadStatisticCountersResponseAddTxBytesPerCycle(builder, txBytesPerCycleOffset) - return BusLoadStatisticCountersResponseEnd(builder) -} - -func (rcv *BusLoadStatisticCountersResponse) UnPackTo(t *BusLoadStatisticCountersResponseT) { - t.TxBytesPerSecond = rcv.TxBytesPerSecond(nil).UnPack() - t.TxBytesPerCycle = rcv.TxBytesPerCycle(nil).UnPack() -} - -func (rcv *BusLoadStatisticCountersResponse) UnPack() *BusLoadStatisticCountersResponseT { - if rcv == nil { return nil } - t := &BusLoadStatisticCountersResponseT{} - rcv.UnPackTo(t) - return t -} - -type BusLoadStatisticCountersResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsBusLoadStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &BusLoadStatisticCountersResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBusLoadStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &BusLoadStatisticCountersResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *BusLoadStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *BusLoadStatisticCountersResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *BusLoadStatisticCountersResponse) TxBytesPerSecond(obj *MinActMaxValues) *MinActMaxValues { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(MinActMaxValues) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *BusLoadStatisticCountersResponse) TxBytesPerCycle(obj *MinActMaxValues) *MinActMaxValues { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(MinActMaxValues) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func BusLoadStatisticCountersResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func BusLoadStatisticCountersResponseAddTxBytesPerSecond(builder *flatbuffers.Builder, txBytesPerSecond flatbuffers.UOffsetT) { - builder.PrependStructSlot(0, flatbuffers.UOffsetT(txBytesPerSecond), 0) -} -func BusLoadStatisticCountersResponseAddTxBytesPerCycle(builder *flatbuffers.Builder, txBytesPerCycle flatbuffers.UOffsetT) { - builder.PrependStructSlot(1, flatbuffers.UOffsetT(txBytesPerCycle), 0) -} -func BusLoadStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type BusLoadStatisticCountersResponseT struct { + TxBytesPerSecond *MinActMaxValuesT + TxBytesPerCycle *MinActMaxValuesT +} + +func (t *BusLoadStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + BusLoadStatisticCountersResponseStart(builder) + txBytesPerSecondOffset := t.TxBytesPerSecond.Pack(builder) + BusLoadStatisticCountersResponseAddTxBytesPerSecond(builder, txBytesPerSecondOffset) + txBytesPerCycleOffset := t.TxBytesPerCycle.Pack(builder) + BusLoadStatisticCountersResponseAddTxBytesPerCycle(builder, txBytesPerCycleOffset) + return BusLoadStatisticCountersResponseEnd(builder) +} + +func (rcv *BusLoadStatisticCountersResponse) UnPackTo(t *BusLoadStatisticCountersResponseT) { + t.TxBytesPerSecond = rcv.TxBytesPerSecond(nil).UnPack() + t.TxBytesPerCycle = rcv.TxBytesPerCycle(nil).UnPack() +} + +func (rcv *BusLoadStatisticCountersResponse) UnPack() *BusLoadStatisticCountersResponseT { + if rcv == nil { return nil } + t := &BusLoadStatisticCountersResponseT{} + rcv.UnPackTo(t) + return t +} + +type BusLoadStatisticCountersResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsBusLoadStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &BusLoadStatisticCountersResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBusLoadStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *BusLoadStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &BusLoadStatisticCountersResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *BusLoadStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *BusLoadStatisticCountersResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *BusLoadStatisticCountersResponse) TxBytesPerSecond(obj *MinActMaxValues) *MinActMaxValues { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(MinActMaxValues) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *BusLoadStatisticCountersResponse) TxBytesPerCycle(obj *MinActMaxValues) *MinActMaxValues { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(MinActMaxValues) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func BusLoadStatisticCountersResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func BusLoadStatisticCountersResponseAddTxBytesPerSecond(builder *flatbuffers.Builder, txBytesPerSecond flatbuffers.UOffsetT) { + builder.PrependStructSlot(0, flatbuffers.UOffsetT(txBytesPerSecond), 0) +} +func BusLoadStatisticCountersResponseAddTxBytesPerCycle(builder *flatbuffers.Builder, txBytesPerCycle flatbuffers.UOffsetT) { + builder.PrependStructSlot(1, flatbuffers.UOffsetT(txBytesPerCycle), 0) +} +func BusLoadStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/Capability.go b/pkg/fbs/comm/ethercat/master/fbs/Capability.go index 1cecd4a..995f5ba 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/Capability.go +++ b/pkg/fbs/comm/ethercat/master/fbs/Capability.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CapabilityT struct { - Name string - Value string -} - -func (t *CapabilityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - valueOffset := builder.CreateString(t.Value) - CapabilityStart(builder) - CapabilityAddName(builder, nameOffset) - CapabilityAddValue(builder, valueOffset) - return CapabilityEnd(builder) -} - -func (rcv *Capability) UnPackTo(t *CapabilityT) { - t.Name = string(rcv.Name()) - t.Value = string(rcv.Value()) -} - -func (rcv *Capability) UnPack() *CapabilityT { - if rcv == nil { return nil } - t := &CapabilityT{} - rcv.UnPackTo(t) - return t -} - -type Capability struct { - _tab flatbuffers.Table -} - -func GetRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Capability{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Capability{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Capability) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Capability) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Capability) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Capability) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func CapabilityStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CapabilityAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func CapabilityAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) -} -func CapabilityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CapabilityT struct { + Name string + Value string +} + +func (t *CapabilityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueOffset := builder.CreateString(t.Value) + CapabilityStart(builder) + CapabilityAddName(builder, nameOffset) + CapabilityAddValue(builder, valueOffset) + return CapabilityEnd(builder) +} + +func (rcv *Capability) UnPackTo(t *CapabilityT) { + t.Name = string(rcv.Name()) + t.Value = string(rcv.Value()) +} + +func (rcv *Capability) UnPack() *CapabilityT { + if rcv == nil { return nil } + t := &CapabilityT{} + rcv.UnPackTo(t) + return t +} + +type Capability struct { + _tab flatbuffers.Table +} + +func GetRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Capability{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Capability{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Capability) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Capability) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Capability) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Capability) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func CapabilityStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CapabilityAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func CapabilityAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func CapabilityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/CapableInterfaces.go b/pkg/fbs/comm/ethercat/master/fbs/CapableInterfaces.go index f86c6e0..96eb93e 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/CapableInterfaces.go +++ b/pkg/fbs/comm/ethercat/master/fbs/CapableInterfaces.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CapableInterfacesT struct { - InterfaceList []*InterfaceT -} - -func (t *CapableInterfacesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - interfaceListOffset := flatbuffers.UOffsetT(0) - if t.InterfaceList != nil { - interfaceListLength := len(t.InterfaceList) - interfaceListOffsets := make([]flatbuffers.UOffsetT, interfaceListLength) - for j := 0; j < interfaceListLength; j++ { - interfaceListOffsets[j] = t.InterfaceList[j].Pack(builder) - } - CapableInterfacesStartInterfaceListVector(builder, interfaceListLength) - for j := interfaceListLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(interfaceListOffsets[j]) - } - interfaceListOffset = builder.EndVector(interfaceListLength) - } - CapableInterfacesStart(builder) - CapableInterfacesAddInterfaceList(builder, interfaceListOffset) - return CapableInterfacesEnd(builder) -} - -func (rcv *CapableInterfaces) UnPackTo(t *CapableInterfacesT) { - interfaceListLength := rcv.InterfaceListLength() - t.InterfaceList = make([]*InterfaceT, interfaceListLength) - for j := 0; j < interfaceListLength; j++ { - x := Interface{} - rcv.InterfaceList(&x, j) - t.InterfaceList[j] = x.UnPack() - } -} - -func (rcv *CapableInterfaces) UnPack() *CapableInterfacesT { - if rcv == nil { return nil } - t := &CapableInterfacesT{} - rcv.UnPackTo(t) - return t -} - -type CapableInterfaces struct { - _tab flatbuffers.Table -} - -func GetRootAsCapableInterfaces(buf []byte, offset flatbuffers.UOffsetT) *CapableInterfaces { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CapableInterfaces{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCapableInterfaces(buf []byte, offset flatbuffers.UOffsetT) *CapableInterfaces { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CapableInterfaces{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CapableInterfaces) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CapableInterfaces) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CapableInterfaces) InterfaceList(obj *Interface, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *CapableInterfaces) InterfaceListLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func CapableInterfacesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CapableInterfacesAddInterfaceList(builder *flatbuffers.Builder, interfaceList flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(interfaceList), 0) -} -func CapableInterfacesStartInterfaceListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CapableInterfacesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CapableInterfacesT struct { + InterfaceList []*InterfaceT +} + +func (t *CapableInterfacesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + interfaceListOffset := flatbuffers.UOffsetT(0) + if t.InterfaceList != nil { + interfaceListLength := len(t.InterfaceList) + interfaceListOffsets := make([]flatbuffers.UOffsetT, interfaceListLength) + for j := 0; j < interfaceListLength; j++ { + interfaceListOffsets[j] = t.InterfaceList[j].Pack(builder) + } + CapableInterfacesStartInterfaceListVector(builder, interfaceListLength) + for j := interfaceListLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(interfaceListOffsets[j]) + } + interfaceListOffset = builder.EndVector(interfaceListLength) + } + CapableInterfacesStart(builder) + CapableInterfacesAddInterfaceList(builder, interfaceListOffset) + return CapableInterfacesEnd(builder) +} + +func (rcv *CapableInterfaces) UnPackTo(t *CapableInterfacesT) { + interfaceListLength := rcv.InterfaceListLength() + t.InterfaceList = make([]*InterfaceT, interfaceListLength) + for j := 0; j < interfaceListLength; j++ { + x := Interface{} + rcv.InterfaceList(&x, j) + t.InterfaceList[j] = x.UnPack() + } +} + +func (rcv *CapableInterfaces) UnPack() *CapableInterfacesT { + if rcv == nil { return nil } + t := &CapableInterfacesT{} + rcv.UnPackTo(t) + return t +} + +type CapableInterfaces struct { + _tab flatbuffers.Table +} + +func GetRootAsCapableInterfaces(buf []byte, offset flatbuffers.UOffsetT) *CapableInterfaces { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CapableInterfaces{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCapableInterfaces(buf []byte, offset flatbuffers.UOffsetT) *CapableInterfaces { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CapableInterfaces{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CapableInterfaces) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CapableInterfaces) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CapableInterfaces) InterfaceList(obj *Interface, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *CapableInterfaces) InterfaceListLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func CapableInterfacesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CapableInterfacesAddInterfaceList(builder *flatbuffers.Builder, interfaceList flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(interfaceList), 0) +} +func CapableInterfacesStartInterfaceListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CapableInterfacesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/Checksum.go b/pkg/fbs/comm/ethercat/master/fbs/Checksum.go index eb3dfa5..7e01b3d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/Checksum.go +++ b/pkg/fbs/comm/ethercat/master/fbs/Checksum.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ChecksumT struct { - Response *ChecksumResponseT -} - -func (t *ChecksumT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - ChecksumStart(builder) - ChecksumAddResponse(builder, responseOffset) - return ChecksumEnd(builder) -} - -func (rcv *Checksum) UnPackTo(t *ChecksumT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *Checksum) UnPack() *ChecksumT { - if rcv == nil { return nil } - t := &ChecksumT{} - rcv.UnPackTo(t) - return t -} - -type Checksum struct { - _tab flatbuffers.Table -} - -func GetRootAsChecksum(buf []byte, offset flatbuffers.UOffsetT) *Checksum { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Checksum{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsChecksum(buf []byte, offset flatbuffers.UOffsetT) *Checksum { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Checksum{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Checksum) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Checksum) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Checksum) Response(obj *ChecksumResponse) *ChecksumResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ChecksumResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func ChecksumStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ChecksumAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func ChecksumEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ChecksumT struct { + Response *ChecksumResponseT +} + +func (t *ChecksumT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + ChecksumStart(builder) + ChecksumAddResponse(builder, responseOffset) + return ChecksumEnd(builder) +} + +func (rcv *Checksum) UnPackTo(t *ChecksumT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *Checksum) UnPack() *ChecksumT { + if rcv == nil { return nil } + t := &ChecksumT{} + rcv.UnPackTo(t) + return t +} + +type Checksum struct { + _tab flatbuffers.Table +} + +func GetRootAsChecksum(buf []byte, offset flatbuffers.UOffsetT) *Checksum { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Checksum{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsChecksum(buf []byte, offset flatbuffers.UOffsetT) *Checksum { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Checksum{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Checksum) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Checksum) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Checksum) Response(obj *ChecksumResponse) *ChecksumResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ChecksumResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func ChecksumStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ChecksumAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func ChecksumEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ChecksumElement.go b/pkg/fbs/comm/ethercat/master/fbs/ChecksumElement.go index 3f4a403..2614564 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ChecksumElement.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ChecksumElement.go @@ -1,122 +1,122 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ChecksumElementT struct { - Id string - Checksum []byte -} - -func (t *ChecksumElementT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - idOffset := builder.CreateString(t.Id) - checksumOffset := flatbuffers.UOffsetT(0) - if t.Checksum != nil { - checksumOffset = builder.CreateByteString(t.Checksum) - } - ChecksumElementStart(builder) - ChecksumElementAddId(builder, idOffset) - ChecksumElementAddChecksum(builder, checksumOffset) - return ChecksumElementEnd(builder) -} - -func (rcv *ChecksumElement) UnPackTo(t *ChecksumElementT) { - t.Id = string(rcv.Id()) - t.Checksum = rcv.ChecksumBytes() -} - -func (rcv *ChecksumElement) UnPack() *ChecksumElementT { - if rcv == nil { return nil } - t := &ChecksumElementT{} - rcv.UnPackTo(t) - return t -} - -type ChecksumElement struct { - _tab flatbuffers.Table -} - -func GetRootAsChecksumElement(buf []byte, offset flatbuffers.UOffsetT) *ChecksumElement { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ChecksumElement{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsChecksumElement(buf []byte, offset flatbuffers.UOffsetT) *ChecksumElement { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ChecksumElement{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ChecksumElement) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ChecksumElement) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ChecksumElement) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ChecksumElement) Checksum(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ChecksumElement) ChecksumLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ChecksumElement) ChecksumBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ChecksumElement) MutateChecksum(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ChecksumElementStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ChecksumElementAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) -} -func ChecksumElementAddChecksum(builder *flatbuffers.Builder, checksum flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(checksum), 0) -} -func ChecksumElementStartChecksumVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ChecksumElementEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ChecksumElementT struct { + Id string + Checksum []byte +} + +func (t *ChecksumElementT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + idOffset := builder.CreateString(t.Id) + checksumOffset := flatbuffers.UOffsetT(0) + if t.Checksum != nil { + checksumOffset = builder.CreateByteString(t.Checksum) + } + ChecksumElementStart(builder) + ChecksumElementAddId(builder, idOffset) + ChecksumElementAddChecksum(builder, checksumOffset) + return ChecksumElementEnd(builder) +} + +func (rcv *ChecksumElement) UnPackTo(t *ChecksumElementT) { + t.Id = string(rcv.Id()) + t.Checksum = rcv.ChecksumBytes() +} + +func (rcv *ChecksumElement) UnPack() *ChecksumElementT { + if rcv == nil { return nil } + t := &ChecksumElementT{} + rcv.UnPackTo(t) + return t +} + +type ChecksumElement struct { + _tab flatbuffers.Table +} + +func GetRootAsChecksumElement(buf []byte, offset flatbuffers.UOffsetT) *ChecksumElement { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ChecksumElement{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsChecksumElement(buf []byte, offset flatbuffers.UOffsetT) *ChecksumElement { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ChecksumElement{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ChecksumElement) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ChecksumElement) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ChecksumElement) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ChecksumElement) Checksum(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ChecksumElement) ChecksumLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ChecksumElement) ChecksumBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ChecksumElement) MutateChecksum(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ChecksumElementStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ChecksumElementAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) +} +func ChecksumElementAddChecksum(builder *flatbuffers.Builder, checksum flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(checksum), 0) +} +func ChecksumElementStartChecksumVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ChecksumElementEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ChecksumResponse.go b/pkg/fbs/comm/ethercat/master/fbs/ChecksumResponse.go index 27fde99..56dfeb2 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ChecksumResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ChecksumResponse.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ChecksumResponseT struct { - Checksums []*ChecksumElementT -} - -func (t *ChecksumResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - checksumsOffset := flatbuffers.UOffsetT(0) - if t.Checksums != nil { - checksumsLength := len(t.Checksums) - checksumsOffsets := make([]flatbuffers.UOffsetT, checksumsLength) - for j := 0; j < checksumsLength; j++ { - checksumsOffsets[j] = t.Checksums[j].Pack(builder) - } - ChecksumResponseStartChecksumsVector(builder, checksumsLength) - for j := checksumsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(checksumsOffsets[j]) - } - checksumsOffset = builder.EndVector(checksumsLength) - } - ChecksumResponseStart(builder) - ChecksumResponseAddChecksums(builder, checksumsOffset) - return ChecksumResponseEnd(builder) -} - -func (rcv *ChecksumResponse) UnPackTo(t *ChecksumResponseT) { - checksumsLength := rcv.ChecksumsLength() - t.Checksums = make([]*ChecksumElementT, checksumsLength) - for j := 0; j < checksumsLength; j++ { - x := ChecksumElement{} - rcv.Checksums(&x, j) - t.Checksums[j] = x.UnPack() - } -} - -func (rcv *ChecksumResponse) UnPack() *ChecksumResponseT { - if rcv == nil { return nil } - t := &ChecksumResponseT{} - rcv.UnPackTo(t) - return t -} - -type ChecksumResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsChecksumResponse(buf []byte, offset flatbuffers.UOffsetT) *ChecksumResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ChecksumResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsChecksumResponse(buf []byte, offset flatbuffers.UOffsetT) *ChecksumResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ChecksumResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ChecksumResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ChecksumResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ChecksumResponse) Checksums(obj *ChecksumElement, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ChecksumResponse) ChecksumsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ChecksumResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ChecksumResponseAddChecksums(builder *flatbuffers.Builder, checksums flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(checksums), 0) -} -func ChecksumResponseStartChecksumsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ChecksumResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ChecksumResponseT struct { + Checksums []*ChecksumElementT +} + +func (t *ChecksumResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + checksumsOffset := flatbuffers.UOffsetT(0) + if t.Checksums != nil { + checksumsLength := len(t.Checksums) + checksumsOffsets := make([]flatbuffers.UOffsetT, checksumsLength) + for j := 0; j < checksumsLength; j++ { + checksumsOffsets[j] = t.Checksums[j].Pack(builder) + } + ChecksumResponseStartChecksumsVector(builder, checksumsLength) + for j := checksumsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(checksumsOffsets[j]) + } + checksumsOffset = builder.EndVector(checksumsLength) + } + ChecksumResponseStart(builder) + ChecksumResponseAddChecksums(builder, checksumsOffset) + return ChecksumResponseEnd(builder) +} + +func (rcv *ChecksumResponse) UnPackTo(t *ChecksumResponseT) { + checksumsLength := rcv.ChecksumsLength() + t.Checksums = make([]*ChecksumElementT, checksumsLength) + for j := 0; j < checksumsLength; j++ { + x := ChecksumElement{} + rcv.Checksums(&x, j) + t.Checksums[j] = x.UnPack() + } +} + +func (rcv *ChecksumResponse) UnPack() *ChecksumResponseT { + if rcv == nil { return nil } + t := &ChecksumResponseT{} + rcv.UnPackTo(t) + return t +} + +type ChecksumResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsChecksumResponse(buf []byte, offset flatbuffers.UOffsetT) *ChecksumResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ChecksumResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsChecksumResponse(buf []byte, offset flatbuffers.UOffsetT) *ChecksumResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ChecksumResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ChecksumResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ChecksumResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ChecksumResponse) Checksums(obj *ChecksumElement, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ChecksumResponse) ChecksumsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ChecksumResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ChecksumResponseAddChecksums(builder *flatbuffers.Builder, checksums flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(checksums), 0) +} +func ChecksumResponseStartChecksumsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ChecksumResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/CoeVariableInfo.go b/pkg/fbs/comm/ethercat/master/fbs/CoeVariableInfo.go new file mode 100644 index 0000000..a407cfd --- /dev/null +++ b/pkg/fbs/comm/ethercat/master/fbs/CoeVariableInfo.go @@ -0,0 +1,114 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CoeVariableInfoT struct { + PdoIndex uint16 + ObjectIndex uint16 + SubIndex byte +} + +func (t *CoeVariableInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CoeVariableInfoStart(builder) + CoeVariableInfoAddPdoIndex(builder, t.PdoIndex) + CoeVariableInfoAddObjectIndex(builder, t.ObjectIndex) + CoeVariableInfoAddSubIndex(builder, t.SubIndex) + return CoeVariableInfoEnd(builder) +} + +func (rcv *CoeVariableInfo) UnPackTo(t *CoeVariableInfoT) { + t.PdoIndex = rcv.PdoIndex() + t.ObjectIndex = rcv.ObjectIndex() + t.SubIndex = rcv.SubIndex() +} + +func (rcv *CoeVariableInfo) UnPack() *CoeVariableInfoT { + if rcv == nil { return nil } + t := &CoeVariableInfoT{} + rcv.UnPackTo(t) + return t +} + +type CoeVariableInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsCoeVariableInfo(buf []byte, offset flatbuffers.UOffsetT) *CoeVariableInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CoeVariableInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCoeVariableInfo(buf []byte, offset flatbuffers.UOffsetT) *CoeVariableInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CoeVariableInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CoeVariableInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CoeVariableInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CoeVariableInfo) PdoIndex() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CoeVariableInfo) MutatePdoIndex(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func (rcv *CoeVariableInfo) ObjectIndex() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CoeVariableInfo) MutateObjectIndex(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *CoeVariableInfo) SubIndex() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CoeVariableInfo) MutateSubIndex(n byte) bool { + return rcv._tab.MutateByteSlot(8, n) +} + +func CoeVariableInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CoeVariableInfoAddPdoIndex(builder *flatbuffers.Builder, pdoIndex uint16) { + builder.PrependUint16Slot(0, pdoIndex, 0) +} +func CoeVariableInfoAddObjectIndex(builder *flatbuffers.Builder, objectIndex uint16) { + builder.PrependUint16Slot(1, objectIndex, 0) +} +func CoeVariableInfoAddSubIndex(builder *flatbuffers.Builder, subIndex byte) { + builder.PrependByteSlot(2, subIndex, 0) +} +func CoeVariableInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/CommDirection.go b/pkg/fbs/comm/ethercat/master/fbs/CommDirection.go index 35b240e..47c96c5 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/CommDirection.go +++ b/pkg/fbs/comm/ethercat/master/fbs/CommDirection.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CommDirection byte - -const ( - CommDirectiontx CommDirection = 0 - CommDirectionrx CommDirection = 1 - CommDirectiontx_rx CommDirection = 2 -) - -var EnumNamesCommDirection = map[CommDirection]string{ - CommDirectiontx: "tx", - CommDirectionrx: "rx", - CommDirectiontx_rx: "tx_rx", -} - -var EnumValuesCommDirection = map[string]CommDirection{ - "tx": CommDirectiontx, - "rx": CommDirectionrx, - "tx_rx": CommDirectiontx_rx, -} - -func (v CommDirection) String() string { - if s, ok := EnumNamesCommDirection[v]; ok { - return s - } - return "CommDirection(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type CommDirection byte + +const ( + CommDirectiontx CommDirection = 0 + CommDirectionrx CommDirection = 1 + CommDirectiontx_rx CommDirection = 2 +) + +var EnumNamesCommDirection = map[CommDirection]string{ + CommDirectiontx: "tx", + CommDirectionrx: "rx", + CommDirectiontx_rx: "tx_rx", +} + +var EnumValuesCommDirection = map[string]CommDirection{ + "tx": CommDirectiontx, + "rx": CommDirectionrx, + "tx_rx": CommDirectiontx_rx, +} + +func (v CommDirection) String() string { + if s, ok := EnumNamesCommDirection[v]; ok { + return s + } + return "CommDirection(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfo.go b/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfo.go index 0b60ce1..feb3b14 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfo.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DcConfigInfoT struct { - Response *DcConfigInfoResponseT -} - -func (t *DcConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - DcConfigInfoStart(builder) - DcConfigInfoAddResponse(builder, responseOffset) - return DcConfigInfoEnd(builder) -} - -func (rcv *DcConfigInfo) UnPackTo(t *DcConfigInfoT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *DcConfigInfo) UnPack() *DcConfigInfoT { - if rcv == nil { return nil } - t := &DcConfigInfoT{} - rcv.UnPackTo(t) - return t -} - -type DcConfigInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsDcConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DcConfigInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDcConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DcConfigInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DcConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DcConfigInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DcConfigInfo) Response(obj *DcConfigInfoResponse) *DcConfigInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DcConfigInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func DcConfigInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func DcConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func DcConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DcConfigInfoT struct { + Response *DcConfigInfoResponseT +} + +func (t *DcConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + DcConfigInfoStart(builder) + DcConfigInfoAddResponse(builder, responseOffset) + return DcConfigInfoEnd(builder) +} + +func (rcv *DcConfigInfo) UnPackTo(t *DcConfigInfoT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *DcConfigInfo) UnPack() *DcConfigInfoT { + if rcv == nil { return nil } + t := &DcConfigInfoT{} + rcv.UnPackTo(t) + return t +} + +type DcConfigInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsDcConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DcConfigInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDcConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DcConfigInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DcConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DcConfigInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DcConfigInfo) Response(obj *DcConfigInfoResponse) *DcConfigInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DcConfigInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func DcConfigInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DcConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func DcConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfoResponse.go index 838ea32..ae2482f 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/DcConfigInfoResponse.go @@ -1,168 +1,168 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DcConfigInfoResponseT struct { - SyncMode SyncMode - CycleTime uint32 - SyncShiftTime uint32 - SyncWindowMonitoring bool - DeviationLimit uint32 - ContinuousDelayCompensation bool -} - -func (t *DcConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DcConfigInfoResponseStart(builder) - DcConfigInfoResponseAddSyncMode(builder, t.SyncMode) - DcConfigInfoResponseAddCycleTime(builder, t.CycleTime) - DcConfigInfoResponseAddSyncShiftTime(builder, t.SyncShiftTime) - DcConfigInfoResponseAddSyncWindowMonitoring(builder, t.SyncWindowMonitoring) - DcConfigInfoResponseAddDeviationLimit(builder, t.DeviationLimit) - DcConfigInfoResponseAddContinuousDelayCompensation(builder, t.ContinuousDelayCompensation) - return DcConfigInfoResponseEnd(builder) -} - -func (rcv *DcConfigInfoResponse) UnPackTo(t *DcConfigInfoResponseT) { - t.SyncMode = rcv.SyncMode() - t.CycleTime = rcv.CycleTime() - t.SyncShiftTime = rcv.SyncShiftTime() - t.SyncWindowMonitoring = rcv.SyncWindowMonitoring() - t.DeviationLimit = rcv.DeviationLimit() - t.ContinuousDelayCompensation = rcv.ContinuousDelayCompensation() -} - -func (rcv *DcConfigInfoResponse) UnPack() *DcConfigInfoResponseT { - if rcv == nil { return nil } - t := &DcConfigInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type DcConfigInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsDcConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DcConfigInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDcConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DcConfigInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DcConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DcConfigInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DcConfigInfoResponse) SyncMode() SyncMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return SyncMode(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *DcConfigInfoResponse) MutateSyncMode(n SyncMode) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func (rcv *DcConfigInfoResponse) CycleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DcConfigInfoResponse) MutateCycleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *DcConfigInfoResponse) SyncShiftTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DcConfigInfoResponse) MutateSyncShiftTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *DcConfigInfoResponse) SyncWindowMonitoring() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *DcConfigInfoResponse) MutateSyncWindowMonitoring(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *DcConfigInfoResponse) DeviationLimit() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DcConfigInfoResponse) MutateDeviationLimit(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *DcConfigInfoResponse) ContinuousDelayCompensation() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *DcConfigInfoResponse) MutateContinuousDelayCompensation(n bool) bool { - return rcv._tab.MutateBoolSlot(14, n) -} - -func DcConfigInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func DcConfigInfoResponseAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { - builder.PrependUint32Slot(0, uint32(syncMode), 0) -} -func DcConfigInfoResponseAddCycleTime(builder *flatbuffers.Builder, cycleTime uint32) { - builder.PrependUint32Slot(1, cycleTime, 0) -} -func DcConfigInfoResponseAddSyncShiftTime(builder *flatbuffers.Builder, syncShiftTime uint32) { - builder.PrependUint32Slot(2, syncShiftTime, 0) -} -func DcConfigInfoResponseAddSyncWindowMonitoring(builder *flatbuffers.Builder, syncWindowMonitoring bool) { - builder.PrependBoolSlot(3, syncWindowMonitoring, false) -} -func DcConfigInfoResponseAddDeviationLimit(builder *flatbuffers.Builder, deviationLimit uint32) { - builder.PrependUint32Slot(4, deviationLimit, 0) -} -func DcConfigInfoResponseAddContinuousDelayCompensation(builder *flatbuffers.Builder, continuousDelayCompensation bool) { - builder.PrependBoolSlot(5, continuousDelayCompensation, false) -} -func DcConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DcConfigInfoResponseT struct { + SyncMode SyncMode + CycleTime uint32 + SyncShiftTime uint32 + SyncWindowMonitoring bool + DeviationLimit uint32 + ContinuousDelayCompensation bool +} + +func (t *DcConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DcConfigInfoResponseStart(builder) + DcConfigInfoResponseAddSyncMode(builder, t.SyncMode) + DcConfigInfoResponseAddCycleTime(builder, t.CycleTime) + DcConfigInfoResponseAddSyncShiftTime(builder, t.SyncShiftTime) + DcConfigInfoResponseAddSyncWindowMonitoring(builder, t.SyncWindowMonitoring) + DcConfigInfoResponseAddDeviationLimit(builder, t.DeviationLimit) + DcConfigInfoResponseAddContinuousDelayCompensation(builder, t.ContinuousDelayCompensation) + return DcConfigInfoResponseEnd(builder) +} + +func (rcv *DcConfigInfoResponse) UnPackTo(t *DcConfigInfoResponseT) { + t.SyncMode = rcv.SyncMode() + t.CycleTime = rcv.CycleTime() + t.SyncShiftTime = rcv.SyncShiftTime() + t.SyncWindowMonitoring = rcv.SyncWindowMonitoring() + t.DeviationLimit = rcv.DeviationLimit() + t.ContinuousDelayCompensation = rcv.ContinuousDelayCompensation() +} + +func (rcv *DcConfigInfoResponse) UnPack() *DcConfigInfoResponseT { + if rcv == nil { return nil } + t := &DcConfigInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type DcConfigInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsDcConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DcConfigInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDcConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DcConfigInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DcConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DcConfigInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DcConfigInfoResponse) SyncMode() SyncMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return SyncMode(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *DcConfigInfoResponse) MutateSyncMode(n SyncMode) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func (rcv *DcConfigInfoResponse) CycleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DcConfigInfoResponse) MutateCycleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *DcConfigInfoResponse) SyncShiftTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DcConfigInfoResponse) MutateSyncShiftTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func (rcv *DcConfigInfoResponse) SyncWindowMonitoring() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *DcConfigInfoResponse) MutateSyncWindowMonitoring(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func (rcv *DcConfigInfoResponse) DeviationLimit() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DcConfigInfoResponse) MutateDeviationLimit(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *DcConfigInfoResponse) ContinuousDelayCompensation() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *DcConfigInfoResponse) MutateContinuousDelayCompensation(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func DcConfigInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func DcConfigInfoResponseAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { + builder.PrependUint32Slot(0, uint32(syncMode), 0) +} +func DcConfigInfoResponseAddCycleTime(builder *flatbuffers.Builder, cycleTime uint32) { + builder.PrependUint32Slot(1, cycleTime, 0) +} +func DcConfigInfoResponseAddSyncShiftTime(builder *flatbuffers.Builder, syncShiftTime uint32) { + builder.PrependUint32Slot(2, syncShiftTime, 0) +} +func DcConfigInfoResponseAddSyncWindowMonitoring(builder *flatbuffers.Builder, syncWindowMonitoring bool) { + builder.PrependBoolSlot(3, syncWindowMonitoring, false) +} +func DcConfigInfoResponseAddDeviationLimit(builder *flatbuffers.Builder, deviationLimit uint32) { + builder.PrependUint32Slot(4, deviationLimit, 0) +} +func DcConfigInfoResponseAddContinuousDelayCompensation(builder *flatbuffers.Builder, continuousDelayCompensation bool) { + builder.PrependBoolSlot(5, continuousDelayCompensation, false) +} +func DcConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfo.go b/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfo.go index c2d0ff2..a6b406a 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfo.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DcOnlineInfoT struct { - Response *DcOnlineInfoResponseT -} - -func (t *DcOnlineInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - DcOnlineInfoStart(builder) - DcOnlineInfoAddResponse(builder, responseOffset) - return DcOnlineInfoEnd(builder) -} - -func (rcv *DcOnlineInfo) UnPackTo(t *DcOnlineInfoT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *DcOnlineInfo) UnPack() *DcOnlineInfoT { - if rcv == nil { return nil } - t := &DcOnlineInfoT{} - rcv.UnPackTo(t) - return t -} - -type DcOnlineInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsDcOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DcOnlineInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDcOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DcOnlineInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DcOnlineInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DcOnlineInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DcOnlineInfo) Response(obj *DcOnlineInfoResponse) *DcOnlineInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DcOnlineInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func DcOnlineInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func DcOnlineInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func DcOnlineInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DcOnlineInfoT struct { + Response *DcOnlineInfoResponseT +} + +func (t *DcOnlineInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + DcOnlineInfoStart(builder) + DcOnlineInfoAddResponse(builder, responseOffset) + return DcOnlineInfoEnd(builder) +} + +func (rcv *DcOnlineInfo) UnPackTo(t *DcOnlineInfoT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *DcOnlineInfo) UnPack() *DcOnlineInfoT { + if rcv == nil { return nil } + t := &DcOnlineInfoT{} + rcv.UnPackTo(t) + return t +} + +type DcOnlineInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsDcOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DcOnlineInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDcOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DcOnlineInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DcOnlineInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DcOnlineInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DcOnlineInfo) Response(obj *DcOnlineInfoResponse) *DcOnlineInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DcOnlineInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func DcOnlineInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DcOnlineInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func DcOnlineInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfoResponse.go index 67fb89c..69f779f 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/DcOnlineInfoResponse.go @@ -1,186 +1,186 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DcOnlineInfoResponseT struct { - SyncMode SyncMode - CycleTime uint32 - SyncShiftTime uint32 - SyncWindowMonitoring bool - DeviationLimit uint32 - ContinuousDelayCompensation bool - SystemTime uint64 -} - -func (t *DcOnlineInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DcOnlineInfoResponseStart(builder) - DcOnlineInfoResponseAddSyncMode(builder, t.SyncMode) - DcOnlineInfoResponseAddCycleTime(builder, t.CycleTime) - DcOnlineInfoResponseAddSyncShiftTime(builder, t.SyncShiftTime) - DcOnlineInfoResponseAddSyncWindowMonitoring(builder, t.SyncWindowMonitoring) - DcOnlineInfoResponseAddDeviationLimit(builder, t.DeviationLimit) - DcOnlineInfoResponseAddContinuousDelayCompensation(builder, t.ContinuousDelayCompensation) - DcOnlineInfoResponseAddSystemTime(builder, t.SystemTime) - return DcOnlineInfoResponseEnd(builder) -} - -func (rcv *DcOnlineInfoResponse) UnPackTo(t *DcOnlineInfoResponseT) { - t.SyncMode = rcv.SyncMode() - t.CycleTime = rcv.CycleTime() - t.SyncShiftTime = rcv.SyncShiftTime() - t.SyncWindowMonitoring = rcv.SyncWindowMonitoring() - t.DeviationLimit = rcv.DeviationLimit() - t.ContinuousDelayCompensation = rcv.ContinuousDelayCompensation() - t.SystemTime = rcv.SystemTime() -} - -func (rcv *DcOnlineInfoResponse) UnPack() *DcOnlineInfoResponseT { - if rcv == nil { return nil } - t := &DcOnlineInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type DcOnlineInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsDcOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DcOnlineInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDcOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DcOnlineInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DcOnlineInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DcOnlineInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DcOnlineInfoResponse) SyncMode() SyncMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return SyncMode(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *DcOnlineInfoResponse) MutateSyncMode(n SyncMode) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func (rcv *DcOnlineInfoResponse) CycleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DcOnlineInfoResponse) MutateCycleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *DcOnlineInfoResponse) SyncShiftTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DcOnlineInfoResponse) MutateSyncShiftTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *DcOnlineInfoResponse) SyncWindowMonitoring() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *DcOnlineInfoResponse) MutateSyncWindowMonitoring(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *DcOnlineInfoResponse) DeviationLimit() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DcOnlineInfoResponse) MutateDeviationLimit(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *DcOnlineInfoResponse) ContinuousDelayCompensation() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *DcOnlineInfoResponse) MutateContinuousDelayCompensation(n bool) bool { - return rcv._tab.MutateBoolSlot(14, n) -} - -func (rcv *DcOnlineInfoResponse) SystemTime() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DcOnlineInfoResponse) MutateSystemTime(n uint64) bool { - return rcv._tab.MutateUint64Slot(16, n) -} - -func DcOnlineInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func DcOnlineInfoResponseAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { - builder.PrependUint32Slot(0, uint32(syncMode), 0) -} -func DcOnlineInfoResponseAddCycleTime(builder *flatbuffers.Builder, cycleTime uint32) { - builder.PrependUint32Slot(1, cycleTime, 0) -} -func DcOnlineInfoResponseAddSyncShiftTime(builder *flatbuffers.Builder, syncShiftTime uint32) { - builder.PrependUint32Slot(2, syncShiftTime, 0) -} -func DcOnlineInfoResponseAddSyncWindowMonitoring(builder *flatbuffers.Builder, syncWindowMonitoring bool) { - builder.PrependBoolSlot(3, syncWindowMonitoring, false) -} -func DcOnlineInfoResponseAddDeviationLimit(builder *flatbuffers.Builder, deviationLimit uint32) { - builder.PrependUint32Slot(4, deviationLimit, 0) -} -func DcOnlineInfoResponseAddContinuousDelayCompensation(builder *flatbuffers.Builder, continuousDelayCompensation bool) { - builder.PrependBoolSlot(5, continuousDelayCompensation, false) -} -func DcOnlineInfoResponseAddSystemTime(builder *flatbuffers.Builder, systemTime uint64) { - builder.PrependUint64Slot(6, systemTime, 0) -} -func DcOnlineInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DcOnlineInfoResponseT struct { + SyncMode SyncMode + CycleTime uint32 + SyncShiftTime uint32 + SyncWindowMonitoring bool + DeviationLimit uint32 + ContinuousDelayCompensation bool + SystemTime uint64 +} + +func (t *DcOnlineInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DcOnlineInfoResponseStart(builder) + DcOnlineInfoResponseAddSyncMode(builder, t.SyncMode) + DcOnlineInfoResponseAddCycleTime(builder, t.CycleTime) + DcOnlineInfoResponseAddSyncShiftTime(builder, t.SyncShiftTime) + DcOnlineInfoResponseAddSyncWindowMonitoring(builder, t.SyncWindowMonitoring) + DcOnlineInfoResponseAddDeviationLimit(builder, t.DeviationLimit) + DcOnlineInfoResponseAddContinuousDelayCompensation(builder, t.ContinuousDelayCompensation) + DcOnlineInfoResponseAddSystemTime(builder, t.SystemTime) + return DcOnlineInfoResponseEnd(builder) +} + +func (rcv *DcOnlineInfoResponse) UnPackTo(t *DcOnlineInfoResponseT) { + t.SyncMode = rcv.SyncMode() + t.CycleTime = rcv.CycleTime() + t.SyncShiftTime = rcv.SyncShiftTime() + t.SyncWindowMonitoring = rcv.SyncWindowMonitoring() + t.DeviationLimit = rcv.DeviationLimit() + t.ContinuousDelayCompensation = rcv.ContinuousDelayCompensation() + t.SystemTime = rcv.SystemTime() +} + +func (rcv *DcOnlineInfoResponse) UnPack() *DcOnlineInfoResponseT { + if rcv == nil { return nil } + t := &DcOnlineInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type DcOnlineInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsDcOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DcOnlineInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDcOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *DcOnlineInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DcOnlineInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DcOnlineInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DcOnlineInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DcOnlineInfoResponse) SyncMode() SyncMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return SyncMode(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *DcOnlineInfoResponse) MutateSyncMode(n SyncMode) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func (rcv *DcOnlineInfoResponse) CycleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DcOnlineInfoResponse) MutateCycleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *DcOnlineInfoResponse) SyncShiftTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DcOnlineInfoResponse) MutateSyncShiftTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func (rcv *DcOnlineInfoResponse) SyncWindowMonitoring() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *DcOnlineInfoResponse) MutateSyncWindowMonitoring(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func (rcv *DcOnlineInfoResponse) DeviationLimit() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DcOnlineInfoResponse) MutateDeviationLimit(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *DcOnlineInfoResponse) ContinuousDelayCompensation() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *DcOnlineInfoResponse) MutateContinuousDelayCompensation(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func (rcv *DcOnlineInfoResponse) SystemTime() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DcOnlineInfoResponse) MutateSystemTime(n uint64) bool { + return rcv._tab.MutateUint64Slot(16, n) +} + +func DcOnlineInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func DcOnlineInfoResponseAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { + builder.PrependUint32Slot(0, uint32(syncMode), 0) +} +func DcOnlineInfoResponseAddCycleTime(builder *flatbuffers.Builder, cycleTime uint32) { + builder.PrependUint32Slot(1, cycleTime, 0) +} +func DcOnlineInfoResponseAddSyncShiftTime(builder *flatbuffers.Builder, syncShiftTime uint32) { + builder.PrependUint32Slot(2, syncShiftTime, 0) +} +func DcOnlineInfoResponseAddSyncWindowMonitoring(builder *flatbuffers.Builder, syncWindowMonitoring bool) { + builder.PrependBoolSlot(3, syncWindowMonitoring, false) +} +func DcOnlineInfoResponseAddDeviationLimit(builder *flatbuffers.Builder, deviationLimit uint32) { + builder.PrependUint32Slot(4, deviationLimit, 0) +} +func DcOnlineInfoResponseAddContinuousDelayCompensation(builder *flatbuffers.Builder, continuousDelayCompensation bool) { + builder.PrependBoolSlot(5, continuousDelayCompensation, false) +} +func DcOnlineInfoResponseAddSystemTime(builder *flatbuffers.Builder, systemTime uint64) { + builder.PrependUint64Slot(6, systemTime, 0) +} +func DcOnlineInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ElementFlags.go b/pkg/fbs/comm/ethercat/master/fbs/ElementFlags.go index 1e35a8e..0b8ce06 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ElementFlags.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ElementFlags.go @@ -1,47 +1,47 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type ElementFlags byte - -const ( - ElementFlagsdataState ElementFlags = 1 - ElementFlagsname ElementFlags = 2 - ElementFlagsattribute ElementFlags = 4 - ElementFlagsunit ElementFlags = 8 - ElementFlagsminValue ElementFlags = 16 - ElementFlagsmaxValue ElementFlags = 32 - ElementFlagsvalue ElementFlags = 64 - ElementFlagsdefaultValue ElementFlags = 128 -) - -var EnumNamesElementFlags = map[ElementFlags]string{ - ElementFlagsdataState: "dataState", - ElementFlagsname: "name", - ElementFlagsattribute: "attribute", - ElementFlagsunit: "unit", - ElementFlagsminValue: "minValue", - ElementFlagsmaxValue: "maxValue", - ElementFlagsvalue: "value", - ElementFlagsdefaultValue: "defaultValue", -} - -var EnumValuesElementFlags = map[string]ElementFlags{ - "dataState": ElementFlagsdataState, - "name": ElementFlagsname, - "attribute": ElementFlagsattribute, - "unit": ElementFlagsunit, - "minValue": ElementFlagsminValue, - "maxValue": ElementFlagsmaxValue, - "value": ElementFlagsvalue, - "defaultValue": ElementFlagsdefaultValue, -} - -func (v ElementFlags) String() string { - if s, ok := EnumNamesElementFlags[v]; ok { - return s - } - return "ElementFlags(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type ElementFlags byte + +const ( + ElementFlagsdataState ElementFlags = 1 + ElementFlagsname ElementFlags = 2 + ElementFlagsattribute ElementFlags = 4 + ElementFlagsunit ElementFlags = 8 + ElementFlagsminValue ElementFlags = 16 + ElementFlagsmaxValue ElementFlags = 32 + ElementFlagsvalue ElementFlags = 64 + ElementFlagsdefaultValue ElementFlags = 128 +) + +var EnumNamesElementFlags = map[ElementFlags]string{ + ElementFlagsdataState: "dataState", + ElementFlagsname: "name", + ElementFlagsattribute: "attribute", + ElementFlagsunit: "unit", + ElementFlagsminValue: "minValue", + ElementFlagsmaxValue: "maxValue", + ElementFlagsvalue: "value", + ElementFlagsdefaultValue: "defaultValue", +} + +var EnumValuesElementFlags = map[string]ElementFlags{ + "dataState": ElementFlagsdataState, + "name": ElementFlagsname, + "attribute": ElementFlagsattribute, + "unit": ElementFlagsunit, + "minValue": ElementFlagsminValue, + "maxValue": ElementFlagsmaxValue, + "value": ElementFlagsvalue, + "defaultValue": ElementFlagsdefaultValue, +} + +func (v ElementFlags) String() string { + if s, ok := EnumNamesElementFlags[v]; ok { + return s + } + return "ElementFlags(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EntryDescription.go b/pkg/fbs/comm/ethercat/master/fbs/EntryDescription.go index 49f62ef..6c44506 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EntryDescription.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EntryDescription.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EntryDescriptionT struct { - Request *EntryDescriptionRequestT - Response *EntryDescriptionResponseT -} - -func (t *EntryDescriptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - EntryDescriptionStart(builder) - EntryDescriptionAddRequest(builder, requestOffset) - EntryDescriptionAddResponse(builder, responseOffset) - return EntryDescriptionEnd(builder) -} - -func (rcv *EntryDescription) UnPackTo(t *EntryDescriptionT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *EntryDescription) UnPack() *EntryDescriptionT { - if rcv == nil { return nil } - t := &EntryDescriptionT{} - rcv.UnPackTo(t) - return t -} - -type EntryDescription struct { - _tab flatbuffers.Table -} - -func GetRootAsEntryDescription(buf []byte, offset flatbuffers.UOffsetT) *EntryDescription { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EntryDescription{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEntryDescription(buf []byte, offset flatbuffers.UOffsetT) *EntryDescription { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EntryDescription{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EntryDescription) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EntryDescription) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EntryDescription) Request(obj *EntryDescriptionRequest) *EntryDescriptionRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(EntryDescriptionRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *EntryDescription) Response(obj *EntryDescriptionResponse) *EntryDescriptionResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(EntryDescriptionResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func EntryDescriptionStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func EntryDescriptionAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func EntryDescriptionAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func EntryDescriptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EntryDescriptionT struct { + Request *EntryDescriptionRequestT + Response *EntryDescriptionResponseT +} + +func (t *EntryDescriptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + EntryDescriptionStart(builder) + EntryDescriptionAddRequest(builder, requestOffset) + EntryDescriptionAddResponse(builder, responseOffset) + return EntryDescriptionEnd(builder) +} + +func (rcv *EntryDescription) UnPackTo(t *EntryDescriptionT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *EntryDescription) UnPack() *EntryDescriptionT { + if rcv == nil { return nil } + t := &EntryDescriptionT{} + rcv.UnPackTo(t) + return t +} + +type EntryDescription struct { + _tab flatbuffers.Table +} + +func GetRootAsEntryDescription(buf []byte, offset flatbuffers.UOffsetT) *EntryDescription { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EntryDescription{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEntryDescription(buf []byte, offset flatbuffers.UOffsetT) *EntryDescription { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EntryDescription{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EntryDescription) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EntryDescription) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *EntryDescription) Request(obj *EntryDescriptionRequest) *EntryDescriptionRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(EntryDescriptionRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *EntryDescription) Response(obj *EntryDescriptionResponse) *EntryDescriptionResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(EntryDescriptionResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func EntryDescriptionStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func EntryDescriptionAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func EntryDescriptionAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func EntryDescriptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionRequest.go b/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionRequest.go index 649d26a..00711d3 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionRequest.go @@ -1,168 +1,168 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EntryDescriptionRequestT struct { - AddressType Addresstype - Address uint16 - ObjectIndex uint16 - SubIndex byte - ValueInfo byte - MaxLength uint32 -} - -func (t *EntryDescriptionRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - EntryDescriptionRequestStart(builder) - EntryDescriptionRequestAddAddressType(builder, t.AddressType) - EntryDescriptionRequestAddAddress(builder, t.Address) - EntryDescriptionRequestAddObjectIndex(builder, t.ObjectIndex) - EntryDescriptionRequestAddSubIndex(builder, t.SubIndex) - EntryDescriptionRequestAddValueInfo(builder, t.ValueInfo) - EntryDescriptionRequestAddMaxLength(builder, t.MaxLength) - return EntryDescriptionRequestEnd(builder) -} - -func (rcv *EntryDescriptionRequest) UnPackTo(t *EntryDescriptionRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.ObjectIndex = rcv.ObjectIndex() - t.SubIndex = rcv.SubIndex() - t.ValueInfo = rcv.ValueInfo() - t.MaxLength = rcv.MaxLength() -} - -func (rcv *EntryDescriptionRequest) UnPack() *EntryDescriptionRequestT { - if rcv == nil { return nil } - t := &EntryDescriptionRequestT{} - rcv.UnPackTo(t) - return t -} - -type EntryDescriptionRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsEntryDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EntryDescriptionRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEntryDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EntryDescriptionRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EntryDescriptionRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EntryDescriptionRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EntryDescriptionRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *EntryDescriptionRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *EntryDescriptionRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *EntryDescriptionRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *EntryDescriptionRequest) ObjectIndex() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *EntryDescriptionRequest) MutateObjectIndex(n uint16) bool { - return rcv._tab.MutateUint16Slot(8, n) -} - -func (rcv *EntryDescriptionRequest) SubIndex() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *EntryDescriptionRequest) MutateSubIndex(n byte) bool { - return rcv._tab.MutateByteSlot(10, n) -} - -func (rcv *EntryDescriptionRequest) ValueInfo() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *EntryDescriptionRequest) MutateValueInfo(n byte) bool { - return rcv._tab.MutateByteSlot(12, n) -} - -func (rcv *EntryDescriptionRequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *EntryDescriptionRequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func EntryDescriptionRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func EntryDescriptionRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func EntryDescriptionRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func EntryDescriptionRequestAddObjectIndex(builder *flatbuffers.Builder, objectIndex uint16) { - builder.PrependUint16Slot(2, objectIndex, 0) -} -func EntryDescriptionRequestAddSubIndex(builder *flatbuffers.Builder, subIndex byte) { - builder.PrependByteSlot(3, subIndex, 0) -} -func EntryDescriptionRequestAddValueInfo(builder *flatbuffers.Builder, valueInfo byte) { - builder.PrependByteSlot(4, valueInfo, 0) -} -func EntryDescriptionRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(5, maxLength, 0) -} -func EntryDescriptionRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EntryDescriptionRequestT struct { + AddressType Addresstype + Address uint16 + ObjectIndex uint16 + SubIndex byte + ValueInfo byte + MaxLength uint32 +} + +func (t *EntryDescriptionRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + EntryDescriptionRequestStart(builder) + EntryDescriptionRequestAddAddressType(builder, t.AddressType) + EntryDescriptionRequestAddAddress(builder, t.Address) + EntryDescriptionRequestAddObjectIndex(builder, t.ObjectIndex) + EntryDescriptionRequestAddSubIndex(builder, t.SubIndex) + EntryDescriptionRequestAddValueInfo(builder, t.ValueInfo) + EntryDescriptionRequestAddMaxLength(builder, t.MaxLength) + return EntryDescriptionRequestEnd(builder) +} + +func (rcv *EntryDescriptionRequest) UnPackTo(t *EntryDescriptionRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.ObjectIndex = rcv.ObjectIndex() + t.SubIndex = rcv.SubIndex() + t.ValueInfo = rcv.ValueInfo() + t.MaxLength = rcv.MaxLength() +} + +func (rcv *EntryDescriptionRequest) UnPack() *EntryDescriptionRequestT { + if rcv == nil { return nil } + t := &EntryDescriptionRequestT{} + rcv.UnPackTo(t) + return t +} + +type EntryDescriptionRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsEntryDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EntryDescriptionRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEntryDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EntryDescriptionRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EntryDescriptionRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EntryDescriptionRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *EntryDescriptionRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *EntryDescriptionRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *EntryDescriptionRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *EntryDescriptionRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *EntryDescriptionRequest) ObjectIndex() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *EntryDescriptionRequest) MutateObjectIndex(n uint16) bool { + return rcv._tab.MutateUint16Slot(8, n) +} + +func (rcv *EntryDescriptionRequest) SubIndex() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *EntryDescriptionRequest) MutateSubIndex(n byte) bool { + return rcv._tab.MutateByteSlot(10, n) +} + +func (rcv *EntryDescriptionRequest) ValueInfo() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *EntryDescriptionRequest) MutateValueInfo(n byte) bool { + return rcv._tab.MutateByteSlot(12, n) +} + +func (rcv *EntryDescriptionRequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *EntryDescriptionRequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func EntryDescriptionRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func EntryDescriptionRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func EntryDescriptionRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func EntryDescriptionRequestAddObjectIndex(builder *flatbuffers.Builder, objectIndex uint16) { + builder.PrependUint16Slot(2, objectIndex, 0) +} +func EntryDescriptionRequestAddSubIndex(builder *flatbuffers.Builder, subIndex byte) { + builder.PrependByteSlot(3, subIndex, 0) +} +func EntryDescriptionRequestAddValueInfo(builder *flatbuffers.Builder, valueInfo byte) { + builder.PrependByteSlot(4, valueInfo, 0) +} +func EntryDescriptionRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(5, maxLength, 0) +} +func EntryDescriptionRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionResponse.go b/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionResponse.go index 8deb492..966850e 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EntryDescriptionResponse.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EntryDescriptionResponseT struct { - Data []byte -} - -func (t *EntryDescriptionResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - EntryDescriptionResponseStart(builder) - EntryDescriptionResponseAddData(builder, dataOffset) - return EntryDescriptionResponseEnd(builder) -} - -func (rcv *EntryDescriptionResponse) UnPackTo(t *EntryDescriptionResponseT) { - t.Data = rcv.DataBytes() -} - -func (rcv *EntryDescriptionResponse) UnPack() *EntryDescriptionResponseT { - if rcv == nil { return nil } - t := &EntryDescriptionResponseT{} - rcv.UnPackTo(t) - return t -} - -type EntryDescriptionResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsEntryDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EntryDescriptionResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEntryDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EntryDescriptionResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EntryDescriptionResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EntryDescriptionResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EntryDescriptionResponse) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *EntryDescriptionResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *EntryDescriptionResponse) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *EntryDescriptionResponse) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func EntryDescriptionResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func EntryDescriptionResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func EntryDescriptionResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func EntryDescriptionResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EntryDescriptionResponseT struct { + Data []byte +} + +func (t *EntryDescriptionResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + EntryDescriptionResponseStart(builder) + EntryDescriptionResponseAddData(builder, dataOffset) + return EntryDescriptionResponseEnd(builder) +} + +func (rcv *EntryDescriptionResponse) UnPackTo(t *EntryDescriptionResponseT) { + t.Data = rcv.DataBytes() +} + +func (rcv *EntryDescriptionResponse) UnPack() *EntryDescriptionResponseT { + if rcv == nil { return nil } + t := &EntryDescriptionResponseT{} + rcv.UnPackTo(t) + return t +} + +type EntryDescriptionResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsEntryDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EntryDescriptionResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEntryDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *EntryDescriptionResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EntryDescriptionResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EntryDescriptionResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EntryDescriptionResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *EntryDescriptionResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *EntryDescriptionResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *EntryDescriptionResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *EntryDescriptionResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func EntryDescriptionResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func EntryDescriptionResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func EntryDescriptionResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func EntryDescriptionResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfo.go b/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfo.go index c99b4ca..2989b91 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfo.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EoeConfigInfoT struct { - Request *AddressedRequestT - Response *EoeConfigInfoResponseT -} - -func (t *EoeConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - EoeConfigInfoStart(builder) - EoeConfigInfoAddRequest(builder, requestOffset) - EoeConfigInfoAddResponse(builder, responseOffset) - return EoeConfigInfoEnd(builder) -} - -func (rcv *EoeConfigInfo) UnPackTo(t *EoeConfigInfoT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *EoeConfigInfo) UnPack() *EoeConfigInfoT { - if rcv == nil { return nil } - t := &EoeConfigInfoT{} - rcv.UnPackTo(t) - return t -} - -type EoeConfigInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsEoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EoeConfigInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EoeConfigInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EoeConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EoeConfigInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EoeConfigInfo) Request(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *EoeConfigInfo) Response(obj *EoeConfigInfoResponse) *EoeConfigInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(EoeConfigInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func EoeConfigInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func EoeConfigInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func EoeConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func EoeConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EoeConfigInfoT struct { + Request *AddressedRequestT + Response *EoeConfigInfoResponseT +} + +func (t *EoeConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + EoeConfigInfoStart(builder) + EoeConfigInfoAddRequest(builder, requestOffset) + EoeConfigInfoAddResponse(builder, responseOffset) + return EoeConfigInfoEnd(builder) +} + +func (rcv *EoeConfigInfo) UnPackTo(t *EoeConfigInfoT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *EoeConfigInfo) UnPack() *EoeConfigInfoT { + if rcv == nil { return nil } + t := &EoeConfigInfoT{} + rcv.UnPackTo(t) + return t +} + +type EoeConfigInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsEoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EoeConfigInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEoeConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EoeConfigInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EoeConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EoeConfigInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *EoeConfigInfo) Request(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *EoeConfigInfo) Response(obj *EoeConfigInfoResponse) *EoeConfigInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(EoeConfigInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func EoeConfigInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func EoeConfigInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func EoeConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func EoeConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfoResponse.go index 52e4df4..4064c7d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EoeConfigInfoResponse.go @@ -1,310 +1,310 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EoeConfigInfoResponseT struct { - MacAddress []byte - IpAddress []byte - SubnetMask []byte - DefaultGateway []byte - DnsIpAddress []byte - DnsName string -} - -func (t *EoeConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - macAddressOffset := flatbuffers.UOffsetT(0) - if t.MacAddress != nil { - macAddressOffset = builder.CreateByteString(t.MacAddress) - } - ipAddressOffset := flatbuffers.UOffsetT(0) - if t.IpAddress != nil { - ipAddressOffset = builder.CreateByteString(t.IpAddress) - } - subnetMaskOffset := flatbuffers.UOffsetT(0) - if t.SubnetMask != nil { - subnetMaskOffset = builder.CreateByteString(t.SubnetMask) - } - defaultGatewayOffset := flatbuffers.UOffsetT(0) - if t.DefaultGateway != nil { - defaultGatewayOffset = builder.CreateByteString(t.DefaultGateway) - } - dnsIpAddressOffset := flatbuffers.UOffsetT(0) - if t.DnsIpAddress != nil { - dnsIpAddressOffset = builder.CreateByteString(t.DnsIpAddress) - } - dnsNameOffset := builder.CreateString(t.DnsName) - EoeConfigInfoResponseStart(builder) - EoeConfigInfoResponseAddMacAddress(builder, macAddressOffset) - EoeConfigInfoResponseAddIpAddress(builder, ipAddressOffset) - EoeConfigInfoResponseAddSubnetMask(builder, subnetMaskOffset) - EoeConfigInfoResponseAddDefaultGateway(builder, defaultGatewayOffset) - EoeConfigInfoResponseAddDnsIpAddress(builder, dnsIpAddressOffset) - EoeConfigInfoResponseAddDnsName(builder, dnsNameOffset) - return EoeConfigInfoResponseEnd(builder) -} - -func (rcv *EoeConfigInfoResponse) UnPackTo(t *EoeConfigInfoResponseT) { - t.MacAddress = rcv.MacAddressBytes() - t.IpAddress = rcv.IpAddressBytes() - t.SubnetMask = rcv.SubnetMaskBytes() - t.DefaultGateway = rcv.DefaultGatewayBytes() - t.DnsIpAddress = rcv.DnsIpAddressBytes() - t.DnsName = string(rcv.DnsName()) -} - -func (rcv *EoeConfigInfoResponse) UnPack() *EoeConfigInfoResponseT { - if rcv == nil { return nil } - t := &EoeConfigInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type EoeConfigInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsEoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EoeConfigInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EoeConfigInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EoeConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EoeConfigInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EoeConfigInfoResponse) MacAddress(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) MacAddressLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) MacAddressBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *EoeConfigInfoResponse) MutateMacAddress(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *EoeConfigInfoResponse) IpAddress(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) IpAddressLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) IpAddressBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *EoeConfigInfoResponse) MutateIpAddress(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *EoeConfigInfoResponse) SubnetMask(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) SubnetMaskLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) SubnetMaskBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *EoeConfigInfoResponse) MutateSubnetMask(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *EoeConfigInfoResponse) DefaultGateway(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) DefaultGatewayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) DefaultGatewayBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *EoeConfigInfoResponse) MutateDefaultGateway(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *EoeConfigInfoResponse) DnsIpAddress(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) DnsIpAddressLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *EoeConfigInfoResponse) DnsIpAddressBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *EoeConfigInfoResponse) MutateDnsIpAddress(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *EoeConfigInfoResponse) DnsName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func EoeConfigInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func EoeConfigInfoResponseAddMacAddress(builder *flatbuffers.Builder, macAddress flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(macAddress), 0) -} -func EoeConfigInfoResponseStartMacAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func EoeConfigInfoResponseAddIpAddress(builder *flatbuffers.Builder, ipAddress flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(ipAddress), 0) -} -func EoeConfigInfoResponseStartIpAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func EoeConfigInfoResponseAddSubnetMask(builder *flatbuffers.Builder, subnetMask flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(subnetMask), 0) -} -func EoeConfigInfoResponseStartSubnetMaskVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func EoeConfigInfoResponseAddDefaultGateway(builder *flatbuffers.Builder, defaultGateway flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(defaultGateway), 0) -} -func EoeConfigInfoResponseStartDefaultGatewayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func EoeConfigInfoResponseAddDnsIpAddress(builder *flatbuffers.Builder, dnsIpAddress flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dnsIpAddress), 0) -} -func EoeConfigInfoResponseStartDnsIpAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func EoeConfigInfoResponseAddDnsName(builder *flatbuffers.Builder, dnsName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(dnsName), 0) -} -func EoeConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EoeConfigInfoResponseT struct { + MacAddress []byte + IpAddress []byte + SubnetMask []byte + DefaultGateway []byte + DnsIpAddress []byte + DnsName string +} + +func (t *EoeConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + macAddressOffset := flatbuffers.UOffsetT(0) + if t.MacAddress != nil { + macAddressOffset = builder.CreateByteString(t.MacAddress) + } + ipAddressOffset := flatbuffers.UOffsetT(0) + if t.IpAddress != nil { + ipAddressOffset = builder.CreateByteString(t.IpAddress) + } + subnetMaskOffset := flatbuffers.UOffsetT(0) + if t.SubnetMask != nil { + subnetMaskOffset = builder.CreateByteString(t.SubnetMask) + } + defaultGatewayOffset := flatbuffers.UOffsetT(0) + if t.DefaultGateway != nil { + defaultGatewayOffset = builder.CreateByteString(t.DefaultGateway) + } + dnsIpAddressOffset := flatbuffers.UOffsetT(0) + if t.DnsIpAddress != nil { + dnsIpAddressOffset = builder.CreateByteString(t.DnsIpAddress) + } + dnsNameOffset := builder.CreateString(t.DnsName) + EoeConfigInfoResponseStart(builder) + EoeConfigInfoResponseAddMacAddress(builder, macAddressOffset) + EoeConfigInfoResponseAddIpAddress(builder, ipAddressOffset) + EoeConfigInfoResponseAddSubnetMask(builder, subnetMaskOffset) + EoeConfigInfoResponseAddDefaultGateway(builder, defaultGatewayOffset) + EoeConfigInfoResponseAddDnsIpAddress(builder, dnsIpAddressOffset) + EoeConfigInfoResponseAddDnsName(builder, dnsNameOffset) + return EoeConfigInfoResponseEnd(builder) +} + +func (rcv *EoeConfigInfoResponse) UnPackTo(t *EoeConfigInfoResponseT) { + t.MacAddress = rcv.MacAddressBytes() + t.IpAddress = rcv.IpAddressBytes() + t.SubnetMask = rcv.SubnetMaskBytes() + t.DefaultGateway = rcv.DefaultGatewayBytes() + t.DnsIpAddress = rcv.DnsIpAddressBytes() + t.DnsName = string(rcv.DnsName()) +} + +func (rcv *EoeConfigInfoResponse) UnPack() *EoeConfigInfoResponseT { + if rcv == nil { return nil } + t := &EoeConfigInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type EoeConfigInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsEoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EoeConfigInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEoeConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *EoeConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EoeConfigInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EoeConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EoeConfigInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *EoeConfigInfoResponse) MacAddress(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) MacAddressLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) MacAddressBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *EoeConfigInfoResponse) MutateMacAddress(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *EoeConfigInfoResponse) IpAddress(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) IpAddressLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) IpAddressBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *EoeConfigInfoResponse) MutateIpAddress(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *EoeConfigInfoResponse) SubnetMask(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) SubnetMaskLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) SubnetMaskBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *EoeConfigInfoResponse) MutateSubnetMask(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *EoeConfigInfoResponse) DefaultGateway(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) DefaultGatewayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) DefaultGatewayBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *EoeConfigInfoResponse) MutateDefaultGateway(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *EoeConfigInfoResponse) DnsIpAddress(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) DnsIpAddressLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *EoeConfigInfoResponse) DnsIpAddressBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *EoeConfigInfoResponse) MutateDnsIpAddress(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *EoeConfigInfoResponse) DnsName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func EoeConfigInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func EoeConfigInfoResponseAddMacAddress(builder *flatbuffers.Builder, macAddress flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(macAddress), 0) +} +func EoeConfigInfoResponseStartMacAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func EoeConfigInfoResponseAddIpAddress(builder *flatbuffers.Builder, ipAddress flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(ipAddress), 0) +} +func EoeConfigInfoResponseStartIpAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func EoeConfigInfoResponseAddSubnetMask(builder *flatbuffers.Builder, subnetMask flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(subnetMask), 0) +} +func EoeConfigInfoResponseStartSubnetMaskVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func EoeConfigInfoResponseAddDefaultGateway(builder *flatbuffers.Builder, defaultGateway flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(defaultGateway), 0) +} +func EoeConfigInfoResponseStartDefaultGatewayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func EoeConfigInfoResponseAddDnsIpAddress(builder *flatbuffers.Builder, dnsIpAddress flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dnsIpAddress), 0) +} +func EoeConfigInfoResponseStartDnsIpAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func EoeConfigInfoResponseAddDnsName(builder *flatbuffers.Builder, dnsName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(dnsName), 0) +} +func EoeConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EthercatIdentityInfo.go b/pkg/fbs/comm/ethercat/master/fbs/EthercatIdentityInfo.go index e86507b..bc5186d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EthercatIdentityInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EthercatIdentityInfo.go @@ -1,82 +1,82 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EthercatIdentityInfoT struct { - VendorId uint32 - ProductCode uint32 - RevisionNumber uint32 - SerialNumber uint32 -} - -func (t *EthercatIdentityInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateEthercatIdentityInfo(builder, t.VendorId, t.ProductCode, t.RevisionNumber, t.SerialNumber) -} -func (rcv *EthercatIdentityInfo) UnPackTo(t *EthercatIdentityInfoT) { - t.VendorId = rcv.VendorId() - t.ProductCode = rcv.ProductCode() - t.RevisionNumber = rcv.RevisionNumber() - t.SerialNumber = rcv.SerialNumber() -} - -func (rcv *EthercatIdentityInfo) UnPack() *EthercatIdentityInfoT { - if rcv == nil { return nil } - t := &EthercatIdentityInfoT{} - rcv.UnPackTo(t) - return t -} - -type EthercatIdentityInfo struct { - _tab flatbuffers.Struct -} - -func (rcv *EthercatIdentityInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EthercatIdentityInfo) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *EthercatIdentityInfo) VendorId() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) -} -func (rcv *EthercatIdentityInfo) MutateVendorId(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) -} - -func (rcv *EthercatIdentityInfo) ProductCode() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) -} -func (rcv *EthercatIdentityInfo) MutateProductCode(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) -} - -func (rcv *EthercatIdentityInfo) RevisionNumber() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(8)) -} -func (rcv *EthercatIdentityInfo) MutateRevisionNumber(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(8), n) -} - -func (rcv *EthercatIdentityInfo) SerialNumber() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(12)) -} -func (rcv *EthercatIdentityInfo) MutateSerialNumber(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(12), n) -} - -func CreateEthercatIdentityInfo(builder *flatbuffers.Builder, vendorId uint32, productCode uint32, revisionNumber uint32, serialNumber uint32) flatbuffers.UOffsetT { - builder.Prep(4, 16) - builder.PrependUint32(serialNumber) - builder.PrependUint32(revisionNumber) - builder.PrependUint32(productCode) - builder.PrependUint32(vendorId) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EthercatIdentityInfoT struct { + VendorId uint32 + ProductCode uint32 + RevisionNumber uint32 + SerialNumber uint32 +} + +func (t *EthercatIdentityInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateEthercatIdentityInfo(builder, t.VendorId, t.ProductCode, t.RevisionNumber, t.SerialNumber) +} +func (rcv *EthercatIdentityInfo) UnPackTo(t *EthercatIdentityInfoT) { + t.VendorId = rcv.VendorId() + t.ProductCode = rcv.ProductCode() + t.RevisionNumber = rcv.RevisionNumber() + t.SerialNumber = rcv.SerialNumber() +} + +func (rcv *EthercatIdentityInfo) UnPack() *EthercatIdentityInfoT { + if rcv == nil { return nil } + t := &EthercatIdentityInfoT{} + rcv.UnPackTo(t) + return t +} + +type EthercatIdentityInfo struct { + _tab flatbuffers.Struct +} + +func (rcv *EthercatIdentityInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EthercatIdentityInfo) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *EthercatIdentityInfo) VendorId() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) +} +func (rcv *EthercatIdentityInfo) MutateVendorId(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) +} + +func (rcv *EthercatIdentityInfo) ProductCode() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) +} +func (rcv *EthercatIdentityInfo) MutateProductCode(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) +} + +func (rcv *EthercatIdentityInfo) RevisionNumber() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(8)) +} +func (rcv *EthercatIdentityInfo) MutateRevisionNumber(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(8), n) +} + +func (rcv *EthercatIdentityInfo) SerialNumber() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(12)) +} +func (rcv *EthercatIdentityInfo) MutateSerialNumber(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(12), n) +} + +func CreateEthercatIdentityInfo(builder *flatbuffers.Builder, vendorId uint32, productCode uint32, revisionNumber uint32, serialNumber uint32) flatbuffers.UOffsetT { + builder.Prep(4, 16) + builder.PrependUint32(serialNumber) + builder.PrependUint32(revisionNumber) + builder.PrependUint32(productCode) + builder.PrependUint32(vendorId) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EthercatMailboxInfo.go b/pkg/fbs/comm/ethercat/master/fbs/EthercatMailboxInfo.go index 0edfc68..236d07e 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EthercatMailboxInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EthercatMailboxInfo.go @@ -1,62 +1,62 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EthercatMailboxInfoT struct { - SizeIn uint32 - SizeOut uint32 -} - -func (t *EthercatMailboxInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateEthercatMailboxInfo(builder, t.SizeIn, t.SizeOut) -} -func (rcv *EthercatMailboxInfo) UnPackTo(t *EthercatMailboxInfoT) { - t.SizeIn = rcv.SizeIn() - t.SizeOut = rcv.SizeOut() -} - -func (rcv *EthercatMailboxInfo) UnPack() *EthercatMailboxInfoT { - if rcv == nil { return nil } - t := &EthercatMailboxInfoT{} - rcv.UnPackTo(t) - return t -} - -type EthercatMailboxInfo struct { - _tab flatbuffers.Struct -} - -func (rcv *EthercatMailboxInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EthercatMailboxInfo) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *EthercatMailboxInfo) SizeIn() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) -} -func (rcv *EthercatMailboxInfo) MutateSizeIn(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) -} - -func (rcv *EthercatMailboxInfo) SizeOut() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) -} -func (rcv *EthercatMailboxInfo) MutateSizeOut(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) -} - -func CreateEthercatMailboxInfo(builder *flatbuffers.Builder, sizeIn uint32, sizeOut uint32) flatbuffers.UOffsetT { - builder.Prep(4, 8) - builder.PrependUint32(sizeOut) - builder.PrependUint32(sizeIn) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EthercatMailboxInfoT struct { + SizeIn uint32 + SizeOut uint32 +} + +func (t *EthercatMailboxInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateEthercatMailboxInfo(builder, t.SizeIn, t.SizeOut) +} +func (rcv *EthercatMailboxInfo) UnPackTo(t *EthercatMailboxInfoT) { + t.SizeIn = rcv.SizeIn() + t.SizeOut = rcv.SizeOut() +} + +func (rcv *EthercatMailboxInfo) UnPack() *EthercatMailboxInfoT { + if rcv == nil { return nil } + t := &EthercatMailboxInfoT{} + rcv.UnPackTo(t) + return t +} + +type EthercatMailboxInfo struct { + _tab flatbuffers.Struct +} + +func (rcv *EthercatMailboxInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EthercatMailboxInfo) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *EthercatMailboxInfo) SizeIn() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) +} +func (rcv *EthercatMailboxInfo) MutateSizeIn(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) +} + +func (rcv *EthercatMailboxInfo) SizeOut() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) +} +func (rcv *EthercatMailboxInfo) MutateSizeOut(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) +} + +func CreateEthercatMailboxInfo(builder *flatbuffers.Builder, sizeIn uint32, sizeOut uint32) flatbuffers.UOffsetT { + builder.Prep(4, 8) + builder.PrependUint32(sizeOut) + builder.PrependUint32(sizeIn) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EthercatMemoryInfo.go b/pkg/fbs/comm/ethercat/master/fbs/EthercatMemoryInfo.go index a40094c..037410d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EthercatMemoryInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EthercatMemoryInfo.go @@ -1,62 +1,62 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EthercatMemoryInfoT struct { - Offset uint32 - Size uint32 -} - -func (t *EthercatMemoryInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateEthercatMemoryInfo(builder, t.Offset, t.Size) -} -func (rcv *EthercatMemoryInfo) UnPackTo(t *EthercatMemoryInfoT) { - t.Offset = rcv.Offset() - t.Size = rcv.Size() -} - -func (rcv *EthercatMemoryInfo) UnPack() *EthercatMemoryInfoT { - if rcv == nil { return nil } - t := &EthercatMemoryInfoT{} - rcv.UnPackTo(t) - return t -} - -type EthercatMemoryInfo struct { - _tab flatbuffers.Struct -} - -func (rcv *EthercatMemoryInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EthercatMemoryInfo) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *EthercatMemoryInfo) Offset() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) -} -func (rcv *EthercatMemoryInfo) MutateOffset(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) -} - -func (rcv *EthercatMemoryInfo) Size() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) -} -func (rcv *EthercatMemoryInfo) MutateSize(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) -} - -func CreateEthercatMemoryInfo(builder *flatbuffers.Builder, offset uint32, size uint32) flatbuffers.UOffsetT { - builder.Prep(4, 8) - builder.PrependUint32(size) - builder.PrependUint32(offset) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type EthercatMemoryInfoT struct { + Offset uint32 + Size uint32 +} + +func (t *EthercatMemoryInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateEthercatMemoryInfo(builder, t.Offset, t.Size) +} +func (rcv *EthercatMemoryInfo) UnPackTo(t *EthercatMemoryInfoT) { + t.Offset = rcv.Offset() + t.Size = rcv.Size() +} + +func (rcv *EthercatMemoryInfo) UnPack() *EthercatMemoryInfoT { + if rcv == nil { return nil } + t := &EthercatMemoryInfoT{} + rcv.UnPackTo(t) + return t +} + +type EthercatMemoryInfo struct { + _tab flatbuffers.Struct +} + +func (rcv *EthercatMemoryInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EthercatMemoryInfo) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *EthercatMemoryInfo) Offset() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) +} +func (rcv *EthercatMemoryInfo) MutateOffset(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) +} + +func (rcv *EthercatMemoryInfo) Size() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) +} +func (rcv *EthercatMemoryInfo) MutateSize(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) +} + +func CreateEthercatMemoryInfo(builder *flatbuffers.Builder, offset uint32, size uint32) flatbuffers.UOffsetT { + builder.Prep(4, 8) + builder.PrependUint32(size) + builder.PrependUint32(offset) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/EthercatState.go b/pkg/fbs/comm/ethercat/master/fbs/EthercatState.go index e5d9ea0..b582791 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/EthercatState.go +++ b/pkg/fbs/comm/ethercat/master/fbs/EthercatState.go @@ -1,41 +1,41 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type EthercatState uint16 - -const ( - EthercatStateunknown EthercatState = 0 - EthercatStateinit EthercatState = 1 - EthercatStatepreop EthercatState = 2 - EthercatStatebootstrap EthercatState = 3 - EthercatStatesafeop EthercatState = 4 - EthercatStateop EthercatState = 8 -) - -var EnumNamesEthercatState = map[EthercatState]string{ - EthercatStateunknown: "unknown", - EthercatStateinit: "init", - EthercatStatepreop: "preop", - EthercatStatebootstrap: "bootstrap", - EthercatStatesafeop: "safeop", - EthercatStateop: "op", -} - -var EnumValuesEthercatState = map[string]EthercatState{ - "unknown": EthercatStateunknown, - "init": EthercatStateinit, - "preop": EthercatStatepreop, - "bootstrap": EthercatStatebootstrap, - "safeop": EthercatStatesafeop, - "op": EthercatStateop, -} - -func (v EthercatState) String() string { - if s, ok := EnumNamesEthercatState[v]; ok { - return s - } - return "EthercatState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type EthercatState uint16 + +const ( + EthercatStateunknown EthercatState = 0 + EthercatStateinit EthercatState = 1 + EthercatStatepreop EthercatState = 2 + EthercatStatebootstrap EthercatState = 3 + EthercatStatesafeop EthercatState = 4 + EthercatStateop EthercatState = 8 +) + +var EnumNamesEthercatState = map[EthercatState]string{ + EthercatStateunknown: "unknown", + EthercatStateinit: "init", + EthercatStatepreop: "preop", + EthercatStatebootstrap: "bootstrap", + EthercatStatesafeop: "safeop", + EthercatStateop: "op", +} + +var EnumValuesEthercatState = map[string]EthercatState{ + "unknown": EthercatStateunknown, + "init": EthercatStateinit, + "preop": EthercatStatepreop, + "bootstrap": EthercatStatebootstrap, + "safeop": EthercatStatesafeop, + "op": EthercatStateop, +} + +func (v EthercatState) String() string { + if s, ok := EnumNamesEthercatState[v]; ok { + return s + } + return "EthercatState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfig.go b/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfig.go index 928d731..9d3eb1f 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfig.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfig.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FieldbusConfigT struct { - Request *FieldbusConfigRequestT - Response *FieldbusConfigResponseT -} - -func (t *FieldbusConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - FieldbusConfigStart(builder) - FieldbusConfigAddRequest(builder, requestOffset) - FieldbusConfigAddResponse(builder, responseOffset) - return FieldbusConfigEnd(builder) -} - -func (rcv *FieldbusConfig) UnPackTo(t *FieldbusConfigT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *FieldbusConfig) UnPack() *FieldbusConfigT { - if rcv == nil { return nil } - t := &FieldbusConfigT{} - rcv.UnPackTo(t) - return t -} - -type FieldbusConfig struct { - _tab flatbuffers.Table -} - -func GetRootAsFieldbusConfig(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfig { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FieldbusConfig{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFieldbusConfig(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfig { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FieldbusConfig{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FieldbusConfig) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FieldbusConfig) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FieldbusConfig) Request(obj *FieldbusConfigRequest) *FieldbusConfigRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(FieldbusConfigRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *FieldbusConfig) Response(obj *FieldbusConfigResponse) *FieldbusConfigResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(FieldbusConfigResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func FieldbusConfigStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func FieldbusConfigAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func FieldbusConfigAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func FieldbusConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FieldbusConfigT struct { + Request *FieldbusConfigRequestT + Response *FieldbusConfigResponseT +} + +func (t *FieldbusConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + FieldbusConfigStart(builder) + FieldbusConfigAddRequest(builder, requestOffset) + FieldbusConfigAddResponse(builder, responseOffset) + return FieldbusConfigEnd(builder) +} + +func (rcv *FieldbusConfig) UnPackTo(t *FieldbusConfigT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *FieldbusConfig) UnPack() *FieldbusConfigT { + if rcv == nil { return nil } + t := &FieldbusConfigT{} + rcv.UnPackTo(t) + return t +} + +type FieldbusConfig struct { + _tab flatbuffers.Table +} + +func GetRootAsFieldbusConfig(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfig { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FieldbusConfig{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFieldbusConfig(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfig { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FieldbusConfig{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FieldbusConfig) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FieldbusConfig) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FieldbusConfig) Request(obj *FieldbusConfigRequest) *FieldbusConfigRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(FieldbusConfigRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *FieldbusConfig) Response(obj *FieldbusConfigResponse) *FieldbusConfigResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(FieldbusConfigResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func FieldbusConfigStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func FieldbusConfigAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func FieldbusConfigAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func FieldbusConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigRequest.go b/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigRequest.go index 6285d88..895fb59 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigRequest.go @@ -1,154 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FieldbusConfigRequestT struct { - Ini []byte - Eni []byte -} - -func (t *FieldbusConfigRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - iniOffset := flatbuffers.UOffsetT(0) - if t.Ini != nil { - iniOffset = builder.CreateByteString(t.Ini) - } - eniOffset := flatbuffers.UOffsetT(0) - if t.Eni != nil { - eniOffset = builder.CreateByteString(t.Eni) - } - FieldbusConfigRequestStart(builder) - FieldbusConfigRequestAddIni(builder, iniOffset) - FieldbusConfigRequestAddEni(builder, eniOffset) - return FieldbusConfigRequestEnd(builder) -} - -func (rcv *FieldbusConfigRequest) UnPackTo(t *FieldbusConfigRequestT) { - t.Ini = rcv.IniBytes() - t.Eni = rcv.EniBytes() -} - -func (rcv *FieldbusConfigRequest) UnPack() *FieldbusConfigRequestT { - if rcv == nil { return nil } - t := &FieldbusConfigRequestT{} - rcv.UnPackTo(t) - return t -} - -type FieldbusConfigRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsFieldbusConfigRequest(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FieldbusConfigRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFieldbusConfigRequest(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FieldbusConfigRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FieldbusConfigRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FieldbusConfigRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FieldbusConfigRequest) Ini(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *FieldbusConfigRequest) IniLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *FieldbusConfigRequest) IniBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *FieldbusConfigRequest) MutateIni(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *FieldbusConfigRequest) Eni(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *FieldbusConfigRequest) EniLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *FieldbusConfigRequest) EniBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *FieldbusConfigRequest) MutateEni(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func FieldbusConfigRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func FieldbusConfigRequestAddIni(builder *flatbuffers.Builder, ini flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(ini), 0) -} -func FieldbusConfigRequestStartIniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func FieldbusConfigRequestAddEni(builder *flatbuffers.Builder, eni flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(eni), 0) -} -func FieldbusConfigRequestStartEniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func FieldbusConfigRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FieldbusConfigRequestT struct { + Ini []byte + Eni []byte +} + +func (t *FieldbusConfigRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + iniOffset := flatbuffers.UOffsetT(0) + if t.Ini != nil { + iniOffset = builder.CreateByteString(t.Ini) + } + eniOffset := flatbuffers.UOffsetT(0) + if t.Eni != nil { + eniOffset = builder.CreateByteString(t.Eni) + } + FieldbusConfigRequestStart(builder) + FieldbusConfigRequestAddIni(builder, iniOffset) + FieldbusConfigRequestAddEni(builder, eniOffset) + return FieldbusConfigRequestEnd(builder) +} + +func (rcv *FieldbusConfigRequest) UnPackTo(t *FieldbusConfigRequestT) { + t.Ini = rcv.IniBytes() + t.Eni = rcv.EniBytes() +} + +func (rcv *FieldbusConfigRequest) UnPack() *FieldbusConfigRequestT { + if rcv == nil { return nil } + t := &FieldbusConfigRequestT{} + rcv.UnPackTo(t) + return t +} + +type FieldbusConfigRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsFieldbusConfigRequest(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FieldbusConfigRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFieldbusConfigRequest(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FieldbusConfigRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FieldbusConfigRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FieldbusConfigRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FieldbusConfigRequest) Ini(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *FieldbusConfigRequest) IniLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *FieldbusConfigRequest) IniBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *FieldbusConfigRequest) MutateIni(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *FieldbusConfigRequest) Eni(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *FieldbusConfigRequest) EniLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *FieldbusConfigRequest) EniBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *FieldbusConfigRequest) MutateEni(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func FieldbusConfigRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func FieldbusConfigRequestAddIni(builder *flatbuffers.Builder, ini flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(ini), 0) +} +func FieldbusConfigRequestStartIniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func FieldbusConfigRequestAddEni(builder *flatbuffers.Builder, eni flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(eni), 0) +} +func FieldbusConfigRequestStartEniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func FieldbusConfigRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigResponse.go b/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigResponse.go index 80f360a..954d262 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FieldbusConfigResponse.go @@ -1,154 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FieldbusConfigResponseT struct { - Ini []byte - Eni []byte -} - -func (t *FieldbusConfigResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - iniOffset := flatbuffers.UOffsetT(0) - if t.Ini != nil { - iniOffset = builder.CreateByteString(t.Ini) - } - eniOffset := flatbuffers.UOffsetT(0) - if t.Eni != nil { - eniOffset = builder.CreateByteString(t.Eni) - } - FieldbusConfigResponseStart(builder) - FieldbusConfigResponseAddIni(builder, iniOffset) - FieldbusConfigResponseAddEni(builder, eniOffset) - return FieldbusConfigResponseEnd(builder) -} - -func (rcv *FieldbusConfigResponse) UnPackTo(t *FieldbusConfigResponseT) { - t.Ini = rcv.IniBytes() - t.Eni = rcv.EniBytes() -} - -func (rcv *FieldbusConfigResponse) UnPack() *FieldbusConfigResponseT { - if rcv == nil { return nil } - t := &FieldbusConfigResponseT{} - rcv.UnPackTo(t) - return t -} - -type FieldbusConfigResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsFieldbusConfigResponse(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FieldbusConfigResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFieldbusConfigResponse(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FieldbusConfigResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FieldbusConfigResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FieldbusConfigResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FieldbusConfigResponse) Ini(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *FieldbusConfigResponse) IniLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *FieldbusConfigResponse) IniBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *FieldbusConfigResponse) MutateIni(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *FieldbusConfigResponse) Eni(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *FieldbusConfigResponse) EniLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *FieldbusConfigResponse) EniBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *FieldbusConfigResponse) MutateEni(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func FieldbusConfigResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func FieldbusConfigResponseAddIni(builder *flatbuffers.Builder, ini flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(ini), 0) -} -func FieldbusConfigResponseStartIniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func FieldbusConfigResponseAddEni(builder *flatbuffers.Builder, eni flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(eni), 0) -} -func FieldbusConfigResponseStartEniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func FieldbusConfigResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FieldbusConfigResponseT struct { + Ini []byte + Eni []byte +} + +func (t *FieldbusConfigResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + iniOffset := flatbuffers.UOffsetT(0) + if t.Ini != nil { + iniOffset = builder.CreateByteString(t.Ini) + } + eniOffset := flatbuffers.UOffsetT(0) + if t.Eni != nil { + eniOffset = builder.CreateByteString(t.Eni) + } + FieldbusConfigResponseStart(builder) + FieldbusConfigResponseAddIni(builder, iniOffset) + FieldbusConfigResponseAddEni(builder, eniOffset) + return FieldbusConfigResponseEnd(builder) +} + +func (rcv *FieldbusConfigResponse) UnPackTo(t *FieldbusConfigResponseT) { + t.Ini = rcv.IniBytes() + t.Eni = rcv.EniBytes() +} + +func (rcv *FieldbusConfigResponse) UnPack() *FieldbusConfigResponseT { + if rcv == nil { return nil } + t := &FieldbusConfigResponseT{} + rcv.UnPackTo(t) + return t +} + +type FieldbusConfigResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsFieldbusConfigResponse(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FieldbusConfigResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFieldbusConfigResponse(buf []byte, offset flatbuffers.UOffsetT) *FieldbusConfigResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FieldbusConfigResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FieldbusConfigResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FieldbusConfigResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FieldbusConfigResponse) Ini(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *FieldbusConfigResponse) IniLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *FieldbusConfigResponse) IniBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *FieldbusConfigResponse) MutateIni(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *FieldbusConfigResponse) Eni(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *FieldbusConfigResponse) EniLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *FieldbusConfigResponse) EniBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *FieldbusConfigResponse) MutateEni(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func FieldbusConfigResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func FieldbusConfigResponseAddIni(builder *flatbuffers.Builder, ini flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(ini), 0) +} +func FieldbusConfigResponseStartIniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func FieldbusConfigResponseAddEni(builder *flatbuffers.Builder, eni flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(eni), 0) +} +func FieldbusConfigResponseStartEniVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func FieldbusConfigResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/Foe.go b/pkg/fbs/comm/ethercat/master/fbs/Foe.go index bffe0f3..940f258 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/Foe.go +++ b/pkg/fbs/comm/ethercat/master/fbs/Foe.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FoeT struct { - Request *FoeRequestT - Response *FoeResponseT -} - -func (t *FoeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - FoeStart(builder) - FoeAddRequest(builder, requestOffset) - FoeAddResponse(builder, responseOffset) - return FoeEnd(builder) -} - -func (rcv *Foe) UnPackTo(t *FoeT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *Foe) UnPack() *FoeT { - if rcv == nil { return nil } - t := &FoeT{} - rcv.UnPackTo(t) - return t -} - -type Foe struct { - _tab flatbuffers.Table -} - -func GetRootAsFoe(buf []byte, offset flatbuffers.UOffsetT) *Foe { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Foe{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFoe(buf []byte, offset flatbuffers.UOffsetT) *Foe { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Foe{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Foe) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Foe) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Foe) Request(obj *FoeRequest) *FoeRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(FoeRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Foe) Response(obj *FoeResponse) *FoeResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(FoeResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func FoeStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func FoeAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func FoeAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func FoeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FoeT struct { + Request *FoeRequestT + Response *FoeResponseT +} + +func (t *FoeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + FoeStart(builder) + FoeAddRequest(builder, requestOffset) + FoeAddResponse(builder, responseOffset) + return FoeEnd(builder) +} + +func (rcv *Foe) UnPackTo(t *FoeT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *Foe) UnPack() *FoeT { + if rcv == nil { return nil } + t := &FoeT{} + rcv.UnPackTo(t) + return t +} + +type Foe struct { + _tab flatbuffers.Table +} + +func GetRootAsFoe(buf []byte, offset flatbuffers.UOffsetT) *Foe { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Foe{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFoe(buf []byte, offset flatbuffers.UOffsetT) *Foe { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Foe{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Foe) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Foe) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Foe) Request(obj *FoeRequest) *FoeRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(FoeRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Foe) Response(obj *FoeResponse) *FoeResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(FoeResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func FoeStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func FoeAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func FoeAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func FoeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FoeRequest.go b/pkg/fbs/comm/ethercat/master/fbs/FoeRequest.go index ac36fb7..8c50c6a 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FoeRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FoeRequest.go @@ -1,212 +1,212 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FoeRequestT struct { - AddressType Addresstype - Address uint16 - Data []byte - MaxLength uint32 - Filename string - Password uint32 - Timeout uint32 -} - -func (t *FoeRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - filenameOffset := builder.CreateString(t.Filename) - FoeRequestStart(builder) - FoeRequestAddAddressType(builder, t.AddressType) - FoeRequestAddAddress(builder, t.Address) - FoeRequestAddData(builder, dataOffset) - FoeRequestAddMaxLength(builder, t.MaxLength) - FoeRequestAddFilename(builder, filenameOffset) - FoeRequestAddPassword(builder, t.Password) - FoeRequestAddTimeout(builder, t.Timeout) - return FoeRequestEnd(builder) -} - -func (rcv *FoeRequest) UnPackTo(t *FoeRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.Data = rcv.DataBytes() - t.MaxLength = rcv.MaxLength() - t.Filename = string(rcv.Filename()) - t.Password = rcv.Password() - t.Timeout = rcv.Timeout() -} - -func (rcv *FoeRequest) UnPack() *FoeRequestT { - if rcv == nil { return nil } - t := &FoeRequestT{} - rcv.UnPackTo(t) - return t -} - -type FoeRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsFoeRequest(buf []byte, offset flatbuffers.UOffsetT) *FoeRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FoeRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFoeRequest(buf []byte, offset flatbuffers.UOffsetT) *FoeRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FoeRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FoeRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FoeRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FoeRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *FoeRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *FoeRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FoeRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *FoeRequest) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *FoeRequest) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *FoeRequest) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *FoeRequest) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *FoeRequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FoeRequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *FoeRequest) Filename() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *FoeRequest) Password() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FoeRequest) MutatePassword(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *FoeRequest) Timeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FoeRequest) MutateTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func FoeRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func FoeRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func FoeRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func FoeRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(data), 0) -} -func FoeRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func FoeRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(3, maxLength, 0) -} -func FoeRequestAddFilename(builder *flatbuffers.Builder, filename flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(filename), 0) -} -func FoeRequestAddPassword(builder *flatbuffers.Builder, password uint32) { - builder.PrependUint32Slot(5, password, 0) -} -func FoeRequestAddTimeout(builder *flatbuffers.Builder, timeout uint32) { - builder.PrependUint32Slot(6, timeout, 0) -} -func FoeRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FoeRequestT struct { + AddressType Addresstype + Address uint16 + Data []byte + MaxLength uint32 + Filename string + Password uint32 + Timeout uint32 +} + +func (t *FoeRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + filenameOffset := builder.CreateString(t.Filename) + FoeRequestStart(builder) + FoeRequestAddAddressType(builder, t.AddressType) + FoeRequestAddAddress(builder, t.Address) + FoeRequestAddData(builder, dataOffset) + FoeRequestAddMaxLength(builder, t.MaxLength) + FoeRequestAddFilename(builder, filenameOffset) + FoeRequestAddPassword(builder, t.Password) + FoeRequestAddTimeout(builder, t.Timeout) + return FoeRequestEnd(builder) +} + +func (rcv *FoeRequest) UnPackTo(t *FoeRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.Data = rcv.DataBytes() + t.MaxLength = rcv.MaxLength() + t.Filename = string(rcv.Filename()) + t.Password = rcv.Password() + t.Timeout = rcv.Timeout() +} + +func (rcv *FoeRequest) UnPack() *FoeRequestT { + if rcv == nil { return nil } + t := &FoeRequestT{} + rcv.UnPackTo(t) + return t +} + +type FoeRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsFoeRequest(buf []byte, offset flatbuffers.UOffsetT) *FoeRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FoeRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFoeRequest(buf []byte, offset flatbuffers.UOffsetT) *FoeRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FoeRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FoeRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FoeRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FoeRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *FoeRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *FoeRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FoeRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *FoeRequest) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *FoeRequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *FoeRequest) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *FoeRequest) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *FoeRequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FoeRequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func (rcv *FoeRequest) Filename() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *FoeRequest) Password() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FoeRequest) MutatePassword(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func (rcv *FoeRequest) Timeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FoeRequest) MutateTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +func FoeRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func FoeRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func FoeRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func FoeRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(data), 0) +} +func FoeRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func FoeRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(3, maxLength, 0) +} +func FoeRequestAddFilename(builder *flatbuffers.Builder, filename flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(filename), 0) +} +func FoeRequestAddPassword(builder *flatbuffers.Builder, password uint32) { + builder.PrependUint32Slot(5, password, 0) +} +func FoeRequestAddTimeout(builder *flatbuffers.Builder, timeout uint32) { + builder.PrependUint32Slot(6, timeout, 0) +} +func FoeRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FoeResponse.go b/pkg/fbs/comm/ethercat/master/fbs/FoeResponse.go index 0f7c5ac..5304b3b 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FoeResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FoeResponse.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FoeResponseT struct { - Data []byte -} - -func (t *FoeResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - FoeResponseStart(builder) - FoeResponseAddData(builder, dataOffset) - return FoeResponseEnd(builder) -} - -func (rcv *FoeResponse) UnPackTo(t *FoeResponseT) { - t.Data = rcv.DataBytes() -} - -func (rcv *FoeResponse) UnPack() *FoeResponseT { - if rcv == nil { return nil } - t := &FoeResponseT{} - rcv.UnPackTo(t) - return t -} - -type FoeResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsFoeResponse(buf []byte, offset flatbuffers.UOffsetT) *FoeResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FoeResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFoeResponse(buf []byte, offset flatbuffers.UOffsetT) *FoeResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FoeResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FoeResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FoeResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FoeResponse) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *FoeResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *FoeResponse) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *FoeResponse) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func FoeResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func FoeResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func FoeResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func FoeResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FoeResponseT struct { + Data []byte +} + +func (t *FoeResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + FoeResponseStart(builder) + FoeResponseAddData(builder, dataOffset) + return FoeResponseEnd(builder) +} + +func (rcv *FoeResponse) UnPackTo(t *FoeResponseT) { + t.Data = rcv.DataBytes() +} + +func (rcv *FoeResponse) UnPack() *FoeResponseT { + if rcv == nil { return nil } + t := &FoeResponseT{} + rcv.UnPackTo(t) + return t +} + +type FoeResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsFoeResponse(buf []byte, offset flatbuffers.UOffsetT) *FoeResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FoeResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFoeResponse(buf []byte, offset flatbuffers.UOffsetT) *FoeResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FoeResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FoeResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FoeResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FoeResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *FoeResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *FoeResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *FoeResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func FoeResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func FoeResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func FoeResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func FoeResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCounters.go b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCounters.go index eeff5c4..6b94198 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCounters.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCounters.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FrameStatisticCountersT struct { - Response *FrameStatisticCountersResponseT -} - -func (t *FrameStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - FrameStatisticCountersStart(builder) - FrameStatisticCountersAddResponse(builder, responseOffset) - return FrameStatisticCountersEnd(builder) -} - -func (rcv *FrameStatisticCounters) UnPackTo(t *FrameStatisticCountersT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *FrameStatisticCounters) UnPack() *FrameStatisticCountersT { - if rcv == nil { return nil } - t := &FrameStatisticCountersT{} - rcv.UnPackTo(t) - return t -} - -type FrameStatisticCounters struct { - _tab flatbuffers.Table -} - -func GetRootAsFrameStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FrameStatisticCounters{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFrameStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FrameStatisticCounters{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FrameStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FrameStatisticCounters) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FrameStatisticCounters) Response(obj *FrameStatisticCountersResponse) *FrameStatisticCountersResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(FrameStatisticCountersResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func FrameStatisticCountersStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func FrameStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func FrameStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FrameStatisticCountersT struct { + Response *FrameStatisticCountersResponseT +} + +func (t *FrameStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + FrameStatisticCountersStart(builder) + FrameStatisticCountersAddResponse(builder, responseOffset) + return FrameStatisticCountersEnd(builder) +} + +func (rcv *FrameStatisticCounters) UnPackTo(t *FrameStatisticCountersT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *FrameStatisticCounters) UnPack() *FrameStatisticCountersT { + if rcv == nil { return nil } + t := &FrameStatisticCountersT{} + rcv.UnPackTo(t) + return t +} + +type FrameStatisticCounters struct { + _tab flatbuffers.Table +} + +func GetRootAsFrameStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FrameStatisticCounters{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFrameStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FrameStatisticCounters{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FrameStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FrameStatisticCounters) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FrameStatisticCounters) Response(obj *FrameStatisticCountersResponse) *FrameStatisticCountersResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(FrameStatisticCountersResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func FrameStatisticCountersStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func FrameStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func FrameStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCountersResponse.go b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCountersResponse.go index e30486c..fb5067e 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCountersResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticCountersResponse.go @@ -1,222 +1,222 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FrameStatisticCountersResponseT struct { - NumTxFrames uint32 - NumRxFrames uint32 - NumCyclicFrames uint32 - NumCyclicDatagrams uint32 - NumAcyclicFrames uint32 - NumAcyclicDatagrams uint32 - NumLostFrames uint32 - NumLostCyclicFrames uint32 - NumLostAcyclicFrames uint32 -} - -func (t *FrameStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - FrameStatisticCountersResponseStart(builder) - FrameStatisticCountersResponseAddNumTxFrames(builder, t.NumTxFrames) - FrameStatisticCountersResponseAddNumRxFrames(builder, t.NumRxFrames) - FrameStatisticCountersResponseAddNumCyclicFrames(builder, t.NumCyclicFrames) - FrameStatisticCountersResponseAddNumCyclicDatagrams(builder, t.NumCyclicDatagrams) - FrameStatisticCountersResponseAddNumAcyclicFrames(builder, t.NumAcyclicFrames) - FrameStatisticCountersResponseAddNumAcyclicDatagrams(builder, t.NumAcyclicDatagrams) - FrameStatisticCountersResponseAddNumLostFrames(builder, t.NumLostFrames) - FrameStatisticCountersResponseAddNumLostCyclicFrames(builder, t.NumLostCyclicFrames) - FrameStatisticCountersResponseAddNumLostAcyclicFrames(builder, t.NumLostAcyclicFrames) - return FrameStatisticCountersResponseEnd(builder) -} - -func (rcv *FrameStatisticCountersResponse) UnPackTo(t *FrameStatisticCountersResponseT) { - t.NumTxFrames = rcv.NumTxFrames() - t.NumRxFrames = rcv.NumRxFrames() - t.NumCyclicFrames = rcv.NumCyclicFrames() - t.NumCyclicDatagrams = rcv.NumCyclicDatagrams() - t.NumAcyclicFrames = rcv.NumAcyclicFrames() - t.NumAcyclicDatagrams = rcv.NumAcyclicDatagrams() - t.NumLostFrames = rcv.NumLostFrames() - t.NumLostCyclicFrames = rcv.NumLostCyclicFrames() - t.NumLostAcyclicFrames = rcv.NumLostAcyclicFrames() -} - -func (rcv *FrameStatisticCountersResponse) UnPack() *FrameStatisticCountersResponseT { - if rcv == nil { return nil } - t := &FrameStatisticCountersResponseT{} - rcv.UnPackTo(t) - return t -} - -type FrameStatisticCountersResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsFrameStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FrameStatisticCountersResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFrameStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FrameStatisticCountersResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FrameStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FrameStatisticCountersResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FrameStatisticCountersResponse) NumTxFrames() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumTxFrames(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *FrameStatisticCountersResponse) NumRxFrames() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumRxFrames(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *FrameStatisticCountersResponse) NumCyclicFrames() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumCyclicFrames(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *FrameStatisticCountersResponse) NumCyclicDatagrams() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumCyclicDatagrams(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *FrameStatisticCountersResponse) NumAcyclicFrames() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumAcyclicFrames(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *FrameStatisticCountersResponse) NumAcyclicDatagrams() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumAcyclicDatagrams(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *FrameStatisticCountersResponse) NumLostFrames() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumLostFrames(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func (rcv *FrameStatisticCountersResponse) NumLostCyclicFrames() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumLostCyclicFrames(n uint32) bool { - return rcv._tab.MutateUint32Slot(18, n) -} - -func (rcv *FrameStatisticCountersResponse) NumLostAcyclicFrames() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *FrameStatisticCountersResponse) MutateNumLostAcyclicFrames(n uint32) bool { - return rcv._tab.MutateUint32Slot(20, n) -} - -func FrameStatisticCountersResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func FrameStatisticCountersResponseAddNumTxFrames(builder *flatbuffers.Builder, numTxFrames uint32) { - builder.PrependUint32Slot(0, numTxFrames, 0) -} -func FrameStatisticCountersResponseAddNumRxFrames(builder *flatbuffers.Builder, numRxFrames uint32) { - builder.PrependUint32Slot(1, numRxFrames, 0) -} -func FrameStatisticCountersResponseAddNumCyclicFrames(builder *flatbuffers.Builder, numCyclicFrames uint32) { - builder.PrependUint32Slot(2, numCyclicFrames, 0) -} -func FrameStatisticCountersResponseAddNumCyclicDatagrams(builder *flatbuffers.Builder, numCyclicDatagrams uint32) { - builder.PrependUint32Slot(3, numCyclicDatagrams, 0) -} -func FrameStatisticCountersResponseAddNumAcyclicFrames(builder *flatbuffers.Builder, numAcyclicFrames uint32) { - builder.PrependUint32Slot(4, numAcyclicFrames, 0) -} -func FrameStatisticCountersResponseAddNumAcyclicDatagrams(builder *flatbuffers.Builder, numAcyclicDatagrams uint32) { - builder.PrependUint32Slot(5, numAcyclicDatagrams, 0) -} -func FrameStatisticCountersResponseAddNumLostFrames(builder *flatbuffers.Builder, numLostFrames uint32) { - builder.PrependUint32Slot(6, numLostFrames, 0) -} -func FrameStatisticCountersResponseAddNumLostCyclicFrames(builder *flatbuffers.Builder, numLostCyclicFrames uint32) { - builder.PrependUint32Slot(7, numLostCyclicFrames, 0) -} -func FrameStatisticCountersResponseAddNumLostAcyclicFrames(builder *flatbuffers.Builder, numLostAcyclicFrames uint32) { - builder.PrependUint32Slot(8, numLostAcyclicFrames, 0) -} -func FrameStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FrameStatisticCountersResponseT struct { + NumTxFrames uint32 + NumRxFrames uint32 + NumCyclicFrames uint32 + NumCyclicDatagrams uint32 + NumAcyclicFrames uint32 + NumAcyclicDatagrams uint32 + NumLostFrames uint32 + NumLostCyclicFrames uint32 + NumLostAcyclicFrames uint32 +} + +func (t *FrameStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + FrameStatisticCountersResponseStart(builder) + FrameStatisticCountersResponseAddNumTxFrames(builder, t.NumTxFrames) + FrameStatisticCountersResponseAddNumRxFrames(builder, t.NumRxFrames) + FrameStatisticCountersResponseAddNumCyclicFrames(builder, t.NumCyclicFrames) + FrameStatisticCountersResponseAddNumCyclicDatagrams(builder, t.NumCyclicDatagrams) + FrameStatisticCountersResponseAddNumAcyclicFrames(builder, t.NumAcyclicFrames) + FrameStatisticCountersResponseAddNumAcyclicDatagrams(builder, t.NumAcyclicDatagrams) + FrameStatisticCountersResponseAddNumLostFrames(builder, t.NumLostFrames) + FrameStatisticCountersResponseAddNumLostCyclicFrames(builder, t.NumLostCyclicFrames) + FrameStatisticCountersResponseAddNumLostAcyclicFrames(builder, t.NumLostAcyclicFrames) + return FrameStatisticCountersResponseEnd(builder) +} + +func (rcv *FrameStatisticCountersResponse) UnPackTo(t *FrameStatisticCountersResponseT) { + t.NumTxFrames = rcv.NumTxFrames() + t.NumRxFrames = rcv.NumRxFrames() + t.NumCyclicFrames = rcv.NumCyclicFrames() + t.NumCyclicDatagrams = rcv.NumCyclicDatagrams() + t.NumAcyclicFrames = rcv.NumAcyclicFrames() + t.NumAcyclicDatagrams = rcv.NumAcyclicDatagrams() + t.NumLostFrames = rcv.NumLostFrames() + t.NumLostCyclicFrames = rcv.NumLostCyclicFrames() + t.NumLostAcyclicFrames = rcv.NumLostAcyclicFrames() +} + +func (rcv *FrameStatisticCountersResponse) UnPack() *FrameStatisticCountersResponseT { + if rcv == nil { return nil } + t := &FrameStatisticCountersResponseT{} + rcv.UnPackTo(t) + return t +} + +type FrameStatisticCountersResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsFrameStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FrameStatisticCountersResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFrameStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FrameStatisticCountersResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FrameStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FrameStatisticCountersResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FrameStatisticCountersResponse) NumTxFrames() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumTxFrames(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *FrameStatisticCountersResponse) NumRxFrames() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumRxFrames(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *FrameStatisticCountersResponse) NumCyclicFrames() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumCyclicFrames(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func (rcv *FrameStatisticCountersResponse) NumCyclicDatagrams() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumCyclicDatagrams(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func (rcv *FrameStatisticCountersResponse) NumAcyclicFrames() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumAcyclicFrames(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *FrameStatisticCountersResponse) NumAcyclicDatagrams() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumAcyclicDatagrams(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func (rcv *FrameStatisticCountersResponse) NumLostFrames() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumLostFrames(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +func (rcv *FrameStatisticCountersResponse) NumLostCyclicFrames() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumLostCyclicFrames(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +func (rcv *FrameStatisticCountersResponse) NumLostAcyclicFrames() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *FrameStatisticCountersResponse) MutateNumLostAcyclicFrames(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +func FrameStatisticCountersResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func FrameStatisticCountersResponseAddNumTxFrames(builder *flatbuffers.Builder, numTxFrames uint32) { + builder.PrependUint32Slot(0, numTxFrames, 0) +} +func FrameStatisticCountersResponseAddNumRxFrames(builder *flatbuffers.Builder, numRxFrames uint32) { + builder.PrependUint32Slot(1, numRxFrames, 0) +} +func FrameStatisticCountersResponseAddNumCyclicFrames(builder *flatbuffers.Builder, numCyclicFrames uint32) { + builder.PrependUint32Slot(2, numCyclicFrames, 0) +} +func FrameStatisticCountersResponseAddNumCyclicDatagrams(builder *flatbuffers.Builder, numCyclicDatagrams uint32) { + builder.PrependUint32Slot(3, numCyclicDatagrams, 0) +} +func FrameStatisticCountersResponseAddNumAcyclicFrames(builder *flatbuffers.Builder, numAcyclicFrames uint32) { + builder.PrependUint32Slot(4, numAcyclicFrames, 0) +} +func FrameStatisticCountersResponseAddNumAcyclicDatagrams(builder *flatbuffers.Builder, numAcyclicDatagrams uint32) { + builder.PrependUint32Slot(5, numAcyclicDatagrams, 0) +} +func FrameStatisticCountersResponseAddNumLostFrames(builder *flatbuffers.Builder, numLostFrames uint32) { + builder.PrependUint32Slot(6, numLostFrames, 0) +} +func FrameStatisticCountersResponseAddNumLostCyclicFrames(builder *flatbuffers.Builder, numLostCyclicFrames uint32) { + builder.PrependUint32Slot(7, numLostCyclicFrames, 0) +} +func FrameStatisticCountersResponseAddNumLostAcyclicFrames(builder *flatbuffers.Builder, numLostAcyclicFrames uint32) { + builder.PrependUint32Slot(8, numLostAcyclicFrames, 0) +} +func FrameStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticReset.go b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticReset.go index 69a29f7..362391d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticReset.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticReset.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FrameStatisticResetT struct { - Request *FrameStatisticResetRequestT -} - -func (t *FrameStatisticResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - FrameStatisticResetStart(builder) - FrameStatisticResetAddRequest(builder, requestOffset) - return FrameStatisticResetEnd(builder) -} - -func (rcv *FrameStatisticReset) UnPackTo(t *FrameStatisticResetT) { - t.Request = rcv.Request(nil).UnPack() -} - -func (rcv *FrameStatisticReset) UnPack() *FrameStatisticResetT { - if rcv == nil { return nil } - t := &FrameStatisticResetT{} - rcv.UnPackTo(t) - return t -} - -type FrameStatisticReset struct { - _tab flatbuffers.Table -} - -func GetRootAsFrameStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticReset { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FrameStatisticReset{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFrameStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticReset { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FrameStatisticReset{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FrameStatisticReset) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FrameStatisticReset) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FrameStatisticReset) Request(obj *FrameStatisticResetRequest) *FrameStatisticResetRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(FrameStatisticResetRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func FrameStatisticResetStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func FrameStatisticResetAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func FrameStatisticResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FrameStatisticResetT struct { + Request *FrameStatisticResetRequestT +} + +func (t *FrameStatisticResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + FrameStatisticResetStart(builder) + FrameStatisticResetAddRequest(builder, requestOffset) + return FrameStatisticResetEnd(builder) +} + +func (rcv *FrameStatisticReset) UnPackTo(t *FrameStatisticResetT) { + t.Request = rcv.Request(nil).UnPack() +} + +func (rcv *FrameStatisticReset) UnPack() *FrameStatisticResetT { + if rcv == nil { return nil } + t := &FrameStatisticResetT{} + rcv.UnPackTo(t) + return t +} + +type FrameStatisticReset struct { + _tab flatbuffers.Table +} + +func GetRootAsFrameStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticReset { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FrameStatisticReset{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFrameStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticReset { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FrameStatisticReset{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FrameStatisticReset) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FrameStatisticReset) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FrameStatisticReset) Request(obj *FrameStatisticResetRequest) *FrameStatisticResetRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(FrameStatisticResetRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func FrameStatisticResetStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func FrameStatisticResetAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func FrameStatisticResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticResetRequest.go b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticResetRequest.go index 6cbf2f5..c85394a 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticResetRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/FrameStatisticResetRequest.go @@ -1,222 +1,222 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FrameStatisticResetRequestT struct { - NumTxFrames bool - NumRxFrames bool - NumCyclicFrames bool - NumCyclicDatagrams bool - NumAcyclicFrames bool - NumAcyclicDatagrams bool - NumLostFrames bool - NumLostCyclicFrames bool - NumLostAcyclicFrames bool -} - -func (t *FrameStatisticResetRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - FrameStatisticResetRequestStart(builder) - FrameStatisticResetRequestAddNumTxFrames(builder, t.NumTxFrames) - FrameStatisticResetRequestAddNumRxFrames(builder, t.NumRxFrames) - FrameStatisticResetRequestAddNumCyclicFrames(builder, t.NumCyclicFrames) - FrameStatisticResetRequestAddNumCyclicDatagrams(builder, t.NumCyclicDatagrams) - FrameStatisticResetRequestAddNumAcyclicFrames(builder, t.NumAcyclicFrames) - FrameStatisticResetRequestAddNumAcyclicDatagrams(builder, t.NumAcyclicDatagrams) - FrameStatisticResetRequestAddNumLostFrames(builder, t.NumLostFrames) - FrameStatisticResetRequestAddNumLostCyclicFrames(builder, t.NumLostCyclicFrames) - FrameStatisticResetRequestAddNumLostAcyclicFrames(builder, t.NumLostAcyclicFrames) - return FrameStatisticResetRequestEnd(builder) -} - -func (rcv *FrameStatisticResetRequest) UnPackTo(t *FrameStatisticResetRequestT) { - t.NumTxFrames = rcv.NumTxFrames() - t.NumRxFrames = rcv.NumRxFrames() - t.NumCyclicFrames = rcv.NumCyclicFrames() - t.NumCyclicDatagrams = rcv.NumCyclicDatagrams() - t.NumAcyclicFrames = rcv.NumAcyclicFrames() - t.NumAcyclicDatagrams = rcv.NumAcyclicDatagrams() - t.NumLostFrames = rcv.NumLostFrames() - t.NumLostCyclicFrames = rcv.NumLostCyclicFrames() - t.NumLostAcyclicFrames = rcv.NumLostAcyclicFrames() -} - -func (rcv *FrameStatisticResetRequest) UnPack() *FrameStatisticResetRequestT { - if rcv == nil { return nil } - t := &FrameStatisticResetRequestT{} - rcv.UnPackTo(t) - return t -} - -type FrameStatisticResetRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsFrameStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticResetRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FrameStatisticResetRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFrameStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticResetRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FrameStatisticResetRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FrameStatisticResetRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FrameStatisticResetRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FrameStatisticResetRequest) NumTxFrames() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumTxFrames(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *FrameStatisticResetRequest) NumRxFrames() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumRxFrames(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *FrameStatisticResetRequest) NumCyclicFrames() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumCyclicFrames(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *FrameStatisticResetRequest) NumCyclicDatagrams() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumCyclicDatagrams(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *FrameStatisticResetRequest) NumAcyclicFrames() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumAcyclicFrames(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -func (rcv *FrameStatisticResetRequest) NumAcyclicDatagrams() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumAcyclicDatagrams(n bool) bool { - return rcv._tab.MutateBoolSlot(14, n) -} - -func (rcv *FrameStatisticResetRequest) NumLostFrames() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumLostFrames(n bool) bool { - return rcv._tab.MutateBoolSlot(16, n) -} - -func (rcv *FrameStatisticResetRequest) NumLostCyclicFrames() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumLostCyclicFrames(n bool) bool { - return rcv._tab.MutateBoolSlot(18, n) -} - -func (rcv *FrameStatisticResetRequest) NumLostAcyclicFrames() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *FrameStatisticResetRequest) MutateNumLostAcyclicFrames(n bool) bool { - return rcv._tab.MutateBoolSlot(20, n) -} - -func FrameStatisticResetRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func FrameStatisticResetRequestAddNumTxFrames(builder *flatbuffers.Builder, numTxFrames bool) { - builder.PrependBoolSlot(0, numTxFrames, false) -} -func FrameStatisticResetRequestAddNumRxFrames(builder *flatbuffers.Builder, numRxFrames bool) { - builder.PrependBoolSlot(1, numRxFrames, false) -} -func FrameStatisticResetRequestAddNumCyclicFrames(builder *flatbuffers.Builder, numCyclicFrames bool) { - builder.PrependBoolSlot(2, numCyclicFrames, false) -} -func FrameStatisticResetRequestAddNumCyclicDatagrams(builder *flatbuffers.Builder, numCyclicDatagrams bool) { - builder.PrependBoolSlot(3, numCyclicDatagrams, false) -} -func FrameStatisticResetRequestAddNumAcyclicFrames(builder *flatbuffers.Builder, numAcyclicFrames bool) { - builder.PrependBoolSlot(4, numAcyclicFrames, false) -} -func FrameStatisticResetRequestAddNumAcyclicDatagrams(builder *flatbuffers.Builder, numAcyclicDatagrams bool) { - builder.PrependBoolSlot(5, numAcyclicDatagrams, false) -} -func FrameStatisticResetRequestAddNumLostFrames(builder *flatbuffers.Builder, numLostFrames bool) { - builder.PrependBoolSlot(6, numLostFrames, false) -} -func FrameStatisticResetRequestAddNumLostCyclicFrames(builder *flatbuffers.Builder, numLostCyclicFrames bool) { - builder.PrependBoolSlot(7, numLostCyclicFrames, false) -} -func FrameStatisticResetRequestAddNumLostAcyclicFrames(builder *flatbuffers.Builder, numLostAcyclicFrames bool) { - builder.PrependBoolSlot(8, numLostAcyclicFrames, false) -} -func FrameStatisticResetRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FrameStatisticResetRequestT struct { + NumTxFrames bool + NumRxFrames bool + NumCyclicFrames bool + NumCyclicDatagrams bool + NumAcyclicFrames bool + NumAcyclicDatagrams bool + NumLostFrames bool + NumLostCyclicFrames bool + NumLostAcyclicFrames bool +} + +func (t *FrameStatisticResetRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + FrameStatisticResetRequestStart(builder) + FrameStatisticResetRequestAddNumTxFrames(builder, t.NumTxFrames) + FrameStatisticResetRequestAddNumRxFrames(builder, t.NumRxFrames) + FrameStatisticResetRequestAddNumCyclicFrames(builder, t.NumCyclicFrames) + FrameStatisticResetRequestAddNumCyclicDatagrams(builder, t.NumCyclicDatagrams) + FrameStatisticResetRequestAddNumAcyclicFrames(builder, t.NumAcyclicFrames) + FrameStatisticResetRequestAddNumAcyclicDatagrams(builder, t.NumAcyclicDatagrams) + FrameStatisticResetRequestAddNumLostFrames(builder, t.NumLostFrames) + FrameStatisticResetRequestAddNumLostCyclicFrames(builder, t.NumLostCyclicFrames) + FrameStatisticResetRequestAddNumLostAcyclicFrames(builder, t.NumLostAcyclicFrames) + return FrameStatisticResetRequestEnd(builder) +} + +func (rcv *FrameStatisticResetRequest) UnPackTo(t *FrameStatisticResetRequestT) { + t.NumTxFrames = rcv.NumTxFrames() + t.NumRxFrames = rcv.NumRxFrames() + t.NumCyclicFrames = rcv.NumCyclicFrames() + t.NumCyclicDatagrams = rcv.NumCyclicDatagrams() + t.NumAcyclicFrames = rcv.NumAcyclicFrames() + t.NumAcyclicDatagrams = rcv.NumAcyclicDatagrams() + t.NumLostFrames = rcv.NumLostFrames() + t.NumLostCyclicFrames = rcv.NumLostCyclicFrames() + t.NumLostAcyclicFrames = rcv.NumLostAcyclicFrames() +} + +func (rcv *FrameStatisticResetRequest) UnPack() *FrameStatisticResetRequestT { + if rcv == nil { return nil } + t := &FrameStatisticResetRequestT{} + rcv.UnPackTo(t) + return t +} + +type FrameStatisticResetRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsFrameStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticResetRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FrameStatisticResetRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFrameStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *FrameStatisticResetRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FrameStatisticResetRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FrameStatisticResetRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FrameStatisticResetRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FrameStatisticResetRequest) NumTxFrames() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumTxFrames(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *FrameStatisticResetRequest) NumRxFrames() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumRxFrames(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *FrameStatisticResetRequest) NumCyclicFrames() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumCyclicFrames(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *FrameStatisticResetRequest) NumCyclicDatagrams() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumCyclicDatagrams(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func (rcv *FrameStatisticResetRequest) NumAcyclicFrames() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumAcyclicFrames(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func (rcv *FrameStatisticResetRequest) NumAcyclicDatagrams() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumAcyclicDatagrams(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func (rcv *FrameStatisticResetRequest) NumLostFrames() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumLostFrames(n bool) bool { + return rcv._tab.MutateBoolSlot(16, n) +} + +func (rcv *FrameStatisticResetRequest) NumLostCyclicFrames() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumLostCyclicFrames(n bool) bool { + return rcv._tab.MutateBoolSlot(18, n) +} + +func (rcv *FrameStatisticResetRequest) NumLostAcyclicFrames() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *FrameStatisticResetRequest) MutateNumLostAcyclicFrames(n bool) bool { + return rcv._tab.MutateBoolSlot(20, n) +} + +func FrameStatisticResetRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func FrameStatisticResetRequestAddNumTxFrames(builder *flatbuffers.Builder, numTxFrames bool) { + builder.PrependBoolSlot(0, numTxFrames, false) +} +func FrameStatisticResetRequestAddNumRxFrames(builder *flatbuffers.Builder, numRxFrames bool) { + builder.PrependBoolSlot(1, numRxFrames, false) +} +func FrameStatisticResetRequestAddNumCyclicFrames(builder *flatbuffers.Builder, numCyclicFrames bool) { + builder.PrependBoolSlot(2, numCyclicFrames, false) +} +func FrameStatisticResetRequestAddNumCyclicDatagrams(builder *flatbuffers.Builder, numCyclicDatagrams bool) { + builder.PrependBoolSlot(3, numCyclicDatagrams, false) +} +func FrameStatisticResetRequestAddNumAcyclicFrames(builder *flatbuffers.Builder, numAcyclicFrames bool) { + builder.PrependBoolSlot(4, numAcyclicFrames, false) +} +func FrameStatisticResetRequestAddNumAcyclicDatagrams(builder *flatbuffers.Builder, numAcyclicDatagrams bool) { + builder.PrependBoolSlot(5, numAcyclicDatagrams, false) +} +func FrameStatisticResetRequestAddNumLostFrames(builder *flatbuffers.Builder, numLostFrames bool) { + builder.PrependBoolSlot(6, numLostFrames, false) +} +func FrameStatisticResetRequestAddNumLostCyclicFrames(builder *flatbuffers.Builder, numLostCyclicFrames bool) { + builder.PrependBoolSlot(7, numLostCyclicFrames, false) +} +func FrameStatisticResetRequestAddNumLostAcyclicFrames(builder *flatbuffers.Builder, numLostAcyclicFrames bool) { + builder.PrependBoolSlot(8, numLostAcyclicFrames, false) +} +func FrameStatisticResetRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/InhibitTime.go b/pkg/fbs/comm/ethercat/master/fbs/InhibitTime.go index 71cf958..061183e 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/InhibitTime.go +++ b/pkg/fbs/comm/ethercat/master/fbs/InhibitTime.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type InhibitTimeT struct { - Response *InhibitTimeResponseT -} - -func (t *InhibitTimeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - InhibitTimeStart(builder) - InhibitTimeAddResponse(builder, responseOffset) - return InhibitTimeEnd(builder) -} - -func (rcv *InhibitTime) UnPackTo(t *InhibitTimeT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *InhibitTime) UnPack() *InhibitTimeT { - if rcv == nil { return nil } - t := &InhibitTimeT{} - rcv.UnPackTo(t) - return t -} - -type InhibitTime struct { - _tab flatbuffers.Table -} - -func GetRootAsInhibitTime(buf []byte, offset flatbuffers.UOffsetT) *InhibitTime { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &InhibitTime{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInhibitTime(buf []byte, offset flatbuffers.UOffsetT) *InhibitTime { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &InhibitTime{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *InhibitTime) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *InhibitTime) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *InhibitTime) Response(obj *InhibitTimeResponse) *InhibitTimeResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(InhibitTimeResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func InhibitTimeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func InhibitTimeAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func InhibitTimeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InhibitTimeT struct { + Response *InhibitTimeResponseT +} + +func (t *InhibitTimeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + InhibitTimeStart(builder) + InhibitTimeAddResponse(builder, responseOffset) + return InhibitTimeEnd(builder) +} + +func (rcv *InhibitTime) UnPackTo(t *InhibitTimeT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *InhibitTime) UnPack() *InhibitTimeT { + if rcv == nil { return nil } + t := &InhibitTimeT{} + rcv.UnPackTo(t) + return t +} + +type InhibitTime struct { + _tab flatbuffers.Table +} + +func GetRootAsInhibitTime(buf []byte, offset flatbuffers.UOffsetT) *InhibitTime { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &InhibitTime{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInhibitTime(buf []byte, offset flatbuffers.UOffsetT) *InhibitTime { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &InhibitTime{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *InhibitTime) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *InhibitTime) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *InhibitTime) Response(obj *InhibitTimeResponse) *InhibitTimeResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(InhibitTimeResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func InhibitTimeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func InhibitTimeAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func InhibitTimeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/InhibitTimeResponse.go b/pkg/fbs/comm/ethercat/master/fbs/InhibitTimeResponse.go index 8375f7f..1a40a8d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/InhibitTimeResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/InhibitTimeResponse.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type InhibitTimeResponseT struct { - Time uint32 -} - -func (t *InhibitTimeResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - InhibitTimeResponseStart(builder) - InhibitTimeResponseAddTime(builder, t.Time) - return InhibitTimeResponseEnd(builder) -} - -func (rcv *InhibitTimeResponse) UnPackTo(t *InhibitTimeResponseT) { - t.Time = rcv.Time() -} - -func (rcv *InhibitTimeResponse) UnPack() *InhibitTimeResponseT { - if rcv == nil { return nil } - t := &InhibitTimeResponseT{} - rcv.UnPackTo(t) - return t -} - -type InhibitTimeResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsInhibitTimeResponse(buf []byte, offset flatbuffers.UOffsetT) *InhibitTimeResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &InhibitTimeResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInhibitTimeResponse(buf []byte, offset flatbuffers.UOffsetT) *InhibitTimeResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &InhibitTimeResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *InhibitTimeResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *InhibitTimeResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *InhibitTimeResponse) Time() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *InhibitTimeResponse) MutateTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func InhibitTimeResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func InhibitTimeResponseAddTime(builder *flatbuffers.Builder, time uint32) { - builder.PrependUint32Slot(0, time, 0) -} -func InhibitTimeResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InhibitTimeResponseT struct { + Time uint32 +} + +func (t *InhibitTimeResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + InhibitTimeResponseStart(builder) + InhibitTimeResponseAddTime(builder, t.Time) + return InhibitTimeResponseEnd(builder) +} + +func (rcv *InhibitTimeResponse) UnPackTo(t *InhibitTimeResponseT) { + t.Time = rcv.Time() +} + +func (rcv *InhibitTimeResponse) UnPack() *InhibitTimeResponseT { + if rcv == nil { return nil } + t := &InhibitTimeResponseT{} + rcv.UnPackTo(t) + return t +} + +type InhibitTimeResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsInhibitTimeResponse(buf []byte, offset flatbuffers.UOffsetT) *InhibitTimeResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &InhibitTimeResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInhibitTimeResponse(buf []byte, offset flatbuffers.UOffsetT) *InhibitTimeResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &InhibitTimeResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *InhibitTimeResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *InhibitTimeResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *InhibitTimeResponse) Time() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *InhibitTimeResponse) MutateTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func InhibitTimeResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func InhibitTimeResponseAddTime(builder *flatbuffers.Builder, time uint32) { + builder.PrependUint32Slot(0, time, 0) +} +func InhibitTimeResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/InstancesCreate.go b/pkg/fbs/comm/ethercat/master/fbs/InstancesCreate.go index 355be47..cf44d0e 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/InstancesCreate.go +++ b/pkg/fbs/comm/ethercat/master/fbs/InstancesCreate.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type InstancesCreateT struct { - Request *InstancesCreateRequestT -} - -func (t *InstancesCreateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - InstancesCreateStart(builder) - InstancesCreateAddRequest(builder, requestOffset) - return InstancesCreateEnd(builder) -} - -func (rcv *InstancesCreate) UnPackTo(t *InstancesCreateT) { - t.Request = rcv.Request(nil).UnPack() -} - -func (rcv *InstancesCreate) UnPack() *InstancesCreateT { - if rcv == nil { return nil } - t := &InstancesCreateT{} - rcv.UnPackTo(t) - return t -} - -type InstancesCreate struct { - _tab flatbuffers.Table -} - -func GetRootAsInstancesCreate(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreate { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &InstancesCreate{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInstancesCreate(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreate { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &InstancesCreate{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *InstancesCreate) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *InstancesCreate) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *InstancesCreate) Request(obj *InstancesCreateRequest) *InstancesCreateRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(InstancesCreateRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func InstancesCreateStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func InstancesCreateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func InstancesCreateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InstancesCreateT struct { + Request *InstancesCreateRequestT +} + +func (t *InstancesCreateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + InstancesCreateStart(builder) + InstancesCreateAddRequest(builder, requestOffset) + return InstancesCreateEnd(builder) +} + +func (rcv *InstancesCreate) UnPackTo(t *InstancesCreateT) { + t.Request = rcv.Request(nil).UnPack() +} + +func (rcv *InstancesCreate) UnPack() *InstancesCreateT { + if rcv == nil { return nil } + t := &InstancesCreateT{} + rcv.UnPackTo(t) + return t +} + +type InstancesCreate struct { + _tab flatbuffers.Table +} + +func GetRootAsInstancesCreate(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreate { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &InstancesCreate{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInstancesCreate(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreate { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &InstancesCreate{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *InstancesCreate) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *InstancesCreate) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *InstancesCreate) Request(obj *InstancesCreateRequest) *InstancesCreateRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(InstancesCreateRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func InstancesCreateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func InstancesCreateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func InstancesCreateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/InstancesCreateRequest.go b/pkg/fbs/comm/ethercat/master/fbs/InstancesCreateRequest.go index 773ab56..dc24f79 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/InstancesCreateRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/InstancesCreateRequest.go @@ -1,120 +1,120 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type InstancesCreateRequestT struct { - InstanceName string - Port string - LinkLayer string - Arguments string -} - -func (t *InstancesCreateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - instanceNameOffset := builder.CreateString(t.InstanceName) - portOffset := builder.CreateString(t.Port) - linkLayerOffset := builder.CreateString(t.LinkLayer) - argumentsOffset := builder.CreateString(t.Arguments) - InstancesCreateRequestStart(builder) - InstancesCreateRequestAddInstanceName(builder, instanceNameOffset) - InstancesCreateRequestAddPort(builder, portOffset) - InstancesCreateRequestAddLinkLayer(builder, linkLayerOffset) - InstancesCreateRequestAddArguments(builder, argumentsOffset) - return InstancesCreateRequestEnd(builder) -} - -func (rcv *InstancesCreateRequest) UnPackTo(t *InstancesCreateRequestT) { - t.InstanceName = string(rcv.InstanceName()) - t.Port = string(rcv.Port()) - t.LinkLayer = string(rcv.LinkLayer()) - t.Arguments = string(rcv.Arguments()) -} - -func (rcv *InstancesCreateRequest) UnPack() *InstancesCreateRequestT { - if rcv == nil { return nil } - t := &InstancesCreateRequestT{} - rcv.UnPackTo(t) - return t -} - -type InstancesCreateRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsInstancesCreateRequest(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreateRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &InstancesCreateRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInstancesCreateRequest(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreateRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &InstancesCreateRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *InstancesCreateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *InstancesCreateRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *InstancesCreateRequest) InstanceName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *InstancesCreateRequest) Port() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *InstancesCreateRequest) LinkLayer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *InstancesCreateRequest) Arguments() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func InstancesCreateRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func InstancesCreateRequestAddInstanceName(builder *flatbuffers.Builder, instanceName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(instanceName), 0) -} -func InstancesCreateRequestAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(port), 0) -} -func InstancesCreateRequestAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(linkLayer), 0) -} -func InstancesCreateRequestAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(arguments), 0) -} -func InstancesCreateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InstancesCreateRequestT struct { + InstanceName string + Port string + LinkLayer string + Arguments string +} + +func (t *InstancesCreateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + instanceNameOffset := builder.CreateString(t.InstanceName) + portOffset := builder.CreateString(t.Port) + linkLayerOffset := builder.CreateString(t.LinkLayer) + argumentsOffset := builder.CreateString(t.Arguments) + InstancesCreateRequestStart(builder) + InstancesCreateRequestAddInstanceName(builder, instanceNameOffset) + InstancesCreateRequestAddPort(builder, portOffset) + InstancesCreateRequestAddLinkLayer(builder, linkLayerOffset) + InstancesCreateRequestAddArguments(builder, argumentsOffset) + return InstancesCreateRequestEnd(builder) +} + +func (rcv *InstancesCreateRequest) UnPackTo(t *InstancesCreateRequestT) { + t.InstanceName = string(rcv.InstanceName()) + t.Port = string(rcv.Port()) + t.LinkLayer = string(rcv.LinkLayer()) + t.Arguments = string(rcv.Arguments()) +} + +func (rcv *InstancesCreateRequest) UnPack() *InstancesCreateRequestT { + if rcv == nil { return nil } + t := &InstancesCreateRequestT{} + rcv.UnPackTo(t) + return t +} + +type InstancesCreateRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsInstancesCreateRequest(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreateRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &InstancesCreateRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInstancesCreateRequest(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreateRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &InstancesCreateRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *InstancesCreateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *InstancesCreateRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *InstancesCreateRequest) InstanceName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *InstancesCreateRequest) Port() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *InstancesCreateRequest) LinkLayer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *InstancesCreateRequest) Arguments() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func InstancesCreateRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func InstancesCreateRequestAddInstanceName(builder *flatbuffers.Builder, instanceName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(instanceName), 0) +} +func InstancesCreateRequestAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(port), 0) +} +func InstancesCreateRequestAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(linkLayer), 0) +} +func InstancesCreateRequestAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(arguments), 0) +} +func InstancesCreateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/Interface.go b/pkg/fbs/comm/ethercat/master/fbs/Interface.go index b9e8031..31de45d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/Interface.go +++ b/pkg/fbs/comm/ethercat/master/fbs/Interface.go @@ -1,153 +1,153 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type InterfaceT struct { - Port string - Device string - LinkLayer string - CapabilityList []*CapabilityT -} - -func (t *InterfaceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - portOffset := builder.CreateString(t.Port) - deviceOffset := builder.CreateString(t.Device) - linkLayerOffset := builder.CreateString(t.LinkLayer) - capabilityListOffset := flatbuffers.UOffsetT(0) - if t.CapabilityList != nil { - capabilityListLength := len(t.CapabilityList) - capabilityListOffsets := make([]flatbuffers.UOffsetT, capabilityListLength) - for j := 0; j < capabilityListLength; j++ { - capabilityListOffsets[j] = t.CapabilityList[j].Pack(builder) - } - InterfaceStartCapabilityListVector(builder, capabilityListLength) - for j := capabilityListLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(capabilityListOffsets[j]) - } - capabilityListOffset = builder.EndVector(capabilityListLength) - } - InterfaceStart(builder) - InterfaceAddPort(builder, portOffset) - InterfaceAddDevice(builder, deviceOffset) - InterfaceAddLinkLayer(builder, linkLayerOffset) - InterfaceAddCapabilityList(builder, capabilityListOffset) - return InterfaceEnd(builder) -} - -func (rcv *Interface) UnPackTo(t *InterfaceT) { - t.Port = string(rcv.Port()) - t.Device = string(rcv.Device()) - t.LinkLayer = string(rcv.LinkLayer()) - capabilityListLength := rcv.CapabilityListLength() - t.CapabilityList = make([]*CapabilityT, capabilityListLength) - for j := 0; j < capabilityListLength; j++ { - x := Capability{} - rcv.CapabilityList(&x, j) - t.CapabilityList[j] = x.UnPack() - } -} - -func (rcv *Interface) UnPack() *InterfaceT { - if rcv == nil { return nil } - t := &InterfaceT{} - rcv.UnPackTo(t) - return t -} - -type Interface struct { - _tab flatbuffers.Table -} - -func GetRootAsInterface(buf []byte, offset flatbuffers.UOffsetT) *Interface { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Interface{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInterface(buf []byte, offset flatbuffers.UOffsetT) *Interface { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Interface{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Interface) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Interface) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Interface) Port() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Interface) Device() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Interface) LinkLayer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Interface) CapabilityList(obj *Capability, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Interface) CapabilityListLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func InterfaceStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func InterfaceAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(port), 0) -} -func InterfaceAddDevice(builder *flatbuffers.Builder, device flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(device), 0) -} -func InterfaceAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(linkLayer), 0) -} -func InterfaceAddCapabilityList(builder *flatbuffers.Builder, capabilityList flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(capabilityList), 0) -} -func InterfaceStartCapabilityListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func InterfaceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InterfaceT struct { + Port string + Device string + LinkLayer string + CapabilityList []*CapabilityT +} + +func (t *InterfaceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + portOffset := builder.CreateString(t.Port) + deviceOffset := builder.CreateString(t.Device) + linkLayerOffset := builder.CreateString(t.LinkLayer) + capabilityListOffset := flatbuffers.UOffsetT(0) + if t.CapabilityList != nil { + capabilityListLength := len(t.CapabilityList) + capabilityListOffsets := make([]flatbuffers.UOffsetT, capabilityListLength) + for j := 0; j < capabilityListLength; j++ { + capabilityListOffsets[j] = t.CapabilityList[j].Pack(builder) + } + InterfaceStartCapabilityListVector(builder, capabilityListLength) + for j := capabilityListLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(capabilityListOffsets[j]) + } + capabilityListOffset = builder.EndVector(capabilityListLength) + } + InterfaceStart(builder) + InterfaceAddPort(builder, portOffset) + InterfaceAddDevice(builder, deviceOffset) + InterfaceAddLinkLayer(builder, linkLayerOffset) + InterfaceAddCapabilityList(builder, capabilityListOffset) + return InterfaceEnd(builder) +} + +func (rcv *Interface) UnPackTo(t *InterfaceT) { + t.Port = string(rcv.Port()) + t.Device = string(rcv.Device()) + t.LinkLayer = string(rcv.LinkLayer()) + capabilityListLength := rcv.CapabilityListLength() + t.CapabilityList = make([]*CapabilityT, capabilityListLength) + for j := 0; j < capabilityListLength; j++ { + x := Capability{} + rcv.CapabilityList(&x, j) + t.CapabilityList[j] = x.UnPack() + } +} + +func (rcv *Interface) UnPack() *InterfaceT { + if rcv == nil { return nil } + t := &InterfaceT{} + rcv.UnPackTo(t) + return t +} + +type Interface struct { + _tab flatbuffers.Table +} + +func GetRootAsInterface(buf []byte, offset flatbuffers.UOffsetT) *Interface { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Interface{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInterface(buf []byte, offset flatbuffers.UOffsetT) *Interface { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Interface{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Interface) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Interface) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Interface) Port() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface) Device() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface) LinkLayer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface) CapabilityList(obj *Capability, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Interface) CapabilityListLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func InterfaceStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func InterfaceAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(port), 0) +} +func InterfaceAddDevice(builder *flatbuffers.Builder, device flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(device), 0) +} +func InterfaceAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(linkLayer), 0) +} +func InterfaceAddCapabilityList(builder *flatbuffers.Builder, capabilityList flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(capabilityList), 0) +} +func InterfaceStartCapabilityListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func InterfaceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfo.go b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfo.go index df0e555..6b20933 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfo.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LinkLayerConfigInfoT struct { - Response *LinkLayerConfigInfoResponseT -} - -func (t *LinkLayerConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - LinkLayerConfigInfoStart(builder) - LinkLayerConfigInfoAddResponse(builder, responseOffset) - return LinkLayerConfigInfoEnd(builder) -} - -func (rcv *LinkLayerConfigInfo) UnPackTo(t *LinkLayerConfigInfoT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *LinkLayerConfigInfo) UnPack() *LinkLayerConfigInfoT { - if rcv == nil { return nil } - t := &LinkLayerConfigInfoT{} - rcv.UnPackTo(t) - return t -} - -type LinkLayerConfigInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsLinkLayerConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LinkLayerConfigInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLinkLayerConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LinkLayerConfigInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LinkLayerConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LinkLayerConfigInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LinkLayerConfigInfo) Response(obj *LinkLayerConfigInfoResponse) *LinkLayerConfigInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(LinkLayerConfigInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func LinkLayerConfigInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func LinkLayerConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func LinkLayerConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LinkLayerConfigInfoT struct { + Response *LinkLayerConfigInfoResponseT +} + +func (t *LinkLayerConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + LinkLayerConfigInfoStart(builder) + LinkLayerConfigInfoAddResponse(builder, responseOffset) + return LinkLayerConfigInfoEnd(builder) +} + +func (rcv *LinkLayerConfigInfo) UnPackTo(t *LinkLayerConfigInfoT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *LinkLayerConfigInfo) UnPack() *LinkLayerConfigInfoT { + if rcv == nil { return nil } + t := &LinkLayerConfigInfoT{} + rcv.UnPackTo(t) + return t +} + +type LinkLayerConfigInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsLinkLayerConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LinkLayerConfigInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLinkLayerConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LinkLayerConfigInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LinkLayerConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LinkLayerConfigInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LinkLayerConfigInfo) Response(obj *LinkLayerConfigInfoResponse) *LinkLayerConfigInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(LinkLayerConfigInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func LinkLayerConfigInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func LinkLayerConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func LinkLayerConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfoResponse.go index 73ebb78..d43ac14 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerConfigInfoResponse.go @@ -1,105 +1,105 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LinkLayerConfigInfoResponseT struct { - Port string - LinkLayer string - Arguments string -} - -func (t *LinkLayerConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - portOffset := builder.CreateString(t.Port) - linkLayerOffset := builder.CreateString(t.LinkLayer) - argumentsOffset := builder.CreateString(t.Arguments) - LinkLayerConfigInfoResponseStart(builder) - LinkLayerConfigInfoResponseAddPort(builder, portOffset) - LinkLayerConfigInfoResponseAddLinkLayer(builder, linkLayerOffset) - LinkLayerConfigInfoResponseAddArguments(builder, argumentsOffset) - return LinkLayerConfigInfoResponseEnd(builder) -} - -func (rcv *LinkLayerConfigInfoResponse) UnPackTo(t *LinkLayerConfigInfoResponseT) { - t.Port = string(rcv.Port()) - t.LinkLayer = string(rcv.LinkLayer()) - t.Arguments = string(rcv.Arguments()) -} - -func (rcv *LinkLayerConfigInfoResponse) UnPack() *LinkLayerConfigInfoResponseT { - if rcv == nil { return nil } - t := &LinkLayerConfigInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type LinkLayerConfigInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsLinkLayerConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LinkLayerConfigInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLinkLayerConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LinkLayerConfigInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LinkLayerConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LinkLayerConfigInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LinkLayerConfigInfoResponse) Port() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LinkLayerConfigInfoResponse) LinkLayer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LinkLayerConfigInfoResponse) Arguments() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func LinkLayerConfigInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func LinkLayerConfigInfoResponseAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(port), 0) -} -func LinkLayerConfigInfoResponseAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(linkLayer), 0) -} -func LinkLayerConfigInfoResponseAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) -} -func LinkLayerConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LinkLayerConfigInfoResponseT struct { + Port string + LinkLayer string + Arguments string +} + +func (t *LinkLayerConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + portOffset := builder.CreateString(t.Port) + linkLayerOffset := builder.CreateString(t.LinkLayer) + argumentsOffset := builder.CreateString(t.Arguments) + LinkLayerConfigInfoResponseStart(builder) + LinkLayerConfigInfoResponseAddPort(builder, portOffset) + LinkLayerConfigInfoResponseAddLinkLayer(builder, linkLayerOffset) + LinkLayerConfigInfoResponseAddArguments(builder, argumentsOffset) + return LinkLayerConfigInfoResponseEnd(builder) +} + +func (rcv *LinkLayerConfigInfoResponse) UnPackTo(t *LinkLayerConfigInfoResponseT) { + t.Port = string(rcv.Port()) + t.LinkLayer = string(rcv.LinkLayer()) + t.Arguments = string(rcv.Arguments()) +} + +func (rcv *LinkLayerConfigInfoResponse) UnPack() *LinkLayerConfigInfoResponseT { + if rcv == nil { return nil } + t := &LinkLayerConfigInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type LinkLayerConfigInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsLinkLayerConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LinkLayerConfigInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLinkLayerConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LinkLayerConfigInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LinkLayerConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LinkLayerConfigInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LinkLayerConfigInfoResponse) Port() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LinkLayerConfigInfoResponse) LinkLayer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LinkLayerConfigInfoResponse) Arguments() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func LinkLayerConfigInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func LinkLayerConfigInfoResponseAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(port), 0) +} +func LinkLayerConfigInfoResponseAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(linkLayer), 0) +} +func LinkLayerConfigInfoResponseAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) +} +func LinkLayerConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfo.go b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfo.go index cb31484..3c243e1 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfo.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LinkLayerOnlineInfoT struct { - Response *LinkLayerOnlineInfoResponseT -} - -func (t *LinkLayerOnlineInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - LinkLayerOnlineInfoStart(builder) - LinkLayerOnlineInfoAddResponse(builder, responseOffset) - return LinkLayerOnlineInfoEnd(builder) -} - -func (rcv *LinkLayerOnlineInfo) UnPackTo(t *LinkLayerOnlineInfoT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *LinkLayerOnlineInfo) UnPack() *LinkLayerOnlineInfoT { - if rcv == nil { return nil } - t := &LinkLayerOnlineInfoT{} - rcv.UnPackTo(t) - return t -} - -type LinkLayerOnlineInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsLinkLayerOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LinkLayerOnlineInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLinkLayerOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LinkLayerOnlineInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LinkLayerOnlineInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LinkLayerOnlineInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LinkLayerOnlineInfo) Response(obj *LinkLayerOnlineInfoResponse) *LinkLayerOnlineInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(LinkLayerOnlineInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func LinkLayerOnlineInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func LinkLayerOnlineInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func LinkLayerOnlineInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LinkLayerOnlineInfoT struct { + Response *LinkLayerOnlineInfoResponseT +} + +func (t *LinkLayerOnlineInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + LinkLayerOnlineInfoStart(builder) + LinkLayerOnlineInfoAddResponse(builder, responseOffset) + return LinkLayerOnlineInfoEnd(builder) +} + +func (rcv *LinkLayerOnlineInfo) UnPackTo(t *LinkLayerOnlineInfoT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *LinkLayerOnlineInfo) UnPack() *LinkLayerOnlineInfoT { + if rcv == nil { return nil } + t := &LinkLayerOnlineInfoT{} + rcv.UnPackTo(t) + return t +} + +type LinkLayerOnlineInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsLinkLayerOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LinkLayerOnlineInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLinkLayerOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LinkLayerOnlineInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LinkLayerOnlineInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LinkLayerOnlineInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LinkLayerOnlineInfo) Response(obj *LinkLayerOnlineInfoResponse) *LinkLayerOnlineInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(LinkLayerOnlineInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func LinkLayerOnlineInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func LinkLayerOnlineInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func LinkLayerOnlineInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfoResponse.go index 2ce4e58..dc4110a 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/LinkLayerOnlineInfoResponse.go @@ -1,311 +1,311 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LinkLayerOnlineInfoResponseT struct { - Port string - LinkLayer string - Arguments string - Message string - MacAddress []byte - FrameRepeatCntSupport bool - LinkSpeed uint32 - LinkMode LinkMode - LinkStatus LinkStatus - RefClockWidth uint32 - SystemTime uint64 - PhysicalErrorCnt uint32 - TelegramErrorCnt uint32 -} - -func (t *LinkLayerOnlineInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - portOffset := builder.CreateString(t.Port) - linkLayerOffset := builder.CreateString(t.LinkLayer) - argumentsOffset := builder.CreateString(t.Arguments) - messageOffset := builder.CreateString(t.Message) - macAddressOffset := flatbuffers.UOffsetT(0) - if t.MacAddress != nil { - macAddressOffset = builder.CreateByteString(t.MacAddress) - } - LinkLayerOnlineInfoResponseStart(builder) - LinkLayerOnlineInfoResponseAddPort(builder, portOffset) - LinkLayerOnlineInfoResponseAddLinkLayer(builder, linkLayerOffset) - LinkLayerOnlineInfoResponseAddArguments(builder, argumentsOffset) - LinkLayerOnlineInfoResponseAddMessage(builder, messageOffset) - LinkLayerOnlineInfoResponseAddMacAddress(builder, macAddressOffset) - LinkLayerOnlineInfoResponseAddFrameRepeatCntSupport(builder, t.FrameRepeatCntSupport) - LinkLayerOnlineInfoResponseAddLinkSpeed(builder, t.LinkSpeed) - LinkLayerOnlineInfoResponseAddLinkMode(builder, t.LinkMode) - LinkLayerOnlineInfoResponseAddLinkStatus(builder, t.LinkStatus) - LinkLayerOnlineInfoResponseAddRefClockWidth(builder, t.RefClockWidth) - LinkLayerOnlineInfoResponseAddSystemTime(builder, t.SystemTime) - LinkLayerOnlineInfoResponseAddPhysicalErrorCnt(builder, t.PhysicalErrorCnt) - LinkLayerOnlineInfoResponseAddTelegramErrorCnt(builder, t.TelegramErrorCnt) - return LinkLayerOnlineInfoResponseEnd(builder) -} - -func (rcv *LinkLayerOnlineInfoResponse) UnPackTo(t *LinkLayerOnlineInfoResponseT) { - t.Port = string(rcv.Port()) - t.LinkLayer = string(rcv.LinkLayer()) - t.Arguments = string(rcv.Arguments()) - t.Message = string(rcv.Message()) - t.MacAddress = rcv.MacAddressBytes() - t.FrameRepeatCntSupport = rcv.FrameRepeatCntSupport() - t.LinkSpeed = rcv.LinkSpeed() - t.LinkMode = rcv.LinkMode() - t.LinkStatus = rcv.LinkStatus() - t.RefClockWidth = rcv.RefClockWidth() - t.SystemTime = rcv.SystemTime() - t.PhysicalErrorCnt = rcv.PhysicalErrorCnt() - t.TelegramErrorCnt = rcv.TelegramErrorCnt() -} - -func (rcv *LinkLayerOnlineInfoResponse) UnPack() *LinkLayerOnlineInfoResponseT { - if rcv == nil { return nil } - t := &LinkLayerOnlineInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type LinkLayerOnlineInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsLinkLayerOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LinkLayerOnlineInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLinkLayerOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LinkLayerOnlineInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LinkLayerOnlineInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LinkLayerOnlineInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LinkLayerOnlineInfoResponse) Port() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LinkLayerOnlineInfoResponse) LinkLayer() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LinkLayerOnlineInfoResponse) Arguments() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LinkLayerOnlineInfoResponse) Message() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LinkLayerOnlineInfoResponse) MacAddress(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MacAddressLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MacAddressBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateMacAddress(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *LinkLayerOnlineInfoResponse) FrameRepeatCntSupport() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateFrameRepeatCntSupport(n bool) bool { - return rcv._tab.MutateBoolSlot(14, n) -} - -func (rcv *LinkLayerOnlineInfoResponse) LinkSpeed() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateLinkSpeed(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func (rcv *LinkLayerOnlineInfoResponse) LinkMode() LinkMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return LinkMode(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateLinkMode(n LinkMode) bool { - return rcv._tab.MutateUint32Slot(18, uint32(n)) -} - -func (rcv *LinkLayerOnlineInfoResponse) LinkStatus() LinkStatus { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return LinkStatus(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateLinkStatus(n LinkStatus) bool { - return rcv._tab.MutateUint32Slot(20, uint32(n)) -} - -func (rcv *LinkLayerOnlineInfoResponse) RefClockWidth() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateRefClockWidth(n uint32) bool { - return rcv._tab.MutateUint32Slot(22, n) -} - -func (rcv *LinkLayerOnlineInfoResponse) SystemTime() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateSystemTime(n uint64) bool { - return rcv._tab.MutateUint64Slot(24, n) -} - -func (rcv *LinkLayerOnlineInfoResponse) PhysicalErrorCnt() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MutatePhysicalErrorCnt(n uint32) bool { - return rcv._tab.MutateUint32Slot(26, n) -} - -func (rcv *LinkLayerOnlineInfoResponse) TelegramErrorCnt() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *LinkLayerOnlineInfoResponse) MutateTelegramErrorCnt(n uint32) bool { - return rcv._tab.MutateUint32Slot(28, n) -} - -func LinkLayerOnlineInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(13) -} -func LinkLayerOnlineInfoResponseAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(port), 0) -} -func LinkLayerOnlineInfoResponseAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(linkLayer), 0) -} -func LinkLayerOnlineInfoResponseAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) -} -func LinkLayerOnlineInfoResponseAddMessage(builder *flatbuffers.Builder, message flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(message), 0) -} -func LinkLayerOnlineInfoResponseAddMacAddress(builder *flatbuffers.Builder, macAddress flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(macAddress), 0) -} -func LinkLayerOnlineInfoResponseStartMacAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func LinkLayerOnlineInfoResponseAddFrameRepeatCntSupport(builder *flatbuffers.Builder, frameRepeatCntSupport bool) { - builder.PrependBoolSlot(5, frameRepeatCntSupport, false) -} -func LinkLayerOnlineInfoResponseAddLinkSpeed(builder *flatbuffers.Builder, linkSpeed uint32) { - builder.PrependUint32Slot(6, linkSpeed, 0) -} -func LinkLayerOnlineInfoResponseAddLinkMode(builder *flatbuffers.Builder, linkMode LinkMode) { - builder.PrependUint32Slot(7, uint32(linkMode), 0) -} -func LinkLayerOnlineInfoResponseAddLinkStatus(builder *flatbuffers.Builder, linkStatus LinkStatus) { - builder.PrependUint32Slot(8, uint32(linkStatus), 0) -} -func LinkLayerOnlineInfoResponseAddRefClockWidth(builder *flatbuffers.Builder, refClockWidth uint32) { - builder.PrependUint32Slot(9, refClockWidth, 0) -} -func LinkLayerOnlineInfoResponseAddSystemTime(builder *flatbuffers.Builder, systemTime uint64) { - builder.PrependUint64Slot(10, systemTime, 0) -} -func LinkLayerOnlineInfoResponseAddPhysicalErrorCnt(builder *flatbuffers.Builder, physicalErrorCnt uint32) { - builder.PrependUint32Slot(11, physicalErrorCnt, 0) -} -func LinkLayerOnlineInfoResponseAddTelegramErrorCnt(builder *flatbuffers.Builder, telegramErrorCnt uint32) { - builder.PrependUint32Slot(12, telegramErrorCnt, 0) -} -func LinkLayerOnlineInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LinkLayerOnlineInfoResponseT struct { + Port string + LinkLayer string + Arguments string + Message string + MacAddress []byte + FrameRepeatCntSupport bool + LinkSpeed uint32 + LinkMode LinkMode + LinkStatus LinkStatus + RefClockWidth uint32 + SystemTime uint64 + PhysicalErrorCnt uint32 + TelegramErrorCnt uint32 +} + +func (t *LinkLayerOnlineInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + portOffset := builder.CreateString(t.Port) + linkLayerOffset := builder.CreateString(t.LinkLayer) + argumentsOffset := builder.CreateString(t.Arguments) + messageOffset := builder.CreateString(t.Message) + macAddressOffset := flatbuffers.UOffsetT(0) + if t.MacAddress != nil { + macAddressOffset = builder.CreateByteString(t.MacAddress) + } + LinkLayerOnlineInfoResponseStart(builder) + LinkLayerOnlineInfoResponseAddPort(builder, portOffset) + LinkLayerOnlineInfoResponseAddLinkLayer(builder, linkLayerOffset) + LinkLayerOnlineInfoResponseAddArguments(builder, argumentsOffset) + LinkLayerOnlineInfoResponseAddMessage(builder, messageOffset) + LinkLayerOnlineInfoResponseAddMacAddress(builder, macAddressOffset) + LinkLayerOnlineInfoResponseAddFrameRepeatCntSupport(builder, t.FrameRepeatCntSupport) + LinkLayerOnlineInfoResponseAddLinkSpeed(builder, t.LinkSpeed) + LinkLayerOnlineInfoResponseAddLinkMode(builder, t.LinkMode) + LinkLayerOnlineInfoResponseAddLinkStatus(builder, t.LinkStatus) + LinkLayerOnlineInfoResponseAddRefClockWidth(builder, t.RefClockWidth) + LinkLayerOnlineInfoResponseAddSystemTime(builder, t.SystemTime) + LinkLayerOnlineInfoResponseAddPhysicalErrorCnt(builder, t.PhysicalErrorCnt) + LinkLayerOnlineInfoResponseAddTelegramErrorCnt(builder, t.TelegramErrorCnt) + return LinkLayerOnlineInfoResponseEnd(builder) +} + +func (rcv *LinkLayerOnlineInfoResponse) UnPackTo(t *LinkLayerOnlineInfoResponseT) { + t.Port = string(rcv.Port()) + t.LinkLayer = string(rcv.LinkLayer()) + t.Arguments = string(rcv.Arguments()) + t.Message = string(rcv.Message()) + t.MacAddress = rcv.MacAddressBytes() + t.FrameRepeatCntSupport = rcv.FrameRepeatCntSupport() + t.LinkSpeed = rcv.LinkSpeed() + t.LinkMode = rcv.LinkMode() + t.LinkStatus = rcv.LinkStatus() + t.RefClockWidth = rcv.RefClockWidth() + t.SystemTime = rcv.SystemTime() + t.PhysicalErrorCnt = rcv.PhysicalErrorCnt() + t.TelegramErrorCnt = rcv.TelegramErrorCnt() +} + +func (rcv *LinkLayerOnlineInfoResponse) UnPack() *LinkLayerOnlineInfoResponseT { + if rcv == nil { return nil } + t := &LinkLayerOnlineInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type LinkLayerOnlineInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsLinkLayerOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LinkLayerOnlineInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLinkLayerOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *LinkLayerOnlineInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LinkLayerOnlineInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LinkLayerOnlineInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LinkLayerOnlineInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LinkLayerOnlineInfoResponse) Port() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LinkLayerOnlineInfoResponse) LinkLayer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LinkLayerOnlineInfoResponse) Arguments() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LinkLayerOnlineInfoResponse) Message() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LinkLayerOnlineInfoResponse) MacAddress(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MacAddressLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MacAddressBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateMacAddress(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *LinkLayerOnlineInfoResponse) FrameRepeatCntSupport() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateFrameRepeatCntSupport(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func (rcv *LinkLayerOnlineInfoResponse) LinkSpeed() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateLinkSpeed(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +func (rcv *LinkLayerOnlineInfoResponse) LinkMode() LinkMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return LinkMode(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateLinkMode(n LinkMode) bool { + return rcv._tab.MutateUint32Slot(18, uint32(n)) +} + +func (rcv *LinkLayerOnlineInfoResponse) LinkStatus() LinkStatus { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return LinkStatus(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateLinkStatus(n LinkStatus) bool { + return rcv._tab.MutateUint32Slot(20, uint32(n)) +} + +func (rcv *LinkLayerOnlineInfoResponse) RefClockWidth() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateRefClockWidth(n uint32) bool { + return rcv._tab.MutateUint32Slot(22, n) +} + +func (rcv *LinkLayerOnlineInfoResponse) SystemTime() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateSystemTime(n uint64) bool { + return rcv._tab.MutateUint64Slot(24, n) +} + +func (rcv *LinkLayerOnlineInfoResponse) PhysicalErrorCnt() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MutatePhysicalErrorCnt(n uint32) bool { + return rcv._tab.MutateUint32Slot(26, n) +} + +func (rcv *LinkLayerOnlineInfoResponse) TelegramErrorCnt() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *LinkLayerOnlineInfoResponse) MutateTelegramErrorCnt(n uint32) bool { + return rcv._tab.MutateUint32Slot(28, n) +} + +func LinkLayerOnlineInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(13) +} +func LinkLayerOnlineInfoResponseAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(port), 0) +} +func LinkLayerOnlineInfoResponseAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(linkLayer), 0) +} +func LinkLayerOnlineInfoResponseAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) +} +func LinkLayerOnlineInfoResponseAddMessage(builder *flatbuffers.Builder, message flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(message), 0) +} +func LinkLayerOnlineInfoResponseAddMacAddress(builder *flatbuffers.Builder, macAddress flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(macAddress), 0) +} +func LinkLayerOnlineInfoResponseStartMacAddressVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func LinkLayerOnlineInfoResponseAddFrameRepeatCntSupport(builder *flatbuffers.Builder, frameRepeatCntSupport bool) { + builder.PrependBoolSlot(5, frameRepeatCntSupport, false) +} +func LinkLayerOnlineInfoResponseAddLinkSpeed(builder *flatbuffers.Builder, linkSpeed uint32) { + builder.PrependUint32Slot(6, linkSpeed, 0) +} +func LinkLayerOnlineInfoResponseAddLinkMode(builder *flatbuffers.Builder, linkMode LinkMode) { + builder.PrependUint32Slot(7, uint32(linkMode), 0) +} +func LinkLayerOnlineInfoResponseAddLinkStatus(builder *flatbuffers.Builder, linkStatus LinkStatus) { + builder.PrependUint32Slot(8, uint32(linkStatus), 0) +} +func LinkLayerOnlineInfoResponseAddRefClockWidth(builder *flatbuffers.Builder, refClockWidth uint32) { + builder.PrependUint32Slot(9, refClockWidth, 0) +} +func LinkLayerOnlineInfoResponseAddSystemTime(builder *flatbuffers.Builder, systemTime uint64) { + builder.PrependUint64Slot(10, systemTime, 0) +} +func LinkLayerOnlineInfoResponseAddPhysicalErrorCnt(builder *flatbuffers.Builder, physicalErrorCnt uint32) { + builder.PrependUint32Slot(11, physicalErrorCnt, 0) +} +func LinkLayerOnlineInfoResponseAddTelegramErrorCnt(builder *flatbuffers.Builder, telegramErrorCnt uint32) { + builder.PrependUint32Slot(12, telegramErrorCnt, 0) +} +func LinkLayerOnlineInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/LinkMode.go b/pkg/fbs/comm/ethercat/master/fbs/LinkMode.go index b3b7e83..a1df6ca 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/LinkMode.go +++ b/pkg/fbs/comm/ethercat/master/fbs/LinkMode.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type LinkMode uint32 - -const ( - LinkModeundefined LinkMode = 0 - LinkModeinterrupt LinkMode = 1 - LinkModepolling LinkMode = 2 -) - -var EnumNamesLinkMode = map[LinkMode]string{ - LinkModeundefined: "undefined", - LinkModeinterrupt: "interrupt", - LinkModepolling: "polling", -} - -var EnumValuesLinkMode = map[string]LinkMode{ - "undefined": LinkModeundefined, - "interrupt": LinkModeinterrupt, - "polling": LinkModepolling, -} - -func (v LinkMode) String() string { - if s, ok := EnumNamesLinkMode[v]; ok { - return s - } - return "LinkMode(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type LinkMode uint32 + +const ( + LinkModeundefined LinkMode = 0 + LinkModeinterrupt LinkMode = 1 + LinkModepolling LinkMode = 2 +) + +var EnumNamesLinkMode = map[LinkMode]string{ + LinkModeundefined: "undefined", + LinkModeinterrupt: "interrupt", + LinkModepolling: "polling", +} + +var EnumValuesLinkMode = map[string]LinkMode{ + "undefined": LinkModeundefined, + "interrupt": LinkModeinterrupt, + "polling": LinkModepolling, +} + +func (v LinkMode) String() string { + if s, ok := EnumNamesLinkMode[v]; ok { + return s + } + return "LinkMode(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/LinkStatus.go b/pkg/fbs/comm/ethercat/master/fbs/LinkStatus.go index 1719b62..6d364d3 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/LinkStatus.go +++ b/pkg/fbs/comm/ethercat/master/fbs/LinkStatus.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type LinkStatus uint32 - -const ( - LinkStatusundefined LinkStatus = 0 - LinkStatusok LinkStatus = 1 - LinkStatusdisconnected LinkStatus = 2 - LinkStatushalfduplex LinkStatus = 3 -) - -var EnumNamesLinkStatus = map[LinkStatus]string{ - LinkStatusundefined: "undefined", - LinkStatusok: "ok", - LinkStatusdisconnected: "disconnected", - LinkStatushalfduplex: "halfduplex", -} - -var EnumValuesLinkStatus = map[string]LinkStatus{ - "undefined": LinkStatusundefined, - "ok": LinkStatusok, - "disconnected": LinkStatusdisconnected, - "halfduplex": LinkStatushalfduplex, -} - -func (v LinkStatus) String() string { - if s, ok := EnumNamesLinkStatus[v]; ok { - return s - } - return "LinkStatus(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type LinkStatus uint32 + +const ( + LinkStatusundefined LinkStatus = 0 + LinkStatusok LinkStatus = 1 + LinkStatusdisconnected LinkStatus = 2 + LinkStatushalfduplex LinkStatus = 3 +) + +var EnumNamesLinkStatus = map[LinkStatus]string{ + LinkStatusundefined: "undefined", + LinkStatusok: "ok", + LinkStatusdisconnected: "disconnected", + LinkStatushalfduplex: "halfduplex", +} + +var EnumValuesLinkStatus = map[string]LinkStatus{ + "undefined": LinkStatusundefined, + "ok": LinkStatusok, + "disconnected": LinkStatusdisconnected, + "halfduplex": LinkStatushalfduplex, +} + +func (v LinkStatus) String() string { + if s, ok := EnumNamesLinkStatus[v]; ok { + return s + } + return "LinkStatus(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCounters.go b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCounters.go index dddd5ff..45ca52d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCounters.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCounters.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MailboxStatisticCountersT struct { - Response *MailboxStatisticCountersResponseT -} - -func (t *MailboxStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - MailboxStatisticCountersStart(builder) - MailboxStatisticCountersAddResponse(builder, responseOffset) - return MailboxStatisticCountersEnd(builder) -} - -func (rcv *MailboxStatisticCounters) UnPackTo(t *MailboxStatisticCountersT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *MailboxStatisticCounters) UnPack() *MailboxStatisticCountersT { - if rcv == nil { return nil } - t := &MailboxStatisticCountersT{} - rcv.UnPackTo(t) - return t -} - -type MailboxStatisticCounters struct { - _tab flatbuffers.Table -} - -func GetRootAsMailboxStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MailboxStatisticCounters{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMailboxStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MailboxStatisticCounters{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MailboxStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MailboxStatisticCounters) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MailboxStatisticCounters) Response(obj *MailboxStatisticCountersResponse) *MailboxStatisticCountersResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MailboxStatisticCountersResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MailboxStatisticCountersStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MailboxStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func MailboxStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MailboxStatisticCountersT struct { + Response *MailboxStatisticCountersResponseT +} + +func (t *MailboxStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + MailboxStatisticCountersStart(builder) + MailboxStatisticCountersAddResponse(builder, responseOffset) + return MailboxStatisticCountersEnd(builder) +} + +func (rcv *MailboxStatisticCounters) UnPackTo(t *MailboxStatisticCountersT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *MailboxStatisticCounters) UnPack() *MailboxStatisticCountersT { + if rcv == nil { return nil } + t := &MailboxStatisticCountersT{} + rcv.UnPackTo(t) + return t +} + +type MailboxStatisticCounters struct { + _tab flatbuffers.Table +} + +func GetRootAsMailboxStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MailboxStatisticCounters{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMailboxStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MailboxStatisticCounters{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MailboxStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MailboxStatisticCounters) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MailboxStatisticCounters) Response(obj *MailboxStatisticCountersResponse) *MailboxStatisticCountersResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MailboxStatisticCountersResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MailboxStatisticCountersStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MailboxStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func MailboxStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCountersResponse.go b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCountersResponse.go index cad90b1..f02c75f 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCountersResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticCountersResponse.go @@ -1,200 +1,200 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MailboxStatisticCountersResponseT struct { - Aoe *ProtocolStatisticT - Coe *ProtocolStatisticT - Eoe *ProtocolStatisticT - Foe *ProtocolStatisticT - Soe *ProtocolStatisticT - Voe *ProtocolStatisticT - Raw *ProtocolStatisticT -} - -func (t *MailboxStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MailboxStatisticCountersResponseStart(builder) - aoeOffset := t.Aoe.Pack(builder) - MailboxStatisticCountersResponseAddAoe(builder, aoeOffset) - coeOffset := t.Coe.Pack(builder) - MailboxStatisticCountersResponseAddCoe(builder, coeOffset) - eoeOffset := t.Eoe.Pack(builder) - MailboxStatisticCountersResponseAddEoe(builder, eoeOffset) - foeOffset := t.Foe.Pack(builder) - MailboxStatisticCountersResponseAddFoe(builder, foeOffset) - soeOffset := t.Soe.Pack(builder) - MailboxStatisticCountersResponseAddSoe(builder, soeOffset) - voeOffset := t.Voe.Pack(builder) - MailboxStatisticCountersResponseAddVoe(builder, voeOffset) - rawOffset := t.Raw.Pack(builder) - MailboxStatisticCountersResponseAddRaw(builder, rawOffset) - return MailboxStatisticCountersResponseEnd(builder) -} - -func (rcv *MailboxStatisticCountersResponse) UnPackTo(t *MailboxStatisticCountersResponseT) { - t.Aoe = rcv.Aoe(nil).UnPack() - t.Coe = rcv.Coe(nil).UnPack() - t.Eoe = rcv.Eoe(nil).UnPack() - t.Foe = rcv.Foe(nil).UnPack() - t.Soe = rcv.Soe(nil).UnPack() - t.Voe = rcv.Voe(nil).UnPack() - t.Raw = rcv.Raw(nil).UnPack() -} - -func (rcv *MailboxStatisticCountersResponse) UnPack() *MailboxStatisticCountersResponseT { - if rcv == nil { return nil } - t := &MailboxStatisticCountersResponseT{} - rcv.UnPackTo(t) - return t -} - -type MailboxStatisticCountersResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsMailboxStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MailboxStatisticCountersResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMailboxStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MailboxStatisticCountersResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MailboxStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MailboxStatisticCountersResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MailboxStatisticCountersResponse) Aoe(obj *ProtocolStatistic) *ProtocolStatistic { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatistic) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticCountersResponse) Coe(obj *ProtocolStatistic) *ProtocolStatistic { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatistic) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticCountersResponse) Eoe(obj *ProtocolStatistic) *ProtocolStatistic { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatistic) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticCountersResponse) Foe(obj *ProtocolStatistic) *ProtocolStatistic { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatistic) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticCountersResponse) Soe(obj *ProtocolStatistic) *ProtocolStatistic { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatistic) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticCountersResponse) Voe(obj *ProtocolStatistic) *ProtocolStatistic { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatistic) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticCountersResponse) Raw(obj *ProtocolStatistic) *ProtocolStatistic { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatistic) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MailboxStatisticCountersResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func MailboxStatisticCountersResponseAddAoe(builder *flatbuffers.Builder, aoe flatbuffers.UOffsetT) { - builder.PrependStructSlot(0, flatbuffers.UOffsetT(aoe), 0) -} -func MailboxStatisticCountersResponseAddCoe(builder *flatbuffers.Builder, coe flatbuffers.UOffsetT) { - builder.PrependStructSlot(1, flatbuffers.UOffsetT(coe), 0) -} -func MailboxStatisticCountersResponseAddEoe(builder *flatbuffers.Builder, eoe flatbuffers.UOffsetT) { - builder.PrependStructSlot(2, flatbuffers.UOffsetT(eoe), 0) -} -func MailboxStatisticCountersResponseAddFoe(builder *flatbuffers.Builder, foe flatbuffers.UOffsetT) { - builder.PrependStructSlot(3, flatbuffers.UOffsetT(foe), 0) -} -func MailboxStatisticCountersResponseAddSoe(builder *flatbuffers.Builder, soe flatbuffers.UOffsetT) { - builder.PrependStructSlot(4, flatbuffers.UOffsetT(soe), 0) -} -func MailboxStatisticCountersResponseAddVoe(builder *flatbuffers.Builder, voe flatbuffers.UOffsetT) { - builder.PrependStructSlot(5, flatbuffers.UOffsetT(voe), 0) -} -func MailboxStatisticCountersResponseAddRaw(builder *flatbuffers.Builder, raw flatbuffers.UOffsetT) { - builder.PrependStructSlot(6, flatbuffers.UOffsetT(raw), 0) -} -func MailboxStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MailboxStatisticCountersResponseT struct { + Aoe *ProtocolStatisticT + Coe *ProtocolStatisticT + Eoe *ProtocolStatisticT + Foe *ProtocolStatisticT + Soe *ProtocolStatisticT + Voe *ProtocolStatisticT + Raw *ProtocolStatisticT +} + +func (t *MailboxStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MailboxStatisticCountersResponseStart(builder) + aoeOffset := t.Aoe.Pack(builder) + MailboxStatisticCountersResponseAddAoe(builder, aoeOffset) + coeOffset := t.Coe.Pack(builder) + MailboxStatisticCountersResponseAddCoe(builder, coeOffset) + eoeOffset := t.Eoe.Pack(builder) + MailboxStatisticCountersResponseAddEoe(builder, eoeOffset) + foeOffset := t.Foe.Pack(builder) + MailboxStatisticCountersResponseAddFoe(builder, foeOffset) + soeOffset := t.Soe.Pack(builder) + MailboxStatisticCountersResponseAddSoe(builder, soeOffset) + voeOffset := t.Voe.Pack(builder) + MailboxStatisticCountersResponseAddVoe(builder, voeOffset) + rawOffset := t.Raw.Pack(builder) + MailboxStatisticCountersResponseAddRaw(builder, rawOffset) + return MailboxStatisticCountersResponseEnd(builder) +} + +func (rcv *MailboxStatisticCountersResponse) UnPackTo(t *MailboxStatisticCountersResponseT) { + t.Aoe = rcv.Aoe(nil).UnPack() + t.Coe = rcv.Coe(nil).UnPack() + t.Eoe = rcv.Eoe(nil).UnPack() + t.Foe = rcv.Foe(nil).UnPack() + t.Soe = rcv.Soe(nil).UnPack() + t.Voe = rcv.Voe(nil).UnPack() + t.Raw = rcv.Raw(nil).UnPack() +} + +func (rcv *MailboxStatisticCountersResponse) UnPack() *MailboxStatisticCountersResponseT { + if rcv == nil { return nil } + t := &MailboxStatisticCountersResponseT{} + rcv.UnPackTo(t) + return t +} + +type MailboxStatisticCountersResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsMailboxStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MailboxStatisticCountersResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMailboxStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MailboxStatisticCountersResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MailboxStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MailboxStatisticCountersResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MailboxStatisticCountersResponse) Aoe(obj *ProtocolStatistic) *ProtocolStatistic { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatistic) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticCountersResponse) Coe(obj *ProtocolStatistic) *ProtocolStatistic { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatistic) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticCountersResponse) Eoe(obj *ProtocolStatistic) *ProtocolStatistic { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatistic) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticCountersResponse) Foe(obj *ProtocolStatistic) *ProtocolStatistic { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatistic) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticCountersResponse) Soe(obj *ProtocolStatistic) *ProtocolStatistic { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatistic) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticCountersResponse) Voe(obj *ProtocolStatistic) *ProtocolStatistic { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatistic) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticCountersResponse) Raw(obj *ProtocolStatistic) *ProtocolStatistic { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatistic) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MailboxStatisticCountersResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func MailboxStatisticCountersResponseAddAoe(builder *flatbuffers.Builder, aoe flatbuffers.UOffsetT) { + builder.PrependStructSlot(0, flatbuffers.UOffsetT(aoe), 0) +} +func MailboxStatisticCountersResponseAddCoe(builder *flatbuffers.Builder, coe flatbuffers.UOffsetT) { + builder.PrependStructSlot(1, flatbuffers.UOffsetT(coe), 0) +} +func MailboxStatisticCountersResponseAddEoe(builder *flatbuffers.Builder, eoe flatbuffers.UOffsetT) { + builder.PrependStructSlot(2, flatbuffers.UOffsetT(eoe), 0) +} +func MailboxStatisticCountersResponseAddFoe(builder *flatbuffers.Builder, foe flatbuffers.UOffsetT) { + builder.PrependStructSlot(3, flatbuffers.UOffsetT(foe), 0) +} +func MailboxStatisticCountersResponseAddSoe(builder *flatbuffers.Builder, soe flatbuffers.UOffsetT) { + builder.PrependStructSlot(4, flatbuffers.UOffsetT(soe), 0) +} +func MailboxStatisticCountersResponseAddVoe(builder *flatbuffers.Builder, voe flatbuffers.UOffsetT) { + builder.PrependStructSlot(5, flatbuffers.UOffsetT(voe), 0) +} +func MailboxStatisticCountersResponseAddRaw(builder *flatbuffers.Builder, raw flatbuffers.UOffsetT) { + builder.PrependStructSlot(6, flatbuffers.UOffsetT(raw), 0) +} +func MailboxStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticReset.go b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticReset.go index 51e8835..503af5c 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticReset.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticReset.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MailboxStatisticResetT struct { - Request *MailboxStatisticResetRequestT - Response *MailboxStatisticResetResponseT -} - -func (t *MailboxStatisticResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - MailboxStatisticResetStart(builder) - MailboxStatisticResetAddRequest(builder, requestOffset) - MailboxStatisticResetAddResponse(builder, responseOffset) - return MailboxStatisticResetEnd(builder) -} - -func (rcv *MailboxStatisticReset) UnPackTo(t *MailboxStatisticResetT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *MailboxStatisticReset) UnPack() *MailboxStatisticResetT { - if rcv == nil { return nil } - t := &MailboxStatisticResetT{} - rcv.UnPackTo(t) - return t -} - -type MailboxStatisticReset struct { - _tab flatbuffers.Table -} - -func GetRootAsMailboxStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticReset { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MailboxStatisticReset{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMailboxStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticReset { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MailboxStatisticReset{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MailboxStatisticReset) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MailboxStatisticReset) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MailboxStatisticReset) Request(obj *MailboxStatisticResetRequest) *MailboxStatisticResetRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MailboxStatisticResetRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticReset) Response(obj *MailboxStatisticResetResponse) *MailboxStatisticResetResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MailboxStatisticResetResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MailboxStatisticResetStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func MailboxStatisticResetAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func MailboxStatisticResetAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func MailboxStatisticResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MailboxStatisticResetT struct { + Request *MailboxStatisticResetRequestT + Response *MailboxStatisticResetResponseT +} + +func (t *MailboxStatisticResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + MailboxStatisticResetStart(builder) + MailboxStatisticResetAddRequest(builder, requestOffset) + MailboxStatisticResetAddResponse(builder, responseOffset) + return MailboxStatisticResetEnd(builder) +} + +func (rcv *MailboxStatisticReset) UnPackTo(t *MailboxStatisticResetT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *MailboxStatisticReset) UnPack() *MailboxStatisticResetT { + if rcv == nil { return nil } + t := &MailboxStatisticResetT{} + rcv.UnPackTo(t) + return t +} + +type MailboxStatisticReset struct { + _tab flatbuffers.Table +} + +func GetRootAsMailboxStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticReset { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MailboxStatisticReset{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMailboxStatisticReset(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticReset { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MailboxStatisticReset{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MailboxStatisticReset) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MailboxStatisticReset) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MailboxStatisticReset) Request(obj *MailboxStatisticResetRequest) *MailboxStatisticResetRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MailboxStatisticResetRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticReset) Response(obj *MailboxStatisticResetResponse) *MailboxStatisticResetResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MailboxStatisticResetResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MailboxStatisticResetStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func MailboxStatisticResetAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func MailboxStatisticResetAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func MailboxStatisticResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetRequest.go b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetRequest.go index 9b82616..3928ec0 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetRequest.go @@ -1,200 +1,200 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MailboxStatisticResetRequestT struct { - Aoe *ProtocolStatisticResetT - Coe *ProtocolStatisticResetT - Foe *ProtocolStatisticResetT - Eoe *ProtocolStatisticResetT - Soe *ProtocolStatisticResetT - Voe *ProtocolStatisticResetT - Raw *ProtocolStatisticResetT -} - -func (t *MailboxStatisticResetRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MailboxStatisticResetRequestStart(builder) - aoeOffset := t.Aoe.Pack(builder) - MailboxStatisticResetRequestAddAoe(builder, aoeOffset) - coeOffset := t.Coe.Pack(builder) - MailboxStatisticResetRequestAddCoe(builder, coeOffset) - foeOffset := t.Foe.Pack(builder) - MailboxStatisticResetRequestAddFoe(builder, foeOffset) - eoeOffset := t.Eoe.Pack(builder) - MailboxStatisticResetRequestAddEoe(builder, eoeOffset) - soeOffset := t.Soe.Pack(builder) - MailboxStatisticResetRequestAddSoe(builder, soeOffset) - voeOffset := t.Voe.Pack(builder) - MailboxStatisticResetRequestAddVoe(builder, voeOffset) - rawOffset := t.Raw.Pack(builder) - MailboxStatisticResetRequestAddRaw(builder, rawOffset) - return MailboxStatisticResetRequestEnd(builder) -} - -func (rcv *MailboxStatisticResetRequest) UnPackTo(t *MailboxStatisticResetRequestT) { - t.Aoe = rcv.Aoe(nil).UnPack() - t.Coe = rcv.Coe(nil).UnPack() - t.Foe = rcv.Foe(nil).UnPack() - t.Eoe = rcv.Eoe(nil).UnPack() - t.Soe = rcv.Soe(nil).UnPack() - t.Voe = rcv.Voe(nil).UnPack() - t.Raw = rcv.Raw(nil).UnPack() -} - -func (rcv *MailboxStatisticResetRequest) UnPack() *MailboxStatisticResetRequestT { - if rcv == nil { return nil } - t := &MailboxStatisticResetRequestT{} - rcv.UnPackTo(t) - return t -} - -type MailboxStatisticResetRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsMailboxStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MailboxStatisticResetRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMailboxStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MailboxStatisticResetRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MailboxStatisticResetRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MailboxStatisticResetRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MailboxStatisticResetRequest) Aoe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatisticReset) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticResetRequest) Coe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatisticReset) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticResetRequest) Foe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatisticReset) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticResetRequest) Eoe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatisticReset) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticResetRequest) Soe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatisticReset) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticResetRequest) Voe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatisticReset) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MailboxStatisticResetRequest) Raw(obj *ProtocolStatisticReset) *ProtocolStatisticReset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(ProtocolStatisticReset) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MailboxStatisticResetRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func MailboxStatisticResetRequestAddAoe(builder *flatbuffers.Builder, aoe flatbuffers.UOffsetT) { - builder.PrependStructSlot(0, flatbuffers.UOffsetT(aoe), 0) -} -func MailboxStatisticResetRequestAddCoe(builder *flatbuffers.Builder, coe flatbuffers.UOffsetT) { - builder.PrependStructSlot(1, flatbuffers.UOffsetT(coe), 0) -} -func MailboxStatisticResetRequestAddFoe(builder *flatbuffers.Builder, foe flatbuffers.UOffsetT) { - builder.PrependStructSlot(2, flatbuffers.UOffsetT(foe), 0) -} -func MailboxStatisticResetRequestAddEoe(builder *flatbuffers.Builder, eoe flatbuffers.UOffsetT) { - builder.PrependStructSlot(3, flatbuffers.UOffsetT(eoe), 0) -} -func MailboxStatisticResetRequestAddSoe(builder *flatbuffers.Builder, soe flatbuffers.UOffsetT) { - builder.PrependStructSlot(4, flatbuffers.UOffsetT(soe), 0) -} -func MailboxStatisticResetRequestAddVoe(builder *flatbuffers.Builder, voe flatbuffers.UOffsetT) { - builder.PrependStructSlot(5, flatbuffers.UOffsetT(voe), 0) -} -func MailboxStatisticResetRequestAddRaw(builder *flatbuffers.Builder, raw flatbuffers.UOffsetT) { - builder.PrependStructSlot(6, flatbuffers.UOffsetT(raw), 0) -} -func MailboxStatisticResetRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MailboxStatisticResetRequestT struct { + Aoe *ProtocolStatisticResetT + Coe *ProtocolStatisticResetT + Foe *ProtocolStatisticResetT + Eoe *ProtocolStatisticResetT + Soe *ProtocolStatisticResetT + Voe *ProtocolStatisticResetT + Raw *ProtocolStatisticResetT +} + +func (t *MailboxStatisticResetRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MailboxStatisticResetRequestStart(builder) + aoeOffset := t.Aoe.Pack(builder) + MailboxStatisticResetRequestAddAoe(builder, aoeOffset) + coeOffset := t.Coe.Pack(builder) + MailboxStatisticResetRequestAddCoe(builder, coeOffset) + foeOffset := t.Foe.Pack(builder) + MailboxStatisticResetRequestAddFoe(builder, foeOffset) + eoeOffset := t.Eoe.Pack(builder) + MailboxStatisticResetRequestAddEoe(builder, eoeOffset) + soeOffset := t.Soe.Pack(builder) + MailboxStatisticResetRequestAddSoe(builder, soeOffset) + voeOffset := t.Voe.Pack(builder) + MailboxStatisticResetRequestAddVoe(builder, voeOffset) + rawOffset := t.Raw.Pack(builder) + MailboxStatisticResetRequestAddRaw(builder, rawOffset) + return MailboxStatisticResetRequestEnd(builder) +} + +func (rcv *MailboxStatisticResetRequest) UnPackTo(t *MailboxStatisticResetRequestT) { + t.Aoe = rcv.Aoe(nil).UnPack() + t.Coe = rcv.Coe(nil).UnPack() + t.Foe = rcv.Foe(nil).UnPack() + t.Eoe = rcv.Eoe(nil).UnPack() + t.Soe = rcv.Soe(nil).UnPack() + t.Voe = rcv.Voe(nil).UnPack() + t.Raw = rcv.Raw(nil).UnPack() +} + +func (rcv *MailboxStatisticResetRequest) UnPack() *MailboxStatisticResetRequestT { + if rcv == nil { return nil } + t := &MailboxStatisticResetRequestT{} + rcv.UnPackTo(t) + return t +} + +type MailboxStatisticResetRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsMailboxStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MailboxStatisticResetRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMailboxStatisticResetRequest(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MailboxStatisticResetRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MailboxStatisticResetRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MailboxStatisticResetRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MailboxStatisticResetRequest) Aoe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatisticReset) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticResetRequest) Coe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatisticReset) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticResetRequest) Foe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatisticReset) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticResetRequest) Eoe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatisticReset) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticResetRequest) Soe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatisticReset) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticResetRequest) Voe(obj *ProtocolStatisticReset) *ProtocolStatisticReset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatisticReset) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MailboxStatisticResetRequest) Raw(obj *ProtocolStatisticReset) *ProtocolStatisticReset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(ProtocolStatisticReset) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MailboxStatisticResetRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func MailboxStatisticResetRequestAddAoe(builder *flatbuffers.Builder, aoe flatbuffers.UOffsetT) { + builder.PrependStructSlot(0, flatbuffers.UOffsetT(aoe), 0) +} +func MailboxStatisticResetRequestAddCoe(builder *flatbuffers.Builder, coe flatbuffers.UOffsetT) { + builder.PrependStructSlot(1, flatbuffers.UOffsetT(coe), 0) +} +func MailboxStatisticResetRequestAddFoe(builder *flatbuffers.Builder, foe flatbuffers.UOffsetT) { + builder.PrependStructSlot(2, flatbuffers.UOffsetT(foe), 0) +} +func MailboxStatisticResetRequestAddEoe(builder *flatbuffers.Builder, eoe flatbuffers.UOffsetT) { + builder.PrependStructSlot(3, flatbuffers.UOffsetT(eoe), 0) +} +func MailboxStatisticResetRequestAddSoe(builder *flatbuffers.Builder, soe flatbuffers.UOffsetT) { + builder.PrependStructSlot(4, flatbuffers.UOffsetT(soe), 0) +} +func MailboxStatisticResetRequestAddVoe(builder *flatbuffers.Builder, voe flatbuffers.UOffsetT) { + builder.PrependStructSlot(5, flatbuffers.UOffsetT(voe), 0) +} +func MailboxStatisticResetRequestAddRaw(builder *flatbuffers.Builder, raw flatbuffers.UOffsetT) { + builder.PrependStructSlot(6, flatbuffers.UOffsetT(raw), 0) +} +func MailboxStatisticResetRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetResponse.go b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetResponse.go index 7bdefa8..9d0afb5 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MailboxStatisticResetResponse.go @@ -1,60 +1,60 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MailboxStatisticResetResponseT struct { -} - -func (t *MailboxStatisticResetResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MailboxStatisticResetResponseStart(builder) - return MailboxStatisticResetResponseEnd(builder) -} - -func (rcv *MailboxStatisticResetResponse) UnPackTo(t *MailboxStatisticResetResponseT) { -} - -func (rcv *MailboxStatisticResetResponse) UnPack() *MailboxStatisticResetResponseT { - if rcv == nil { return nil } - t := &MailboxStatisticResetResponseT{} - rcv.UnPackTo(t) - return t -} - -type MailboxStatisticResetResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsMailboxStatisticResetResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MailboxStatisticResetResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMailboxStatisticResetResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MailboxStatisticResetResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MailboxStatisticResetResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MailboxStatisticResetResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func MailboxStatisticResetResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(0) -} -func MailboxStatisticResetResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MailboxStatisticResetResponseT struct { +} + +func (t *MailboxStatisticResetResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MailboxStatisticResetResponseStart(builder) + return MailboxStatisticResetResponseEnd(builder) +} + +func (rcv *MailboxStatisticResetResponse) UnPackTo(t *MailboxStatisticResetResponseT) { +} + +func (rcv *MailboxStatisticResetResponse) UnPack() *MailboxStatisticResetResponseT { + if rcv == nil { return nil } + t := &MailboxStatisticResetResponseT{} + rcv.UnPackTo(t) + return t +} + +type MailboxStatisticResetResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsMailboxStatisticResetResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MailboxStatisticResetResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMailboxStatisticResetResponse(buf []byte, offset flatbuffers.UOffsetT) *MailboxStatisticResetResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MailboxStatisticResetResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MailboxStatisticResetResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MailboxStatisticResetResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func MailboxStatisticResetResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(0) +} +func MailboxStatisticResetResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MasterInfo.go b/pkg/fbs/comm/ethercat/master/fbs/MasterInfo.go index 07bd8b3..4f35223 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MasterInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MasterInfo.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MasterInfoT struct { - Response *MasterInfoResponseT -} - -func (t *MasterInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - MasterInfoStart(builder) - MasterInfoAddResponse(builder, responseOffset) - return MasterInfoEnd(builder) -} - -func (rcv *MasterInfo) UnPackTo(t *MasterInfoT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *MasterInfo) UnPack() *MasterInfoT { - if rcv == nil { return nil } - t := &MasterInfoT{} - rcv.UnPackTo(t) - return t -} - -type MasterInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsMasterInfo(buf []byte, offset flatbuffers.UOffsetT) *MasterInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MasterInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMasterInfo(buf []byte, offset flatbuffers.UOffsetT) *MasterInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MasterInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MasterInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MasterInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MasterInfo) Response(obj *MasterInfoResponse) *MasterInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MasterInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MasterInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MasterInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func MasterInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MasterInfoT struct { + Response *MasterInfoResponseT +} + +func (t *MasterInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + MasterInfoStart(builder) + MasterInfoAddResponse(builder, responseOffset) + return MasterInfoEnd(builder) +} + +func (rcv *MasterInfo) UnPackTo(t *MasterInfoT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *MasterInfo) UnPack() *MasterInfoT { + if rcv == nil { return nil } + t := &MasterInfoT{} + rcv.UnPackTo(t) + return t +} + +type MasterInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsMasterInfo(buf []byte, offset flatbuffers.UOffsetT) *MasterInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MasterInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMasterInfo(buf []byte, offset flatbuffers.UOffsetT) *MasterInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MasterInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MasterInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MasterInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MasterInfo) Response(obj *MasterInfoResponse) *MasterInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MasterInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MasterInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MasterInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func MasterInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MasterInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/MasterInfoResponse.go index 5e9e744..b48c7c9 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MasterInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MasterInfoResponse.go @@ -1,254 +1,254 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - common__scheduler__fbs2 "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs2" -) - -type MasterInfoResponseT struct { - MasterState *MasterStateResponseT - MasterStatus uint32 - Checksums []*ChecksumElementT - TopologyStatus *TopologyStatusResponseT - SystemTime uint64 - TaskInfos []*taskInfoT - ComponentState *common__scheduler__fbs2.StateT -} - -func (t *MasterInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - masterStateOffset := t.MasterState.Pack(builder) - checksumsOffset := flatbuffers.UOffsetT(0) - if t.Checksums != nil { - checksumsLength := len(t.Checksums) - checksumsOffsets := make([]flatbuffers.UOffsetT, checksumsLength) - for j := 0; j < checksumsLength; j++ { - checksumsOffsets[j] = t.Checksums[j].Pack(builder) - } - MasterInfoResponseStartChecksumsVector(builder, checksumsLength) - for j := checksumsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(checksumsOffsets[j]) - } - checksumsOffset = builder.EndVector(checksumsLength) - } - topologyStatusOffset := t.TopologyStatus.Pack(builder) - taskInfosOffset := flatbuffers.UOffsetT(0) - if t.TaskInfos != nil { - taskInfosLength := len(t.TaskInfos) - taskInfosOffsets := make([]flatbuffers.UOffsetT, taskInfosLength) - for j := 0; j < taskInfosLength; j++ { - taskInfosOffsets[j] = t.TaskInfos[j].Pack(builder) - } - MasterInfoResponseStartTaskInfosVector(builder, taskInfosLength) - for j := taskInfosLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(taskInfosOffsets[j]) - } - taskInfosOffset = builder.EndVector(taskInfosLength) - } - componentStateOffset := t.ComponentState.Pack(builder) - MasterInfoResponseStart(builder) - MasterInfoResponseAddMasterState(builder, masterStateOffset) - MasterInfoResponseAddMasterStatus(builder, t.MasterStatus) - MasterInfoResponseAddChecksums(builder, checksumsOffset) - MasterInfoResponseAddTopologyStatus(builder, topologyStatusOffset) - MasterInfoResponseAddSystemTime(builder, t.SystemTime) - MasterInfoResponseAddTaskInfos(builder, taskInfosOffset) - MasterInfoResponseAddComponentState(builder, componentStateOffset) - return MasterInfoResponseEnd(builder) -} - -func (rcv *MasterInfoResponse) UnPackTo(t *MasterInfoResponseT) { - t.MasterState = rcv.MasterState(nil).UnPack() - t.MasterStatus = rcv.MasterStatus() - checksumsLength := rcv.ChecksumsLength() - t.Checksums = make([]*ChecksumElementT, checksumsLength) - for j := 0; j < checksumsLength; j++ { - x := ChecksumElement{} - rcv.Checksums(&x, j) - t.Checksums[j] = x.UnPack() - } - t.TopologyStatus = rcv.TopologyStatus(nil).UnPack() - t.SystemTime = rcv.SystemTime() - taskInfosLength := rcv.TaskInfosLength() - t.TaskInfos = make([]*taskInfoT, taskInfosLength) - for j := 0; j < taskInfosLength; j++ { - x := taskInfo{} - rcv.TaskInfos(&x, j) - t.TaskInfos[j] = x.UnPack() - } - t.ComponentState = rcv.ComponentState(nil).UnPack() -} - -func (rcv *MasterInfoResponse) UnPack() *MasterInfoResponseT { - if rcv == nil { return nil } - t := &MasterInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type MasterInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsMasterInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MasterInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMasterInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MasterInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MasterInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MasterInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MasterInfoResponse) MasterState(obj *MasterStateResponse) *MasterStateResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MasterStateResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MasterInfoResponse) MasterStatus() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *MasterInfoResponse) MutateMasterStatus(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *MasterInfoResponse) Checksums(obj *ChecksumElement, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *MasterInfoResponse) ChecksumsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *MasterInfoResponse) TopologyStatus(obj *TopologyStatusResponse) *TopologyStatusResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(TopologyStatusResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MasterInfoResponse) SystemTime() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *MasterInfoResponse) MutateSystemTime(n uint64) bool { - return rcv._tab.MutateUint64Slot(12, n) -} - -func (rcv *MasterInfoResponse) TaskInfos(obj *taskInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *MasterInfoResponse) TaskInfosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *MasterInfoResponse) ComponentState(obj *common__scheduler__fbs2.State) *common__scheduler__fbs2.State { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(common__scheduler__fbs2.State) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MasterInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func MasterInfoResponseAddMasterState(builder *flatbuffers.Builder, masterState flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(masterState), 0) -} -func MasterInfoResponseAddMasterStatus(builder *flatbuffers.Builder, masterStatus uint32) { - builder.PrependUint32Slot(1, masterStatus, 0) -} -func MasterInfoResponseAddChecksums(builder *flatbuffers.Builder, checksums flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(checksums), 0) -} -func MasterInfoResponseStartChecksumsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MasterInfoResponseAddTopologyStatus(builder *flatbuffers.Builder, topologyStatus flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(topologyStatus), 0) -} -func MasterInfoResponseAddSystemTime(builder *flatbuffers.Builder, systemTime uint64) { - builder.PrependUint64Slot(4, systemTime, 0) -} -func MasterInfoResponseAddTaskInfos(builder *flatbuffers.Builder, taskInfos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(taskInfos), 0) -} -func MasterInfoResponseStartTaskInfosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MasterInfoResponseAddComponentState(builder *flatbuffers.Builder, componentState flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(componentState), 0) -} -func MasterInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + common__scheduler__fbs2 "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs2" +) + +type MasterInfoResponseT struct { + MasterState *MasterStateResponseT + MasterStatus uint32 + Checksums []*ChecksumElementT + TopologyStatus *TopologyStatusResponseT + SystemTime uint64 + TaskInfos []*taskInfoT + ComponentState *common__scheduler__fbs2.StateT +} + +func (t *MasterInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterStateOffset := t.MasterState.Pack(builder) + checksumsOffset := flatbuffers.UOffsetT(0) + if t.Checksums != nil { + checksumsLength := len(t.Checksums) + checksumsOffsets := make([]flatbuffers.UOffsetT, checksumsLength) + for j := 0; j < checksumsLength; j++ { + checksumsOffsets[j] = t.Checksums[j].Pack(builder) + } + MasterInfoResponseStartChecksumsVector(builder, checksumsLength) + for j := checksumsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(checksumsOffsets[j]) + } + checksumsOffset = builder.EndVector(checksumsLength) + } + topologyStatusOffset := t.TopologyStatus.Pack(builder) + taskInfosOffset := flatbuffers.UOffsetT(0) + if t.TaskInfos != nil { + taskInfosLength := len(t.TaskInfos) + taskInfosOffsets := make([]flatbuffers.UOffsetT, taskInfosLength) + for j := 0; j < taskInfosLength; j++ { + taskInfosOffsets[j] = t.TaskInfos[j].Pack(builder) + } + MasterInfoResponseStartTaskInfosVector(builder, taskInfosLength) + for j := taskInfosLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(taskInfosOffsets[j]) + } + taskInfosOffset = builder.EndVector(taskInfosLength) + } + componentStateOffset := t.ComponentState.Pack(builder) + MasterInfoResponseStart(builder) + MasterInfoResponseAddMasterState(builder, masterStateOffset) + MasterInfoResponseAddMasterStatus(builder, t.MasterStatus) + MasterInfoResponseAddChecksums(builder, checksumsOffset) + MasterInfoResponseAddTopologyStatus(builder, topologyStatusOffset) + MasterInfoResponseAddSystemTime(builder, t.SystemTime) + MasterInfoResponseAddTaskInfos(builder, taskInfosOffset) + MasterInfoResponseAddComponentState(builder, componentStateOffset) + return MasterInfoResponseEnd(builder) +} + +func (rcv *MasterInfoResponse) UnPackTo(t *MasterInfoResponseT) { + t.MasterState = rcv.MasterState(nil).UnPack() + t.MasterStatus = rcv.MasterStatus() + checksumsLength := rcv.ChecksumsLength() + t.Checksums = make([]*ChecksumElementT, checksumsLength) + for j := 0; j < checksumsLength; j++ { + x := ChecksumElement{} + rcv.Checksums(&x, j) + t.Checksums[j] = x.UnPack() + } + t.TopologyStatus = rcv.TopologyStatus(nil).UnPack() + t.SystemTime = rcv.SystemTime() + taskInfosLength := rcv.TaskInfosLength() + t.TaskInfos = make([]*taskInfoT, taskInfosLength) + for j := 0; j < taskInfosLength; j++ { + x := taskInfo{} + rcv.TaskInfos(&x, j) + t.TaskInfos[j] = x.UnPack() + } + t.ComponentState = rcv.ComponentState(nil).UnPack() +} + +func (rcv *MasterInfoResponse) UnPack() *MasterInfoResponseT { + if rcv == nil { return nil } + t := &MasterInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type MasterInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsMasterInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MasterInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMasterInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MasterInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MasterInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MasterInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MasterInfoResponse) MasterState(obj *MasterStateResponse) *MasterStateResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MasterStateResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MasterInfoResponse) MasterStatus() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *MasterInfoResponse) MutateMasterStatus(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *MasterInfoResponse) Checksums(obj *ChecksumElement, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *MasterInfoResponse) ChecksumsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *MasterInfoResponse) TopologyStatus(obj *TopologyStatusResponse) *TopologyStatusResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(TopologyStatusResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MasterInfoResponse) SystemTime() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *MasterInfoResponse) MutateSystemTime(n uint64) bool { + return rcv._tab.MutateUint64Slot(12, n) +} + +func (rcv *MasterInfoResponse) TaskInfos(obj *taskInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *MasterInfoResponse) TaskInfosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *MasterInfoResponse) ComponentState(obj *common__scheduler__fbs2.State) *common__scheduler__fbs2.State { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(common__scheduler__fbs2.State) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MasterInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func MasterInfoResponseAddMasterState(builder *flatbuffers.Builder, masterState flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(masterState), 0) +} +func MasterInfoResponseAddMasterStatus(builder *flatbuffers.Builder, masterStatus uint32) { + builder.PrependUint32Slot(1, masterStatus, 0) +} +func MasterInfoResponseAddChecksums(builder *flatbuffers.Builder, checksums flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(checksums), 0) +} +func MasterInfoResponseStartChecksumsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MasterInfoResponseAddTopologyStatus(builder *flatbuffers.Builder, topologyStatus flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(topologyStatus), 0) +} +func MasterInfoResponseAddSystemTime(builder *flatbuffers.Builder, systemTime uint64) { + builder.PrependUint64Slot(4, systemTime, 0) +} +func MasterInfoResponseAddTaskInfos(builder *flatbuffers.Builder, taskInfos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(taskInfos), 0) +} +func MasterInfoResponseStartTaskInfosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MasterInfoResponseAddComponentState(builder *flatbuffers.Builder, componentState flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(componentState), 0) +} +func MasterInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MasterState.go b/pkg/fbs/comm/ethercat/master/fbs/MasterState.go index a93dc1e..9a52182 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MasterState.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MasterState.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MasterStateT struct { - Request *MasterStateRequestT - Response *MasterStateResponseT -} - -func (t *MasterStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - MasterStateStart(builder) - MasterStateAddRequest(builder, requestOffset) - MasterStateAddResponse(builder, responseOffset) - return MasterStateEnd(builder) -} - -func (rcv *MasterState) UnPackTo(t *MasterStateT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *MasterState) UnPack() *MasterStateT { - if rcv == nil { return nil } - t := &MasterStateT{} - rcv.UnPackTo(t) - return t -} - -type MasterState struct { - _tab flatbuffers.Table -} - -func GetRootAsMasterState(buf []byte, offset flatbuffers.UOffsetT) *MasterState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MasterState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMasterState(buf []byte, offset flatbuffers.UOffsetT) *MasterState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MasterState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MasterState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MasterState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MasterState) Request(obj *MasterStateRequest) *MasterStateRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MasterStateRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *MasterState) Response(obj *MasterStateResponse) *MasterStateResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MasterStateResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MasterStateStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func MasterStateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func MasterStateAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func MasterStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MasterStateT struct { + Request *MasterStateRequestT + Response *MasterStateResponseT +} + +func (t *MasterStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + MasterStateStart(builder) + MasterStateAddRequest(builder, requestOffset) + MasterStateAddResponse(builder, responseOffset) + return MasterStateEnd(builder) +} + +func (rcv *MasterState) UnPackTo(t *MasterStateT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *MasterState) UnPack() *MasterStateT { + if rcv == nil { return nil } + t := &MasterStateT{} + rcv.UnPackTo(t) + return t +} + +type MasterState struct { + _tab flatbuffers.Table +} + +func GetRootAsMasterState(buf []byte, offset flatbuffers.UOffsetT) *MasterState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MasterState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMasterState(buf []byte, offset flatbuffers.UOffsetT) *MasterState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MasterState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MasterState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MasterState) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MasterState) Request(obj *MasterStateRequest) *MasterStateRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MasterStateRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *MasterState) Response(obj *MasterStateResponse) *MasterStateResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MasterStateResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MasterStateStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func MasterStateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func MasterStateAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func MasterStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MasterStateRequest.go b/pkg/fbs/comm/ethercat/master/fbs/MasterStateRequest.go index aac66ff..e1cd9f1 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MasterStateRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MasterStateRequest.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MasterStateRequestT struct { - NewState EthercatState -} - -func (t *MasterStateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MasterStateRequestStart(builder) - MasterStateRequestAddNewState(builder, t.NewState) - return MasterStateRequestEnd(builder) -} - -func (rcv *MasterStateRequest) UnPackTo(t *MasterStateRequestT) { - t.NewState = rcv.NewState() -} - -func (rcv *MasterStateRequest) UnPack() *MasterStateRequestT { - if rcv == nil { return nil } - t := &MasterStateRequestT{} - rcv.UnPackTo(t) - return t -} - -type MasterStateRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsMasterStateRequest(buf []byte, offset flatbuffers.UOffsetT) *MasterStateRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MasterStateRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMasterStateRequest(buf []byte, offset flatbuffers.UOffsetT) *MasterStateRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MasterStateRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MasterStateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MasterStateRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MasterStateRequest) NewState() EthercatState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *MasterStateRequest) MutateNewState(n EthercatState) bool { - return rcv._tab.MutateUint16Slot(4, uint16(n)) -} - -func MasterStateRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MasterStateRequestAddNewState(builder *flatbuffers.Builder, newState EthercatState) { - builder.PrependUint16Slot(0, uint16(newState), 0) -} -func MasterStateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MasterStateRequestT struct { + NewState EthercatState +} + +func (t *MasterStateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MasterStateRequestStart(builder) + MasterStateRequestAddNewState(builder, t.NewState) + return MasterStateRequestEnd(builder) +} + +func (rcv *MasterStateRequest) UnPackTo(t *MasterStateRequestT) { + t.NewState = rcv.NewState() +} + +func (rcv *MasterStateRequest) UnPack() *MasterStateRequestT { + if rcv == nil { return nil } + t := &MasterStateRequestT{} + rcv.UnPackTo(t) + return t +} + +type MasterStateRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsMasterStateRequest(buf []byte, offset flatbuffers.UOffsetT) *MasterStateRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MasterStateRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMasterStateRequest(buf []byte, offset flatbuffers.UOffsetT) *MasterStateRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MasterStateRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MasterStateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MasterStateRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MasterStateRequest) NewState() EthercatState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *MasterStateRequest) MutateNewState(n EthercatState) bool { + return rcv._tab.MutateUint16Slot(4, uint16(n)) +} + +func MasterStateRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MasterStateRequestAddNewState(builder *flatbuffers.Builder, newState EthercatState) { + builder.PrependUint16Slot(0, uint16(newState), 0) +} +func MasterStateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MasterStateResponse.go b/pkg/fbs/comm/ethercat/master/fbs/MasterStateResponse.go index ed9095a..d2286f5 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MasterStateResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MasterStateResponse.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MasterStateResponseT struct { - CurrentState EthercatState - RequestedState EthercatState -} - -func (t *MasterStateResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MasterStateResponseStart(builder) - MasterStateResponseAddCurrentState(builder, t.CurrentState) - MasterStateResponseAddRequestedState(builder, t.RequestedState) - return MasterStateResponseEnd(builder) -} - -func (rcv *MasterStateResponse) UnPackTo(t *MasterStateResponseT) { - t.CurrentState = rcv.CurrentState() - t.RequestedState = rcv.RequestedState() -} - -func (rcv *MasterStateResponse) UnPack() *MasterStateResponseT { - if rcv == nil { return nil } - t := &MasterStateResponseT{} - rcv.UnPackTo(t) - return t -} - -type MasterStateResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsMasterStateResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStateResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MasterStateResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMasterStateResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStateResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MasterStateResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MasterStateResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MasterStateResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MasterStateResponse) CurrentState() EthercatState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *MasterStateResponse) MutateCurrentState(n EthercatState) bool { - return rcv._tab.MutateUint16Slot(4, uint16(n)) -} - -func (rcv *MasterStateResponse) RequestedState() EthercatState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *MasterStateResponse) MutateRequestedState(n EthercatState) bool { - return rcv._tab.MutateUint16Slot(6, uint16(n)) -} - -func MasterStateResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func MasterStateResponseAddCurrentState(builder *flatbuffers.Builder, currentState EthercatState) { - builder.PrependUint16Slot(0, uint16(currentState), 0) -} -func MasterStateResponseAddRequestedState(builder *flatbuffers.Builder, requestedState EthercatState) { - builder.PrependUint16Slot(1, uint16(requestedState), 0) -} -func MasterStateResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MasterStateResponseT struct { + CurrentState EthercatState + RequestedState EthercatState +} + +func (t *MasterStateResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MasterStateResponseStart(builder) + MasterStateResponseAddCurrentState(builder, t.CurrentState) + MasterStateResponseAddRequestedState(builder, t.RequestedState) + return MasterStateResponseEnd(builder) +} + +func (rcv *MasterStateResponse) UnPackTo(t *MasterStateResponseT) { + t.CurrentState = rcv.CurrentState() + t.RequestedState = rcv.RequestedState() +} + +func (rcv *MasterStateResponse) UnPack() *MasterStateResponseT { + if rcv == nil { return nil } + t := &MasterStateResponseT{} + rcv.UnPackTo(t) + return t +} + +type MasterStateResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsMasterStateResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStateResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MasterStateResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMasterStateResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStateResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MasterStateResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MasterStateResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MasterStateResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MasterStateResponse) CurrentState() EthercatState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *MasterStateResponse) MutateCurrentState(n EthercatState) bool { + return rcv._tab.MutateUint16Slot(4, uint16(n)) +} + +func (rcv *MasterStateResponse) RequestedState() EthercatState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *MasterStateResponse) MutateRequestedState(n EthercatState) bool { + return rcv._tab.MutateUint16Slot(6, uint16(n)) +} + +func MasterStateResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func MasterStateResponseAddCurrentState(builder *flatbuffers.Builder, currentState EthercatState) { + builder.PrependUint16Slot(0, uint16(currentState), 0) +} +func MasterStateResponseAddRequestedState(builder *flatbuffers.Builder, requestedState EthercatState) { + builder.PrependUint16Slot(1, uint16(requestedState), 0) +} +func MasterStateResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MasterStatus.go b/pkg/fbs/comm/ethercat/master/fbs/MasterStatus.go index 127876b..c3905b1 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MasterStatus.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MasterStatus.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MasterStatusT struct { - Response *MasterStatusResponseT -} - -func (t *MasterStatusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - MasterStatusStart(builder) - MasterStatusAddResponse(builder, responseOffset) - return MasterStatusEnd(builder) -} - -func (rcv *MasterStatus) UnPackTo(t *MasterStatusT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *MasterStatus) UnPack() *MasterStatusT { - if rcv == nil { return nil } - t := &MasterStatusT{} - rcv.UnPackTo(t) - return t -} - -type MasterStatus struct { - _tab flatbuffers.Table -} - -func GetRootAsMasterStatus(buf []byte, offset flatbuffers.UOffsetT) *MasterStatus { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MasterStatus{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMasterStatus(buf []byte, offset flatbuffers.UOffsetT) *MasterStatus { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MasterStatus{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MasterStatus) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MasterStatus) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MasterStatus) Response(obj *MasterStatusResponse) *MasterStatusResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MasterStatusResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func MasterStatusStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MasterStatusAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func MasterStatusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MasterStatusT struct { + Response *MasterStatusResponseT +} + +func (t *MasterStatusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + MasterStatusStart(builder) + MasterStatusAddResponse(builder, responseOffset) + return MasterStatusEnd(builder) +} + +func (rcv *MasterStatus) UnPackTo(t *MasterStatusT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *MasterStatus) UnPack() *MasterStatusT { + if rcv == nil { return nil } + t := &MasterStatusT{} + rcv.UnPackTo(t) + return t +} + +type MasterStatus struct { + _tab flatbuffers.Table +} + +func GetRootAsMasterStatus(buf []byte, offset flatbuffers.UOffsetT) *MasterStatus { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MasterStatus{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMasterStatus(buf []byte, offset flatbuffers.UOffsetT) *MasterStatus { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MasterStatus{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MasterStatus) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MasterStatus) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MasterStatus) Response(obj *MasterStatusResponse) *MasterStatusResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MasterStatusResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func MasterStatusStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MasterStatusAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func MasterStatusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MasterStatusResponse.go b/pkg/fbs/comm/ethercat/master/fbs/MasterStatusResponse.go index fb6889c..5559e8a 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MasterStatusResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MasterStatusResponse.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MasterStatusResponseT struct { - Status uint32 -} - -func (t *MasterStatusResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MasterStatusResponseStart(builder) - MasterStatusResponseAddStatus(builder, t.Status) - return MasterStatusResponseEnd(builder) -} - -func (rcv *MasterStatusResponse) UnPackTo(t *MasterStatusResponseT) { - t.Status = rcv.Status() -} - -func (rcv *MasterStatusResponse) UnPack() *MasterStatusResponseT { - if rcv == nil { return nil } - t := &MasterStatusResponseT{} - rcv.UnPackTo(t) - return t -} - -type MasterStatusResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsMasterStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStatusResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MasterStatusResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMasterStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStatusResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MasterStatusResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MasterStatusResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MasterStatusResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MasterStatusResponse) Status() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *MasterStatusResponse) MutateStatus(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func MasterStatusResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MasterStatusResponseAddStatus(builder *flatbuffers.Builder, status uint32) { - builder.PrependUint32Slot(0, status, 0) -} -func MasterStatusResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MasterStatusResponseT struct { + Status uint32 +} + +func (t *MasterStatusResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MasterStatusResponseStart(builder) + MasterStatusResponseAddStatus(builder, t.Status) + return MasterStatusResponseEnd(builder) +} + +func (rcv *MasterStatusResponse) UnPackTo(t *MasterStatusResponseT) { + t.Status = rcv.Status() +} + +func (rcv *MasterStatusResponse) UnPack() *MasterStatusResponseT { + if rcv == nil { return nil } + t := &MasterStatusResponseT{} + rcv.UnPackTo(t) + return t +} + +type MasterStatusResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsMasterStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MasterStatusResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMasterStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *MasterStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MasterStatusResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MasterStatusResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MasterStatusResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MasterStatusResponse) Status() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *MasterStatusResponse) MutateStatus(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func MasterStatusResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MasterStatusResponseAddStatus(builder *flatbuffers.Builder, status uint32) { + builder.PrependUint32Slot(0, status, 0) +} +func MasterStatusResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/MinActMaxValues.go b/pkg/fbs/comm/ethercat/master/fbs/MinActMaxValues.go index c73beb9..ff6d49f 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/MinActMaxValues.go +++ b/pkg/fbs/comm/ethercat/master/fbs/MinActMaxValues.go @@ -1,72 +1,72 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MinActMaxValuesT struct { - Minimum uint32 - Actual uint32 - Maximum uint32 -} - -func (t *MinActMaxValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateMinActMaxValues(builder, t.Minimum, t.Actual, t.Maximum) -} -func (rcv *MinActMaxValues) UnPackTo(t *MinActMaxValuesT) { - t.Minimum = rcv.Minimum() - t.Actual = rcv.Actual() - t.Maximum = rcv.Maximum() -} - -func (rcv *MinActMaxValues) UnPack() *MinActMaxValuesT { - if rcv == nil { return nil } - t := &MinActMaxValuesT{} - rcv.UnPackTo(t) - return t -} - -type MinActMaxValues struct { - _tab flatbuffers.Struct -} - -func (rcv *MinActMaxValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MinActMaxValues) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *MinActMaxValues) Minimum() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) -} -func (rcv *MinActMaxValues) MutateMinimum(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) -} - -func (rcv *MinActMaxValues) Actual() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) -} -func (rcv *MinActMaxValues) MutateActual(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) -} - -func (rcv *MinActMaxValues) Maximum() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(8)) -} -func (rcv *MinActMaxValues) MutateMaximum(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(8), n) -} - -func CreateMinActMaxValues(builder *flatbuffers.Builder, minimum uint32, actual uint32, maximum uint32) flatbuffers.UOffsetT { - builder.Prep(4, 12) - builder.PrependUint32(maximum) - builder.PrependUint32(actual) - builder.PrependUint32(minimum) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MinActMaxValuesT struct { + Minimum uint32 + Actual uint32 + Maximum uint32 +} + +func (t *MinActMaxValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateMinActMaxValues(builder, t.Minimum, t.Actual, t.Maximum) +} +func (rcv *MinActMaxValues) UnPackTo(t *MinActMaxValuesT) { + t.Minimum = rcv.Minimum() + t.Actual = rcv.Actual() + t.Maximum = rcv.Maximum() +} + +func (rcv *MinActMaxValues) UnPack() *MinActMaxValuesT { + if rcv == nil { return nil } + t := &MinActMaxValuesT{} + rcv.UnPackTo(t) + return t +} + +type MinActMaxValues struct { + _tab flatbuffers.Struct +} + +func (rcv *MinActMaxValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MinActMaxValues) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *MinActMaxValues) Minimum() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) +} +func (rcv *MinActMaxValues) MutateMinimum(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) +} + +func (rcv *MinActMaxValues) Actual() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) +} +func (rcv *MinActMaxValues) MutateActual(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) +} + +func (rcv *MinActMaxValues) Maximum() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(8)) +} +func (rcv *MinActMaxValues) MutateMaximum(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(8), n) +} + +func CreateMinActMaxValues(builder *flatbuffers.Builder, minimum uint32, actual uint32, maximum uint32) flatbuffers.UOffsetT { + builder.Prep(4, 12) + builder.PrependUint32(maximum) + builder.PrependUint32(actual) + builder.PrependUint32(minimum) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlaves.go b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlaves.go index 92bdf84..9b0a463 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlaves.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlaves.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConfiguredMailboxSlavesT struct { - Response *NumConfiguredMailboxSlavesResponseT -} - -func (t *NumConfiguredMailboxSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - NumConfiguredMailboxSlavesStart(builder) - NumConfiguredMailboxSlavesAddResponse(builder, responseOffset) - return NumConfiguredMailboxSlavesEnd(builder) -} - -func (rcv *NumConfiguredMailboxSlaves) UnPackTo(t *NumConfiguredMailboxSlavesT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *NumConfiguredMailboxSlaves) UnPack() *NumConfiguredMailboxSlavesT { - if rcv == nil { return nil } - t := &NumConfiguredMailboxSlavesT{} - rcv.UnPackTo(t) - return t -} - -type NumConfiguredMailboxSlaves struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConfiguredMailboxSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlaves { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConfiguredMailboxSlaves{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConfiguredMailboxSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlaves { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConfiguredMailboxSlaves{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConfiguredMailboxSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConfiguredMailboxSlaves) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConfiguredMailboxSlaves) Response(obj *NumConfiguredMailboxSlavesResponse) *NumConfiguredMailboxSlavesResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(NumConfiguredMailboxSlavesResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func NumConfiguredMailboxSlavesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConfiguredMailboxSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func NumConfiguredMailboxSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConfiguredMailboxSlavesT struct { + Response *NumConfiguredMailboxSlavesResponseT +} + +func (t *NumConfiguredMailboxSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + NumConfiguredMailboxSlavesStart(builder) + NumConfiguredMailboxSlavesAddResponse(builder, responseOffset) + return NumConfiguredMailboxSlavesEnd(builder) +} + +func (rcv *NumConfiguredMailboxSlaves) UnPackTo(t *NumConfiguredMailboxSlavesT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *NumConfiguredMailboxSlaves) UnPack() *NumConfiguredMailboxSlavesT { + if rcv == nil { return nil } + t := &NumConfiguredMailboxSlavesT{} + rcv.UnPackTo(t) + return t +} + +type NumConfiguredMailboxSlaves struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConfiguredMailboxSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlaves { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConfiguredMailboxSlaves{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConfiguredMailboxSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlaves { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConfiguredMailboxSlaves{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConfiguredMailboxSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConfiguredMailboxSlaves) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConfiguredMailboxSlaves) Response(obj *NumConfiguredMailboxSlavesResponse) *NumConfiguredMailboxSlavesResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(NumConfiguredMailboxSlavesResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func NumConfiguredMailboxSlavesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConfiguredMailboxSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func NumConfiguredMailboxSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlavesResponse.go b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlavesResponse.go index a9018c3..416f92a 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlavesResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredMailboxSlavesResponse.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConfiguredMailboxSlavesResponseT struct { - NumSlaves uint32 -} - -func (t *NumConfiguredMailboxSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - NumConfiguredMailboxSlavesResponseStart(builder) - NumConfiguredMailboxSlavesResponseAddNumSlaves(builder, t.NumSlaves) - return NumConfiguredMailboxSlavesResponseEnd(builder) -} - -func (rcv *NumConfiguredMailboxSlavesResponse) UnPackTo(t *NumConfiguredMailboxSlavesResponseT) { - t.NumSlaves = rcv.NumSlaves() -} - -func (rcv *NumConfiguredMailboxSlavesResponse) UnPack() *NumConfiguredMailboxSlavesResponseT { - if rcv == nil { return nil } - t := &NumConfiguredMailboxSlavesResponseT{} - rcv.UnPackTo(t) - return t -} - -type NumConfiguredMailboxSlavesResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConfiguredMailboxSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConfiguredMailboxSlavesResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConfiguredMailboxSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConfiguredMailboxSlavesResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConfiguredMailboxSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConfiguredMailboxSlavesResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConfiguredMailboxSlavesResponse) NumSlaves() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *NumConfiguredMailboxSlavesResponse) MutateNumSlaves(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func NumConfiguredMailboxSlavesResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConfiguredMailboxSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { - builder.PrependUint32Slot(0, numSlaves, 0) -} -func NumConfiguredMailboxSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConfiguredMailboxSlavesResponseT struct { + NumSlaves uint32 +} + +func (t *NumConfiguredMailboxSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + NumConfiguredMailboxSlavesResponseStart(builder) + NumConfiguredMailboxSlavesResponseAddNumSlaves(builder, t.NumSlaves) + return NumConfiguredMailboxSlavesResponseEnd(builder) +} + +func (rcv *NumConfiguredMailboxSlavesResponse) UnPackTo(t *NumConfiguredMailboxSlavesResponseT) { + t.NumSlaves = rcv.NumSlaves() +} + +func (rcv *NumConfiguredMailboxSlavesResponse) UnPack() *NumConfiguredMailboxSlavesResponseT { + if rcv == nil { return nil } + t := &NumConfiguredMailboxSlavesResponseT{} + rcv.UnPackTo(t) + return t +} + +type NumConfiguredMailboxSlavesResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConfiguredMailboxSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConfiguredMailboxSlavesResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConfiguredMailboxSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredMailboxSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConfiguredMailboxSlavesResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConfiguredMailboxSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConfiguredMailboxSlavesResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConfiguredMailboxSlavesResponse) NumSlaves() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *NumConfiguredMailboxSlavesResponse) MutateNumSlaves(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func NumConfiguredMailboxSlavesResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConfiguredMailboxSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { + builder.PrependUint32Slot(0, numSlaves, 0) +} +func NumConfiguredMailboxSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlaves.go b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlaves.go index bfa6357..af2e9c8 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlaves.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlaves.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConfiguredSlavesT struct { - Response *NumConfiguredSlavesResponseT -} - -func (t *NumConfiguredSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - NumConfiguredSlavesStart(builder) - NumConfiguredSlavesAddResponse(builder, responseOffset) - return NumConfiguredSlavesEnd(builder) -} - -func (rcv *NumConfiguredSlaves) UnPackTo(t *NumConfiguredSlavesT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *NumConfiguredSlaves) UnPack() *NumConfiguredSlavesT { - if rcv == nil { return nil } - t := &NumConfiguredSlavesT{} - rcv.UnPackTo(t) - return t -} - -type NumConfiguredSlaves struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConfiguredSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlaves { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConfiguredSlaves{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConfiguredSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlaves { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConfiguredSlaves{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConfiguredSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConfiguredSlaves) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConfiguredSlaves) Response(obj *NumConfiguredSlavesResponse) *NumConfiguredSlavesResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(NumConfiguredSlavesResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func NumConfiguredSlavesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConfiguredSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func NumConfiguredSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConfiguredSlavesT struct { + Response *NumConfiguredSlavesResponseT +} + +func (t *NumConfiguredSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + NumConfiguredSlavesStart(builder) + NumConfiguredSlavesAddResponse(builder, responseOffset) + return NumConfiguredSlavesEnd(builder) +} + +func (rcv *NumConfiguredSlaves) UnPackTo(t *NumConfiguredSlavesT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *NumConfiguredSlaves) UnPack() *NumConfiguredSlavesT { + if rcv == nil { return nil } + t := &NumConfiguredSlavesT{} + rcv.UnPackTo(t) + return t +} + +type NumConfiguredSlaves struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConfiguredSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlaves { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConfiguredSlaves{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConfiguredSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlaves { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConfiguredSlaves{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConfiguredSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConfiguredSlaves) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConfiguredSlaves) Response(obj *NumConfiguredSlavesResponse) *NumConfiguredSlavesResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(NumConfiguredSlavesResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func NumConfiguredSlavesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConfiguredSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func NumConfiguredSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlavesResponse.go b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlavesResponse.go index 775e270..aa19cd0 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlavesResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConfiguredSlavesResponse.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConfiguredSlavesResponseT struct { - NumSlaves uint32 -} - -func (t *NumConfiguredSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - NumConfiguredSlavesResponseStart(builder) - NumConfiguredSlavesResponseAddNumSlaves(builder, t.NumSlaves) - return NumConfiguredSlavesResponseEnd(builder) -} - -func (rcv *NumConfiguredSlavesResponse) UnPackTo(t *NumConfiguredSlavesResponseT) { - t.NumSlaves = rcv.NumSlaves() -} - -func (rcv *NumConfiguredSlavesResponse) UnPack() *NumConfiguredSlavesResponseT { - if rcv == nil { return nil } - t := &NumConfiguredSlavesResponseT{} - rcv.UnPackTo(t) - return t -} - -type NumConfiguredSlavesResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConfiguredSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConfiguredSlavesResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConfiguredSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConfiguredSlavesResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConfiguredSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConfiguredSlavesResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConfiguredSlavesResponse) NumSlaves() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *NumConfiguredSlavesResponse) MutateNumSlaves(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func NumConfiguredSlavesResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConfiguredSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { - builder.PrependUint32Slot(0, numSlaves, 0) -} -func NumConfiguredSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConfiguredSlavesResponseT struct { + NumSlaves uint32 +} + +func (t *NumConfiguredSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + NumConfiguredSlavesResponseStart(builder) + NumConfiguredSlavesResponseAddNumSlaves(builder, t.NumSlaves) + return NumConfiguredSlavesResponseEnd(builder) +} + +func (rcv *NumConfiguredSlavesResponse) UnPackTo(t *NumConfiguredSlavesResponseT) { + t.NumSlaves = rcv.NumSlaves() +} + +func (rcv *NumConfiguredSlavesResponse) UnPack() *NumConfiguredSlavesResponseT { + if rcv == nil { return nil } + t := &NumConfiguredSlavesResponseT{} + rcv.UnPackTo(t) + return t +} + +type NumConfiguredSlavesResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConfiguredSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConfiguredSlavesResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConfiguredSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConfiguredSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConfiguredSlavesResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConfiguredSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConfiguredSlavesResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConfiguredSlavesResponse) NumSlaves() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *NumConfiguredSlavesResponse) MutateNumSlaves(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func NumConfiguredSlavesResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConfiguredSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { + builder.PrependUint32Slot(0, numSlaves, 0) +} +func NumConfiguredSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlaves.go b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlaves.go index b487fb9..364bc00 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlaves.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlaves.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConnectedDcSlavesT struct { - Response *NumConnectedDcSlavesResponseT -} - -func (t *NumConnectedDcSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - NumConnectedDcSlavesStart(builder) - NumConnectedDcSlavesAddResponse(builder, responseOffset) - return NumConnectedDcSlavesEnd(builder) -} - -func (rcv *NumConnectedDcSlaves) UnPackTo(t *NumConnectedDcSlavesT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *NumConnectedDcSlaves) UnPack() *NumConnectedDcSlavesT { - if rcv == nil { return nil } - t := &NumConnectedDcSlavesT{} - rcv.UnPackTo(t) - return t -} - -type NumConnectedDcSlaves struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConnectedDcSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlaves { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConnectedDcSlaves{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConnectedDcSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlaves { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConnectedDcSlaves{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConnectedDcSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConnectedDcSlaves) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConnectedDcSlaves) Response(obj *NumConnectedDcSlavesResponse) *NumConnectedDcSlavesResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(NumConnectedDcSlavesResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func NumConnectedDcSlavesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConnectedDcSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func NumConnectedDcSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConnectedDcSlavesT struct { + Response *NumConnectedDcSlavesResponseT +} + +func (t *NumConnectedDcSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + NumConnectedDcSlavesStart(builder) + NumConnectedDcSlavesAddResponse(builder, responseOffset) + return NumConnectedDcSlavesEnd(builder) +} + +func (rcv *NumConnectedDcSlaves) UnPackTo(t *NumConnectedDcSlavesT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *NumConnectedDcSlaves) UnPack() *NumConnectedDcSlavesT { + if rcv == nil { return nil } + t := &NumConnectedDcSlavesT{} + rcv.UnPackTo(t) + return t +} + +type NumConnectedDcSlaves struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConnectedDcSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlaves { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConnectedDcSlaves{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConnectedDcSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlaves { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConnectedDcSlaves{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConnectedDcSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConnectedDcSlaves) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConnectedDcSlaves) Response(obj *NumConnectedDcSlavesResponse) *NumConnectedDcSlavesResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(NumConnectedDcSlavesResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func NumConnectedDcSlavesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConnectedDcSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func NumConnectedDcSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlavesResponse.go b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlavesResponse.go index d78d97b..2e81c2c 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlavesResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedDcSlavesResponse.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConnectedDcSlavesResponseT struct { - NumSlaves uint32 -} - -func (t *NumConnectedDcSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - NumConnectedDcSlavesResponseStart(builder) - NumConnectedDcSlavesResponseAddNumSlaves(builder, t.NumSlaves) - return NumConnectedDcSlavesResponseEnd(builder) -} - -func (rcv *NumConnectedDcSlavesResponse) UnPackTo(t *NumConnectedDcSlavesResponseT) { - t.NumSlaves = rcv.NumSlaves() -} - -func (rcv *NumConnectedDcSlavesResponse) UnPack() *NumConnectedDcSlavesResponseT { - if rcv == nil { return nil } - t := &NumConnectedDcSlavesResponseT{} - rcv.UnPackTo(t) - return t -} - -type NumConnectedDcSlavesResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConnectedDcSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConnectedDcSlavesResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConnectedDcSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConnectedDcSlavesResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConnectedDcSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConnectedDcSlavesResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConnectedDcSlavesResponse) NumSlaves() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *NumConnectedDcSlavesResponse) MutateNumSlaves(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func NumConnectedDcSlavesResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConnectedDcSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { - builder.PrependUint32Slot(0, numSlaves, 0) -} -func NumConnectedDcSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConnectedDcSlavesResponseT struct { + NumSlaves uint32 +} + +func (t *NumConnectedDcSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + NumConnectedDcSlavesResponseStart(builder) + NumConnectedDcSlavesResponseAddNumSlaves(builder, t.NumSlaves) + return NumConnectedDcSlavesResponseEnd(builder) +} + +func (rcv *NumConnectedDcSlavesResponse) UnPackTo(t *NumConnectedDcSlavesResponseT) { + t.NumSlaves = rcv.NumSlaves() +} + +func (rcv *NumConnectedDcSlavesResponse) UnPack() *NumConnectedDcSlavesResponseT { + if rcv == nil { return nil } + t := &NumConnectedDcSlavesResponseT{} + rcv.UnPackTo(t) + return t +} + +type NumConnectedDcSlavesResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConnectedDcSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConnectedDcSlavesResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConnectedDcSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedDcSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConnectedDcSlavesResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConnectedDcSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConnectedDcSlavesResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConnectedDcSlavesResponse) NumSlaves() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *NumConnectedDcSlavesResponse) MutateNumSlaves(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func NumConnectedDcSlavesResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConnectedDcSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { + builder.PrependUint32Slot(0, numSlaves, 0) +} +func NumConnectedDcSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlaves.go b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlaves.go index a615443..64767ce 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlaves.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlaves.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConnectedSlavesT struct { - Response *NumConnectedSlavesResponseT -} - -func (t *NumConnectedSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - NumConnectedSlavesStart(builder) - NumConnectedSlavesAddResponse(builder, responseOffset) - return NumConnectedSlavesEnd(builder) -} - -func (rcv *NumConnectedSlaves) UnPackTo(t *NumConnectedSlavesT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *NumConnectedSlaves) UnPack() *NumConnectedSlavesT { - if rcv == nil { return nil } - t := &NumConnectedSlavesT{} - rcv.UnPackTo(t) - return t -} - -type NumConnectedSlaves struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConnectedSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlaves { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConnectedSlaves{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConnectedSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlaves { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConnectedSlaves{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConnectedSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConnectedSlaves) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConnectedSlaves) Response(obj *NumConnectedSlavesResponse) *NumConnectedSlavesResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(NumConnectedSlavesResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func NumConnectedSlavesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConnectedSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func NumConnectedSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConnectedSlavesT struct { + Response *NumConnectedSlavesResponseT +} + +func (t *NumConnectedSlavesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + NumConnectedSlavesStart(builder) + NumConnectedSlavesAddResponse(builder, responseOffset) + return NumConnectedSlavesEnd(builder) +} + +func (rcv *NumConnectedSlaves) UnPackTo(t *NumConnectedSlavesT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *NumConnectedSlaves) UnPack() *NumConnectedSlavesT { + if rcv == nil { return nil } + t := &NumConnectedSlavesT{} + rcv.UnPackTo(t) + return t +} + +type NumConnectedSlaves struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConnectedSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlaves { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConnectedSlaves{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConnectedSlaves(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlaves { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConnectedSlaves{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConnectedSlaves) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConnectedSlaves) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConnectedSlaves) Response(obj *NumConnectedSlavesResponse) *NumConnectedSlavesResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(NumConnectedSlavesResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func NumConnectedSlavesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConnectedSlavesAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func NumConnectedSlavesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlavesResponse.go b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlavesResponse.go index 71785f7..a8a5274 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlavesResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/NumConnectedSlavesResponse.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type NumConnectedSlavesResponseT struct { - NumSlaves uint32 -} - -func (t *NumConnectedSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - NumConnectedSlavesResponseStart(builder) - NumConnectedSlavesResponseAddNumSlaves(builder, t.NumSlaves) - return NumConnectedSlavesResponseEnd(builder) -} - -func (rcv *NumConnectedSlavesResponse) UnPackTo(t *NumConnectedSlavesResponseT) { - t.NumSlaves = rcv.NumSlaves() -} - -func (rcv *NumConnectedSlavesResponse) UnPack() *NumConnectedSlavesResponseT { - if rcv == nil { return nil } - t := &NumConnectedSlavesResponseT{} - rcv.UnPackTo(t) - return t -} - -type NumConnectedSlavesResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsNumConnectedSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &NumConnectedSlavesResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsNumConnectedSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlavesResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &NumConnectedSlavesResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *NumConnectedSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *NumConnectedSlavesResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *NumConnectedSlavesResponse) NumSlaves() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *NumConnectedSlavesResponse) MutateNumSlaves(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func NumConnectedSlavesResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func NumConnectedSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { - builder.PrependUint32Slot(0, numSlaves, 0) -} -func NumConnectedSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type NumConnectedSlavesResponseT struct { + NumSlaves uint32 +} + +func (t *NumConnectedSlavesResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + NumConnectedSlavesResponseStart(builder) + NumConnectedSlavesResponseAddNumSlaves(builder, t.NumSlaves) + return NumConnectedSlavesResponseEnd(builder) +} + +func (rcv *NumConnectedSlavesResponse) UnPackTo(t *NumConnectedSlavesResponseT) { + t.NumSlaves = rcv.NumSlaves() +} + +func (rcv *NumConnectedSlavesResponse) UnPack() *NumConnectedSlavesResponseT { + if rcv == nil { return nil } + t := &NumConnectedSlavesResponseT{} + rcv.UnPackTo(t) + return t +} + +type NumConnectedSlavesResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsNumConnectedSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &NumConnectedSlavesResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsNumConnectedSlavesResponse(buf []byte, offset flatbuffers.UOffsetT) *NumConnectedSlavesResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &NumConnectedSlavesResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *NumConnectedSlavesResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *NumConnectedSlavesResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *NumConnectedSlavesResponse) NumSlaves() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *NumConnectedSlavesResponse) MutateNumSlaves(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func NumConnectedSlavesResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func NumConnectedSlavesResponseAddNumSlaves(builder *flatbuffers.Builder, numSlaves uint32) { + builder.PrependUint32Slot(0, numSlaves, 0) +} +func NumConnectedSlavesResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ObjectDescription.go b/pkg/fbs/comm/ethercat/master/fbs/ObjectDescription.go index 0ae9111..5ad97c5 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ObjectDescription.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ObjectDescription.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ObjectDescriptionT struct { - Request *ObjectDescriptionRequestT - Response *ObjectDescriptionResponseT -} - -func (t *ObjectDescriptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - ObjectDescriptionStart(builder) - ObjectDescriptionAddRequest(builder, requestOffset) - ObjectDescriptionAddResponse(builder, responseOffset) - return ObjectDescriptionEnd(builder) -} - -func (rcv *ObjectDescription) UnPackTo(t *ObjectDescriptionT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *ObjectDescription) UnPack() *ObjectDescriptionT { - if rcv == nil { return nil } - t := &ObjectDescriptionT{} - rcv.UnPackTo(t) - return t -} - -type ObjectDescription struct { - _tab flatbuffers.Table -} - -func GetRootAsObjectDescription(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescription { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ObjectDescription{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsObjectDescription(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescription { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ObjectDescription{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ObjectDescription) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ObjectDescription) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ObjectDescription) Request(obj *ObjectDescriptionRequest) *ObjectDescriptionRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ObjectDescriptionRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ObjectDescription) Response(obj *ObjectDescriptionResponse) *ObjectDescriptionResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ObjectDescriptionResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func ObjectDescriptionStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ObjectDescriptionAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func ObjectDescriptionAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func ObjectDescriptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ObjectDescriptionT struct { + Request *ObjectDescriptionRequestT + Response *ObjectDescriptionResponseT +} + +func (t *ObjectDescriptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + ObjectDescriptionStart(builder) + ObjectDescriptionAddRequest(builder, requestOffset) + ObjectDescriptionAddResponse(builder, responseOffset) + return ObjectDescriptionEnd(builder) +} + +func (rcv *ObjectDescription) UnPackTo(t *ObjectDescriptionT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *ObjectDescription) UnPack() *ObjectDescriptionT { + if rcv == nil { return nil } + t := &ObjectDescriptionT{} + rcv.UnPackTo(t) + return t +} + +type ObjectDescription struct { + _tab flatbuffers.Table +} + +func GetRootAsObjectDescription(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescription { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ObjectDescription{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsObjectDescription(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescription { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ObjectDescription{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ObjectDescription) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ObjectDescription) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ObjectDescription) Request(obj *ObjectDescriptionRequest) *ObjectDescriptionRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ObjectDescriptionRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *ObjectDescription) Response(obj *ObjectDescriptionResponse) *ObjectDescriptionResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ObjectDescriptionResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func ObjectDescriptionStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ObjectDescriptionAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func ObjectDescriptionAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func ObjectDescriptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionRequest.go b/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionRequest.go index 768f895..2685293 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionRequest.go @@ -1,132 +1,132 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ObjectDescriptionRequestT struct { - AddressType Addresstype - Address uint16 - ObjectIndex uint16 - MaxLength uint32 -} - -func (t *ObjectDescriptionRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ObjectDescriptionRequestStart(builder) - ObjectDescriptionRequestAddAddressType(builder, t.AddressType) - ObjectDescriptionRequestAddAddress(builder, t.Address) - ObjectDescriptionRequestAddObjectIndex(builder, t.ObjectIndex) - ObjectDescriptionRequestAddMaxLength(builder, t.MaxLength) - return ObjectDescriptionRequestEnd(builder) -} - -func (rcv *ObjectDescriptionRequest) UnPackTo(t *ObjectDescriptionRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.ObjectIndex = rcv.ObjectIndex() - t.MaxLength = rcv.MaxLength() -} - -func (rcv *ObjectDescriptionRequest) UnPack() *ObjectDescriptionRequestT { - if rcv == nil { return nil } - t := &ObjectDescriptionRequestT{} - rcv.UnPackTo(t) - return t -} - -type ObjectDescriptionRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsObjectDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ObjectDescriptionRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsObjectDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ObjectDescriptionRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ObjectDescriptionRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ObjectDescriptionRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ObjectDescriptionRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ObjectDescriptionRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *ObjectDescriptionRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectDescriptionRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *ObjectDescriptionRequest) ObjectIndex() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectDescriptionRequest) MutateObjectIndex(n uint16) bool { - return rcv._tab.MutateUint16Slot(8, n) -} - -func (rcv *ObjectDescriptionRequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectDescriptionRequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func ObjectDescriptionRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func ObjectDescriptionRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func ObjectDescriptionRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func ObjectDescriptionRequestAddObjectIndex(builder *flatbuffers.Builder, objectIndex uint16) { - builder.PrependUint16Slot(2, objectIndex, 0) -} -func ObjectDescriptionRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(3, maxLength, 0) -} -func ObjectDescriptionRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ObjectDescriptionRequestT struct { + AddressType Addresstype + Address uint16 + ObjectIndex uint16 + MaxLength uint32 +} + +func (t *ObjectDescriptionRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ObjectDescriptionRequestStart(builder) + ObjectDescriptionRequestAddAddressType(builder, t.AddressType) + ObjectDescriptionRequestAddAddress(builder, t.Address) + ObjectDescriptionRequestAddObjectIndex(builder, t.ObjectIndex) + ObjectDescriptionRequestAddMaxLength(builder, t.MaxLength) + return ObjectDescriptionRequestEnd(builder) +} + +func (rcv *ObjectDescriptionRequest) UnPackTo(t *ObjectDescriptionRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.ObjectIndex = rcv.ObjectIndex() + t.MaxLength = rcv.MaxLength() +} + +func (rcv *ObjectDescriptionRequest) UnPack() *ObjectDescriptionRequestT { + if rcv == nil { return nil } + t := &ObjectDescriptionRequestT{} + rcv.UnPackTo(t) + return t +} + +type ObjectDescriptionRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsObjectDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ObjectDescriptionRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsObjectDescriptionRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ObjectDescriptionRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ObjectDescriptionRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ObjectDescriptionRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ObjectDescriptionRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ObjectDescriptionRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *ObjectDescriptionRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectDescriptionRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *ObjectDescriptionRequest) ObjectIndex() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectDescriptionRequest) MutateObjectIndex(n uint16) bool { + return rcv._tab.MutateUint16Slot(8, n) +} + +func (rcv *ObjectDescriptionRequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectDescriptionRequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func ObjectDescriptionRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func ObjectDescriptionRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func ObjectDescriptionRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func ObjectDescriptionRequestAddObjectIndex(builder *flatbuffers.Builder, objectIndex uint16) { + builder.PrependUint16Slot(2, objectIndex, 0) +} +func ObjectDescriptionRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(3, maxLength, 0) +} +func ObjectDescriptionRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionResponse.go b/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionResponse.go index 92e8db2..40b83db 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ObjectDescriptionResponse.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ObjectDescriptionResponseT struct { - Data []byte -} - -func (t *ObjectDescriptionResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - ObjectDescriptionResponseStart(builder) - ObjectDescriptionResponseAddData(builder, dataOffset) - return ObjectDescriptionResponseEnd(builder) -} - -func (rcv *ObjectDescriptionResponse) UnPackTo(t *ObjectDescriptionResponseT) { - t.Data = rcv.DataBytes() -} - -func (rcv *ObjectDescriptionResponse) UnPack() *ObjectDescriptionResponseT { - if rcv == nil { return nil } - t := &ObjectDescriptionResponseT{} - rcv.UnPackTo(t) - return t -} - -type ObjectDescriptionResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsObjectDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ObjectDescriptionResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsObjectDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ObjectDescriptionResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ObjectDescriptionResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ObjectDescriptionResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ObjectDescriptionResponse) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ObjectDescriptionResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ObjectDescriptionResponse) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ObjectDescriptionResponse) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ObjectDescriptionResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ObjectDescriptionResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ObjectDescriptionResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ObjectDescriptionResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ObjectDescriptionResponseT struct { + Data []byte +} + +func (t *ObjectDescriptionResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + ObjectDescriptionResponseStart(builder) + ObjectDescriptionResponseAddData(builder, dataOffset) + return ObjectDescriptionResponseEnd(builder) +} + +func (rcv *ObjectDescriptionResponse) UnPackTo(t *ObjectDescriptionResponseT) { + t.Data = rcv.DataBytes() +} + +func (rcv *ObjectDescriptionResponse) UnPack() *ObjectDescriptionResponseT { + if rcv == nil { return nil } + t := &ObjectDescriptionResponseT{} + rcv.UnPackTo(t) + return t +} + +type ObjectDescriptionResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsObjectDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ObjectDescriptionResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsObjectDescriptionResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDescriptionResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ObjectDescriptionResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ObjectDescriptionResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ObjectDescriptionResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ObjectDescriptionResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ObjectDescriptionResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ObjectDescriptionResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ObjectDescriptionResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ObjectDescriptionResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ObjectDescriptionResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ObjectDescriptionResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ObjectDescriptionResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryList.go b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryList.go index 27e0f26..a99b16f 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryList.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryList.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ObjectDictionaryListT struct { - Request *ObjectDictionaryListRequestT - Response *ObjectDictionaryListResponseT -} - -func (t *ObjectDictionaryListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - ObjectDictionaryListStart(builder) - ObjectDictionaryListAddRequest(builder, requestOffset) - ObjectDictionaryListAddResponse(builder, responseOffset) - return ObjectDictionaryListEnd(builder) -} - -func (rcv *ObjectDictionaryList) UnPackTo(t *ObjectDictionaryListT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *ObjectDictionaryList) UnPack() *ObjectDictionaryListT { - if rcv == nil { return nil } - t := &ObjectDictionaryListT{} - rcv.UnPackTo(t) - return t -} - -type ObjectDictionaryList struct { - _tab flatbuffers.Table -} - -func GetRootAsObjectDictionaryList(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryList { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ObjectDictionaryList{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsObjectDictionaryList(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryList { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ObjectDictionaryList{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ObjectDictionaryList) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ObjectDictionaryList) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ObjectDictionaryList) Request(obj *ObjectDictionaryListRequest) *ObjectDictionaryListRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ObjectDictionaryListRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ObjectDictionaryList) Response(obj *ObjectDictionaryListResponse) *ObjectDictionaryListResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ObjectDictionaryListResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func ObjectDictionaryListStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ObjectDictionaryListAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func ObjectDictionaryListAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func ObjectDictionaryListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ObjectDictionaryListT struct { + Request *ObjectDictionaryListRequestT + Response *ObjectDictionaryListResponseT +} + +func (t *ObjectDictionaryListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + ObjectDictionaryListStart(builder) + ObjectDictionaryListAddRequest(builder, requestOffset) + ObjectDictionaryListAddResponse(builder, responseOffset) + return ObjectDictionaryListEnd(builder) +} + +func (rcv *ObjectDictionaryList) UnPackTo(t *ObjectDictionaryListT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *ObjectDictionaryList) UnPack() *ObjectDictionaryListT { + if rcv == nil { return nil } + t := &ObjectDictionaryListT{} + rcv.UnPackTo(t) + return t +} + +type ObjectDictionaryList struct { + _tab flatbuffers.Table +} + +func GetRootAsObjectDictionaryList(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryList { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ObjectDictionaryList{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsObjectDictionaryList(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryList { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ObjectDictionaryList{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ObjectDictionaryList) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ObjectDictionaryList) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ObjectDictionaryList) Request(obj *ObjectDictionaryListRequest) *ObjectDictionaryListRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ObjectDictionaryListRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *ObjectDictionaryList) Response(obj *ObjectDictionaryListResponse) *ObjectDictionaryListResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ObjectDictionaryListResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func ObjectDictionaryListStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ObjectDictionaryListAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func ObjectDictionaryListAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func ObjectDictionaryListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListRequest.go b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListRequest.go index 1ff5e2a..edc9bf7 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListRequest.go @@ -1,132 +1,132 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ObjectDictionaryListRequestT struct { - AddressType Addresstype - Address uint16 - ListType ObjectDictionaryListType - MaxElements uint32 -} - -func (t *ObjectDictionaryListRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ObjectDictionaryListRequestStart(builder) - ObjectDictionaryListRequestAddAddressType(builder, t.AddressType) - ObjectDictionaryListRequestAddAddress(builder, t.Address) - ObjectDictionaryListRequestAddListType(builder, t.ListType) - ObjectDictionaryListRequestAddMaxElements(builder, t.MaxElements) - return ObjectDictionaryListRequestEnd(builder) -} - -func (rcv *ObjectDictionaryListRequest) UnPackTo(t *ObjectDictionaryListRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.ListType = rcv.ListType() - t.MaxElements = rcv.MaxElements() -} - -func (rcv *ObjectDictionaryListRequest) UnPack() *ObjectDictionaryListRequestT { - if rcv == nil { return nil } - t := &ObjectDictionaryListRequestT{} - rcv.UnPackTo(t) - return t -} - -type ObjectDictionaryListRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsObjectDictionaryListRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ObjectDictionaryListRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsObjectDictionaryListRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ObjectDictionaryListRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ObjectDictionaryListRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ObjectDictionaryListRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ObjectDictionaryListRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ObjectDictionaryListRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *ObjectDictionaryListRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectDictionaryListRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *ObjectDictionaryListRequest) ListType() ObjectDictionaryListType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return ObjectDictionaryListType(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ObjectDictionaryListRequest) MutateListType(n ObjectDictionaryListType) bool { - return rcv._tab.MutateByteSlot(8, byte(n)) -} - -func (rcv *ObjectDictionaryListRequest) MaxElements() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectDictionaryListRequest) MutateMaxElements(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func ObjectDictionaryListRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func ObjectDictionaryListRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func ObjectDictionaryListRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func ObjectDictionaryListRequestAddListType(builder *flatbuffers.Builder, listType ObjectDictionaryListType) { - builder.PrependByteSlot(2, byte(listType), 0) -} -func ObjectDictionaryListRequestAddMaxElements(builder *flatbuffers.Builder, maxElements uint32) { - builder.PrependUint32Slot(3, maxElements, 0) -} -func ObjectDictionaryListRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ObjectDictionaryListRequestT struct { + AddressType Addresstype + Address uint16 + ListType ObjectDictionaryListType + MaxElements uint32 +} + +func (t *ObjectDictionaryListRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ObjectDictionaryListRequestStart(builder) + ObjectDictionaryListRequestAddAddressType(builder, t.AddressType) + ObjectDictionaryListRequestAddAddress(builder, t.Address) + ObjectDictionaryListRequestAddListType(builder, t.ListType) + ObjectDictionaryListRequestAddMaxElements(builder, t.MaxElements) + return ObjectDictionaryListRequestEnd(builder) +} + +func (rcv *ObjectDictionaryListRequest) UnPackTo(t *ObjectDictionaryListRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.ListType = rcv.ListType() + t.MaxElements = rcv.MaxElements() +} + +func (rcv *ObjectDictionaryListRequest) UnPack() *ObjectDictionaryListRequestT { + if rcv == nil { return nil } + t := &ObjectDictionaryListRequestT{} + rcv.UnPackTo(t) + return t +} + +type ObjectDictionaryListRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsObjectDictionaryListRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ObjectDictionaryListRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsObjectDictionaryListRequest(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ObjectDictionaryListRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ObjectDictionaryListRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ObjectDictionaryListRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ObjectDictionaryListRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ObjectDictionaryListRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *ObjectDictionaryListRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectDictionaryListRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *ObjectDictionaryListRequest) ListType() ObjectDictionaryListType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return ObjectDictionaryListType(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ObjectDictionaryListRequest) MutateListType(n ObjectDictionaryListType) bool { + return rcv._tab.MutateByteSlot(8, byte(n)) +} + +func (rcv *ObjectDictionaryListRequest) MaxElements() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectDictionaryListRequest) MutateMaxElements(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func ObjectDictionaryListRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func ObjectDictionaryListRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func ObjectDictionaryListRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func ObjectDictionaryListRequestAddListType(builder *flatbuffers.Builder, listType ObjectDictionaryListType) { + builder.PrependByteSlot(2, byte(listType), 0) +} +func ObjectDictionaryListRequestAddMaxElements(builder *flatbuffers.Builder, maxElements uint32) { + builder.PrependUint32Slot(3, maxElements, 0) +} +func ObjectDictionaryListRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListResponse.go b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListResponse.go index d1568ad..ecdf79b 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListResponse.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ObjectDictionaryListResponseT struct { - Indices []uint16 -} - -func (t *ObjectDictionaryListResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - indicesOffset := flatbuffers.UOffsetT(0) - if t.Indices != nil { - indicesLength := len(t.Indices) - ObjectDictionaryListResponseStartIndicesVector(builder, indicesLength) - for j := indicesLength - 1; j >= 0; j-- { - builder.PrependUint16(t.Indices[j]) - } - indicesOffset = builder.EndVector(indicesLength) - } - ObjectDictionaryListResponseStart(builder) - ObjectDictionaryListResponseAddIndices(builder, indicesOffset) - return ObjectDictionaryListResponseEnd(builder) -} - -func (rcv *ObjectDictionaryListResponse) UnPackTo(t *ObjectDictionaryListResponseT) { - indicesLength := rcv.IndicesLength() - t.Indices = make([]uint16, indicesLength) - for j := 0; j < indicesLength; j++ { - t.Indices[j] = rcv.Indices(j) - } -} - -func (rcv *ObjectDictionaryListResponse) UnPack() *ObjectDictionaryListResponseT { - if rcv == nil { return nil } - t := &ObjectDictionaryListResponseT{} - rcv.UnPackTo(t) - return t -} - -type ObjectDictionaryListResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsObjectDictionaryListResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ObjectDictionaryListResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsObjectDictionaryListResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ObjectDictionaryListResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ObjectDictionaryListResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ObjectDictionaryListResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ObjectDictionaryListResponse) Indices(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *ObjectDictionaryListResponse) IndicesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ObjectDictionaryListResponse) MutateIndices(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func ObjectDictionaryListResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ObjectDictionaryListResponseAddIndices(builder *flatbuffers.Builder, indices flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(indices), 0) -} -func ObjectDictionaryListResponseStartIndicesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func ObjectDictionaryListResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ObjectDictionaryListResponseT struct { + Indices []uint16 +} + +func (t *ObjectDictionaryListResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + indicesOffset := flatbuffers.UOffsetT(0) + if t.Indices != nil { + indicesLength := len(t.Indices) + ObjectDictionaryListResponseStartIndicesVector(builder, indicesLength) + for j := indicesLength - 1; j >= 0; j-- { + builder.PrependUint16(t.Indices[j]) + } + indicesOffset = builder.EndVector(indicesLength) + } + ObjectDictionaryListResponseStart(builder) + ObjectDictionaryListResponseAddIndices(builder, indicesOffset) + return ObjectDictionaryListResponseEnd(builder) +} + +func (rcv *ObjectDictionaryListResponse) UnPackTo(t *ObjectDictionaryListResponseT) { + indicesLength := rcv.IndicesLength() + t.Indices = make([]uint16, indicesLength) + for j := 0; j < indicesLength; j++ { + t.Indices[j] = rcv.Indices(j) + } +} + +func (rcv *ObjectDictionaryListResponse) UnPack() *ObjectDictionaryListResponseT { + if rcv == nil { return nil } + t := &ObjectDictionaryListResponseT{} + rcv.UnPackTo(t) + return t +} + +type ObjectDictionaryListResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsObjectDictionaryListResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ObjectDictionaryListResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsObjectDictionaryListResponse(buf []byte, offset flatbuffers.UOffsetT) *ObjectDictionaryListResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ObjectDictionaryListResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ObjectDictionaryListResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ObjectDictionaryListResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ObjectDictionaryListResponse) Indices(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *ObjectDictionaryListResponse) IndicesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ObjectDictionaryListResponse) MutateIndices(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func ObjectDictionaryListResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ObjectDictionaryListResponseAddIndices(builder *flatbuffers.Builder, indices flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(indices), 0) +} +func ObjectDictionaryListResponseStartIndicesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func ObjectDictionaryListResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListType.go b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListType.go index d958c8a..ee5a667 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListType.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ObjectDictionaryListType.go @@ -1,41 +1,41 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type ObjectDictionaryListType byte - -const ( - ObjectDictionaryListTypelength ObjectDictionaryListType = 0 - ObjectDictionaryListTypeall ObjectDictionaryListType = 1 - ObjectDictionaryListTyperxPDOMap ObjectDictionaryListType = 2 - ObjectDictionaryListTypetxPDOMap ObjectDictionaryListType = 3 - ObjectDictionaryListTypestoredForReplacement ObjectDictionaryListType = 4 - ObjectDictionaryListTypestartupParam ObjectDictionaryListType = 5 -) - -var EnumNamesObjectDictionaryListType = map[ObjectDictionaryListType]string{ - ObjectDictionaryListTypelength: "length", - ObjectDictionaryListTypeall: "all", - ObjectDictionaryListTyperxPDOMap: "rxPDOMap", - ObjectDictionaryListTypetxPDOMap: "txPDOMap", - ObjectDictionaryListTypestoredForReplacement: "storedForReplacement", - ObjectDictionaryListTypestartupParam: "startupParam", -} - -var EnumValuesObjectDictionaryListType = map[string]ObjectDictionaryListType{ - "length": ObjectDictionaryListTypelength, - "all": ObjectDictionaryListTypeall, - "rxPDOMap": ObjectDictionaryListTyperxPDOMap, - "txPDOMap": ObjectDictionaryListTypetxPDOMap, - "storedForReplacement": ObjectDictionaryListTypestoredForReplacement, - "startupParam": ObjectDictionaryListTypestartupParam, -} - -func (v ObjectDictionaryListType) String() string { - if s, ok := EnumNamesObjectDictionaryListType[v]; ok { - return s - } - return "ObjectDictionaryListType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type ObjectDictionaryListType byte + +const ( + ObjectDictionaryListTypelength ObjectDictionaryListType = 0 + ObjectDictionaryListTypeall ObjectDictionaryListType = 1 + ObjectDictionaryListTyperxPDOMap ObjectDictionaryListType = 2 + ObjectDictionaryListTypetxPDOMap ObjectDictionaryListType = 3 + ObjectDictionaryListTypestoredForReplacement ObjectDictionaryListType = 4 + ObjectDictionaryListTypestartupParam ObjectDictionaryListType = 5 +) + +var EnumNamesObjectDictionaryListType = map[ObjectDictionaryListType]string{ + ObjectDictionaryListTypelength: "length", + ObjectDictionaryListTypeall: "all", + ObjectDictionaryListTyperxPDOMap: "rxPDOMap", + ObjectDictionaryListTypetxPDOMap: "txPDOMap", + ObjectDictionaryListTypestoredForReplacement: "storedForReplacement", + ObjectDictionaryListTypestartupParam: "startupParam", +} + +var EnumValuesObjectDictionaryListType = map[string]ObjectDictionaryListType{ + "length": ObjectDictionaryListTypelength, + "all": ObjectDictionaryListTypeall, + "rxPDOMap": ObjectDictionaryListTyperxPDOMap, + "txPDOMap": ObjectDictionaryListTypetxPDOMap, + "storedForReplacement": ObjectDictionaryListTypestoredForReplacement, + "startupParam": ObjectDictionaryListTypestartupParam, +} + +func (v ObjectDictionaryListType) String() string { + if s, ok := EnumNamesObjectDictionaryListType[v]; ok { + return s + } + return "ObjectDictionaryListType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/Parameter.go b/pkg/fbs/comm/ethercat/master/fbs/Parameter.go index 5edad22..2b619f4 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/Parameter.go +++ b/pkg/fbs/comm/ethercat/master/fbs/Parameter.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ParameterT struct { - Request *ParameterRequestT - Response *ParameterResponseT -} - -func (t *ParameterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - ParameterStart(builder) - ParameterAddRequest(builder, requestOffset) - ParameterAddResponse(builder, responseOffset) - return ParameterEnd(builder) -} - -func (rcv *Parameter) UnPackTo(t *ParameterT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *Parameter) UnPack() *ParameterT { - if rcv == nil { return nil } - t := &ParameterT{} - rcv.UnPackTo(t) - return t -} - -type Parameter struct { - _tab flatbuffers.Table -} - -func GetRootAsParameter(buf []byte, offset flatbuffers.UOffsetT) *Parameter { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Parameter{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsParameter(buf []byte, offset flatbuffers.UOffsetT) *Parameter { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Parameter{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Parameter) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Parameter) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Parameter) Request(obj *ParameterRequest) *ParameterRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ParameterRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Parameter) Response(obj *ParameterResponse) *ParameterResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ParameterResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func ParameterStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ParameterAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func ParameterAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func ParameterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ParameterT struct { + Request *ParameterRequestT + Response *ParameterResponseT +} + +func (t *ParameterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + ParameterStart(builder) + ParameterAddRequest(builder, requestOffset) + ParameterAddResponse(builder, responseOffset) + return ParameterEnd(builder) +} + +func (rcv *Parameter) UnPackTo(t *ParameterT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *Parameter) UnPack() *ParameterT { + if rcv == nil { return nil } + t := &ParameterT{} + rcv.UnPackTo(t) + return t +} + +type Parameter struct { + _tab flatbuffers.Table +} + +func GetRootAsParameter(buf []byte, offset flatbuffers.UOffsetT) *Parameter { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Parameter{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsParameter(buf []byte, offset flatbuffers.UOffsetT) *Parameter { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Parameter{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Parameter) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Parameter) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Parameter) Request(obj *ParameterRequest) *ParameterRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ParameterRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Parameter) Response(obj *ParameterResponse) *ParameterResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ParameterResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func ParameterStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ParameterAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func ParameterAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func ParameterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ParameterRequest.go b/pkg/fbs/comm/ethercat/master/fbs/ParameterRequest.go index 4a796a6..7dfa28c 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ParameterRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ParameterRequest.go @@ -1,215 +1,215 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ParameterRequestT struct { - AddressType Addresstype - Address uint16 - DriveNumber byte - ElementFlags ElementFlags - Idn uint16 - Data []byte - MaxLength uint32 -} - -func (t *ParameterRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - ParameterRequestStart(builder) - ParameterRequestAddAddressType(builder, t.AddressType) - ParameterRequestAddAddress(builder, t.Address) - ParameterRequestAddDriveNumber(builder, t.DriveNumber) - ParameterRequestAddElementFlags(builder, t.ElementFlags) - ParameterRequestAddIdn(builder, t.Idn) - ParameterRequestAddData(builder, dataOffset) - ParameterRequestAddMaxLength(builder, t.MaxLength) - return ParameterRequestEnd(builder) -} - -func (rcv *ParameterRequest) UnPackTo(t *ParameterRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.DriveNumber = rcv.DriveNumber() - t.ElementFlags = rcv.ElementFlags() - t.Idn = rcv.Idn() - t.Data = rcv.DataBytes() - t.MaxLength = rcv.MaxLength() -} - -func (rcv *ParameterRequest) UnPack() *ParameterRequestT { - if rcv == nil { return nil } - t := &ParameterRequestT{} - rcv.UnPackTo(t) - return t -} - -type ParameterRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsParameterRequest(buf []byte, offset flatbuffers.UOffsetT) *ParameterRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ParameterRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsParameterRequest(buf []byte, offset flatbuffers.UOffsetT) *ParameterRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ParameterRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ParameterRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ParameterRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ParameterRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ParameterRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *ParameterRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ParameterRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *ParameterRequest) DriveNumber() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ParameterRequest) MutateDriveNumber(n byte) bool { - return rcv._tab.MutateByteSlot(8, n) -} - -func (rcv *ParameterRequest) ElementFlags() ElementFlags { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return ElementFlags(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ParameterRequest) MutateElementFlags(n ElementFlags) bool { - return rcv._tab.MutateByteSlot(10, byte(n)) -} - -func (rcv *ParameterRequest) Idn() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ParameterRequest) MutateIdn(n uint16) bool { - return rcv._tab.MutateUint16Slot(12, n) -} - -func (rcv *ParameterRequest) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ParameterRequest) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ParameterRequest) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ParameterRequest) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *ParameterRequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ParameterRequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func ParameterRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func ParameterRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func ParameterRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func ParameterRequestAddDriveNumber(builder *flatbuffers.Builder, driveNumber byte) { - builder.PrependByteSlot(2, driveNumber, 0) -} -func ParameterRequestAddElementFlags(builder *flatbuffers.Builder, elementFlags ElementFlags) { - builder.PrependByteSlot(3, byte(elementFlags), 0) -} -func ParameterRequestAddIdn(builder *flatbuffers.Builder, idn uint16) { - builder.PrependUint16Slot(4, idn, 0) -} -func ParameterRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(data), 0) -} -func ParameterRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ParameterRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(6, maxLength, 0) -} -func ParameterRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ParameterRequestT struct { + AddressType Addresstype + Address uint16 + DriveNumber byte + ElementFlags ElementFlags + Idn uint16 + Data []byte + MaxLength uint32 +} + +func (t *ParameterRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + ParameterRequestStart(builder) + ParameterRequestAddAddressType(builder, t.AddressType) + ParameterRequestAddAddress(builder, t.Address) + ParameterRequestAddDriveNumber(builder, t.DriveNumber) + ParameterRequestAddElementFlags(builder, t.ElementFlags) + ParameterRequestAddIdn(builder, t.Idn) + ParameterRequestAddData(builder, dataOffset) + ParameterRequestAddMaxLength(builder, t.MaxLength) + return ParameterRequestEnd(builder) +} + +func (rcv *ParameterRequest) UnPackTo(t *ParameterRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.DriveNumber = rcv.DriveNumber() + t.ElementFlags = rcv.ElementFlags() + t.Idn = rcv.Idn() + t.Data = rcv.DataBytes() + t.MaxLength = rcv.MaxLength() +} + +func (rcv *ParameterRequest) UnPack() *ParameterRequestT { + if rcv == nil { return nil } + t := &ParameterRequestT{} + rcv.UnPackTo(t) + return t +} + +type ParameterRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsParameterRequest(buf []byte, offset flatbuffers.UOffsetT) *ParameterRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ParameterRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsParameterRequest(buf []byte, offset flatbuffers.UOffsetT) *ParameterRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ParameterRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ParameterRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ParameterRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ParameterRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ParameterRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *ParameterRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ParameterRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *ParameterRequest) DriveNumber() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ParameterRequest) MutateDriveNumber(n byte) bool { + return rcv._tab.MutateByteSlot(8, n) +} + +func (rcv *ParameterRequest) ElementFlags() ElementFlags { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return ElementFlags(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ParameterRequest) MutateElementFlags(n ElementFlags) bool { + return rcv._tab.MutateByteSlot(10, byte(n)) +} + +func (rcv *ParameterRequest) Idn() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ParameterRequest) MutateIdn(n uint16) bool { + return rcv._tab.MutateUint16Slot(12, n) +} + +func (rcv *ParameterRequest) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ParameterRequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ParameterRequest) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ParameterRequest) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *ParameterRequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ParameterRequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +func ParameterRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func ParameterRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func ParameterRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func ParameterRequestAddDriveNumber(builder *flatbuffers.Builder, driveNumber byte) { + builder.PrependByteSlot(2, driveNumber, 0) +} +func ParameterRequestAddElementFlags(builder *flatbuffers.Builder, elementFlags ElementFlags) { + builder.PrependByteSlot(3, byte(elementFlags), 0) +} +func ParameterRequestAddIdn(builder *flatbuffers.Builder, idn uint16) { + builder.PrependUint16Slot(4, idn, 0) +} +func ParameterRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(data), 0) +} +func ParameterRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ParameterRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(6, maxLength, 0) +} +func ParameterRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ParameterResponse.go b/pkg/fbs/comm/ethercat/master/fbs/ParameterResponse.go index ee22eb0..196668b 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ParameterResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ParameterResponse.go @@ -1,125 +1,125 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ParameterResponseT struct { - ElementFlags ElementFlags - Data []byte -} - -func (t *ParameterResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - ParameterResponseStart(builder) - ParameterResponseAddElementFlags(builder, t.ElementFlags) - ParameterResponseAddData(builder, dataOffset) - return ParameterResponseEnd(builder) -} - -func (rcv *ParameterResponse) UnPackTo(t *ParameterResponseT) { - t.ElementFlags = rcv.ElementFlags() - t.Data = rcv.DataBytes() -} - -func (rcv *ParameterResponse) UnPack() *ParameterResponseT { - if rcv == nil { return nil } - t := &ParameterResponseT{} - rcv.UnPackTo(t) - return t -} - -type ParameterResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsParameterResponse(buf []byte, offset flatbuffers.UOffsetT) *ParameterResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ParameterResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsParameterResponse(buf []byte, offset flatbuffers.UOffsetT) *ParameterResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ParameterResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ParameterResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ParameterResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ParameterResponse) ElementFlags() ElementFlags { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return ElementFlags(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ParameterResponse) MutateElementFlags(n ElementFlags) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *ParameterResponse) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ParameterResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ParameterResponse) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ParameterResponse) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ParameterResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ParameterResponseAddElementFlags(builder *flatbuffers.Builder, elementFlags ElementFlags) { - builder.PrependByteSlot(0, byte(elementFlags), 0) -} -func ParameterResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(data), 0) -} -func ParameterResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ParameterResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ParameterResponseT struct { + ElementFlags ElementFlags + Data []byte +} + +func (t *ParameterResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + ParameterResponseStart(builder) + ParameterResponseAddElementFlags(builder, t.ElementFlags) + ParameterResponseAddData(builder, dataOffset) + return ParameterResponseEnd(builder) +} + +func (rcv *ParameterResponse) UnPackTo(t *ParameterResponseT) { + t.ElementFlags = rcv.ElementFlags() + t.Data = rcv.DataBytes() +} + +func (rcv *ParameterResponse) UnPack() *ParameterResponseT { + if rcv == nil { return nil } + t := &ParameterResponseT{} + rcv.UnPackTo(t) + return t +} + +type ParameterResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsParameterResponse(buf []byte, offset flatbuffers.UOffsetT) *ParameterResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ParameterResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsParameterResponse(buf []byte, offset flatbuffers.UOffsetT) *ParameterResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ParameterResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ParameterResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ParameterResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ParameterResponse) ElementFlags() ElementFlags { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ElementFlags(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ParameterResponse) MutateElementFlags(n ElementFlags) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *ParameterResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ParameterResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ParameterResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ParameterResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ParameterResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ParameterResponseAddElementFlags(builder *flatbuffers.Builder, elementFlags ElementFlags) { + builder.PrependByteSlot(0, byte(elementFlags), 0) +} +func ParameterResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(data), 0) +} +func ParameterResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ParameterResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/PortErrorCounters.go b/pkg/fbs/comm/ethercat/master/fbs/PortErrorCounters.go index a516b7e..30f1893 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/PortErrorCounters.go +++ b/pkg/fbs/comm/ethercat/master/fbs/PortErrorCounters.go @@ -1,82 +1,82 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type PortErrorCountersT struct { - InvalidFrameCounter byte - RxErrorCounter byte - FwdRxErrorCounter byte - LostLinkCounter byte -} - -func (t *PortErrorCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreatePortErrorCounters(builder, t.InvalidFrameCounter, t.RxErrorCounter, t.FwdRxErrorCounter, t.LostLinkCounter) -} -func (rcv *PortErrorCounters) UnPackTo(t *PortErrorCountersT) { - t.InvalidFrameCounter = rcv.InvalidFrameCounter() - t.RxErrorCounter = rcv.RxErrorCounter() - t.FwdRxErrorCounter = rcv.FwdRxErrorCounter() - t.LostLinkCounter = rcv.LostLinkCounter() -} - -func (rcv *PortErrorCounters) UnPack() *PortErrorCountersT { - if rcv == nil { return nil } - t := &PortErrorCountersT{} - rcv.UnPackTo(t) - return t -} - -type PortErrorCounters struct { - _tab flatbuffers.Struct -} - -func (rcv *PortErrorCounters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *PortErrorCounters) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *PortErrorCounters) InvalidFrameCounter() byte { - return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(0)) -} -func (rcv *PortErrorCounters) MutateInvalidFrameCounter(n byte) bool { - return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) -} - -func (rcv *PortErrorCounters) RxErrorCounter() byte { - return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(1)) -} -func (rcv *PortErrorCounters) MutateRxErrorCounter(n byte) bool { - return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(1), n) -} - -func (rcv *PortErrorCounters) FwdRxErrorCounter() byte { - return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(2)) -} -func (rcv *PortErrorCounters) MutateFwdRxErrorCounter(n byte) bool { - return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(2), n) -} - -func (rcv *PortErrorCounters) LostLinkCounter() byte { - return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(3)) -} -func (rcv *PortErrorCounters) MutateLostLinkCounter(n byte) bool { - return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(3), n) -} - -func CreatePortErrorCounters(builder *flatbuffers.Builder, invalidFrameCounter byte, rxErrorCounter byte, fwdRxErrorCounter byte, lostLinkCounter byte) flatbuffers.UOffsetT { - builder.Prep(1, 4) - builder.PrependByte(lostLinkCounter) - builder.PrependByte(fwdRxErrorCounter) - builder.PrependByte(rxErrorCounter) - builder.PrependByte(invalidFrameCounter) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type PortErrorCountersT struct { + InvalidFrameCounter byte + RxErrorCounter byte + FwdRxErrorCounter byte + LostLinkCounter byte +} + +func (t *PortErrorCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreatePortErrorCounters(builder, t.InvalidFrameCounter, t.RxErrorCounter, t.FwdRxErrorCounter, t.LostLinkCounter) +} +func (rcv *PortErrorCounters) UnPackTo(t *PortErrorCountersT) { + t.InvalidFrameCounter = rcv.InvalidFrameCounter() + t.RxErrorCounter = rcv.RxErrorCounter() + t.FwdRxErrorCounter = rcv.FwdRxErrorCounter() + t.LostLinkCounter = rcv.LostLinkCounter() +} + +func (rcv *PortErrorCounters) UnPack() *PortErrorCountersT { + if rcv == nil { return nil } + t := &PortErrorCountersT{} + rcv.UnPackTo(t) + return t +} + +type PortErrorCounters struct { + _tab flatbuffers.Struct +} + +func (rcv *PortErrorCounters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *PortErrorCounters) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *PortErrorCounters) InvalidFrameCounter() byte { + return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(0)) +} +func (rcv *PortErrorCounters) MutateInvalidFrameCounter(n byte) bool { + return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) +} + +func (rcv *PortErrorCounters) RxErrorCounter() byte { + return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(1)) +} +func (rcv *PortErrorCounters) MutateRxErrorCounter(n byte) bool { + return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(1), n) +} + +func (rcv *PortErrorCounters) FwdRxErrorCounter() byte { + return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(2)) +} +func (rcv *PortErrorCounters) MutateFwdRxErrorCounter(n byte) bool { + return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(2), n) +} + +func (rcv *PortErrorCounters) LostLinkCounter() byte { + return rcv._tab.GetByte(rcv._tab.Pos + flatbuffers.UOffsetT(3)) +} +func (rcv *PortErrorCounters) MutateLostLinkCounter(n byte) bool { + return rcv._tab.MutateByte(rcv._tab.Pos+flatbuffers.UOffsetT(3), n) +} + +func CreatePortErrorCounters(builder *flatbuffers.Builder, invalidFrameCounter byte, rxErrorCounter byte, fwdRxErrorCounter byte, lostLinkCounter byte) flatbuffers.UOffsetT { + builder.Prep(1, 4) + builder.PrependByte(lostLinkCounter) + builder.PrependByte(fwdRxErrorCounter) + builder.PrependByte(rxErrorCounter) + builder.PrependByte(invalidFrameCounter) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfo.go b/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfo.go index 61aaff8..eda2303 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfo.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProfileChannelInfoT struct { - Request *ProfileChannelInfoRequestT - Response *ProfileChannelInfoResponseT -} - -func (t *ProfileChannelInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - ProfileChannelInfoStart(builder) - ProfileChannelInfoAddRequest(builder, requestOffset) - ProfileChannelInfoAddResponse(builder, responseOffset) - return ProfileChannelInfoEnd(builder) -} - -func (rcv *ProfileChannelInfo) UnPackTo(t *ProfileChannelInfoT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *ProfileChannelInfo) UnPack() *ProfileChannelInfoT { - if rcv == nil { return nil } - t := &ProfileChannelInfoT{} - rcv.UnPackTo(t) - return t -} - -type ProfileChannelInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsProfileChannelInfo(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ProfileChannelInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProfileChannelInfo(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ProfileChannelInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ProfileChannelInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProfileChannelInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ProfileChannelInfo) Request(obj *ProfileChannelInfoRequest) *ProfileChannelInfoRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ProfileChannelInfoRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ProfileChannelInfo) Response(obj *ProfileChannelInfoResponse) *ProfileChannelInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ProfileChannelInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func ProfileChannelInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ProfileChannelInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func ProfileChannelInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func ProfileChannelInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProfileChannelInfoT struct { + Request *ProfileChannelInfoRequestT + Response *ProfileChannelInfoResponseT +} + +func (t *ProfileChannelInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + ProfileChannelInfoStart(builder) + ProfileChannelInfoAddRequest(builder, requestOffset) + ProfileChannelInfoAddResponse(builder, responseOffset) + return ProfileChannelInfoEnd(builder) +} + +func (rcv *ProfileChannelInfo) UnPackTo(t *ProfileChannelInfoT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *ProfileChannelInfo) UnPack() *ProfileChannelInfoT { + if rcv == nil { return nil } + t := &ProfileChannelInfoT{} + rcv.UnPackTo(t) + return t +} + +type ProfileChannelInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsProfileChannelInfo(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ProfileChannelInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProfileChannelInfo(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ProfileChannelInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ProfileChannelInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProfileChannelInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ProfileChannelInfo) Request(obj *ProfileChannelInfoRequest) *ProfileChannelInfoRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ProfileChannelInfoRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *ProfileChannelInfo) Response(obj *ProfileChannelInfoResponse) *ProfileChannelInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ProfileChannelInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func ProfileChannelInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ProfileChannelInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func ProfileChannelInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func ProfileChannelInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoRequest.go b/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoRequest.go index df2f6b2..b281923 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoRequest.go @@ -1,114 +1,114 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProfileChannelInfoRequestT struct { - AddressType Addresstype - Address uint16 - Channel uint32 -} - -func (t *ProfileChannelInfoRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ProfileChannelInfoRequestStart(builder) - ProfileChannelInfoRequestAddAddressType(builder, t.AddressType) - ProfileChannelInfoRequestAddAddress(builder, t.Address) - ProfileChannelInfoRequestAddChannel(builder, t.Channel) - return ProfileChannelInfoRequestEnd(builder) -} - -func (rcv *ProfileChannelInfoRequest) UnPackTo(t *ProfileChannelInfoRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.Channel = rcv.Channel() -} - -func (rcv *ProfileChannelInfoRequest) UnPack() *ProfileChannelInfoRequestT { - if rcv == nil { return nil } - t := &ProfileChannelInfoRequestT{} - rcv.UnPackTo(t) - return t -} - -type ProfileChannelInfoRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsProfileChannelInfoRequest(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ProfileChannelInfoRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProfileChannelInfoRequest(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ProfileChannelInfoRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ProfileChannelInfoRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProfileChannelInfoRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ProfileChannelInfoRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ProfileChannelInfoRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *ProfileChannelInfoRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ProfileChannelInfoRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *ProfileChannelInfoRequest) Channel() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ProfileChannelInfoRequest) MutateChannel(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func ProfileChannelInfoRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func ProfileChannelInfoRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func ProfileChannelInfoRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func ProfileChannelInfoRequestAddChannel(builder *flatbuffers.Builder, channel uint32) { - builder.PrependUint32Slot(2, channel, 0) -} -func ProfileChannelInfoRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProfileChannelInfoRequestT struct { + AddressType Addresstype + Address uint16 + Channel uint32 +} + +func (t *ProfileChannelInfoRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ProfileChannelInfoRequestStart(builder) + ProfileChannelInfoRequestAddAddressType(builder, t.AddressType) + ProfileChannelInfoRequestAddAddress(builder, t.Address) + ProfileChannelInfoRequestAddChannel(builder, t.Channel) + return ProfileChannelInfoRequestEnd(builder) +} + +func (rcv *ProfileChannelInfoRequest) UnPackTo(t *ProfileChannelInfoRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.Channel = rcv.Channel() +} + +func (rcv *ProfileChannelInfoRequest) UnPack() *ProfileChannelInfoRequestT { + if rcv == nil { return nil } + t := &ProfileChannelInfoRequestT{} + rcv.UnPackTo(t) + return t +} + +type ProfileChannelInfoRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsProfileChannelInfoRequest(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ProfileChannelInfoRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProfileChannelInfoRequest(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ProfileChannelInfoRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ProfileChannelInfoRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProfileChannelInfoRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ProfileChannelInfoRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ProfileChannelInfoRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *ProfileChannelInfoRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ProfileChannelInfoRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *ProfileChannelInfoRequest) Channel() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ProfileChannelInfoRequest) MutateChannel(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func ProfileChannelInfoRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func ProfileChannelInfoRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func ProfileChannelInfoRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func ProfileChannelInfoRequestAddChannel(builder *flatbuffers.Builder, channel uint32) { + builder.PrependUint32Slot(2, channel, 0) +} +func ProfileChannelInfoRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoResponse.go index 78f056a..4a73030 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProfileChannelInfoResponse.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProfileChannelInfoResponseT struct { - ProfileNo uint16 - AddInfo uint16 - DisplayName string -} - -func (t *ProfileChannelInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DisplayNameOffset := builder.CreateString(t.DisplayName) - ProfileChannelInfoResponseStart(builder) - ProfileChannelInfoResponseAddProfileNo(builder, t.ProfileNo) - ProfileChannelInfoResponseAddAddInfo(builder, t.AddInfo) - ProfileChannelInfoResponseAddDisplayName(builder, DisplayNameOffset) - return ProfileChannelInfoResponseEnd(builder) -} - -func (rcv *ProfileChannelInfoResponse) UnPackTo(t *ProfileChannelInfoResponseT) { - t.ProfileNo = rcv.ProfileNo() - t.AddInfo = rcv.AddInfo() - t.DisplayName = string(rcv.DisplayName()) -} - -func (rcv *ProfileChannelInfoResponse) UnPack() *ProfileChannelInfoResponseT { - if rcv == nil { return nil } - t := &ProfileChannelInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type ProfileChannelInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsProfileChannelInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ProfileChannelInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProfileChannelInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ProfileChannelInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ProfileChannelInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProfileChannelInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ProfileChannelInfoResponse) ProfileNo() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ProfileChannelInfoResponse) MutateProfileNo(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func (rcv *ProfileChannelInfoResponse) AddInfo() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ProfileChannelInfoResponse) MutateAddInfo(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *ProfileChannelInfoResponse) DisplayName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ProfileChannelInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func ProfileChannelInfoResponseAddProfileNo(builder *flatbuffers.Builder, ProfileNo uint16) { - builder.PrependUint16Slot(0, ProfileNo, 0) -} -func ProfileChannelInfoResponseAddAddInfo(builder *flatbuffers.Builder, AddInfo uint16) { - builder.PrependUint16Slot(1, AddInfo, 0) -} -func ProfileChannelInfoResponseAddDisplayName(builder *flatbuffers.Builder, DisplayName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(DisplayName), 0) -} -func ProfileChannelInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProfileChannelInfoResponseT struct { + ProfileNo uint16 + AddInfo uint16 + DisplayName string +} + +func (t *ProfileChannelInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DisplayNameOffset := builder.CreateString(t.DisplayName) + ProfileChannelInfoResponseStart(builder) + ProfileChannelInfoResponseAddProfileNo(builder, t.ProfileNo) + ProfileChannelInfoResponseAddAddInfo(builder, t.AddInfo) + ProfileChannelInfoResponseAddDisplayName(builder, DisplayNameOffset) + return ProfileChannelInfoResponseEnd(builder) +} + +func (rcv *ProfileChannelInfoResponse) UnPackTo(t *ProfileChannelInfoResponseT) { + t.ProfileNo = rcv.ProfileNo() + t.AddInfo = rcv.AddInfo() + t.DisplayName = string(rcv.DisplayName()) +} + +func (rcv *ProfileChannelInfoResponse) UnPack() *ProfileChannelInfoResponseT { + if rcv == nil { return nil } + t := &ProfileChannelInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type ProfileChannelInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsProfileChannelInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ProfileChannelInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProfileChannelInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *ProfileChannelInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ProfileChannelInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ProfileChannelInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProfileChannelInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ProfileChannelInfoResponse) ProfileNo() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ProfileChannelInfoResponse) MutateProfileNo(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func (rcv *ProfileChannelInfoResponse) AddInfo() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ProfileChannelInfoResponse) MutateAddInfo(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *ProfileChannelInfoResponse) DisplayName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func ProfileChannelInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func ProfileChannelInfoResponseAddProfileNo(builder *flatbuffers.Builder, ProfileNo uint16) { + builder.PrependUint16Slot(0, ProfileNo, 0) +} +func ProfileChannelInfoResponseAddAddInfo(builder *flatbuffers.Builder, AddInfo uint16) { + builder.PrependUint16Slot(1, AddInfo, 0) +} +func ProfileChannelInfoResponseAddDisplayName(builder *flatbuffers.Builder, DisplayName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(DisplayName), 0) +} +func ProfileChannelInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatistic.go b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatistic.go index 2985de7..69f579b 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatistic.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatistic.go @@ -1,75 +1,75 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProtocolStatisticT struct { - Read *ProtocolStatisticPeriodCountersT - Write *ProtocolStatisticPeriodCountersT -} - -func (t *ProtocolStatisticT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateProtocolStatistic(builder, t.Read.Total.NumRequests, t.Read.Total.NumBytes, t.Read.LastSecond.NumRequests, t.Read.LastSecond.NumBytes, t.Write.Total.NumRequests, t.Write.Total.NumBytes, t.Write.LastSecond.NumRequests, t.Write.LastSecond.NumBytes) -} -func (rcv *ProtocolStatistic) UnPackTo(t *ProtocolStatisticT) { - t.Read = rcv.Read(nil).UnPack() - t.Write = rcv.Write(nil).UnPack() -} - -func (rcv *ProtocolStatistic) UnPack() *ProtocolStatisticT { - if rcv == nil { return nil } - t := &ProtocolStatisticT{} - rcv.UnPackTo(t) - return t -} - -type ProtocolStatistic struct { - _tab flatbuffers.Struct -} - -func (rcv *ProtocolStatistic) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProtocolStatistic) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *ProtocolStatistic) Read(obj *ProtocolStatisticPeriodCounters) *ProtocolStatisticPeriodCounters { - if obj == nil { - obj = new(ProtocolStatisticPeriodCounters) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) - return obj -} -func (rcv *ProtocolStatistic) Write(obj *ProtocolStatisticPeriodCounters) *ProtocolStatisticPeriodCounters { - if obj == nil { - obj = new(ProtocolStatisticPeriodCounters) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+16) - return obj -} - -func CreateProtocolStatistic(builder *flatbuffers.Builder, read_total_numRequests uint32, read_total_numBytes uint32, read_lastSecond_numRequests uint32, read_lastSecond_numBytes uint32, write_total_numRequests uint32, write_total_numBytes uint32, write_lastSecond_numRequests uint32, write_lastSecond_numBytes uint32) flatbuffers.UOffsetT { - builder.Prep(4, 32) - builder.Prep(4, 16) - builder.Prep(4, 8) - builder.PrependUint32(write_lastSecond_numBytes) - builder.PrependUint32(write_lastSecond_numRequests) - builder.Prep(4, 8) - builder.PrependUint32(write_total_numBytes) - builder.PrependUint32(write_total_numRequests) - builder.Prep(4, 16) - builder.Prep(4, 8) - builder.PrependUint32(read_lastSecond_numBytes) - builder.PrependUint32(read_lastSecond_numRequests) - builder.Prep(4, 8) - builder.PrependUint32(read_total_numBytes) - builder.PrependUint32(read_total_numRequests) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProtocolStatisticT struct { + Read *ProtocolStatisticPeriodCountersT + Write *ProtocolStatisticPeriodCountersT +} + +func (t *ProtocolStatisticT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateProtocolStatistic(builder, t.Read.Total.NumRequests, t.Read.Total.NumBytes, t.Read.LastSecond.NumRequests, t.Read.LastSecond.NumBytes, t.Write.Total.NumRequests, t.Write.Total.NumBytes, t.Write.LastSecond.NumRequests, t.Write.LastSecond.NumBytes) +} +func (rcv *ProtocolStatistic) UnPackTo(t *ProtocolStatisticT) { + t.Read = rcv.Read(nil).UnPack() + t.Write = rcv.Write(nil).UnPack() +} + +func (rcv *ProtocolStatistic) UnPack() *ProtocolStatisticT { + if rcv == nil { return nil } + t := &ProtocolStatisticT{} + rcv.UnPackTo(t) + return t +} + +type ProtocolStatistic struct { + _tab flatbuffers.Struct +} + +func (rcv *ProtocolStatistic) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProtocolStatistic) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *ProtocolStatistic) Read(obj *ProtocolStatisticPeriodCounters) *ProtocolStatisticPeriodCounters { + if obj == nil { + obj = new(ProtocolStatisticPeriodCounters) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) + return obj +} +func (rcv *ProtocolStatistic) Write(obj *ProtocolStatisticPeriodCounters) *ProtocolStatisticPeriodCounters { + if obj == nil { + obj = new(ProtocolStatisticPeriodCounters) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+16) + return obj +} + +func CreateProtocolStatistic(builder *flatbuffers.Builder, read_total_numRequests uint32, read_total_numBytes uint32, read_lastSecond_numRequests uint32, read_lastSecond_numBytes uint32, write_total_numRequests uint32, write_total_numBytes uint32, write_lastSecond_numRequests uint32, write_lastSecond_numBytes uint32) flatbuffers.UOffsetT { + builder.Prep(4, 32) + builder.Prep(4, 16) + builder.Prep(4, 8) + builder.PrependUint32(write_lastSecond_numBytes) + builder.PrependUint32(write_lastSecond_numRequests) + builder.Prep(4, 8) + builder.PrependUint32(write_total_numBytes) + builder.PrependUint32(write_total_numRequests) + builder.Prep(4, 16) + builder.Prep(4, 8) + builder.PrependUint32(read_lastSecond_numBytes) + builder.PrependUint32(read_lastSecond_numRequests) + builder.Prep(4, 8) + builder.PrependUint32(read_total_numBytes) + builder.PrependUint32(read_total_numRequests) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticCounters.go b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticCounters.go index 448ba5d..944f4e2 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticCounters.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticCounters.go @@ -1,62 +1,62 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProtocolStatisticCountersT struct { - NumRequests uint32 - NumBytes uint32 -} - -func (t *ProtocolStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateProtocolStatisticCounters(builder, t.NumRequests, t.NumBytes) -} -func (rcv *ProtocolStatisticCounters) UnPackTo(t *ProtocolStatisticCountersT) { - t.NumRequests = rcv.NumRequests() - t.NumBytes = rcv.NumBytes() -} - -func (rcv *ProtocolStatisticCounters) UnPack() *ProtocolStatisticCountersT { - if rcv == nil { return nil } - t := &ProtocolStatisticCountersT{} - rcv.UnPackTo(t) - return t -} - -type ProtocolStatisticCounters struct { - _tab flatbuffers.Struct -} - -func (rcv *ProtocolStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProtocolStatisticCounters) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *ProtocolStatisticCounters) NumRequests() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) -} -func (rcv *ProtocolStatisticCounters) MutateNumRequests(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) -} - -func (rcv *ProtocolStatisticCounters) NumBytes() uint32 { - return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) -} -func (rcv *ProtocolStatisticCounters) MutateNumBytes(n uint32) bool { - return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) -} - -func CreateProtocolStatisticCounters(builder *flatbuffers.Builder, numRequests uint32, numBytes uint32) flatbuffers.UOffsetT { - builder.Prep(4, 8) - builder.PrependUint32(numBytes) - builder.PrependUint32(numRequests) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProtocolStatisticCountersT struct { + NumRequests uint32 + NumBytes uint32 +} + +func (t *ProtocolStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateProtocolStatisticCounters(builder, t.NumRequests, t.NumBytes) +} +func (rcv *ProtocolStatisticCounters) UnPackTo(t *ProtocolStatisticCountersT) { + t.NumRequests = rcv.NumRequests() + t.NumBytes = rcv.NumBytes() +} + +func (rcv *ProtocolStatisticCounters) UnPack() *ProtocolStatisticCountersT { + if rcv == nil { return nil } + t := &ProtocolStatisticCountersT{} + rcv.UnPackTo(t) + return t +} + +type ProtocolStatisticCounters struct { + _tab flatbuffers.Struct +} + +func (rcv *ProtocolStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProtocolStatisticCounters) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *ProtocolStatisticCounters) NumRequests() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(0)) +} +func (rcv *ProtocolStatisticCounters) MutateNumRequests(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) +} + +func (rcv *ProtocolStatisticCounters) NumBytes() uint32 { + return rcv._tab.GetUint32(rcv._tab.Pos + flatbuffers.UOffsetT(4)) +} +func (rcv *ProtocolStatisticCounters) MutateNumBytes(n uint32) bool { + return rcv._tab.MutateUint32(rcv._tab.Pos+flatbuffers.UOffsetT(4), n) +} + +func CreateProtocolStatisticCounters(builder *flatbuffers.Builder, numRequests uint32, numBytes uint32) flatbuffers.UOffsetT { + builder.Prep(4, 8) + builder.PrependUint32(numBytes) + builder.PrependUint32(numRequests) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodCounters.go b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodCounters.go index 599f37f..27e9730 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodCounters.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodCounters.go @@ -1,67 +1,67 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProtocolStatisticPeriodCountersT struct { - Total *ProtocolStatisticCountersT - LastSecond *ProtocolStatisticCountersT -} - -func (t *ProtocolStatisticPeriodCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateProtocolStatisticPeriodCounters(builder, t.Total.NumRequests, t.Total.NumBytes, t.LastSecond.NumRequests, t.LastSecond.NumBytes) -} -func (rcv *ProtocolStatisticPeriodCounters) UnPackTo(t *ProtocolStatisticPeriodCountersT) { - t.Total = rcv.Total(nil).UnPack() - t.LastSecond = rcv.LastSecond(nil).UnPack() -} - -func (rcv *ProtocolStatisticPeriodCounters) UnPack() *ProtocolStatisticPeriodCountersT { - if rcv == nil { return nil } - t := &ProtocolStatisticPeriodCountersT{} - rcv.UnPackTo(t) - return t -} - -type ProtocolStatisticPeriodCounters struct { - _tab flatbuffers.Struct -} - -func (rcv *ProtocolStatisticPeriodCounters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProtocolStatisticPeriodCounters) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *ProtocolStatisticPeriodCounters) Total(obj *ProtocolStatisticCounters) *ProtocolStatisticCounters { - if obj == nil { - obj = new(ProtocolStatisticCounters) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) - return obj -} -func (rcv *ProtocolStatisticPeriodCounters) LastSecond(obj *ProtocolStatisticCounters) *ProtocolStatisticCounters { - if obj == nil { - obj = new(ProtocolStatisticCounters) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+8) - return obj -} - -func CreateProtocolStatisticPeriodCounters(builder *flatbuffers.Builder, total_numRequests uint32, total_numBytes uint32, lastSecond_numRequests uint32, lastSecond_numBytes uint32) flatbuffers.UOffsetT { - builder.Prep(4, 16) - builder.Prep(4, 8) - builder.PrependUint32(lastSecond_numBytes) - builder.PrependUint32(lastSecond_numRequests) - builder.Prep(4, 8) - builder.PrependUint32(total_numBytes) - builder.PrependUint32(total_numRequests) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProtocolStatisticPeriodCountersT struct { + Total *ProtocolStatisticCountersT + LastSecond *ProtocolStatisticCountersT +} + +func (t *ProtocolStatisticPeriodCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateProtocolStatisticPeriodCounters(builder, t.Total.NumRequests, t.Total.NumBytes, t.LastSecond.NumRequests, t.LastSecond.NumBytes) +} +func (rcv *ProtocolStatisticPeriodCounters) UnPackTo(t *ProtocolStatisticPeriodCountersT) { + t.Total = rcv.Total(nil).UnPack() + t.LastSecond = rcv.LastSecond(nil).UnPack() +} + +func (rcv *ProtocolStatisticPeriodCounters) UnPack() *ProtocolStatisticPeriodCountersT { + if rcv == nil { return nil } + t := &ProtocolStatisticPeriodCountersT{} + rcv.UnPackTo(t) + return t +} + +type ProtocolStatisticPeriodCounters struct { + _tab flatbuffers.Struct +} + +func (rcv *ProtocolStatisticPeriodCounters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProtocolStatisticPeriodCounters) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *ProtocolStatisticPeriodCounters) Total(obj *ProtocolStatisticCounters) *ProtocolStatisticCounters { + if obj == nil { + obj = new(ProtocolStatisticCounters) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) + return obj +} +func (rcv *ProtocolStatisticPeriodCounters) LastSecond(obj *ProtocolStatisticCounters) *ProtocolStatisticCounters { + if obj == nil { + obj = new(ProtocolStatisticCounters) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+8) + return obj +} + +func CreateProtocolStatisticPeriodCounters(builder *flatbuffers.Builder, total_numRequests uint32, total_numBytes uint32, lastSecond_numRequests uint32, lastSecond_numBytes uint32) flatbuffers.UOffsetT { + builder.Prep(4, 16) + builder.Prep(4, 8) + builder.PrependUint32(lastSecond_numBytes) + builder.PrependUint32(lastSecond_numRequests) + builder.Prep(4, 8) + builder.PrependUint32(total_numBytes) + builder.PrependUint32(total_numRequests) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodReset.go b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodReset.go index cf6ac49..2c1997b 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodReset.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticPeriodReset.go @@ -1,67 +1,67 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProtocolStatisticPeriodResetT struct { - Total *ProtocolStatisticResetFlagsT - LastSecond *ProtocolStatisticResetFlagsT -} - -func (t *ProtocolStatisticPeriodResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateProtocolStatisticPeriodReset(builder, t.Total.NumRequests, t.Total.NumBytes, t.LastSecond.NumRequests, t.LastSecond.NumBytes) -} -func (rcv *ProtocolStatisticPeriodReset) UnPackTo(t *ProtocolStatisticPeriodResetT) { - t.Total = rcv.Total(nil).UnPack() - t.LastSecond = rcv.LastSecond(nil).UnPack() -} - -func (rcv *ProtocolStatisticPeriodReset) UnPack() *ProtocolStatisticPeriodResetT { - if rcv == nil { return nil } - t := &ProtocolStatisticPeriodResetT{} - rcv.UnPackTo(t) - return t -} - -type ProtocolStatisticPeriodReset struct { - _tab flatbuffers.Struct -} - -func (rcv *ProtocolStatisticPeriodReset) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProtocolStatisticPeriodReset) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *ProtocolStatisticPeriodReset) Total(obj *ProtocolStatisticResetFlags) *ProtocolStatisticResetFlags { - if obj == nil { - obj = new(ProtocolStatisticResetFlags) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) - return obj -} -func (rcv *ProtocolStatisticPeriodReset) LastSecond(obj *ProtocolStatisticResetFlags) *ProtocolStatisticResetFlags { - if obj == nil { - obj = new(ProtocolStatisticResetFlags) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+2) - return obj -} - -func CreateProtocolStatisticPeriodReset(builder *flatbuffers.Builder, total_numRequests bool, total_numBytes bool, lastSecond_numRequests bool, lastSecond_numBytes bool) flatbuffers.UOffsetT { - builder.Prep(1, 4) - builder.Prep(1, 2) - builder.PrependBool(lastSecond_numBytes) - builder.PrependBool(lastSecond_numRequests) - builder.Prep(1, 2) - builder.PrependBool(total_numBytes) - builder.PrependBool(total_numRequests) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProtocolStatisticPeriodResetT struct { + Total *ProtocolStatisticResetFlagsT + LastSecond *ProtocolStatisticResetFlagsT +} + +func (t *ProtocolStatisticPeriodResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateProtocolStatisticPeriodReset(builder, t.Total.NumRequests, t.Total.NumBytes, t.LastSecond.NumRequests, t.LastSecond.NumBytes) +} +func (rcv *ProtocolStatisticPeriodReset) UnPackTo(t *ProtocolStatisticPeriodResetT) { + t.Total = rcv.Total(nil).UnPack() + t.LastSecond = rcv.LastSecond(nil).UnPack() +} + +func (rcv *ProtocolStatisticPeriodReset) UnPack() *ProtocolStatisticPeriodResetT { + if rcv == nil { return nil } + t := &ProtocolStatisticPeriodResetT{} + rcv.UnPackTo(t) + return t +} + +type ProtocolStatisticPeriodReset struct { + _tab flatbuffers.Struct +} + +func (rcv *ProtocolStatisticPeriodReset) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProtocolStatisticPeriodReset) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *ProtocolStatisticPeriodReset) Total(obj *ProtocolStatisticResetFlags) *ProtocolStatisticResetFlags { + if obj == nil { + obj = new(ProtocolStatisticResetFlags) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) + return obj +} +func (rcv *ProtocolStatisticPeriodReset) LastSecond(obj *ProtocolStatisticResetFlags) *ProtocolStatisticResetFlags { + if obj == nil { + obj = new(ProtocolStatisticResetFlags) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+2) + return obj +} + +func CreateProtocolStatisticPeriodReset(builder *flatbuffers.Builder, total_numRequests bool, total_numBytes bool, lastSecond_numRequests bool, lastSecond_numBytes bool) flatbuffers.UOffsetT { + builder.Prep(1, 4) + builder.Prep(1, 2) + builder.PrependBool(lastSecond_numBytes) + builder.PrependBool(lastSecond_numRequests) + builder.Prep(1, 2) + builder.PrependBool(total_numBytes) + builder.PrependBool(total_numRequests) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticReset.go b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticReset.go index 533a5e9..09707b8 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticReset.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticReset.go @@ -1,75 +1,75 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProtocolStatisticResetT struct { - Read *ProtocolStatisticPeriodResetT - Write *ProtocolStatisticPeriodResetT -} - -func (t *ProtocolStatisticResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateProtocolStatisticReset(builder, t.Read.Total.NumRequests, t.Read.Total.NumBytes, t.Read.LastSecond.NumRequests, t.Read.LastSecond.NumBytes, t.Write.Total.NumRequests, t.Write.Total.NumBytes, t.Write.LastSecond.NumRequests, t.Write.LastSecond.NumBytes) -} -func (rcv *ProtocolStatisticReset) UnPackTo(t *ProtocolStatisticResetT) { - t.Read = rcv.Read(nil).UnPack() - t.Write = rcv.Write(nil).UnPack() -} - -func (rcv *ProtocolStatisticReset) UnPack() *ProtocolStatisticResetT { - if rcv == nil { return nil } - t := &ProtocolStatisticResetT{} - rcv.UnPackTo(t) - return t -} - -type ProtocolStatisticReset struct { - _tab flatbuffers.Struct -} - -func (rcv *ProtocolStatisticReset) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProtocolStatisticReset) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *ProtocolStatisticReset) Read(obj *ProtocolStatisticPeriodReset) *ProtocolStatisticPeriodReset { - if obj == nil { - obj = new(ProtocolStatisticPeriodReset) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) - return obj -} -func (rcv *ProtocolStatisticReset) Write(obj *ProtocolStatisticPeriodReset) *ProtocolStatisticPeriodReset { - if obj == nil { - obj = new(ProtocolStatisticPeriodReset) - } - obj.Init(rcv._tab.Bytes, rcv._tab.Pos+4) - return obj -} - -func CreateProtocolStatisticReset(builder *flatbuffers.Builder, read_total_numRequests bool, read_total_numBytes bool, read_lastSecond_numRequests bool, read_lastSecond_numBytes bool, write_total_numRequests bool, write_total_numBytes bool, write_lastSecond_numRequests bool, write_lastSecond_numBytes bool) flatbuffers.UOffsetT { - builder.Prep(1, 8) - builder.Prep(1, 4) - builder.Prep(1, 2) - builder.PrependBool(write_lastSecond_numBytes) - builder.PrependBool(write_lastSecond_numRequests) - builder.Prep(1, 2) - builder.PrependBool(write_total_numBytes) - builder.PrependBool(write_total_numRequests) - builder.Prep(1, 4) - builder.Prep(1, 2) - builder.PrependBool(read_lastSecond_numBytes) - builder.PrependBool(read_lastSecond_numRequests) - builder.Prep(1, 2) - builder.PrependBool(read_total_numBytes) - builder.PrependBool(read_total_numRequests) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProtocolStatisticResetT struct { + Read *ProtocolStatisticPeriodResetT + Write *ProtocolStatisticPeriodResetT +} + +func (t *ProtocolStatisticResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateProtocolStatisticReset(builder, t.Read.Total.NumRequests, t.Read.Total.NumBytes, t.Read.LastSecond.NumRequests, t.Read.LastSecond.NumBytes, t.Write.Total.NumRequests, t.Write.Total.NumBytes, t.Write.LastSecond.NumRequests, t.Write.LastSecond.NumBytes) +} +func (rcv *ProtocolStatisticReset) UnPackTo(t *ProtocolStatisticResetT) { + t.Read = rcv.Read(nil).UnPack() + t.Write = rcv.Write(nil).UnPack() +} + +func (rcv *ProtocolStatisticReset) UnPack() *ProtocolStatisticResetT { + if rcv == nil { return nil } + t := &ProtocolStatisticResetT{} + rcv.UnPackTo(t) + return t +} + +type ProtocolStatisticReset struct { + _tab flatbuffers.Struct +} + +func (rcv *ProtocolStatisticReset) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProtocolStatisticReset) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *ProtocolStatisticReset) Read(obj *ProtocolStatisticPeriodReset) *ProtocolStatisticPeriodReset { + if obj == nil { + obj = new(ProtocolStatisticPeriodReset) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+0) + return obj +} +func (rcv *ProtocolStatisticReset) Write(obj *ProtocolStatisticPeriodReset) *ProtocolStatisticPeriodReset { + if obj == nil { + obj = new(ProtocolStatisticPeriodReset) + } + obj.Init(rcv._tab.Bytes, rcv._tab.Pos+4) + return obj +} + +func CreateProtocolStatisticReset(builder *flatbuffers.Builder, read_total_numRequests bool, read_total_numBytes bool, read_lastSecond_numRequests bool, read_lastSecond_numBytes bool, write_total_numRequests bool, write_total_numBytes bool, write_lastSecond_numRequests bool, write_lastSecond_numBytes bool) flatbuffers.UOffsetT { + builder.Prep(1, 8) + builder.Prep(1, 4) + builder.Prep(1, 2) + builder.PrependBool(write_lastSecond_numBytes) + builder.PrependBool(write_lastSecond_numRequests) + builder.Prep(1, 2) + builder.PrependBool(write_total_numBytes) + builder.PrependBool(write_total_numRequests) + builder.Prep(1, 4) + builder.Prep(1, 2) + builder.PrependBool(read_lastSecond_numBytes) + builder.PrependBool(read_lastSecond_numRequests) + builder.Prep(1, 2) + builder.PrependBool(read_total_numBytes) + builder.PrependBool(read_total_numRequests) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticResetFlags.go b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticResetFlags.go index 37ad9dd..7b0f2d0 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticResetFlags.go +++ b/pkg/fbs/comm/ethercat/master/fbs/ProtocolStatisticResetFlags.go @@ -1,62 +1,62 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProtocolStatisticResetFlagsT struct { - NumRequests bool - NumBytes bool -} - -func (t *ProtocolStatisticResetFlagsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - return CreateProtocolStatisticResetFlags(builder, t.NumRequests, t.NumBytes) -} -func (rcv *ProtocolStatisticResetFlags) UnPackTo(t *ProtocolStatisticResetFlagsT) { - t.NumRequests = rcv.NumRequests() - t.NumBytes = rcv.NumBytes() -} - -func (rcv *ProtocolStatisticResetFlags) UnPack() *ProtocolStatisticResetFlagsT { - if rcv == nil { return nil } - t := &ProtocolStatisticResetFlagsT{} - rcv.UnPackTo(t) - return t -} - -type ProtocolStatisticResetFlags struct { - _tab flatbuffers.Struct -} - -func (rcv *ProtocolStatisticResetFlags) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ProtocolStatisticResetFlags) Table() flatbuffers.Table { - return rcv._tab.Table -} - -func (rcv *ProtocolStatisticResetFlags) NumRequests() bool { - return rcv._tab.GetBool(rcv._tab.Pos + flatbuffers.UOffsetT(0)) -} -func (rcv *ProtocolStatisticResetFlags) MutateNumRequests(n bool) bool { - return rcv._tab.MutateBool(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) -} - -func (rcv *ProtocolStatisticResetFlags) NumBytes() bool { - return rcv._tab.GetBool(rcv._tab.Pos + flatbuffers.UOffsetT(1)) -} -func (rcv *ProtocolStatisticResetFlags) MutateNumBytes(n bool) bool { - return rcv._tab.MutateBool(rcv._tab.Pos+flatbuffers.UOffsetT(1), n) -} - -func CreateProtocolStatisticResetFlags(builder *flatbuffers.Builder, numRequests bool, numBytes bool) flatbuffers.UOffsetT { - builder.Prep(1, 2) - builder.PrependBool(numBytes) - builder.PrependBool(numRequests) - return builder.Offset() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProtocolStatisticResetFlagsT struct { + NumRequests bool + NumBytes bool +} + +func (t *ProtocolStatisticResetFlagsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + return CreateProtocolStatisticResetFlags(builder, t.NumRequests, t.NumBytes) +} +func (rcv *ProtocolStatisticResetFlags) UnPackTo(t *ProtocolStatisticResetFlagsT) { + t.NumRequests = rcv.NumRequests() + t.NumBytes = rcv.NumBytes() +} + +func (rcv *ProtocolStatisticResetFlags) UnPack() *ProtocolStatisticResetFlagsT { + if rcv == nil { return nil } + t := &ProtocolStatisticResetFlagsT{} + rcv.UnPackTo(t) + return t +} + +type ProtocolStatisticResetFlags struct { + _tab flatbuffers.Struct +} + +func (rcv *ProtocolStatisticResetFlags) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProtocolStatisticResetFlags) Table() flatbuffers.Table { + return rcv._tab.Table +} + +func (rcv *ProtocolStatisticResetFlags) NumRequests() bool { + return rcv._tab.GetBool(rcv._tab.Pos + flatbuffers.UOffsetT(0)) +} +func (rcv *ProtocolStatisticResetFlags) MutateNumRequests(n bool) bool { + return rcv._tab.MutateBool(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) +} + +func (rcv *ProtocolStatisticResetFlags) NumBytes() bool { + return rcv._tab.GetBool(rcv._tab.Pos + flatbuffers.UOffsetT(1)) +} +func (rcv *ProtocolStatisticResetFlags) MutateNumBytes(n bool) bool { + return rcv._tab.MutateBool(rcv._tab.Pos+flatbuffers.UOffsetT(1), n) +} + +func CreateProtocolStatisticResetFlags(builder *flatbuffers.Builder, numRequests bool, numBytes bool) flatbuffers.UOffsetT { + builder.Prep(1, 2) + builder.PrependBool(numBytes) + builder.PrependBool(numRequests) + return builder.Offset() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SDO.go b/pkg/fbs/comm/ethercat/master/fbs/SDO.go index 348db35..dd0a8fb 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SDO.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SDO.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SDOT struct { - Request *SDORequestT - Response *SDOResponseT -} - -func (t *SDOT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SDOStart(builder) - SDOAddRequest(builder, requestOffset) - SDOAddResponse(builder, responseOffset) - return SDOEnd(builder) -} - -func (rcv *SDO) UnPackTo(t *SDOT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SDO) UnPack() *SDOT { - if rcv == nil { return nil } - t := &SDOT{} - rcv.UnPackTo(t) - return t -} - -type SDO struct { - _tab flatbuffers.Table -} - -func GetRootAsSDO(buf []byte, offset flatbuffers.UOffsetT) *SDO { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SDO{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSDO(buf []byte, offset flatbuffers.UOffsetT) *SDO { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SDO{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SDO) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SDO) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SDO) Request(obj *SDORequest) *SDORequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SDORequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SDO) Response(obj *SDOResponse) *SDOResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SDOResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SDOStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SDOAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SDOAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SDOEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SDOT struct { + Request *SDORequestT + Response *SDOResponseT +} + +func (t *SDOT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SDOStart(builder) + SDOAddRequest(builder, requestOffset) + SDOAddResponse(builder, responseOffset) + return SDOEnd(builder) +} + +func (rcv *SDO) UnPackTo(t *SDOT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SDO) UnPack() *SDOT { + if rcv == nil { return nil } + t := &SDOT{} + rcv.UnPackTo(t) + return t +} + +type SDO struct { + _tab flatbuffers.Table +} + +func GetRootAsSDO(buf []byte, offset flatbuffers.UOffsetT) *SDO { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SDO{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSDO(buf []byte, offset flatbuffers.UOffsetT) *SDO { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SDO{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SDO) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SDO) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SDO) Request(obj *SDORequest) *SDORequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SDORequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SDO) Response(obj *SDOResponse) *SDOResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SDOResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SDOStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SDOAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SDOAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SDOEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SDOFlags.go b/pkg/fbs/comm/ethercat/master/fbs/SDOFlags.go index 54941df..f4b69c6 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SDOFlags.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SDOFlags.go @@ -1,29 +1,29 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type SDOFlags uint32 - -const ( - SDOFlagsnoFlags SDOFlags = 1 - SDOFlagscompleteAccess SDOFlags = 2 -) - -var EnumNamesSDOFlags = map[SDOFlags]string{ - SDOFlagsnoFlags: "noFlags", - SDOFlagscompleteAccess: "completeAccess", -} - -var EnumValuesSDOFlags = map[string]SDOFlags{ - "noFlags": SDOFlagsnoFlags, - "completeAccess": SDOFlagscompleteAccess, -} - -func (v SDOFlags) String() string { - if s, ok := EnumNamesSDOFlags[v]; ok { - return s - } - return "SDOFlags(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type SDOFlags uint32 + +const ( + SDOFlagsnoFlags SDOFlags = 1 + SDOFlagscompleteAccess SDOFlags = 2 +) + +var EnumNamesSDOFlags = map[SDOFlags]string{ + SDOFlagsnoFlags: "noFlags", + SDOFlagscompleteAccess: "completeAccess", +} + +var EnumValuesSDOFlags = map[string]SDOFlags{ + "noFlags": SDOFlagsnoFlags, + "completeAccess": SDOFlagscompleteAccess, +} + +func (v SDOFlags) String() string { + if s, ok := EnumNamesSDOFlags[v]; ok { + return s + } + return "SDOFlags(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SDORequest.go b/pkg/fbs/comm/ethercat/master/fbs/SDORequest.go index 93572c5..689d2a8 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SDORequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SDORequest.go @@ -1,215 +1,215 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SDORequestT struct { - AddressType Addresstype - Address uint16 - ObjectIndex uint16 - SubIndex byte - Flags SDOFlags - Data []byte - MaxLength uint32 -} - -func (t *SDORequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - SDORequestStart(builder) - SDORequestAddAddressType(builder, t.AddressType) - SDORequestAddAddress(builder, t.Address) - SDORequestAddObjectIndex(builder, t.ObjectIndex) - SDORequestAddSubIndex(builder, t.SubIndex) - SDORequestAddFlags(builder, t.Flags) - SDORequestAddData(builder, dataOffset) - SDORequestAddMaxLength(builder, t.MaxLength) - return SDORequestEnd(builder) -} - -func (rcv *SDORequest) UnPackTo(t *SDORequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.ObjectIndex = rcv.ObjectIndex() - t.SubIndex = rcv.SubIndex() - t.Flags = rcv.Flags() - t.Data = rcv.DataBytes() - t.MaxLength = rcv.MaxLength() -} - -func (rcv *SDORequest) UnPack() *SDORequestT { - if rcv == nil { return nil } - t := &SDORequestT{} - rcv.UnPackTo(t) - return t -} - -type SDORequest struct { - _tab flatbuffers.Table -} - -func GetRootAsSDORequest(buf []byte, offset flatbuffers.UOffsetT) *SDORequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SDORequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSDORequest(buf []byte, offset flatbuffers.UOffsetT) *SDORequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SDORequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SDORequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SDORequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SDORequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SDORequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *SDORequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SDORequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *SDORequest) ObjectIndex() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SDORequest) MutateObjectIndex(n uint16) bool { - return rcv._tab.MutateUint16Slot(8, n) -} - -func (rcv *SDORequest) SubIndex() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SDORequest) MutateSubIndex(n byte) bool { - return rcv._tab.MutateByteSlot(10, n) -} - -func (rcv *SDORequest) Flags() SDOFlags { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return SDOFlags(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SDORequest) MutateFlags(n SDOFlags) bool { - return rcv._tab.MutateUint32Slot(12, uint32(n)) -} - -func (rcv *SDORequest) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *SDORequest) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SDORequest) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SDORequest) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *SDORequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SDORequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func SDORequestStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func SDORequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func SDORequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func SDORequestAddObjectIndex(builder *flatbuffers.Builder, objectIndex uint16) { - builder.PrependUint16Slot(2, objectIndex, 0) -} -func SDORequestAddSubIndex(builder *flatbuffers.Builder, subIndex byte) { - builder.PrependByteSlot(3, subIndex, 0) -} -func SDORequestAddFlags(builder *flatbuffers.Builder, flags SDOFlags) { - builder.PrependUint32Slot(4, uint32(flags), 0) -} -func SDORequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(data), 0) -} -func SDORequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func SDORequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(6, maxLength, 0) -} -func SDORequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SDORequestT struct { + AddressType Addresstype + Address uint16 + ObjectIndex uint16 + SubIndex byte + Flags SDOFlags + Data []byte + MaxLength uint32 +} + +func (t *SDORequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + SDORequestStart(builder) + SDORequestAddAddressType(builder, t.AddressType) + SDORequestAddAddress(builder, t.Address) + SDORequestAddObjectIndex(builder, t.ObjectIndex) + SDORequestAddSubIndex(builder, t.SubIndex) + SDORequestAddFlags(builder, t.Flags) + SDORequestAddData(builder, dataOffset) + SDORequestAddMaxLength(builder, t.MaxLength) + return SDORequestEnd(builder) +} + +func (rcv *SDORequest) UnPackTo(t *SDORequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.ObjectIndex = rcv.ObjectIndex() + t.SubIndex = rcv.SubIndex() + t.Flags = rcv.Flags() + t.Data = rcv.DataBytes() + t.MaxLength = rcv.MaxLength() +} + +func (rcv *SDORequest) UnPack() *SDORequestT { + if rcv == nil { return nil } + t := &SDORequestT{} + rcv.UnPackTo(t) + return t +} + +type SDORequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSDORequest(buf []byte, offset flatbuffers.UOffsetT) *SDORequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SDORequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSDORequest(buf []byte, offset flatbuffers.UOffsetT) *SDORequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SDORequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SDORequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SDORequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SDORequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SDORequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *SDORequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SDORequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *SDORequest) ObjectIndex() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SDORequest) MutateObjectIndex(n uint16) bool { + return rcv._tab.MutateUint16Slot(8, n) +} + +func (rcv *SDORequest) SubIndex() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SDORequest) MutateSubIndex(n byte) bool { + return rcv._tab.MutateByteSlot(10, n) +} + +func (rcv *SDORequest) Flags() SDOFlags { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return SDOFlags(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SDORequest) MutateFlags(n SDOFlags) bool { + return rcv._tab.MutateUint32Slot(12, uint32(n)) +} + +func (rcv *SDORequest) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *SDORequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SDORequest) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SDORequest) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *SDORequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SDORequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +func SDORequestStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func SDORequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func SDORequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func SDORequestAddObjectIndex(builder *flatbuffers.Builder, objectIndex uint16) { + builder.PrependUint16Slot(2, objectIndex, 0) +} +func SDORequestAddSubIndex(builder *flatbuffers.Builder, subIndex byte) { + builder.PrependByteSlot(3, subIndex, 0) +} +func SDORequestAddFlags(builder *flatbuffers.Builder, flags SDOFlags) { + builder.PrependUint32Slot(4, uint32(flags), 0) +} +func SDORequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(data), 0) +} +func SDORequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func SDORequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(6, maxLength, 0) +} +func SDORequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SDOResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SDOResponse.go index fdf69e1..ee39524 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SDOResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SDOResponse.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SDOResponseT struct { - Data []byte -} - -func (t *SDOResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - SDOResponseStart(builder) - SDOResponseAddData(builder, dataOffset) - return SDOResponseEnd(builder) -} - -func (rcv *SDOResponse) UnPackTo(t *SDOResponseT) { - t.Data = rcv.DataBytes() -} - -func (rcv *SDOResponse) UnPack() *SDOResponseT { - if rcv == nil { return nil } - t := &SDOResponseT{} - rcv.UnPackTo(t) - return t -} - -type SDOResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSDOResponse(buf []byte, offset flatbuffers.UOffsetT) *SDOResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SDOResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSDOResponse(buf []byte, offset flatbuffers.UOffsetT) *SDOResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SDOResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SDOResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SDOResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SDOResponse) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *SDOResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SDOResponse) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SDOResponse) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func SDOResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SDOResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func SDOResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func SDOResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SDOResponseT struct { + Data []byte +} + +func (t *SDOResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + SDOResponseStart(builder) + SDOResponseAddData(builder, dataOffset) + return SDOResponseEnd(builder) +} + +func (rcv *SDOResponse) UnPackTo(t *SDOResponseT) { + t.Data = rcv.DataBytes() +} + +func (rcv *SDOResponse) UnPack() *SDOResponseT { + if rcv == nil { return nil } + t := &SDOResponseT{} + rcv.UnPackTo(t) + return t +} + +type SDOResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSDOResponse(buf []byte, offset flatbuffers.UOffsetT) *SDOResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SDOResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSDOResponse(buf []byte, offset flatbuffers.UOffsetT) *SDOResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SDOResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SDOResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SDOResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SDOResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *SDOResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SDOResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SDOResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func SDOResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SDOResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func SDOResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func SDOResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMapping.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMapping.go index 6833d1e..f40f31f 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMapping.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMapping.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveAddressMappingT struct { - Request *SlaveAddressMappingRequestT - Response *SlaveAddressMappingResponseT -} - -func (t *SlaveAddressMappingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveAddressMappingStart(builder) - SlaveAddressMappingAddRequest(builder, requestOffset) - SlaveAddressMappingAddResponse(builder, responseOffset) - return SlaveAddressMappingEnd(builder) -} - -func (rcv *SlaveAddressMapping) UnPackTo(t *SlaveAddressMappingT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveAddressMapping) UnPack() *SlaveAddressMappingT { - if rcv == nil { return nil } - t := &SlaveAddressMappingT{} - rcv.UnPackTo(t) - return t -} - -type SlaveAddressMapping struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveAddressMapping(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMapping { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveAddressMapping{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveAddressMapping(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMapping { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveAddressMapping{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveAddressMapping) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveAddressMapping) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveAddressMapping) Request(obj *SlaveAddressMappingRequest) *SlaveAddressMappingRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveAddressMappingRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveAddressMapping) Response(obj *SlaveAddressMappingResponse) *SlaveAddressMappingResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveAddressMappingResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveAddressMappingStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveAddressMappingAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveAddressMappingAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveAddressMappingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveAddressMappingT struct { + Request *SlaveAddressMappingRequestT + Response *SlaveAddressMappingResponseT +} + +func (t *SlaveAddressMappingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveAddressMappingStart(builder) + SlaveAddressMappingAddRequest(builder, requestOffset) + SlaveAddressMappingAddResponse(builder, responseOffset) + return SlaveAddressMappingEnd(builder) +} + +func (rcv *SlaveAddressMapping) UnPackTo(t *SlaveAddressMappingT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveAddressMapping) UnPack() *SlaveAddressMappingT { + if rcv == nil { return nil } + t := &SlaveAddressMappingT{} + rcv.UnPackTo(t) + return t +} + +type SlaveAddressMapping struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveAddressMapping(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMapping { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveAddressMapping{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveAddressMapping(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMapping { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveAddressMapping{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveAddressMapping) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveAddressMapping) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveAddressMapping) Request(obj *SlaveAddressMappingRequest) *SlaveAddressMappingRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveAddressMappingRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveAddressMapping) Response(obj *SlaveAddressMappingResponse) *SlaveAddressMappingResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveAddressMappingResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveAddressMappingStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveAddressMappingAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveAddressMappingAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveAddressMappingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingRequest.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingRequest.go index 493745d..1d32f61 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingRequest.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveAddressMappingRequestT struct { - Address *AddressedRequestT - SlaveName string -} - -func (t *SlaveAddressMappingRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - addressOffset := t.Address.Pack(builder) - slaveNameOffset := builder.CreateString(t.SlaveName) - SlaveAddressMappingRequestStart(builder) - SlaveAddressMappingRequestAddAddress(builder, addressOffset) - SlaveAddressMappingRequestAddSlaveName(builder, slaveNameOffset) - return SlaveAddressMappingRequestEnd(builder) -} - -func (rcv *SlaveAddressMappingRequest) UnPackTo(t *SlaveAddressMappingRequestT) { - t.Address = rcv.Address(nil).UnPack() - t.SlaveName = string(rcv.SlaveName()) -} - -func (rcv *SlaveAddressMappingRequest) UnPack() *SlaveAddressMappingRequestT { - if rcv == nil { return nil } - t := &SlaveAddressMappingRequestT{} - rcv.UnPackTo(t) - return t -} - -type SlaveAddressMappingRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveAddressMappingRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveAddressMappingRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveAddressMappingRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveAddressMappingRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveAddressMappingRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveAddressMappingRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveAddressMappingRequest) Address(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveAddressMappingRequest) SlaveName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func SlaveAddressMappingRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveAddressMappingRequestAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) -} -func SlaveAddressMappingRequestAddSlaveName(builder *flatbuffers.Builder, slaveName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(slaveName), 0) -} -func SlaveAddressMappingRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveAddressMappingRequestT struct { + Address *AddressedRequestT + SlaveName string +} + +func (t *SlaveAddressMappingRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + addressOffset := t.Address.Pack(builder) + slaveNameOffset := builder.CreateString(t.SlaveName) + SlaveAddressMappingRequestStart(builder) + SlaveAddressMappingRequestAddAddress(builder, addressOffset) + SlaveAddressMappingRequestAddSlaveName(builder, slaveNameOffset) + return SlaveAddressMappingRequestEnd(builder) +} + +func (rcv *SlaveAddressMappingRequest) UnPackTo(t *SlaveAddressMappingRequestT) { + t.Address = rcv.Address(nil).UnPack() + t.SlaveName = string(rcv.SlaveName()) +} + +func (rcv *SlaveAddressMappingRequest) UnPack() *SlaveAddressMappingRequestT { + if rcv == nil { return nil } + t := &SlaveAddressMappingRequestT{} + rcv.UnPackTo(t) + return t +} + +type SlaveAddressMappingRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveAddressMappingRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveAddressMappingRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveAddressMappingRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveAddressMappingRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveAddressMappingRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveAddressMappingRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveAddressMappingRequest) Address(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveAddressMappingRequest) SlaveName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func SlaveAddressMappingRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveAddressMappingRequestAddAddress(builder *flatbuffers.Builder, address flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(address), 0) +} +func SlaveAddressMappingRequestAddSlaveName(builder *flatbuffers.Builder, slaveName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(slaveName), 0) +} +func SlaveAddressMappingRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingResponse.go index 04f16ca..5f88399 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveAddressMappingResponse.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveAddressMappingResponseT struct { - AddressMappingEntryList []*AddressMappingEntryT -} - -func (t *SlaveAddressMappingResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AddressMappingEntryListOffset := flatbuffers.UOffsetT(0) - if t.AddressMappingEntryList != nil { - AddressMappingEntryListLength := len(t.AddressMappingEntryList) - AddressMappingEntryListOffsets := make([]flatbuffers.UOffsetT, AddressMappingEntryListLength) - for j := 0; j < AddressMappingEntryListLength; j++ { - AddressMappingEntryListOffsets[j] = t.AddressMappingEntryList[j].Pack(builder) - } - SlaveAddressMappingResponseStartAddressMappingEntryListVector(builder, AddressMappingEntryListLength) - for j := AddressMappingEntryListLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(AddressMappingEntryListOffsets[j]) - } - AddressMappingEntryListOffset = builder.EndVector(AddressMappingEntryListLength) - } - SlaveAddressMappingResponseStart(builder) - SlaveAddressMappingResponseAddAddressMappingEntryList(builder, AddressMappingEntryListOffset) - return SlaveAddressMappingResponseEnd(builder) -} - -func (rcv *SlaveAddressMappingResponse) UnPackTo(t *SlaveAddressMappingResponseT) { - AddressMappingEntryListLength := rcv.AddressMappingEntryListLength() - t.AddressMappingEntryList = make([]*AddressMappingEntryT, AddressMappingEntryListLength) - for j := 0; j < AddressMappingEntryListLength; j++ { - x := AddressMappingEntry{} - rcv.AddressMappingEntryList(&x, j) - t.AddressMappingEntryList[j] = x.UnPack() - } -} - -func (rcv *SlaveAddressMappingResponse) UnPack() *SlaveAddressMappingResponseT { - if rcv == nil { return nil } - t := &SlaveAddressMappingResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveAddressMappingResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveAddressMappingResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveAddressMappingResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveAddressMappingResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveAddressMappingResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveAddressMappingResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveAddressMappingResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveAddressMappingResponse) AddressMappingEntryList(obj *AddressMappingEntry, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SlaveAddressMappingResponse) AddressMappingEntryListLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func SlaveAddressMappingResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SlaveAddressMappingResponseAddAddressMappingEntryList(builder *flatbuffers.Builder, AddressMappingEntryList flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(AddressMappingEntryList), 0) -} -func SlaveAddressMappingResponseStartAddressMappingEntryListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SlaveAddressMappingResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveAddressMappingResponseT struct { + AddressMappingEntryList []*AddressMappingEntryT +} + +func (t *SlaveAddressMappingResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AddressMappingEntryListOffset := flatbuffers.UOffsetT(0) + if t.AddressMappingEntryList != nil { + AddressMappingEntryListLength := len(t.AddressMappingEntryList) + AddressMappingEntryListOffsets := make([]flatbuffers.UOffsetT, AddressMappingEntryListLength) + for j := 0; j < AddressMappingEntryListLength; j++ { + AddressMappingEntryListOffsets[j] = t.AddressMappingEntryList[j].Pack(builder) + } + SlaveAddressMappingResponseStartAddressMappingEntryListVector(builder, AddressMappingEntryListLength) + for j := AddressMappingEntryListLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(AddressMappingEntryListOffsets[j]) + } + AddressMappingEntryListOffset = builder.EndVector(AddressMappingEntryListLength) + } + SlaveAddressMappingResponseStart(builder) + SlaveAddressMappingResponseAddAddressMappingEntryList(builder, AddressMappingEntryListOffset) + return SlaveAddressMappingResponseEnd(builder) +} + +func (rcv *SlaveAddressMappingResponse) UnPackTo(t *SlaveAddressMappingResponseT) { + AddressMappingEntryListLength := rcv.AddressMappingEntryListLength() + t.AddressMappingEntryList = make([]*AddressMappingEntryT, AddressMappingEntryListLength) + for j := 0; j < AddressMappingEntryListLength; j++ { + x := AddressMappingEntry{} + rcv.AddressMappingEntryList(&x, j) + t.AddressMappingEntryList[j] = x.UnPack() + } +} + +func (rcv *SlaveAddressMappingResponse) UnPack() *SlaveAddressMappingResponseT { + if rcv == nil { return nil } + t := &SlaveAddressMappingResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveAddressMappingResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveAddressMappingResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveAddressMappingResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveAddressMappingResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveAddressMappingResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveAddressMappingResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveAddressMappingResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveAddressMappingResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveAddressMappingResponse) AddressMappingEntryList(obj *AddressMappingEntry, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SlaveAddressMappingResponse) AddressMappingEntryListLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func SlaveAddressMappingResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SlaveAddressMappingResponseAddAddressMappingEntryList(builder *flatbuffers.Builder, AddressMappingEntryList flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(AddressMappingEntryList), 0) +} +func SlaveAddressMappingResponseStartAddressMappingEntryListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SlaveAddressMappingResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfo.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfo.go index 14905b2..daaae6d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfo.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveConfigInfoT struct { - Request *AddressedRequestT - Response *SlaveConfigInfoResponseT -} - -func (t *SlaveConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveConfigInfoStart(builder) - SlaveConfigInfoAddRequest(builder, requestOffset) - SlaveConfigInfoAddResponse(builder, responseOffset) - return SlaveConfigInfoEnd(builder) -} - -func (rcv *SlaveConfigInfo) UnPackTo(t *SlaveConfigInfoT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveConfigInfo) UnPack() *SlaveConfigInfoT { - if rcv == nil { return nil } - t := &SlaveConfigInfoT{} - rcv.UnPackTo(t) - return t -} - -type SlaveConfigInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveConfigInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveConfigInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveConfigInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveConfigInfo) Request(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveConfigInfo) Response(obj *SlaveConfigInfoResponse) *SlaveConfigInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveConfigInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveConfigInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveConfigInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveConfigInfoT struct { + Request *AddressedRequestT + Response *SlaveConfigInfoResponseT +} + +func (t *SlaveConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveConfigInfoStart(builder) + SlaveConfigInfoAddRequest(builder, requestOffset) + SlaveConfigInfoAddResponse(builder, responseOffset) + return SlaveConfigInfoEnd(builder) +} + +func (rcv *SlaveConfigInfo) UnPackTo(t *SlaveConfigInfoT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveConfigInfo) UnPack() *SlaveConfigInfoT { + if rcv == nil { return nil } + t := &SlaveConfigInfoT{} + rcv.UnPackTo(t) + return t +} + +type SlaveConfigInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveConfigInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveConfigInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveConfigInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveConfigInfo) Request(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveConfigInfo) Response(obj *SlaveConfigInfoResponse) *SlaveConfigInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveConfigInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveConfigInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveConfigInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfoResponse.go index e41d8d1..d177369 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveConfigInfoResponse.go @@ -1,682 +1,682 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveConfigInfoResponseT struct { - AutoIncAddr uint16 - EthercatAddr uint16 - IdentifyAdo uint16 - IdentifyValue uint16 - SlaveHandle uint32 - HcGroupIdx uint32 - PreviousEthercatAddr uint16 - PreviousPort uint16 - SlaveIdentity *EthercatIdentityInfoT - SlaveName string - MbxProtocols uint32 - MbxStandard *EthercatMailboxInfoT - MbxBootstrap *EthercatMailboxInfoT - ProcessDataIn []*EthercatMemoryInfoT - ProcessDataOut []*EthercatMemoryInfoT - NumProcessVarsIn uint16 - NumProcessVarsOut uint16 - PortDescriptor byte - Reserved01 []byte - WkcStateDiagOffsIn []uint16 - WkcStateDiagOffsOut []uint16 - Reserved02 []uint32 - IsPresent bool - IsHcGroupPresent bool - DcSupport bool -} - -func (t *SlaveConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - slaveNameOffset := builder.CreateString(t.SlaveName) - processDataInOffset := flatbuffers.UOffsetT(0) - if t.ProcessDataIn != nil { - processDataInLength := len(t.ProcessDataIn) - SlaveConfigInfoResponseStartProcessDataInVector(builder, processDataInLength) - for j := processDataInLength - 1; j >= 0; j-- { - t.ProcessDataIn[j].Pack(builder) - } - processDataInOffset = builder.EndVector(processDataInLength) - } - processDataOutOffset := flatbuffers.UOffsetT(0) - if t.ProcessDataOut != nil { - processDataOutLength := len(t.ProcessDataOut) - SlaveConfigInfoResponseStartProcessDataOutVector(builder, processDataOutLength) - for j := processDataOutLength - 1; j >= 0; j-- { - t.ProcessDataOut[j].Pack(builder) - } - processDataOutOffset = builder.EndVector(processDataOutLength) - } - reserved01Offset := flatbuffers.UOffsetT(0) - if t.Reserved01 != nil { - reserved01Offset = builder.CreateByteString(t.Reserved01) - } - wkcStateDiagOffsInOffset := flatbuffers.UOffsetT(0) - if t.WkcStateDiagOffsIn != nil { - wkcStateDiagOffsInLength := len(t.WkcStateDiagOffsIn) - SlaveConfigInfoResponseStartWkcStateDiagOffsInVector(builder, wkcStateDiagOffsInLength) - for j := wkcStateDiagOffsInLength - 1; j >= 0; j-- { - builder.PrependUint16(t.WkcStateDiagOffsIn[j]) - } - wkcStateDiagOffsInOffset = builder.EndVector(wkcStateDiagOffsInLength) - } - wkcStateDiagOffsOutOffset := flatbuffers.UOffsetT(0) - if t.WkcStateDiagOffsOut != nil { - wkcStateDiagOffsOutLength := len(t.WkcStateDiagOffsOut) - SlaveConfigInfoResponseStartWkcStateDiagOffsOutVector(builder, wkcStateDiagOffsOutLength) - for j := wkcStateDiagOffsOutLength - 1; j >= 0; j-- { - builder.PrependUint16(t.WkcStateDiagOffsOut[j]) - } - wkcStateDiagOffsOutOffset = builder.EndVector(wkcStateDiagOffsOutLength) - } - reserved02Offset := flatbuffers.UOffsetT(0) - if t.Reserved02 != nil { - reserved02Length := len(t.Reserved02) - SlaveConfigInfoResponseStartReserved02Vector(builder, reserved02Length) - for j := reserved02Length - 1; j >= 0; j-- { - builder.PrependUint32(t.Reserved02[j]) - } - reserved02Offset = builder.EndVector(reserved02Length) - } - SlaveConfigInfoResponseStart(builder) - SlaveConfigInfoResponseAddAutoIncAddr(builder, t.AutoIncAddr) - SlaveConfigInfoResponseAddEthercatAddr(builder, t.EthercatAddr) - SlaveConfigInfoResponseAddIdentifyAdo(builder, t.IdentifyAdo) - SlaveConfigInfoResponseAddIdentifyValue(builder, t.IdentifyValue) - SlaveConfigInfoResponseAddSlaveHandle(builder, t.SlaveHandle) - SlaveConfigInfoResponseAddHcGroupIdx(builder, t.HcGroupIdx) - SlaveConfigInfoResponseAddPreviousEthercatAddr(builder, t.PreviousEthercatAddr) - SlaveConfigInfoResponseAddPreviousPort(builder, t.PreviousPort) - slaveIdentityOffset := t.SlaveIdentity.Pack(builder) - SlaveConfigInfoResponseAddSlaveIdentity(builder, slaveIdentityOffset) - SlaveConfigInfoResponseAddSlaveName(builder, slaveNameOffset) - SlaveConfigInfoResponseAddMbxProtocols(builder, t.MbxProtocols) - mbxStandardOffset := t.MbxStandard.Pack(builder) - SlaveConfigInfoResponseAddMbxStandard(builder, mbxStandardOffset) - mbxBootstrapOffset := t.MbxBootstrap.Pack(builder) - SlaveConfigInfoResponseAddMbxBootstrap(builder, mbxBootstrapOffset) - SlaveConfigInfoResponseAddProcessDataIn(builder, processDataInOffset) - SlaveConfigInfoResponseAddProcessDataOut(builder, processDataOutOffset) - SlaveConfigInfoResponseAddNumProcessVarsIn(builder, t.NumProcessVarsIn) - SlaveConfigInfoResponseAddNumProcessVarsOut(builder, t.NumProcessVarsOut) - SlaveConfigInfoResponseAddPortDescriptor(builder, t.PortDescriptor) - SlaveConfigInfoResponseAddReserved01(builder, reserved01Offset) - SlaveConfigInfoResponseAddWkcStateDiagOffsIn(builder, wkcStateDiagOffsInOffset) - SlaveConfigInfoResponseAddWkcStateDiagOffsOut(builder, wkcStateDiagOffsOutOffset) - SlaveConfigInfoResponseAddReserved02(builder, reserved02Offset) - SlaveConfigInfoResponseAddIsPresent(builder, t.IsPresent) - SlaveConfigInfoResponseAddIsHcGroupPresent(builder, t.IsHcGroupPresent) - SlaveConfigInfoResponseAddDcSupport(builder, t.DcSupport) - return SlaveConfigInfoResponseEnd(builder) -} - -func (rcv *SlaveConfigInfoResponse) UnPackTo(t *SlaveConfigInfoResponseT) { - t.AutoIncAddr = rcv.AutoIncAddr() - t.EthercatAddr = rcv.EthercatAddr() - t.IdentifyAdo = rcv.IdentifyAdo() - t.IdentifyValue = rcv.IdentifyValue() - t.SlaveHandle = rcv.SlaveHandle() - t.HcGroupIdx = rcv.HcGroupIdx() - t.PreviousEthercatAddr = rcv.PreviousEthercatAddr() - t.PreviousPort = rcv.PreviousPort() - t.SlaveIdentity = rcv.SlaveIdentity(nil).UnPack() - t.SlaveName = string(rcv.SlaveName()) - t.MbxProtocols = rcv.MbxProtocols() - t.MbxStandard = rcv.MbxStandard(nil).UnPack() - t.MbxBootstrap = rcv.MbxBootstrap(nil).UnPack() - processDataInLength := rcv.ProcessDataInLength() - t.ProcessDataIn = make([]*EthercatMemoryInfoT, processDataInLength) - for j := 0; j < processDataInLength; j++ { - x := EthercatMemoryInfo{} - rcv.ProcessDataIn(&x, j) - t.ProcessDataIn[j] = x.UnPack() - } - processDataOutLength := rcv.ProcessDataOutLength() - t.ProcessDataOut = make([]*EthercatMemoryInfoT, processDataOutLength) - for j := 0; j < processDataOutLength; j++ { - x := EthercatMemoryInfo{} - rcv.ProcessDataOut(&x, j) - t.ProcessDataOut[j] = x.UnPack() - } - t.NumProcessVarsIn = rcv.NumProcessVarsIn() - t.NumProcessVarsOut = rcv.NumProcessVarsOut() - t.PortDescriptor = rcv.PortDescriptor() - t.Reserved01 = rcv.Reserved01Bytes() - wkcStateDiagOffsInLength := rcv.WkcStateDiagOffsInLength() - t.WkcStateDiagOffsIn = make([]uint16, wkcStateDiagOffsInLength) - for j := 0; j < wkcStateDiagOffsInLength; j++ { - t.WkcStateDiagOffsIn[j] = rcv.WkcStateDiagOffsIn(j) - } - wkcStateDiagOffsOutLength := rcv.WkcStateDiagOffsOutLength() - t.WkcStateDiagOffsOut = make([]uint16, wkcStateDiagOffsOutLength) - for j := 0; j < wkcStateDiagOffsOutLength; j++ { - t.WkcStateDiagOffsOut[j] = rcv.WkcStateDiagOffsOut(j) - } - reserved02Length := rcv.Reserved02Length() - t.Reserved02 = make([]uint32, reserved02Length) - for j := 0; j < reserved02Length; j++ { - t.Reserved02[j] = rcv.Reserved02(j) - } - t.IsPresent = rcv.IsPresent() - t.IsHcGroupPresent = rcv.IsHcGroupPresent() - t.DcSupport = rcv.DcSupport() -} - -func (rcv *SlaveConfigInfoResponse) UnPack() *SlaveConfigInfoResponseT { - if rcv == nil { return nil } - t := &SlaveConfigInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveConfigInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveConfigInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveConfigInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveConfigInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveConfigInfoResponse) AutoIncAddr() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateAutoIncAddr(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func (rcv *SlaveConfigInfoResponse) EthercatAddr() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateEthercatAddr(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *SlaveConfigInfoResponse) IdentifyAdo() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateIdentifyAdo(n uint16) bool { - return rcv._tab.MutateUint16Slot(8, n) -} - -func (rcv *SlaveConfigInfoResponse) IdentifyValue() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateIdentifyValue(n uint16) bool { - return rcv._tab.MutateUint16Slot(10, n) -} - -func (rcv *SlaveConfigInfoResponse) SlaveHandle() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateSlaveHandle(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *SlaveConfigInfoResponse) HcGroupIdx() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateHcGroupIdx(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *SlaveConfigInfoResponse) PreviousEthercatAddr() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutatePreviousEthercatAddr(n uint16) bool { - return rcv._tab.MutateUint16Slot(16, n) -} - -func (rcv *SlaveConfigInfoResponse) PreviousPort() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutatePreviousPort(n uint16) bool { - return rcv._tab.MutateUint16Slot(18, n) -} - -func (rcv *SlaveConfigInfoResponse) SlaveIdentity(obj *EthercatIdentityInfo) *EthercatIdentityInfo { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(EthercatIdentityInfo) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveConfigInfoResponse) SlaveName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SlaveConfigInfoResponse) MbxProtocols() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateMbxProtocols(n uint32) bool { - return rcv._tab.MutateUint32Slot(24, n) -} - -func (rcv *SlaveConfigInfoResponse) MbxStandard(obj *EthercatMailboxInfo) *EthercatMailboxInfo { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(EthercatMailboxInfo) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveConfigInfoResponse) MbxBootstrap(obj *EthercatMailboxInfo) *EthercatMailboxInfo { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(EthercatMailboxInfo) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveConfigInfoResponse) ProcessDataIn(obj *EthercatMemoryInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 8 - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SlaveConfigInfoResponse) ProcessDataInLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) ProcessDataOut(obj *EthercatMemoryInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 8 - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SlaveConfigInfoResponse) ProcessDataOutLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) NumProcessVarsIn() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateNumProcessVarsIn(n uint16) bool { - return rcv._tab.MutateUint16Slot(34, n) -} - -func (rcv *SlaveConfigInfoResponse) NumProcessVarsOut() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateNumProcessVarsOut(n uint16) bool { - return rcv._tab.MutateUint16Slot(36, n) -} - -func (rcv *SlaveConfigInfoResponse) PortDescriptor() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutatePortDescriptor(n byte) bool { - return rcv._tab.MutateByteSlot(38, n) -} - -func (rcv *SlaveConfigInfoResponse) Reserved01(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) Reserved01Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) Reserved01Bytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SlaveConfigInfoResponse) MutateReserved01(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsIn(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsInLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateWkcStateDiagOffsIn(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsOut(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsOutLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateWkcStateDiagOffsOut(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func (rcv *SlaveConfigInfoResponse) Reserved02(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) Reserved02Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveConfigInfoResponse) MutateReserved02(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SlaveConfigInfoResponse) IsPresent() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveConfigInfoResponse) MutateIsPresent(n bool) bool { - return rcv._tab.MutateBoolSlot(48, n) -} - -func (rcv *SlaveConfigInfoResponse) IsHcGroupPresent() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(50)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveConfigInfoResponse) MutateIsHcGroupPresent(n bool) bool { - return rcv._tab.MutateBoolSlot(50, n) -} - -func (rcv *SlaveConfigInfoResponse) DcSupport() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(52)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveConfigInfoResponse) MutateDcSupport(n bool) bool { - return rcv._tab.MutateBoolSlot(52, n) -} - -func SlaveConfigInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(25) -} -func SlaveConfigInfoResponseAddAutoIncAddr(builder *flatbuffers.Builder, autoIncAddr uint16) { - builder.PrependUint16Slot(0, autoIncAddr, 0) -} -func SlaveConfigInfoResponseAddEthercatAddr(builder *flatbuffers.Builder, ethercatAddr uint16) { - builder.PrependUint16Slot(1, ethercatAddr, 0) -} -func SlaveConfigInfoResponseAddIdentifyAdo(builder *flatbuffers.Builder, identifyAdo uint16) { - builder.PrependUint16Slot(2, identifyAdo, 0) -} -func SlaveConfigInfoResponseAddIdentifyValue(builder *flatbuffers.Builder, identifyValue uint16) { - builder.PrependUint16Slot(3, identifyValue, 0) -} -func SlaveConfigInfoResponseAddSlaveHandle(builder *flatbuffers.Builder, slaveHandle uint32) { - builder.PrependUint32Slot(4, slaveHandle, 0) -} -func SlaveConfigInfoResponseAddHcGroupIdx(builder *flatbuffers.Builder, hcGroupIdx uint32) { - builder.PrependUint32Slot(5, hcGroupIdx, 0) -} -func SlaveConfigInfoResponseAddPreviousEthercatAddr(builder *flatbuffers.Builder, previousEthercatAddr uint16) { - builder.PrependUint16Slot(6, previousEthercatAddr, 0) -} -func SlaveConfigInfoResponseAddPreviousPort(builder *flatbuffers.Builder, previousPort uint16) { - builder.PrependUint16Slot(7, previousPort, 0) -} -func SlaveConfigInfoResponseAddSlaveIdentity(builder *flatbuffers.Builder, slaveIdentity flatbuffers.UOffsetT) { - builder.PrependStructSlot(8, flatbuffers.UOffsetT(slaveIdentity), 0) -} -func SlaveConfigInfoResponseAddSlaveName(builder *flatbuffers.Builder, slaveName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(slaveName), 0) -} -func SlaveConfigInfoResponseAddMbxProtocols(builder *flatbuffers.Builder, mbxProtocols uint32) { - builder.PrependUint32Slot(10, mbxProtocols, 0) -} -func SlaveConfigInfoResponseAddMbxStandard(builder *flatbuffers.Builder, mbxStandard flatbuffers.UOffsetT) { - builder.PrependStructSlot(11, flatbuffers.UOffsetT(mbxStandard), 0) -} -func SlaveConfigInfoResponseAddMbxBootstrap(builder *flatbuffers.Builder, mbxBootstrap flatbuffers.UOffsetT) { - builder.PrependStructSlot(12, flatbuffers.UOffsetT(mbxBootstrap), 0) -} -func SlaveConfigInfoResponseAddProcessDataIn(builder *flatbuffers.Builder, processDataIn flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(processDataIn), 0) -} -func SlaveConfigInfoResponseStartProcessDataInVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 4) -} -func SlaveConfigInfoResponseAddProcessDataOut(builder *flatbuffers.Builder, processDataOut flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(14, flatbuffers.UOffsetT(processDataOut), 0) -} -func SlaveConfigInfoResponseStartProcessDataOutVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 4) -} -func SlaveConfigInfoResponseAddNumProcessVarsIn(builder *flatbuffers.Builder, numProcessVarsIn uint16) { - builder.PrependUint16Slot(15, numProcessVarsIn, 0) -} -func SlaveConfigInfoResponseAddNumProcessVarsOut(builder *flatbuffers.Builder, numProcessVarsOut uint16) { - builder.PrependUint16Slot(16, numProcessVarsOut, 0) -} -func SlaveConfigInfoResponseAddPortDescriptor(builder *flatbuffers.Builder, portDescriptor byte) { - builder.PrependByteSlot(17, portDescriptor, 0) -} -func SlaveConfigInfoResponseAddReserved01(builder *flatbuffers.Builder, reserved01 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(18, flatbuffers.UOffsetT(reserved01), 0) -} -func SlaveConfigInfoResponseStartReserved01Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func SlaveConfigInfoResponseAddWkcStateDiagOffsIn(builder *flatbuffers.Builder, wkcStateDiagOffsIn flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(19, flatbuffers.UOffsetT(wkcStateDiagOffsIn), 0) -} -func SlaveConfigInfoResponseStartWkcStateDiagOffsInVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SlaveConfigInfoResponseAddWkcStateDiagOffsOut(builder *flatbuffers.Builder, wkcStateDiagOffsOut flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(20, flatbuffers.UOffsetT(wkcStateDiagOffsOut), 0) -} -func SlaveConfigInfoResponseStartWkcStateDiagOffsOutVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SlaveConfigInfoResponseAddReserved02(builder *flatbuffers.Builder, reserved02 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(21, flatbuffers.UOffsetT(reserved02), 0) -} -func SlaveConfigInfoResponseStartReserved02Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SlaveConfigInfoResponseAddIsPresent(builder *flatbuffers.Builder, isPresent bool) { - builder.PrependBoolSlot(22, isPresent, false) -} -func SlaveConfigInfoResponseAddIsHcGroupPresent(builder *flatbuffers.Builder, isHcGroupPresent bool) { - builder.PrependBoolSlot(23, isHcGroupPresent, false) -} -func SlaveConfigInfoResponseAddDcSupport(builder *flatbuffers.Builder, dcSupport bool) { - builder.PrependBoolSlot(24, dcSupport, false) -} -func SlaveConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveConfigInfoResponseT struct { + AutoIncAddr uint16 + EthercatAddr uint16 + IdentifyAdo uint16 + IdentifyValue uint16 + SlaveHandle uint32 + HcGroupIdx uint32 + PreviousEthercatAddr uint16 + PreviousPort uint16 + SlaveIdentity *EthercatIdentityInfoT + SlaveName string + MbxProtocols uint32 + MbxStandard *EthercatMailboxInfoT + MbxBootstrap *EthercatMailboxInfoT + ProcessDataIn []*EthercatMemoryInfoT + ProcessDataOut []*EthercatMemoryInfoT + NumProcessVarsIn uint16 + NumProcessVarsOut uint16 + PortDescriptor byte + Reserved01 []byte + WkcStateDiagOffsIn []uint16 + WkcStateDiagOffsOut []uint16 + Reserved02 []uint32 + IsPresent bool + IsHcGroupPresent bool + DcSupport bool +} + +func (t *SlaveConfigInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + slaveNameOffset := builder.CreateString(t.SlaveName) + processDataInOffset := flatbuffers.UOffsetT(0) + if t.ProcessDataIn != nil { + processDataInLength := len(t.ProcessDataIn) + SlaveConfigInfoResponseStartProcessDataInVector(builder, processDataInLength) + for j := processDataInLength - 1; j >= 0; j-- { + t.ProcessDataIn[j].Pack(builder) + } + processDataInOffset = builder.EndVector(processDataInLength) + } + processDataOutOffset := flatbuffers.UOffsetT(0) + if t.ProcessDataOut != nil { + processDataOutLength := len(t.ProcessDataOut) + SlaveConfigInfoResponseStartProcessDataOutVector(builder, processDataOutLength) + for j := processDataOutLength - 1; j >= 0; j-- { + t.ProcessDataOut[j].Pack(builder) + } + processDataOutOffset = builder.EndVector(processDataOutLength) + } + reserved01Offset := flatbuffers.UOffsetT(0) + if t.Reserved01 != nil { + reserved01Offset = builder.CreateByteString(t.Reserved01) + } + wkcStateDiagOffsInOffset := flatbuffers.UOffsetT(0) + if t.WkcStateDiagOffsIn != nil { + wkcStateDiagOffsInLength := len(t.WkcStateDiagOffsIn) + SlaveConfigInfoResponseStartWkcStateDiagOffsInVector(builder, wkcStateDiagOffsInLength) + for j := wkcStateDiagOffsInLength - 1; j >= 0; j-- { + builder.PrependUint16(t.WkcStateDiagOffsIn[j]) + } + wkcStateDiagOffsInOffset = builder.EndVector(wkcStateDiagOffsInLength) + } + wkcStateDiagOffsOutOffset := flatbuffers.UOffsetT(0) + if t.WkcStateDiagOffsOut != nil { + wkcStateDiagOffsOutLength := len(t.WkcStateDiagOffsOut) + SlaveConfigInfoResponseStartWkcStateDiagOffsOutVector(builder, wkcStateDiagOffsOutLength) + for j := wkcStateDiagOffsOutLength - 1; j >= 0; j-- { + builder.PrependUint16(t.WkcStateDiagOffsOut[j]) + } + wkcStateDiagOffsOutOffset = builder.EndVector(wkcStateDiagOffsOutLength) + } + reserved02Offset := flatbuffers.UOffsetT(0) + if t.Reserved02 != nil { + reserved02Length := len(t.Reserved02) + SlaveConfigInfoResponseStartReserved02Vector(builder, reserved02Length) + for j := reserved02Length - 1; j >= 0; j-- { + builder.PrependUint32(t.Reserved02[j]) + } + reserved02Offset = builder.EndVector(reserved02Length) + } + SlaveConfigInfoResponseStart(builder) + SlaveConfigInfoResponseAddAutoIncAddr(builder, t.AutoIncAddr) + SlaveConfigInfoResponseAddEthercatAddr(builder, t.EthercatAddr) + SlaveConfigInfoResponseAddIdentifyAdo(builder, t.IdentifyAdo) + SlaveConfigInfoResponseAddIdentifyValue(builder, t.IdentifyValue) + SlaveConfigInfoResponseAddSlaveHandle(builder, t.SlaveHandle) + SlaveConfigInfoResponseAddHcGroupIdx(builder, t.HcGroupIdx) + SlaveConfigInfoResponseAddPreviousEthercatAddr(builder, t.PreviousEthercatAddr) + SlaveConfigInfoResponseAddPreviousPort(builder, t.PreviousPort) + slaveIdentityOffset := t.SlaveIdentity.Pack(builder) + SlaveConfigInfoResponseAddSlaveIdentity(builder, slaveIdentityOffset) + SlaveConfigInfoResponseAddSlaveName(builder, slaveNameOffset) + SlaveConfigInfoResponseAddMbxProtocols(builder, t.MbxProtocols) + mbxStandardOffset := t.MbxStandard.Pack(builder) + SlaveConfigInfoResponseAddMbxStandard(builder, mbxStandardOffset) + mbxBootstrapOffset := t.MbxBootstrap.Pack(builder) + SlaveConfigInfoResponseAddMbxBootstrap(builder, mbxBootstrapOffset) + SlaveConfigInfoResponseAddProcessDataIn(builder, processDataInOffset) + SlaveConfigInfoResponseAddProcessDataOut(builder, processDataOutOffset) + SlaveConfigInfoResponseAddNumProcessVarsIn(builder, t.NumProcessVarsIn) + SlaveConfigInfoResponseAddNumProcessVarsOut(builder, t.NumProcessVarsOut) + SlaveConfigInfoResponseAddPortDescriptor(builder, t.PortDescriptor) + SlaveConfigInfoResponseAddReserved01(builder, reserved01Offset) + SlaveConfigInfoResponseAddWkcStateDiagOffsIn(builder, wkcStateDiagOffsInOffset) + SlaveConfigInfoResponseAddWkcStateDiagOffsOut(builder, wkcStateDiagOffsOutOffset) + SlaveConfigInfoResponseAddReserved02(builder, reserved02Offset) + SlaveConfigInfoResponseAddIsPresent(builder, t.IsPresent) + SlaveConfigInfoResponseAddIsHcGroupPresent(builder, t.IsHcGroupPresent) + SlaveConfigInfoResponseAddDcSupport(builder, t.DcSupport) + return SlaveConfigInfoResponseEnd(builder) +} + +func (rcv *SlaveConfigInfoResponse) UnPackTo(t *SlaveConfigInfoResponseT) { + t.AutoIncAddr = rcv.AutoIncAddr() + t.EthercatAddr = rcv.EthercatAddr() + t.IdentifyAdo = rcv.IdentifyAdo() + t.IdentifyValue = rcv.IdentifyValue() + t.SlaveHandle = rcv.SlaveHandle() + t.HcGroupIdx = rcv.HcGroupIdx() + t.PreviousEthercatAddr = rcv.PreviousEthercatAddr() + t.PreviousPort = rcv.PreviousPort() + t.SlaveIdentity = rcv.SlaveIdentity(nil).UnPack() + t.SlaveName = string(rcv.SlaveName()) + t.MbxProtocols = rcv.MbxProtocols() + t.MbxStandard = rcv.MbxStandard(nil).UnPack() + t.MbxBootstrap = rcv.MbxBootstrap(nil).UnPack() + processDataInLength := rcv.ProcessDataInLength() + t.ProcessDataIn = make([]*EthercatMemoryInfoT, processDataInLength) + for j := 0; j < processDataInLength; j++ { + x := EthercatMemoryInfo{} + rcv.ProcessDataIn(&x, j) + t.ProcessDataIn[j] = x.UnPack() + } + processDataOutLength := rcv.ProcessDataOutLength() + t.ProcessDataOut = make([]*EthercatMemoryInfoT, processDataOutLength) + for j := 0; j < processDataOutLength; j++ { + x := EthercatMemoryInfo{} + rcv.ProcessDataOut(&x, j) + t.ProcessDataOut[j] = x.UnPack() + } + t.NumProcessVarsIn = rcv.NumProcessVarsIn() + t.NumProcessVarsOut = rcv.NumProcessVarsOut() + t.PortDescriptor = rcv.PortDescriptor() + t.Reserved01 = rcv.Reserved01Bytes() + wkcStateDiagOffsInLength := rcv.WkcStateDiagOffsInLength() + t.WkcStateDiagOffsIn = make([]uint16, wkcStateDiagOffsInLength) + for j := 0; j < wkcStateDiagOffsInLength; j++ { + t.WkcStateDiagOffsIn[j] = rcv.WkcStateDiagOffsIn(j) + } + wkcStateDiagOffsOutLength := rcv.WkcStateDiagOffsOutLength() + t.WkcStateDiagOffsOut = make([]uint16, wkcStateDiagOffsOutLength) + for j := 0; j < wkcStateDiagOffsOutLength; j++ { + t.WkcStateDiagOffsOut[j] = rcv.WkcStateDiagOffsOut(j) + } + reserved02Length := rcv.Reserved02Length() + t.Reserved02 = make([]uint32, reserved02Length) + for j := 0; j < reserved02Length; j++ { + t.Reserved02[j] = rcv.Reserved02(j) + } + t.IsPresent = rcv.IsPresent() + t.IsHcGroupPresent = rcv.IsHcGroupPresent() + t.DcSupport = rcv.DcSupport() +} + +func (rcv *SlaveConfigInfoResponse) UnPack() *SlaveConfigInfoResponseT { + if rcv == nil { return nil } + t := &SlaveConfigInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveConfigInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveConfigInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveConfigInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveConfigInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveConfigInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveConfigInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveConfigInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveConfigInfoResponse) AutoIncAddr() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateAutoIncAddr(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func (rcv *SlaveConfigInfoResponse) EthercatAddr() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateEthercatAddr(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *SlaveConfigInfoResponse) IdentifyAdo() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateIdentifyAdo(n uint16) bool { + return rcv._tab.MutateUint16Slot(8, n) +} + +func (rcv *SlaveConfigInfoResponse) IdentifyValue() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateIdentifyValue(n uint16) bool { + return rcv._tab.MutateUint16Slot(10, n) +} + +func (rcv *SlaveConfigInfoResponse) SlaveHandle() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateSlaveHandle(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *SlaveConfigInfoResponse) HcGroupIdx() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateHcGroupIdx(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func (rcv *SlaveConfigInfoResponse) PreviousEthercatAddr() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutatePreviousEthercatAddr(n uint16) bool { + return rcv._tab.MutateUint16Slot(16, n) +} + +func (rcv *SlaveConfigInfoResponse) PreviousPort() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutatePreviousPort(n uint16) bool { + return rcv._tab.MutateUint16Slot(18, n) +} + +func (rcv *SlaveConfigInfoResponse) SlaveIdentity(obj *EthercatIdentityInfo) *EthercatIdentityInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(EthercatIdentityInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveConfigInfoResponse) SlaveName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SlaveConfigInfoResponse) MbxProtocols() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateMbxProtocols(n uint32) bool { + return rcv._tab.MutateUint32Slot(24, n) +} + +func (rcv *SlaveConfigInfoResponse) MbxStandard(obj *EthercatMailboxInfo) *EthercatMailboxInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(EthercatMailboxInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveConfigInfoResponse) MbxBootstrap(obj *EthercatMailboxInfo) *EthercatMailboxInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(EthercatMailboxInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveConfigInfoResponse) ProcessDataIn(obj *EthercatMemoryInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 8 + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SlaveConfigInfoResponse) ProcessDataInLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) ProcessDataOut(obj *EthercatMemoryInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 8 + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SlaveConfigInfoResponse) ProcessDataOutLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) NumProcessVarsIn() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateNumProcessVarsIn(n uint16) bool { + return rcv._tab.MutateUint16Slot(34, n) +} + +func (rcv *SlaveConfigInfoResponse) NumProcessVarsOut() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateNumProcessVarsOut(n uint16) bool { + return rcv._tab.MutateUint16Slot(36, n) +} + +func (rcv *SlaveConfigInfoResponse) PortDescriptor() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutatePortDescriptor(n byte) bool { + return rcv._tab.MutateByteSlot(38, n) +} + +func (rcv *SlaveConfigInfoResponse) Reserved01(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) Reserved01Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) Reserved01Bytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SlaveConfigInfoResponse) MutateReserved01(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsIn(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsInLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateWkcStateDiagOffsIn(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsOut(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) WkcStateDiagOffsOutLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateWkcStateDiagOffsOut(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func (rcv *SlaveConfigInfoResponse) Reserved02(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) Reserved02Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveConfigInfoResponse) MutateReserved02(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SlaveConfigInfoResponse) IsPresent() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveConfigInfoResponse) MutateIsPresent(n bool) bool { + return rcv._tab.MutateBoolSlot(48, n) +} + +func (rcv *SlaveConfigInfoResponse) IsHcGroupPresent() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(50)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveConfigInfoResponse) MutateIsHcGroupPresent(n bool) bool { + return rcv._tab.MutateBoolSlot(50, n) +} + +func (rcv *SlaveConfigInfoResponse) DcSupport() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(52)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveConfigInfoResponse) MutateDcSupport(n bool) bool { + return rcv._tab.MutateBoolSlot(52, n) +} + +func SlaveConfigInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(25) +} +func SlaveConfigInfoResponseAddAutoIncAddr(builder *flatbuffers.Builder, autoIncAddr uint16) { + builder.PrependUint16Slot(0, autoIncAddr, 0) +} +func SlaveConfigInfoResponseAddEthercatAddr(builder *flatbuffers.Builder, ethercatAddr uint16) { + builder.PrependUint16Slot(1, ethercatAddr, 0) +} +func SlaveConfigInfoResponseAddIdentifyAdo(builder *flatbuffers.Builder, identifyAdo uint16) { + builder.PrependUint16Slot(2, identifyAdo, 0) +} +func SlaveConfigInfoResponseAddIdentifyValue(builder *flatbuffers.Builder, identifyValue uint16) { + builder.PrependUint16Slot(3, identifyValue, 0) +} +func SlaveConfigInfoResponseAddSlaveHandle(builder *flatbuffers.Builder, slaveHandle uint32) { + builder.PrependUint32Slot(4, slaveHandle, 0) +} +func SlaveConfigInfoResponseAddHcGroupIdx(builder *flatbuffers.Builder, hcGroupIdx uint32) { + builder.PrependUint32Slot(5, hcGroupIdx, 0) +} +func SlaveConfigInfoResponseAddPreviousEthercatAddr(builder *flatbuffers.Builder, previousEthercatAddr uint16) { + builder.PrependUint16Slot(6, previousEthercatAddr, 0) +} +func SlaveConfigInfoResponseAddPreviousPort(builder *flatbuffers.Builder, previousPort uint16) { + builder.PrependUint16Slot(7, previousPort, 0) +} +func SlaveConfigInfoResponseAddSlaveIdentity(builder *flatbuffers.Builder, slaveIdentity flatbuffers.UOffsetT) { + builder.PrependStructSlot(8, flatbuffers.UOffsetT(slaveIdentity), 0) +} +func SlaveConfigInfoResponseAddSlaveName(builder *flatbuffers.Builder, slaveName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(slaveName), 0) +} +func SlaveConfigInfoResponseAddMbxProtocols(builder *flatbuffers.Builder, mbxProtocols uint32) { + builder.PrependUint32Slot(10, mbxProtocols, 0) +} +func SlaveConfigInfoResponseAddMbxStandard(builder *flatbuffers.Builder, mbxStandard flatbuffers.UOffsetT) { + builder.PrependStructSlot(11, flatbuffers.UOffsetT(mbxStandard), 0) +} +func SlaveConfigInfoResponseAddMbxBootstrap(builder *flatbuffers.Builder, mbxBootstrap flatbuffers.UOffsetT) { + builder.PrependStructSlot(12, flatbuffers.UOffsetT(mbxBootstrap), 0) +} +func SlaveConfigInfoResponseAddProcessDataIn(builder *flatbuffers.Builder, processDataIn flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(processDataIn), 0) +} +func SlaveConfigInfoResponseStartProcessDataInVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 4) +} +func SlaveConfigInfoResponseAddProcessDataOut(builder *flatbuffers.Builder, processDataOut flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(14, flatbuffers.UOffsetT(processDataOut), 0) +} +func SlaveConfigInfoResponseStartProcessDataOutVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 4) +} +func SlaveConfigInfoResponseAddNumProcessVarsIn(builder *flatbuffers.Builder, numProcessVarsIn uint16) { + builder.PrependUint16Slot(15, numProcessVarsIn, 0) +} +func SlaveConfigInfoResponseAddNumProcessVarsOut(builder *flatbuffers.Builder, numProcessVarsOut uint16) { + builder.PrependUint16Slot(16, numProcessVarsOut, 0) +} +func SlaveConfigInfoResponseAddPortDescriptor(builder *flatbuffers.Builder, portDescriptor byte) { + builder.PrependByteSlot(17, portDescriptor, 0) +} +func SlaveConfigInfoResponseAddReserved01(builder *flatbuffers.Builder, reserved01 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(18, flatbuffers.UOffsetT(reserved01), 0) +} +func SlaveConfigInfoResponseStartReserved01Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func SlaveConfigInfoResponseAddWkcStateDiagOffsIn(builder *flatbuffers.Builder, wkcStateDiagOffsIn flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(19, flatbuffers.UOffsetT(wkcStateDiagOffsIn), 0) +} +func SlaveConfigInfoResponseStartWkcStateDiagOffsInVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SlaveConfigInfoResponseAddWkcStateDiagOffsOut(builder *flatbuffers.Builder, wkcStateDiagOffsOut flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(20, flatbuffers.UOffsetT(wkcStateDiagOffsOut), 0) +} +func SlaveConfigInfoResponseStartWkcStateDiagOffsOutVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SlaveConfigInfoResponseAddReserved02(builder *flatbuffers.Builder, reserved02 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(21, flatbuffers.UOffsetT(reserved02), 0) +} +func SlaveConfigInfoResponseStartReserved02Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SlaveConfigInfoResponseAddIsPresent(builder *flatbuffers.Builder, isPresent bool) { + builder.PrependBoolSlot(22, isPresent, false) +} +func SlaveConfigInfoResponseAddIsHcGroupPresent(builder *flatbuffers.Builder, isHcGroupPresent bool) { + builder.PrependBoolSlot(23, isHcGroupPresent, false) +} +func SlaveConfigInfoResponseAddDcSupport(builder *flatbuffers.Builder, dcSupport bool) { + builder.PrependBoolSlot(24, dcSupport, false) +} +func SlaveConfigInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveEeprom.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveEeprom.go index 04a37d2..fd50a36 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveEeprom.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveEeprom.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveEepromT struct { - Request *SlaveEepromRequestT - Response *SlaveEepromResponseT -} - -func (t *SlaveEepromT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveEepromStart(builder) - SlaveEepromAddRequest(builder, requestOffset) - SlaveEepromAddResponse(builder, responseOffset) - return SlaveEepromEnd(builder) -} - -func (rcv *SlaveEeprom) UnPackTo(t *SlaveEepromT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveEeprom) UnPack() *SlaveEepromT { - if rcv == nil { return nil } - t := &SlaveEepromT{} - rcv.UnPackTo(t) - return t -} - -type SlaveEeprom struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveEeprom(buf []byte, offset flatbuffers.UOffsetT) *SlaveEeprom { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveEeprom{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveEeprom(buf []byte, offset flatbuffers.UOffsetT) *SlaveEeprom { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveEeprom{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveEeprom) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveEeprom) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveEeprom) Request(obj *SlaveEepromRequest) *SlaveEepromRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveEepromRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveEeprom) Response(obj *SlaveEepromResponse) *SlaveEepromResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveEepromResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveEepromStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveEepromAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveEepromAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveEepromEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveEepromT struct { + Request *SlaveEepromRequestT + Response *SlaveEepromResponseT +} + +func (t *SlaveEepromT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveEepromStart(builder) + SlaveEepromAddRequest(builder, requestOffset) + SlaveEepromAddResponse(builder, responseOffset) + return SlaveEepromEnd(builder) +} + +func (rcv *SlaveEeprom) UnPackTo(t *SlaveEepromT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveEeprom) UnPack() *SlaveEepromT { + if rcv == nil { return nil } + t := &SlaveEepromT{} + rcv.UnPackTo(t) + return t +} + +type SlaveEeprom struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveEeprom(buf []byte, offset flatbuffers.UOffsetT) *SlaveEeprom { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveEeprom{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveEeprom(buf []byte, offset flatbuffers.UOffsetT) *SlaveEeprom { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveEeprom{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveEeprom) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveEeprom) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveEeprom) Request(obj *SlaveEepromRequest) *SlaveEepromRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveEepromRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveEeprom) Response(obj *SlaveEepromResponse) *SlaveEepromResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveEepromResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveEepromStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveEepromAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveEepromAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveEepromEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromRequest.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromRequest.go index 7a5df64..f980316 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromRequest.go @@ -1,180 +1,180 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveEepromRequestT struct { - AddressType Addresstype - Address uint16 - EepromOffset uint16 - Data []uint16 - MaxLength uint32 -} - -func (t *SlaveEepromRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - SlaveEepromRequestStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependUint16(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - SlaveEepromRequestStart(builder) - SlaveEepromRequestAddAddressType(builder, t.AddressType) - SlaveEepromRequestAddAddress(builder, t.Address) - SlaveEepromRequestAddEepromOffset(builder, t.EepromOffset) - SlaveEepromRequestAddData(builder, dataOffset) - SlaveEepromRequestAddMaxLength(builder, t.MaxLength) - return SlaveEepromRequestEnd(builder) -} - -func (rcv *SlaveEepromRequest) UnPackTo(t *SlaveEepromRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.EepromOffset = rcv.EepromOffset() - dataLength := rcv.DataLength() - t.Data = make([]uint16, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } - t.MaxLength = rcv.MaxLength() -} - -func (rcv *SlaveEepromRequest) UnPack() *SlaveEepromRequestT { - if rcv == nil { return nil } - t := &SlaveEepromRequestT{} - rcv.UnPackTo(t) - return t -} - -type SlaveEepromRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveEepromRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveEepromRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveEepromRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveEepromRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveEepromRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveEepromRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveEepromRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SlaveEepromRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *SlaveEepromRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveEepromRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *SlaveEepromRequest) EepromOffset() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveEepromRequest) MutateEepromOffset(n uint16) bool { - return rcv._tab.MutateUint16Slot(8, n) -} - -func (rcv *SlaveEepromRequest) Data(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SlaveEepromRequest) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveEepromRequest) MutateData(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func (rcv *SlaveEepromRequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveEepromRequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func SlaveEepromRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func SlaveEepromRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func SlaveEepromRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func SlaveEepromRequestAddEepromOffset(builder *flatbuffers.Builder, eepromOffset uint16) { - builder.PrependUint16Slot(2, eepromOffset, 0) -} -func SlaveEepromRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(data), 0) -} -func SlaveEepromRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SlaveEepromRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(4, maxLength, 0) -} -func SlaveEepromRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveEepromRequestT struct { + AddressType Addresstype + Address uint16 + EepromOffset uint16 + Data []uint16 + MaxLength uint32 +} + +func (t *SlaveEepromRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + SlaveEepromRequestStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependUint16(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + SlaveEepromRequestStart(builder) + SlaveEepromRequestAddAddressType(builder, t.AddressType) + SlaveEepromRequestAddAddress(builder, t.Address) + SlaveEepromRequestAddEepromOffset(builder, t.EepromOffset) + SlaveEepromRequestAddData(builder, dataOffset) + SlaveEepromRequestAddMaxLength(builder, t.MaxLength) + return SlaveEepromRequestEnd(builder) +} + +func (rcv *SlaveEepromRequest) UnPackTo(t *SlaveEepromRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.EepromOffset = rcv.EepromOffset() + dataLength := rcv.DataLength() + t.Data = make([]uint16, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } + t.MaxLength = rcv.MaxLength() +} + +func (rcv *SlaveEepromRequest) UnPack() *SlaveEepromRequestT { + if rcv == nil { return nil } + t := &SlaveEepromRequestT{} + rcv.UnPackTo(t) + return t +} + +type SlaveEepromRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveEepromRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveEepromRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveEepromRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveEepromRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveEepromRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveEepromRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveEepromRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SlaveEepromRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *SlaveEepromRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveEepromRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *SlaveEepromRequest) EepromOffset() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveEepromRequest) MutateEepromOffset(n uint16) bool { + return rcv._tab.MutateUint16Slot(8, n) +} + +func (rcv *SlaveEepromRequest) Data(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SlaveEepromRequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveEepromRequest) MutateData(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func (rcv *SlaveEepromRequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveEepromRequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func SlaveEepromRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func SlaveEepromRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func SlaveEepromRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func SlaveEepromRequestAddEepromOffset(builder *flatbuffers.Builder, eepromOffset uint16) { + builder.PrependUint16Slot(2, eepromOffset, 0) +} +func SlaveEepromRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(data), 0) +} +func SlaveEepromRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SlaveEepromRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(4, maxLength, 0) +} +func SlaveEepromRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromResponse.go index c253ab7..593b4c1 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveEepromResponse.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveEepromResponseT struct { - Data []uint16 -} - -func (t *SlaveEepromResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - SlaveEepromResponseStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependUint16(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - SlaveEepromResponseStart(builder) - SlaveEepromResponseAddData(builder, dataOffset) - return SlaveEepromResponseEnd(builder) -} - -func (rcv *SlaveEepromResponse) UnPackTo(t *SlaveEepromResponseT) { - dataLength := rcv.DataLength() - t.Data = make([]uint16, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *SlaveEepromResponse) UnPack() *SlaveEepromResponseT { - if rcv == nil { return nil } - t := &SlaveEepromResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveEepromResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveEepromResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveEepromResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveEepromResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveEepromResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveEepromResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveEepromResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveEepromResponse) Data(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SlaveEepromResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveEepromResponse) MutateData(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func SlaveEepromResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SlaveEepromResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func SlaveEepromResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SlaveEepromResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveEepromResponseT struct { + Data []uint16 +} + +func (t *SlaveEepromResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + SlaveEepromResponseStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependUint16(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + SlaveEepromResponseStart(builder) + SlaveEepromResponseAddData(builder, dataOffset) + return SlaveEepromResponseEnd(builder) +} + +func (rcv *SlaveEepromResponse) UnPackTo(t *SlaveEepromResponseT) { + dataLength := rcv.DataLength() + t.Data = make([]uint16, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *SlaveEepromResponse) UnPack() *SlaveEepromResponseT { + if rcv == nil { return nil } + t := &SlaveEepromResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveEepromResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveEepromResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveEepromResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveEepromResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveEepromResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveEepromResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveEepromResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveEepromResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveEepromResponse) Data(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SlaveEepromResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveEepromResponse) MutateData(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func SlaveEepromResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SlaveEepromResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func SlaveEepromResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SlaveEepromResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfo.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfo.go index 3ef6b40..f651096 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfo.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveOnlineInfoT struct { - Request *AddressedRequestT - Response *SlaveOnlineInfoResponseT -} - -func (t *SlaveOnlineInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveOnlineInfoStart(builder) - SlaveOnlineInfoAddRequest(builder, requestOffset) - SlaveOnlineInfoAddResponse(builder, responseOffset) - return SlaveOnlineInfoEnd(builder) -} - -func (rcv *SlaveOnlineInfo) UnPackTo(t *SlaveOnlineInfoT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveOnlineInfo) UnPack() *SlaveOnlineInfoT { - if rcv == nil { return nil } - t := &SlaveOnlineInfoT{} - rcv.UnPackTo(t) - return t -} - -type SlaveOnlineInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveOnlineInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveOnlineInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveOnlineInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveOnlineInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveOnlineInfo) Request(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveOnlineInfo) Response(obj *SlaveOnlineInfoResponse) *SlaveOnlineInfoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveOnlineInfoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveOnlineInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveOnlineInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveOnlineInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveOnlineInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveOnlineInfoT struct { + Request *AddressedRequestT + Response *SlaveOnlineInfoResponseT +} + +func (t *SlaveOnlineInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveOnlineInfoStart(builder) + SlaveOnlineInfoAddRequest(builder, requestOffset) + SlaveOnlineInfoAddResponse(builder, responseOffset) + return SlaveOnlineInfoEnd(builder) +} + +func (rcv *SlaveOnlineInfo) UnPackTo(t *SlaveOnlineInfoT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveOnlineInfo) UnPack() *SlaveOnlineInfoT { + if rcv == nil { return nil } + t := &SlaveOnlineInfoT{} + rcv.UnPackTo(t) + return t +} + +type SlaveOnlineInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveOnlineInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveOnlineInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveOnlineInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveOnlineInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveOnlineInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveOnlineInfo) Request(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveOnlineInfo) Response(obj *SlaveOnlineInfoResponse) *SlaveOnlineInfoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveOnlineInfoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveOnlineInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveOnlineInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveOnlineInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveOnlineInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfoResponse.go index 2a7bead..83c399b 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveOnlineInfoResponse.go @@ -1,608 +1,608 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveOnlineInfoResponseT struct { - AutoIncAddr uint16 - EthercatAddr uint16 - StationAlias uint16 - IdentifyValue uint16 - SlaveHandle uint32 - PortSlaveHandles []uint32 - SlaveIdentity *EthercatIdentityInfoT - EscType byte - EscRevision byte - EscBuild uint16 - EscFeatures uint16 - PortDescriptor byte - Reserved01 byte - AlStatus uint16 - AlStatusCode uint16 - MbxProtocols uint16 - DlStatus uint16 - PortState uint16 - PreviousPort uint16 - SystemTimeDifference uint32 - SlaveDelay uint32 - PropagationDelay uint32 - Reserved02 []uint32 - DcSupport bool - Dc64Support bool - IsRefClock bool - LineCrossed bool -} - -func (t *SlaveOnlineInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - portSlaveHandlesOffset := flatbuffers.UOffsetT(0) - if t.PortSlaveHandles != nil { - portSlaveHandlesLength := len(t.PortSlaveHandles) - SlaveOnlineInfoResponseStartPortSlaveHandlesVector(builder, portSlaveHandlesLength) - for j := portSlaveHandlesLength - 1; j >= 0; j-- { - builder.PrependUint32(t.PortSlaveHandles[j]) - } - portSlaveHandlesOffset = builder.EndVector(portSlaveHandlesLength) - } - reserved02Offset := flatbuffers.UOffsetT(0) - if t.Reserved02 != nil { - reserved02Length := len(t.Reserved02) - SlaveOnlineInfoResponseStartReserved02Vector(builder, reserved02Length) - for j := reserved02Length - 1; j >= 0; j-- { - builder.PrependUint32(t.Reserved02[j]) - } - reserved02Offset = builder.EndVector(reserved02Length) - } - SlaveOnlineInfoResponseStart(builder) - SlaveOnlineInfoResponseAddAutoIncAddr(builder, t.AutoIncAddr) - SlaveOnlineInfoResponseAddEthercatAddr(builder, t.EthercatAddr) - SlaveOnlineInfoResponseAddStationAlias(builder, t.StationAlias) - SlaveOnlineInfoResponseAddIdentifyValue(builder, t.IdentifyValue) - SlaveOnlineInfoResponseAddSlaveHandle(builder, t.SlaveHandle) - SlaveOnlineInfoResponseAddPortSlaveHandles(builder, portSlaveHandlesOffset) - slaveIdentityOffset := t.SlaveIdentity.Pack(builder) - SlaveOnlineInfoResponseAddSlaveIdentity(builder, slaveIdentityOffset) - SlaveOnlineInfoResponseAddEscType(builder, t.EscType) - SlaveOnlineInfoResponseAddEscRevision(builder, t.EscRevision) - SlaveOnlineInfoResponseAddEscBuild(builder, t.EscBuild) - SlaveOnlineInfoResponseAddEscFeatures(builder, t.EscFeatures) - SlaveOnlineInfoResponseAddPortDescriptor(builder, t.PortDescriptor) - SlaveOnlineInfoResponseAddReserved01(builder, t.Reserved01) - SlaveOnlineInfoResponseAddAlStatus(builder, t.AlStatus) - SlaveOnlineInfoResponseAddAlStatusCode(builder, t.AlStatusCode) - SlaveOnlineInfoResponseAddMbxProtocols(builder, t.MbxProtocols) - SlaveOnlineInfoResponseAddDlStatus(builder, t.DlStatus) - SlaveOnlineInfoResponseAddPortState(builder, t.PortState) - SlaveOnlineInfoResponseAddPreviousPort(builder, t.PreviousPort) - SlaveOnlineInfoResponseAddSystemTimeDifference(builder, t.SystemTimeDifference) - SlaveOnlineInfoResponseAddSlaveDelay(builder, t.SlaveDelay) - SlaveOnlineInfoResponseAddPropagationDelay(builder, t.PropagationDelay) - SlaveOnlineInfoResponseAddReserved02(builder, reserved02Offset) - SlaveOnlineInfoResponseAddDcSupport(builder, t.DcSupport) - SlaveOnlineInfoResponseAddDc64Support(builder, t.Dc64Support) - SlaveOnlineInfoResponseAddIsRefClock(builder, t.IsRefClock) - SlaveOnlineInfoResponseAddLineCrossed(builder, t.LineCrossed) - return SlaveOnlineInfoResponseEnd(builder) -} - -func (rcv *SlaveOnlineInfoResponse) UnPackTo(t *SlaveOnlineInfoResponseT) { - t.AutoIncAddr = rcv.AutoIncAddr() - t.EthercatAddr = rcv.EthercatAddr() - t.StationAlias = rcv.StationAlias() - t.IdentifyValue = rcv.IdentifyValue() - t.SlaveHandle = rcv.SlaveHandle() - portSlaveHandlesLength := rcv.PortSlaveHandlesLength() - t.PortSlaveHandles = make([]uint32, portSlaveHandlesLength) - for j := 0; j < portSlaveHandlesLength; j++ { - t.PortSlaveHandles[j] = rcv.PortSlaveHandles(j) - } - t.SlaveIdentity = rcv.SlaveIdentity(nil).UnPack() - t.EscType = rcv.EscType() - t.EscRevision = rcv.EscRevision() - t.EscBuild = rcv.EscBuild() - t.EscFeatures = rcv.EscFeatures() - t.PortDescriptor = rcv.PortDescriptor() - t.Reserved01 = rcv.Reserved01() - t.AlStatus = rcv.AlStatus() - t.AlStatusCode = rcv.AlStatusCode() - t.MbxProtocols = rcv.MbxProtocols() - t.DlStatus = rcv.DlStatus() - t.PortState = rcv.PortState() - t.PreviousPort = rcv.PreviousPort() - t.SystemTimeDifference = rcv.SystemTimeDifference() - t.SlaveDelay = rcv.SlaveDelay() - t.PropagationDelay = rcv.PropagationDelay() - reserved02Length := rcv.Reserved02Length() - t.Reserved02 = make([]uint32, reserved02Length) - for j := 0; j < reserved02Length; j++ { - t.Reserved02[j] = rcv.Reserved02(j) - } - t.DcSupport = rcv.DcSupport() - t.Dc64Support = rcv.Dc64Support() - t.IsRefClock = rcv.IsRefClock() - t.LineCrossed = rcv.LineCrossed() -} - -func (rcv *SlaveOnlineInfoResponse) UnPack() *SlaveOnlineInfoResponseT { - if rcv == nil { return nil } - t := &SlaveOnlineInfoResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveOnlineInfoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveOnlineInfoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveOnlineInfoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveOnlineInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveOnlineInfoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveOnlineInfoResponse) AutoIncAddr() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateAutoIncAddr(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func (rcv *SlaveOnlineInfoResponse) EthercatAddr() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateEthercatAddr(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *SlaveOnlineInfoResponse) StationAlias() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateStationAlias(n uint16) bool { - return rcv._tab.MutateUint16Slot(8, n) -} - -func (rcv *SlaveOnlineInfoResponse) IdentifyValue() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateIdentifyValue(n uint16) bool { - return rcv._tab.MutateUint16Slot(10, n) -} - -func (rcv *SlaveOnlineInfoResponse) SlaveHandle() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateSlaveHandle(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *SlaveOnlineInfoResponse) PortSlaveHandles(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) PortSlaveHandlesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutatePortSlaveHandles(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SlaveOnlineInfoResponse) SlaveIdentity(obj *EthercatIdentityInfo) *EthercatIdentityInfo { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := o + rcv._tab.Pos - if obj == nil { - obj = new(EthercatIdentityInfo) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveOnlineInfoResponse) EscType() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateEscType(n byte) bool { - return rcv._tab.MutateByteSlot(18, n) -} - -func (rcv *SlaveOnlineInfoResponse) EscRevision() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateEscRevision(n byte) bool { - return rcv._tab.MutateByteSlot(20, n) -} - -func (rcv *SlaveOnlineInfoResponse) EscBuild() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateEscBuild(n uint16) bool { - return rcv._tab.MutateUint16Slot(22, n) -} - -func (rcv *SlaveOnlineInfoResponse) EscFeatures() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateEscFeatures(n uint16) bool { - return rcv._tab.MutateUint16Slot(24, n) -} - -func (rcv *SlaveOnlineInfoResponse) PortDescriptor() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutatePortDescriptor(n byte) bool { - return rcv._tab.MutateByteSlot(26, n) -} - -func (rcv *SlaveOnlineInfoResponse) Reserved01() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateReserved01(n byte) bool { - return rcv._tab.MutateByteSlot(28, n) -} - -func (rcv *SlaveOnlineInfoResponse) AlStatus() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateAlStatus(n uint16) bool { - return rcv._tab.MutateUint16Slot(30, n) -} - -func (rcv *SlaveOnlineInfoResponse) AlStatusCode() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateAlStatusCode(n uint16) bool { - return rcv._tab.MutateUint16Slot(32, n) -} - -func (rcv *SlaveOnlineInfoResponse) MbxProtocols() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateMbxProtocols(n uint16) bool { - return rcv._tab.MutateUint16Slot(34, n) -} - -func (rcv *SlaveOnlineInfoResponse) DlStatus() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateDlStatus(n uint16) bool { - return rcv._tab.MutateUint16Slot(36, n) -} - -func (rcv *SlaveOnlineInfoResponse) PortState() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutatePortState(n uint16) bool { - return rcv._tab.MutateUint16Slot(38, n) -} - -func (rcv *SlaveOnlineInfoResponse) PreviousPort() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutatePreviousPort(n uint16) bool { - return rcv._tab.MutateUint16Slot(40, n) -} - -func (rcv *SlaveOnlineInfoResponse) SystemTimeDifference() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateSystemTimeDifference(n uint32) bool { - return rcv._tab.MutateUint32Slot(42, n) -} - -func (rcv *SlaveOnlineInfoResponse) SlaveDelay() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateSlaveDelay(n uint32) bool { - return rcv._tab.MutateUint32Slot(44, n) -} - -func (rcv *SlaveOnlineInfoResponse) PropagationDelay() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutatePropagationDelay(n uint32) bool { - return rcv._tab.MutateUint32Slot(46, n) -} - -func (rcv *SlaveOnlineInfoResponse) Reserved02(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) Reserved02Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveOnlineInfoResponse) MutateReserved02(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SlaveOnlineInfoResponse) DcSupport() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(50)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveOnlineInfoResponse) MutateDcSupport(n bool) bool { - return rcv._tab.MutateBoolSlot(50, n) -} - -func (rcv *SlaveOnlineInfoResponse) Dc64Support() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(52)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveOnlineInfoResponse) MutateDc64Support(n bool) bool { - return rcv._tab.MutateBoolSlot(52, n) -} - -func (rcv *SlaveOnlineInfoResponse) IsRefClock() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(54)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveOnlineInfoResponse) MutateIsRefClock(n bool) bool { - return rcv._tab.MutateBoolSlot(54, n) -} - -func (rcv *SlaveOnlineInfoResponse) LineCrossed() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(56)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveOnlineInfoResponse) MutateLineCrossed(n bool) bool { - return rcv._tab.MutateBoolSlot(56, n) -} - -func SlaveOnlineInfoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(27) -} -func SlaveOnlineInfoResponseAddAutoIncAddr(builder *flatbuffers.Builder, autoIncAddr uint16) { - builder.PrependUint16Slot(0, autoIncAddr, 0) -} -func SlaveOnlineInfoResponseAddEthercatAddr(builder *flatbuffers.Builder, ethercatAddr uint16) { - builder.PrependUint16Slot(1, ethercatAddr, 0) -} -func SlaveOnlineInfoResponseAddStationAlias(builder *flatbuffers.Builder, stationAlias uint16) { - builder.PrependUint16Slot(2, stationAlias, 0) -} -func SlaveOnlineInfoResponseAddIdentifyValue(builder *flatbuffers.Builder, identifyValue uint16) { - builder.PrependUint16Slot(3, identifyValue, 0) -} -func SlaveOnlineInfoResponseAddSlaveHandle(builder *flatbuffers.Builder, slaveHandle uint32) { - builder.PrependUint32Slot(4, slaveHandle, 0) -} -func SlaveOnlineInfoResponseAddPortSlaveHandles(builder *flatbuffers.Builder, portSlaveHandles flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(portSlaveHandles), 0) -} -func SlaveOnlineInfoResponseStartPortSlaveHandlesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SlaveOnlineInfoResponseAddSlaveIdentity(builder *flatbuffers.Builder, slaveIdentity flatbuffers.UOffsetT) { - builder.PrependStructSlot(6, flatbuffers.UOffsetT(slaveIdentity), 0) -} -func SlaveOnlineInfoResponseAddEscType(builder *flatbuffers.Builder, escType byte) { - builder.PrependByteSlot(7, escType, 0) -} -func SlaveOnlineInfoResponseAddEscRevision(builder *flatbuffers.Builder, escRevision byte) { - builder.PrependByteSlot(8, escRevision, 0) -} -func SlaveOnlineInfoResponseAddEscBuild(builder *flatbuffers.Builder, escBuild uint16) { - builder.PrependUint16Slot(9, escBuild, 0) -} -func SlaveOnlineInfoResponseAddEscFeatures(builder *flatbuffers.Builder, escFeatures uint16) { - builder.PrependUint16Slot(10, escFeatures, 0) -} -func SlaveOnlineInfoResponseAddPortDescriptor(builder *flatbuffers.Builder, portDescriptor byte) { - builder.PrependByteSlot(11, portDescriptor, 0) -} -func SlaveOnlineInfoResponseAddReserved01(builder *flatbuffers.Builder, reserved01 byte) { - builder.PrependByteSlot(12, reserved01, 0) -} -func SlaveOnlineInfoResponseAddAlStatus(builder *flatbuffers.Builder, alStatus uint16) { - builder.PrependUint16Slot(13, alStatus, 0) -} -func SlaveOnlineInfoResponseAddAlStatusCode(builder *flatbuffers.Builder, alStatusCode uint16) { - builder.PrependUint16Slot(14, alStatusCode, 0) -} -func SlaveOnlineInfoResponseAddMbxProtocols(builder *flatbuffers.Builder, mbxProtocols uint16) { - builder.PrependUint16Slot(15, mbxProtocols, 0) -} -func SlaveOnlineInfoResponseAddDlStatus(builder *flatbuffers.Builder, dlStatus uint16) { - builder.PrependUint16Slot(16, dlStatus, 0) -} -func SlaveOnlineInfoResponseAddPortState(builder *flatbuffers.Builder, portState uint16) { - builder.PrependUint16Slot(17, portState, 0) -} -func SlaveOnlineInfoResponseAddPreviousPort(builder *flatbuffers.Builder, previousPort uint16) { - builder.PrependUint16Slot(18, previousPort, 0) -} -func SlaveOnlineInfoResponseAddSystemTimeDifference(builder *flatbuffers.Builder, systemTimeDifference uint32) { - builder.PrependUint32Slot(19, systemTimeDifference, 0) -} -func SlaveOnlineInfoResponseAddSlaveDelay(builder *flatbuffers.Builder, slaveDelay uint32) { - builder.PrependUint32Slot(20, slaveDelay, 0) -} -func SlaveOnlineInfoResponseAddPropagationDelay(builder *flatbuffers.Builder, propagationDelay uint32) { - builder.PrependUint32Slot(21, propagationDelay, 0) -} -func SlaveOnlineInfoResponseAddReserved02(builder *flatbuffers.Builder, reserved02 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(22, flatbuffers.UOffsetT(reserved02), 0) -} -func SlaveOnlineInfoResponseStartReserved02Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SlaveOnlineInfoResponseAddDcSupport(builder *flatbuffers.Builder, dcSupport bool) { - builder.PrependBoolSlot(23, dcSupport, false) -} -func SlaveOnlineInfoResponseAddDc64Support(builder *flatbuffers.Builder, dc64Support bool) { - builder.PrependBoolSlot(24, dc64Support, false) -} -func SlaveOnlineInfoResponseAddIsRefClock(builder *flatbuffers.Builder, isRefClock bool) { - builder.PrependBoolSlot(25, isRefClock, false) -} -func SlaveOnlineInfoResponseAddLineCrossed(builder *flatbuffers.Builder, lineCrossed bool) { - builder.PrependBoolSlot(26, lineCrossed, false) -} -func SlaveOnlineInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveOnlineInfoResponseT struct { + AutoIncAddr uint16 + EthercatAddr uint16 + StationAlias uint16 + IdentifyValue uint16 + SlaveHandle uint32 + PortSlaveHandles []uint32 + SlaveIdentity *EthercatIdentityInfoT + EscType byte + EscRevision byte + EscBuild uint16 + EscFeatures uint16 + PortDescriptor byte + Reserved01 byte + AlStatus uint16 + AlStatusCode uint16 + MbxProtocols uint16 + DlStatus uint16 + PortState uint16 + PreviousPort uint16 + SystemTimeDifference uint32 + SlaveDelay uint32 + PropagationDelay uint32 + Reserved02 []uint32 + DcSupport bool + Dc64Support bool + IsRefClock bool + LineCrossed bool +} + +func (t *SlaveOnlineInfoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + portSlaveHandlesOffset := flatbuffers.UOffsetT(0) + if t.PortSlaveHandles != nil { + portSlaveHandlesLength := len(t.PortSlaveHandles) + SlaveOnlineInfoResponseStartPortSlaveHandlesVector(builder, portSlaveHandlesLength) + for j := portSlaveHandlesLength - 1; j >= 0; j-- { + builder.PrependUint32(t.PortSlaveHandles[j]) + } + portSlaveHandlesOffset = builder.EndVector(portSlaveHandlesLength) + } + reserved02Offset := flatbuffers.UOffsetT(0) + if t.Reserved02 != nil { + reserved02Length := len(t.Reserved02) + SlaveOnlineInfoResponseStartReserved02Vector(builder, reserved02Length) + for j := reserved02Length - 1; j >= 0; j-- { + builder.PrependUint32(t.Reserved02[j]) + } + reserved02Offset = builder.EndVector(reserved02Length) + } + SlaveOnlineInfoResponseStart(builder) + SlaveOnlineInfoResponseAddAutoIncAddr(builder, t.AutoIncAddr) + SlaveOnlineInfoResponseAddEthercatAddr(builder, t.EthercatAddr) + SlaveOnlineInfoResponseAddStationAlias(builder, t.StationAlias) + SlaveOnlineInfoResponseAddIdentifyValue(builder, t.IdentifyValue) + SlaveOnlineInfoResponseAddSlaveHandle(builder, t.SlaveHandle) + SlaveOnlineInfoResponseAddPortSlaveHandles(builder, portSlaveHandlesOffset) + slaveIdentityOffset := t.SlaveIdentity.Pack(builder) + SlaveOnlineInfoResponseAddSlaveIdentity(builder, slaveIdentityOffset) + SlaveOnlineInfoResponseAddEscType(builder, t.EscType) + SlaveOnlineInfoResponseAddEscRevision(builder, t.EscRevision) + SlaveOnlineInfoResponseAddEscBuild(builder, t.EscBuild) + SlaveOnlineInfoResponseAddEscFeatures(builder, t.EscFeatures) + SlaveOnlineInfoResponseAddPortDescriptor(builder, t.PortDescriptor) + SlaveOnlineInfoResponseAddReserved01(builder, t.Reserved01) + SlaveOnlineInfoResponseAddAlStatus(builder, t.AlStatus) + SlaveOnlineInfoResponseAddAlStatusCode(builder, t.AlStatusCode) + SlaveOnlineInfoResponseAddMbxProtocols(builder, t.MbxProtocols) + SlaveOnlineInfoResponseAddDlStatus(builder, t.DlStatus) + SlaveOnlineInfoResponseAddPortState(builder, t.PortState) + SlaveOnlineInfoResponseAddPreviousPort(builder, t.PreviousPort) + SlaveOnlineInfoResponseAddSystemTimeDifference(builder, t.SystemTimeDifference) + SlaveOnlineInfoResponseAddSlaveDelay(builder, t.SlaveDelay) + SlaveOnlineInfoResponseAddPropagationDelay(builder, t.PropagationDelay) + SlaveOnlineInfoResponseAddReserved02(builder, reserved02Offset) + SlaveOnlineInfoResponseAddDcSupport(builder, t.DcSupport) + SlaveOnlineInfoResponseAddDc64Support(builder, t.Dc64Support) + SlaveOnlineInfoResponseAddIsRefClock(builder, t.IsRefClock) + SlaveOnlineInfoResponseAddLineCrossed(builder, t.LineCrossed) + return SlaveOnlineInfoResponseEnd(builder) +} + +func (rcv *SlaveOnlineInfoResponse) UnPackTo(t *SlaveOnlineInfoResponseT) { + t.AutoIncAddr = rcv.AutoIncAddr() + t.EthercatAddr = rcv.EthercatAddr() + t.StationAlias = rcv.StationAlias() + t.IdentifyValue = rcv.IdentifyValue() + t.SlaveHandle = rcv.SlaveHandle() + portSlaveHandlesLength := rcv.PortSlaveHandlesLength() + t.PortSlaveHandles = make([]uint32, portSlaveHandlesLength) + for j := 0; j < portSlaveHandlesLength; j++ { + t.PortSlaveHandles[j] = rcv.PortSlaveHandles(j) + } + t.SlaveIdentity = rcv.SlaveIdentity(nil).UnPack() + t.EscType = rcv.EscType() + t.EscRevision = rcv.EscRevision() + t.EscBuild = rcv.EscBuild() + t.EscFeatures = rcv.EscFeatures() + t.PortDescriptor = rcv.PortDescriptor() + t.Reserved01 = rcv.Reserved01() + t.AlStatus = rcv.AlStatus() + t.AlStatusCode = rcv.AlStatusCode() + t.MbxProtocols = rcv.MbxProtocols() + t.DlStatus = rcv.DlStatus() + t.PortState = rcv.PortState() + t.PreviousPort = rcv.PreviousPort() + t.SystemTimeDifference = rcv.SystemTimeDifference() + t.SlaveDelay = rcv.SlaveDelay() + t.PropagationDelay = rcv.PropagationDelay() + reserved02Length := rcv.Reserved02Length() + t.Reserved02 = make([]uint32, reserved02Length) + for j := 0; j < reserved02Length; j++ { + t.Reserved02[j] = rcv.Reserved02(j) + } + t.DcSupport = rcv.DcSupport() + t.Dc64Support = rcv.Dc64Support() + t.IsRefClock = rcv.IsRefClock() + t.LineCrossed = rcv.LineCrossed() +} + +func (rcv *SlaveOnlineInfoResponse) UnPack() *SlaveOnlineInfoResponseT { + if rcv == nil { return nil } + t := &SlaveOnlineInfoResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveOnlineInfoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveOnlineInfoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveOnlineInfoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveOnlineInfoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveOnlineInfoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveOnlineInfoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveOnlineInfoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveOnlineInfoResponse) AutoIncAddr() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateAutoIncAddr(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func (rcv *SlaveOnlineInfoResponse) EthercatAddr() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateEthercatAddr(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *SlaveOnlineInfoResponse) StationAlias() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateStationAlias(n uint16) bool { + return rcv._tab.MutateUint16Slot(8, n) +} + +func (rcv *SlaveOnlineInfoResponse) IdentifyValue() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateIdentifyValue(n uint16) bool { + return rcv._tab.MutateUint16Slot(10, n) +} + +func (rcv *SlaveOnlineInfoResponse) SlaveHandle() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateSlaveHandle(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *SlaveOnlineInfoResponse) PortSlaveHandles(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) PortSlaveHandlesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutatePortSlaveHandles(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SlaveOnlineInfoResponse) SlaveIdentity(obj *EthercatIdentityInfo) *EthercatIdentityInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := o + rcv._tab.Pos + if obj == nil { + obj = new(EthercatIdentityInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveOnlineInfoResponse) EscType() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateEscType(n byte) bool { + return rcv._tab.MutateByteSlot(18, n) +} + +func (rcv *SlaveOnlineInfoResponse) EscRevision() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateEscRevision(n byte) bool { + return rcv._tab.MutateByteSlot(20, n) +} + +func (rcv *SlaveOnlineInfoResponse) EscBuild() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateEscBuild(n uint16) bool { + return rcv._tab.MutateUint16Slot(22, n) +} + +func (rcv *SlaveOnlineInfoResponse) EscFeatures() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateEscFeatures(n uint16) bool { + return rcv._tab.MutateUint16Slot(24, n) +} + +func (rcv *SlaveOnlineInfoResponse) PortDescriptor() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutatePortDescriptor(n byte) bool { + return rcv._tab.MutateByteSlot(26, n) +} + +func (rcv *SlaveOnlineInfoResponse) Reserved01() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateReserved01(n byte) bool { + return rcv._tab.MutateByteSlot(28, n) +} + +func (rcv *SlaveOnlineInfoResponse) AlStatus() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateAlStatus(n uint16) bool { + return rcv._tab.MutateUint16Slot(30, n) +} + +func (rcv *SlaveOnlineInfoResponse) AlStatusCode() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateAlStatusCode(n uint16) bool { + return rcv._tab.MutateUint16Slot(32, n) +} + +func (rcv *SlaveOnlineInfoResponse) MbxProtocols() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateMbxProtocols(n uint16) bool { + return rcv._tab.MutateUint16Slot(34, n) +} + +func (rcv *SlaveOnlineInfoResponse) DlStatus() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateDlStatus(n uint16) bool { + return rcv._tab.MutateUint16Slot(36, n) +} + +func (rcv *SlaveOnlineInfoResponse) PortState() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutatePortState(n uint16) bool { + return rcv._tab.MutateUint16Slot(38, n) +} + +func (rcv *SlaveOnlineInfoResponse) PreviousPort() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutatePreviousPort(n uint16) bool { + return rcv._tab.MutateUint16Slot(40, n) +} + +func (rcv *SlaveOnlineInfoResponse) SystemTimeDifference() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateSystemTimeDifference(n uint32) bool { + return rcv._tab.MutateUint32Slot(42, n) +} + +func (rcv *SlaveOnlineInfoResponse) SlaveDelay() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateSlaveDelay(n uint32) bool { + return rcv._tab.MutateUint32Slot(44, n) +} + +func (rcv *SlaveOnlineInfoResponse) PropagationDelay() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutatePropagationDelay(n uint32) bool { + return rcv._tab.MutateUint32Slot(46, n) +} + +func (rcv *SlaveOnlineInfoResponse) Reserved02(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) Reserved02Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveOnlineInfoResponse) MutateReserved02(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(48)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SlaveOnlineInfoResponse) DcSupport() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(50)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveOnlineInfoResponse) MutateDcSupport(n bool) bool { + return rcv._tab.MutateBoolSlot(50, n) +} + +func (rcv *SlaveOnlineInfoResponse) Dc64Support() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(52)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveOnlineInfoResponse) MutateDc64Support(n bool) bool { + return rcv._tab.MutateBoolSlot(52, n) +} + +func (rcv *SlaveOnlineInfoResponse) IsRefClock() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(54)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveOnlineInfoResponse) MutateIsRefClock(n bool) bool { + return rcv._tab.MutateBoolSlot(54, n) +} + +func (rcv *SlaveOnlineInfoResponse) LineCrossed() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(56)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveOnlineInfoResponse) MutateLineCrossed(n bool) bool { + return rcv._tab.MutateBoolSlot(56, n) +} + +func SlaveOnlineInfoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(27) +} +func SlaveOnlineInfoResponseAddAutoIncAddr(builder *flatbuffers.Builder, autoIncAddr uint16) { + builder.PrependUint16Slot(0, autoIncAddr, 0) +} +func SlaveOnlineInfoResponseAddEthercatAddr(builder *flatbuffers.Builder, ethercatAddr uint16) { + builder.PrependUint16Slot(1, ethercatAddr, 0) +} +func SlaveOnlineInfoResponseAddStationAlias(builder *flatbuffers.Builder, stationAlias uint16) { + builder.PrependUint16Slot(2, stationAlias, 0) +} +func SlaveOnlineInfoResponseAddIdentifyValue(builder *flatbuffers.Builder, identifyValue uint16) { + builder.PrependUint16Slot(3, identifyValue, 0) +} +func SlaveOnlineInfoResponseAddSlaveHandle(builder *flatbuffers.Builder, slaveHandle uint32) { + builder.PrependUint32Slot(4, slaveHandle, 0) +} +func SlaveOnlineInfoResponseAddPortSlaveHandles(builder *flatbuffers.Builder, portSlaveHandles flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(portSlaveHandles), 0) +} +func SlaveOnlineInfoResponseStartPortSlaveHandlesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SlaveOnlineInfoResponseAddSlaveIdentity(builder *flatbuffers.Builder, slaveIdentity flatbuffers.UOffsetT) { + builder.PrependStructSlot(6, flatbuffers.UOffsetT(slaveIdentity), 0) +} +func SlaveOnlineInfoResponseAddEscType(builder *flatbuffers.Builder, escType byte) { + builder.PrependByteSlot(7, escType, 0) +} +func SlaveOnlineInfoResponseAddEscRevision(builder *flatbuffers.Builder, escRevision byte) { + builder.PrependByteSlot(8, escRevision, 0) +} +func SlaveOnlineInfoResponseAddEscBuild(builder *flatbuffers.Builder, escBuild uint16) { + builder.PrependUint16Slot(9, escBuild, 0) +} +func SlaveOnlineInfoResponseAddEscFeatures(builder *flatbuffers.Builder, escFeatures uint16) { + builder.PrependUint16Slot(10, escFeatures, 0) +} +func SlaveOnlineInfoResponseAddPortDescriptor(builder *flatbuffers.Builder, portDescriptor byte) { + builder.PrependByteSlot(11, portDescriptor, 0) +} +func SlaveOnlineInfoResponseAddReserved01(builder *flatbuffers.Builder, reserved01 byte) { + builder.PrependByteSlot(12, reserved01, 0) +} +func SlaveOnlineInfoResponseAddAlStatus(builder *flatbuffers.Builder, alStatus uint16) { + builder.PrependUint16Slot(13, alStatus, 0) +} +func SlaveOnlineInfoResponseAddAlStatusCode(builder *flatbuffers.Builder, alStatusCode uint16) { + builder.PrependUint16Slot(14, alStatusCode, 0) +} +func SlaveOnlineInfoResponseAddMbxProtocols(builder *flatbuffers.Builder, mbxProtocols uint16) { + builder.PrependUint16Slot(15, mbxProtocols, 0) +} +func SlaveOnlineInfoResponseAddDlStatus(builder *flatbuffers.Builder, dlStatus uint16) { + builder.PrependUint16Slot(16, dlStatus, 0) +} +func SlaveOnlineInfoResponseAddPortState(builder *flatbuffers.Builder, portState uint16) { + builder.PrependUint16Slot(17, portState, 0) +} +func SlaveOnlineInfoResponseAddPreviousPort(builder *flatbuffers.Builder, previousPort uint16) { + builder.PrependUint16Slot(18, previousPort, 0) +} +func SlaveOnlineInfoResponseAddSystemTimeDifference(builder *flatbuffers.Builder, systemTimeDifference uint32) { + builder.PrependUint32Slot(19, systemTimeDifference, 0) +} +func SlaveOnlineInfoResponseAddSlaveDelay(builder *flatbuffers.Builder, slaveDelay uint32) { + builder.PrependUint32Slot(20, slaveDelay, 0) +} +func SlaveOnlineInfoResponseAddPropagationDelay(builder *flatbuffers.Builder, propagationDelay uint32) { + builder.PrependUint32Slot(21, propagationDelay, 0) +} +func SlaveOnlineInfoResponseAddReserved02(builder *flatbuffers.Builder, reserved02 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(22, flatbuffers.UOffsetT(reserved02), 0) +} +func SlaveOnlineInfoResponseStartReserved02Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SlaveOnlineInfoResponseAddDcSupport(builder *flatbuffers.Builder, dcSupport bool) { + builder.PrependBoolSlot(23, dcSupport, false) +} +func SlaveOnlineInfoResponseAddDc64Support(builder *flatbuffers.Builder, dc64Support bool) { + builder.PrependBoolSlot(24, dc64Support, false) +} +func SlaveOnlineInfoResponseAddIsRefClock(builder *flatbuffers.Builder, isRefClock bool) { + builder.PrependBoolSlot(25, isRefClock, false) +} +func SlaveOnlineInfoResponseAddLineCrossed(builder *flatbuffers.Builder, lineCrossed bool) { + builder.PrependBoolSlot(26, lineCrossed, false) +} +func SlaveOnlineInfoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveRegister.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveRegister.go index 8f4f93a..4ac45d1 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveRegister.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveRegister.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveRegisterT struct { - Request *SlaveRegisterRequestT - Response *SlaveRegisterResponseT -} - -func (t *SlaveRegisterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveRegisterStart(builder) - SlaveRegisterAddRequest(builder, requestOffset) - SlaveRegisterAddResponse(builder, responseOffset) - return SlaveRegisterEnd(builder) -} - -func (rcv *SlaveRegister) UnPackTo(t *SlaveRegisterT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveRegister) UnPack() *SlaveRegisterT { - if rcv == nil { return nil } - t := &SlaveRegisterT{} - rcv.UnPackTo(t) - return t -} - -type SlaveRegister struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveRegister(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegister { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveRegister{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveRegister(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegister { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveRegister{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveRegister) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveRegister) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveRegister) Request(obj *SlaveRegisterRequest) *SlaveRegisterRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveRegisterRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveRegister) Response(obj *SlaveRegisterResponse) *SlaveRegisterResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveRegisterResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveRegisterStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveRegisterAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveRegisterAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveRegisterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveRegisterT struct { + Request *SlaveRegisterRequestT + Response *SlaveRegisterResponseT +} + +func (t *SlaveRegisterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveRegisterStart(builder) + SlaveRegisterAddRequest(builder, requestOffset) + SlaveRegisterAddResponse(builder, responseOffset) + return SlaveRegisterEnd(builder) +} + +func (rcv *SlaveRegister) UnPackTo(t *SlaveRegisterT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveRegister) UnPack() *SlaveRegisterT { + if rcv == nil { return nil } + t := &SlaveRegisterT{} + rcv.UnPackTo(t) + return t +} + +type SlaveRegister struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveRegister(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegister { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveRegister{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveRegister(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegister { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveRegister{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveRegister) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveRegister) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveRegister) Request(obj *SlaveRegisterRequest) *SlaveRegisterRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveRegisterRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveRegister) Response(obj *SlaveRegisterResponse) *SlaveRegisterResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveRegisterResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveRegisterStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveRegisterAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveRegisterAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveRegisterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterRequest.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterRequest.go index 5b8065c..fe8a4a6 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterRequest.go @@ -1,179 +1,179 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveRegisterRequestT struct { - AddressType Addresstype - Address uint16 - RegisterOffset uint16 - Data []byte - MaxLength uint32 -} - -func (t *SlaveRegisterRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - SlaveRegisterRequestStart(builder) - SlaveRegisterRequestAddAddressType(builder, t.AddressType) - SlaveRegisterRequestAddAddress(builder, t.Address) - SlaveRegisterRequestAddRegisterOffset(builder, t.RegisterOffset) - SlaveRegisterRequestAddData(builder, dataOffset) - SlaveRegisterRequestAddMaxLength(builder, t.MaxLength) - return SlaveRegisterRequestEnd(builder) -} - -func (rcv *SlaveRegisterRequest) UnPackTo(t *SlaveRegisterRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.RegisterOffset = rcv.RegisterOffset() - t.Data = rcv.DataBytes() - t.MaxLength = rcv.MaxLength() -} - -func (rcv *SlaveRegisterRequest) UnPack() *SlaveRegisterRequestT { - if rcv == nil { return nil } - t := &SlaveRegisterRequestT{} - rcv.UnPackTo(t) - return t -} - -type SlaveRegisterRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveRegisterRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveRegisterRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveRegisterRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveRegisterRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveRegisterRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveRegisterRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveRegisterRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SlaveRegisterRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *SlaveRegisterRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveRegisterRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *SlaveRegisterRequest) RegisterOffset() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveRegisterRequest) MutateRegisterOffset(n uint16) bool { - return rcv._tab.MutateUint16Slot(8, n) -} - -func (rcv *SlaveRegisterRequest) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *SlaveRegisterRequest) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveRegisterRequest) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SlaveRegisterRequest) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *SlaveRegisterRequest) MaxLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveRegisterRequest) MutateMaxLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func SlaveRegisterRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func SlaveRegisterRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func SlaveRegisterRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func SlaveRegisterRequestAddRegisterOffset(builder *flatbuffers.Builder, registerOffset uint16) { - builder.PrependUint16Slot(2, registerOffset, 0) -} -func SlaveRegisterRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(data), 0) -} -func SlaveRegisterRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func SlaveRegisterRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { - builder.PrependUint32Slot(4, maxLength, 0) -} -func SlaveRegisterRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveRegisterRequestT struct { + AddressType Addresstype + Address uint16 + RegisterOffset uint16 + Data []byte + MaxLength uint32 +} + +func (t *SlaveRegisterRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + SlaveRegisterRequestStart(builder) + SlaveRegisterRequestAddAddressType(builder, t.AddressType) + SlaveRegisterRequestAddAddress(builder, t.Address) + SlaveRegisterRequestAddRegisterOffset(builder, t.RegisterOffset) + SlaveRegisterRequestAddData(builder, dataOffset) + SlaveRegisterRequestAddMaxLength(builder, t.MaxLength) + return SlaveRegisterRequestEnd(builder) +} + +func (rcv *SlaveRegisterRequest) UnPackTo(t *SlaveRegisterRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.RegisterOffset = rcv.RegisterOffset() + t.Data = rcv.DataBytes() + t.MaxLength = rcv.MaxLength() +} + +func (rcv *SlaveRegisterRequest) UnPack() *SlaveRegisterRequestT { + if rcv == nil { return nil } + t := &SlaveRegisterRequestT{} + rcv.UnPackTo(t) + return t +} + +type SlaveRegisterRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveRegisterRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveRegisterRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveRegisterRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveRegisterRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveRegisterRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveRegisterRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveRegisterRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SlaveRegisterRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *SlaveRegisterRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveRegisterRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *SlaveRegisterRequest) RegisterOffset() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveRegisterRequest) MutateRegisterOffset(n uint16) bool { + return rcv._tab.MutateUint16Slot(8, n) +} + +func (rcv *SlaveRegisterRequest) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *SlaveRegisterRequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveRegisterRequest) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SlaveRegisterRequest) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *SlaveRegisterRequest) MaxLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveRegisterRequest) MutateMaxLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func SlaveRegisterRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func SlaveRegisterRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func SlaveRegisterRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func SlaveRegisterRequestAddRegisterOffset(builder *flatbuffers.Builder, registerOffset uint16) { + builder.PrependUint16Slot(2, registerOffset, 0) +} +func SlaveRegisterRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(data), 0) +} +func SlaveRegisterRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func SlaveRegisterRequestAddMaxLength(builder *flatbuffers.Builder, maxLength uint32) { + builder.PrependUint32Slot(4, maxLength, 0) +} +func SlaveRegisterRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterResponse.go index a84043b..33d0cf7 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveRegisterResponse.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveRegisterResponseT struct { - Data []byte -} - -func (t *SlaveRegisterResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - SlaveRegisterResponseStart(builder) - SlaveRegisterResponseAddData(builder, dataOffset) - return SlaveRegisterResponseEnd(builder) -} - -func (rcv *SlaveRegisterResponse) UnPackTo(t *SlaveRegisterResponseT) { - t.Data = rcv.DataBytes() -} - -func (rcv *SlaveRegisterResponse) UnPack() *SlaveRegisterResponseT { - if rcv == nil { return nil } - t := &SlaveRegisterResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveRegisterResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveRegisterResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveRegisterResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveRegisterResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveRegisterResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveRegisterResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveRegisterResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveRegisterResponse) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *SlaveRegisterResponse) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SlaveRegisterResponse) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SlaveRegisterResponse) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func SlaveRegisterResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SlaveRegisterResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func SlaveRegisterResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func SlaveRegisterResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveRegisterResponseT struct { + Data []byte +} + +func (t *SlaveRegisterResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + SlaveRegisterResponseStart(builder) + SlaveRegisterResponseAddData(builder, dataOffset) + return SlaveRegisterResponseEnd(builder) +} + +func (rcv *SlaveRegisterResponse) UnPackTo(t *SlaveRegisterResponseT) { + t.Data = rcv.DataBytes() +} + +func (rcv *SlaveRegisterResponse) UnPack() *SlaveRegisterResponseT { + if rcv == nil { return nil } + t := &SlaveRegisterResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveRegisterResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveRegisterResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveRegisterResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveRegisterResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveRegisterResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveRegisterResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveRegisterResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveRegisterResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveRegisterResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *SlaveRegisterResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SlaveRegisterResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SlaveRegisterResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func SlaveRegisterResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SlaveRegisterResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func SlaveRegisterResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func SlaveRegisterResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveState.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveState.go index 070646f..dbeef6c 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveState.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveState.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStateT struct { - Request *SlaveStateRequestT - Response *SlaveStateResponseT -} - -func (t *SlaveStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveStateStart(builder) - SlaveStateAddRequest(builder, requestOffset) - SlaveStateAddResponse(builder, responseOffset) - return SlaveStateEnd(builder) -} - -func (rcv *SlaveState) UnPackTo(t *SlaveStateT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveState) UnPack() *SlaveStateT { - if rcv == nil { return nil } - t := &SlaveStateT{} - rcv.UnPackTo(t) - return t -} - -type SlaveState struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveState(buf []byte, offset flatbuffers.UOffsetT) *SlaveState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveState(buf []byte, offset flatbuffers.UOffsetT) *SlaveState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveState) Request(obj *SlaveStateRequest) *SlaveStateRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStateRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveState) Response(obj *SlaveStateResponse) *SlaveStateResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStateResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveStateStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveStateAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStateT struct { + Request *SlaveStateRequestT + Response *SlaveStateResponseT +} + +func (t *SlaveStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveStateStart(builder) + SlaveStateAddRequest(builder, requestOffset) + SlaveStateAddResponse(builder, responseOffset) + return SlaveStateEnd(builder) +} + +func (rcv *SlaveState) UnPackTo(t *SlaveStateT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveState) UnPack() *SlaveStateT { + if rcv == nil { return nil } + t := &SlaveStateT{} + rcv.UnPackTo(t) + return t +} + +type SlaveState struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveState(buf []byte, offset flatbuffers.UOffsetT) *SlaveState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveState(buf []byte, offset flatbuffers.UOffsetT) *SlaveState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveState) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveState) Request(obj *SlaveStateRequest) *SlaveStateRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStateRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveState) Response(obj *SlaveStateResponse) *SlaveStateResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStateResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveStateStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveStateAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStateRequest.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStateRequest.go index d4c6ed7..92fc600 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStateRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStateRequest.go @@ -1,114 +1,114 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStateRequestT struct { - AddressType Addresstype - Address uint16 - NewState EthercatState -} - -func (t *SlaveStateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SlaveStateRequestStart(builder) - SlaveStateRequestAddAddressType(builder, t.AddressType) - SlaveStateRequestAddAddress(builder, t.Address) - SlaveStateRequestAddNewState(builder, t.NewState) - return SlaveStateRequestEnd(builder) -} - -func (rcv *SlaveStateRequest) UnPackTo(t *SlaveStateRequestT) { - t.AddressType = rcv.AddressType() - t.Address = rcv.Address() - t.NewState = rcv.NewState() -} - -func (rcv *SlaveStateRequest) UnPack() *SlaveStateRequestT { - if rcv == nil { return nil } - t := &SlaveStateRequestT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStateRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStateRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStateRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStateRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStateRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStateRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStateRequest) AddressType() Addresstype { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SlaveStateRequest) MutateAddressType(n Addresstype) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *SlaveStateRequest) Address() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveStateRequest) MutateAddress(n uint16) bool { - return rcv._tab.MutateUint16Slot(6, n) -} - -func (rcv *SlaveStateRequest) NewState() EthercatState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SlaveStateRequest) MutateNewState(n EthercatState) bool { - return rcv._tab.MutateUint16Slot(8, uint16(n)) -} - -func SlaveStateRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func SlaveStateRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { - builder.PrependByteSlot(0, byte(addressType), 0) -} -func SlaveStateRequestAddAddress(builder *flatbuffers.Builder, address uint16) { - builder.PrependUint16Slot(1, address, 0) -} -func SlaveStateRequestAddNewState(builder *flatbuffers.Builder, newState EthercatState) { - builder.PrependUint16Slot(2, uint16(newState), 0) -} -func SlaveStateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStateRequestT struct { + AddressType Addresstype + Address uint16 + NewState EthercatState +} + +func (t *SlaveStateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SlaveStateRequestStart(builder) + SlaveStateRequestAddAddressType(builder, t.AddressType) + SlaveStateRequestAddAddress(builder, t.Address) + SlaveStateRequestAddNewState(builder, t.NewState) + return SlaveStateRequestEnd(builder) +} + +func (rcv *SlaveStateRequest) UnPackTo(t *SlaveStateRequestT) { + t.AddressType = rcv.AddressType() + t.Address = rcv.Address() + t.NewState = rcv.NewState() +} + +func (rcv *SlaveStateRequest) UnPack() *SlaveStateRequestT { + if rcv == nil { return nil } + t := &SlaveStateRequestT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStateRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStateRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStateRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStateRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStateRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStateRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStateRequest) AddressType() Addresstype { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Addresstype(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SlaveStateRequest) MutateAddressType(n Addresstype) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *SlaveStateRequest) Address() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveStateRequest) MutateAddress(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *SlaveStateRequest) NewState() EthercatState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SlaveStateRequest) MutateNewState(n EthercatState) bool { + return rcv._tab.MutateUint16Slot(8, uint16(n)) +} + +func SlaveStateRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func SlaveStateRequestAddAddressType(builder *flatbuffers.Builder, addressType Addresstype) { + builder.PrependByteSlot(0, byte(addressType), 0) +} +func SlaveStateRequestAddAddress(builder *flatbuffers.Builder, address uint16) { + builder.PrependUint16Slot(1, address, 0) +} +func SlaveStateRequestAddNewState(builder *flatbuffers.Builder, newState EthercatState) { + builder.PrependUint16Slot(2, uint16(newState), 0) +} +func SlaveStateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStateResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStateResponse.go index d94ad45..f292b2d 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStateResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStateResponse.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStateResponseT struct { - CurrentState EthercatState - RequestedState EthercatState -} - -func (t *SlaveStateResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SlaveStateResponseStart(builder) - SlaveStateResponseAddCurrentState(builder, t.CurrentState) - SlaveStateResponseAddRequestedState(builder, t.RequestedState) - return SlaveStateResponseEnd(builder) -} - -func (rcv *SlaveStateResponse) UnPackTo(t *SlaveStateResponseT) { - t.CurrentState = rcv.CurrentState() - t.RequestedState = rcv.RequestedState() -} - -func (rcv *SlaveStateResponse) UnPack() *SlaveStateResponseT { - if rcv == nil { return nil } - t := &SlaveStateResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStateResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStateResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStateResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStateResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStateResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStateResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStateResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStateResponse) CurrentState() EthercatState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SlaveStateResponse) MutateCurrentState(n EthercatState) bool { - return rcv._tab.MutateUint16Slot(4, uint16(n)) -} - -func (rcv *SlaveStateResponse) RequestedState() EthercatState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SlaveStateResponse) MutateRequestedState(n EthercatState) bool { - return rcv._tab.MutateUint16Slot(6, uint16(n)) -} - -func SlaveStateResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStateResponseAddCurrentState(builder *flatbuffers.Builder, currentState EthercatState) { - builder.PrependUint16Slot(0, uint16(currentState), 0) -} -func SlaveStateResponseAddRequestedState(builder *flatbuffers.Builder, requestedState EthercatState) { - builder.PrependUint16Slot(1, uint16(requestedState), 0) -} -func SlaveStateResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStateResponseT struct { + CurrentState EthercatState + RequestedState EthercatState +} + +func (t *SlaveStateResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SlaveStateResponseStart(builder) + SlaveStateResponseAddCurrentState(builder, t.CurrentState) + SlaveStateResponseAddRequestedState(builder, t.RequestedState) + return SlaveStateResponseEnd(builder) +} + +func (rcv *SlaveStateResponse) UnPackTo(t *SlaveStateResponseT) { + t.CurrentState = rcv.CurrentState() + t.RequestedState = rcv.RequestedState() +} + +func (rcv *SlaveStateResponse) UnPack() *SlaveStateResponseT { + if rcv == nil { return nil } + t := &SlaveStateResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStateResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStateResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStateResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStateResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStateResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStateResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStateResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStateResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStateResponse) CurrentState() EthercatState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SlaveStateResponse) MutateCurrentState(n EthercatState) bool { + return rcv._tab.MutateUint16Slot(4, uint16(n)) +} + +func (rcv *SlaveStateResponse) RequestedState() EthercatState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return EthercatState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *SlaveStateResponse) MutateRequestedState(n EthercatState) bool { + return rcv._tab.MutateUint16Slot(6, uint16(n)) +} + +func SlaveStateResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStateResponseAddCurrentState(builder *flatbuffers.Builder, currentState EthercatState) { + builder.PrependUint16Slot(0, uint16(currentState), 0) +} +func SlaveStateResponseAddRequestedState(builder *flatbuffers.Builder, requestedState EthercatState) { + builder.PrependUint16Slot(1, uint16(requestedState), 0) +} +func SlaveStateResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCounters.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCounters.go index 07ecf7f..21a5956 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCounters.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCounters.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticCountersT struct { - Request *AddressedRequestT - Response *SlaveStatisticCountersResponseT -} - -func (t *SlaveStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveStatisticCountersStart(builder) - SlaveStatisticCountersAddRequest(builder, requestOffset) - SlaveStatisticCountersAddResponse(builder, responseOffset) - return SlaveStatisticCountersEnd(builder) -} - -func (rcv *SlaveStatisticCounters) UnPackTo(t *SlaveStatisticCountersT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveStatisticCounters) UnPack() *SlaveStatisticCountersT { - if rcv == nil { return nil } - t := &SlaveStatisticCountersT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticCounters struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticCounters{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCounters { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticCounters{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticCounters) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticCounters) Request(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveStatisticCounters) Response(obj *SlaveStatisticCountersResponse) *SlaveStatisticCountersResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStatisticCountersResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveStatisticCountersStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStatisticCountersAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticCountersT struct { + Request *AddressedRequestT + Response *SlaveStatisticCountersResponseT +} + +func (t *SlaveStatisticCountersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveStatisticCountersStart(builder) + SlaveStatisticCountersAddRequest(builder, requestOffset) + SlaveStatisticCountersAddResponse(builder, responseOffset) + return SlaveStatisticCountersEnd(builder) +} + +func (rcv *SlaveStatisticCounters) UnPackTo(t *SlaveStatisticCountersT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveStatisticCounters) UnPack() *SlaveStatisticCountersT { + if rcv == nil { return nil } + t := &SlaveStatisticCountersT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticCounters struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticCounters{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticCounters(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCounters { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticCounters{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticCounters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticCounters) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticCounters) Request(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveStatisticCounters) Response(obj *SlaveStatisticCountersResponse) *SlaveStatisticCountersResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStatisticCountersResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveStatisticCountersStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStatisticCountersAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveStatisticCountersAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveStatisticCountersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCountersResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCountersResponse.go index 00f1fe2..df7ced7 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCountersResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticCountersResponse.go @@ -1,157 +1,157 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticCountersResponseT struct { - AlStatusCode uint16 - ProcUnitErrorCounter byte - PdiErrorCounter byte - PortErrorCounters []*PortErrorCountersT -} - -func (t *SlaveStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - portErrorCountersOffset := flatbuffers.UOffsetT(0) - if t.PortErrorCounters != nil { - portErrorCountersLength := len(t.PortErrorCounters) - SlaveStatisticCountersResponseStartPortErrorCountersVector(builder, portErrorCountersLength) - for j := portErrorCountersLength - 1; j >= 0; j-- { - t.PortErrorCounters[j].Pack(builder) - } - portErrorCountersOffset = builder.EndVector(portErrorCountersLength) - } - SlaveStatisticCountersResponseStart(builder) - SlaveStatisticCountersResponseAddAlStatusCode(builder, t.AlStatusCode) - SlaveStatisticCountersResponseAddProcUnitErrorCounter(builder, t.ProcUnitErrorCounter) - SlaveStatisticCountersResponseAddPdiErrorCounter(builder, t.PdiErrorCounter) - SlaveStatisticCountersResponseAddPortErrorCounters(builder, portErrorCountersOffset) - return SlaveStatisticCountersResponseEnd(builder) -} - -func (rcv *SlaveStatisticCountersResponse) UnPackTo(t *SlaveStatisticCountersResponseT) { - t.AlStatusCode = rcv.AlStatusCode() - t.ProcUnitErrorCounter = rcv.ProcUnitErrorCounter() - t.PdiErrorCounter = rcv.PdiErrorCounter() - portErrorCountersLength := rcv.PortErrorCountersLength() - t.PortErrorCounters = make([]*PortErrorCountersT, portErrorCountersLength) - for j := 0; j < portErrorCountersLength; j++ { - x := PortErrorCounters{} - rcv.PortErrorCounters(&x, j) - t.PortErrorCounters[j] = x.UnPack() - } -} - -func (rcv *SlaveStatisticCountersResponse) UnPack() *SlaveStatisticCountersResponseT { - if rcv == nil { return nil } - t := &SlaveStatisticCountersResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticCountersResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticCountersResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCountersResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticCountersResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticCountersResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticCountersResponse) AlStatusCode() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveStatisticCountersResponse) MutateAlStatusCode(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func (rcv *SlaveStatisticCountersResponse) ProcUnitErrorCounter() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveStatisticCountersResponse) MutateProcUnitErrorCounter(n byte) bool { - return rcv._tab.MutateByteSlot(6, n) -} - -func (rcv *SlaveStatisticCountersResponse) PdiErrorCounter() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveStatisticCountersResponse) MutatePdiErrorCounter(n byte) bool { - return rcv._tab.MutateByteSlot(8, n) -} - -func (rcv *SlaveStatisticCountersResponse) PortErrorCounters(obj *PortErrorCounters, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SlaveStatisticCountersResponse) PortErrorCountersLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func SlaveStatisticCountersResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SlaveStatisticCountersResponseAddAlStatusCode(builder *flatbuffers.Builder, alStatusCode uint16) { - builder.PrependUint16Slot(0, alStatusCode, 0) -} -func SlaveStatisticCountersResponseAddProcUnitErrorCounter(builder *flatbuffers.Builder, procUnitErrorCounter byte) { - builder.PrependByteSlot(1, procUnitErrorCounter, 0) -} -func SlaveStatisticCountersResponseAddPdiErrorCounter(builder *flatbuffers.Builder, pdiErrorCounter byte) { - builder.PrependByteSlot(2, pdiErrorCounter, 0) -} -func SlaveStatisticCountersResponseAddPortErrorCounters(builder *flatbuffers.Builder, portErrorCounters flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(portErrorCounters), 0) -} -func SlaveStatisticCountersResponseStartPortErrorCountersVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 1) -} -func SlaveStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticCountersResponseT struct { + AlStatusCode uint16 + ProcUnitErrorCounter byte + PdiErrorCounter byte + PortErrorCounters []*PortErrorCountersT +} + +func (t *SlaveStatisticCountersResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + portErrorCountersOffset := flatbuffers.UOffsetT(0) + if t.PortErrorCounters != nil { + portErrorCountersLength := len(t.PortErrorCounters) + SlaveStatisticCountersResponseStartPortErrorCountersVector(builder, portErrorCountersLength) + for j := portErrorCountersLength - 1; j >= 0; j-- { + t.PortErrorCounters[j].Pack(builder) + } + portErrorCountersOffset = builder.EndVector(portErrorCountersLength) + } + SlaveStatisticCountersResponseStart(builder) + SlaveStatisticCountersResponseAddAlStatusCode(builder, t.AlStatusCode) + SlaveStatisticCountersResponseAddProcUnitErrorCounter(builder, t.ProcUnitErrorCounter) + SlaveStatisticCountersResponseAddPdiErrorCounter(builder, t.PdiErrorCounter) + SlaveStatisticCountersResponseAddPortErrorCounters(builder, portErrorCountersOffset) + return SlaveStatisticCountersResponseEnd(builder) +} + +func (rcv *SlaveStatisticCountersResponse) UnPackTo(t *SlaveStatisticCountersResponseT) { + t.AlStatusCode = rcv.AlStatusCode() + t.ProcUnitErrorCounter = rcv.ProcUnitErrorCounter() + t.PdiErrorCounter = rcv.PdiErrorCounter() + portErrorCountersLength := rcv.PortErrorCountersLength() + t.PortErrorCounters = make([]*PortErrorCountersT, portErrorCountersLength) + for j := 0; j < portErrorCountersLength; j++ { + x := PortErrorCounters{} + rcv.PortErrorCounters(&x, j) + t.PortErrorCounters[j] = x.UnPack() + } +} + +func (rcv *SlaveStatisticCountersResponse) UnPack() *SlaveStatisticCountersResponseT { + if rcv == nil { return nil } + t := &SlaveStatisticCountersResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticCountersResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticCountersResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticCountersResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticCountersResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticCountersResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticCountersResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticCountersResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticCountersResponse) AlStatusCode() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveStatisticCountersResponse) MutateAlStatusCode(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func (rcv *SlaveStatisticCountersResponse) ProcUnitErrorCounter() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveStatisticCountersResponse) MutateProcUnitErrorCounter(n byte) bool { + return rcv._tab.MutateByteSlot(6, n) +} + +func (rcv *SlaveStatisticCountersResponse) PdiErrorCounter() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveStatisticCountersResponse) MutatePdiErrorCounter(n byte) bool { + return rcv._tab.MutateByteSlot(8, n) +} + +func (rcv *SlaveStatisticCountersResponse) PortErrorCounters(obj *PortErrorCounters, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SlaveStatisticCountersResponse) PortErrorCountersLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func SlaveStatisticCountersResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SlaveStatisticCountersResponseAddAlStatusCode(builder *flatbuffers.Builder, alStatusCode uint16) { + builder.PrependUint16Slot(0, alStatusCode, 0) +} +func SlaveStatisticCountersResponseAddProcUnitErrorCounter(builder *flatbuffers.Builder, procUnitErrorCounter byte) { + builder.PrependByteSlot(1, procUnitErrorCounter, 0) +} +func SlaveStatisticCountersResponseAddPdiErrorCounter(builder *flatbuffers.Builder, pdiErrorCounter byte) { + builder.PrependByteSlot(2, pdiErrorCounter, 0) +} +func SlaveStatisticCountersResponseAddPortErrorCounters(builder *flatbuffers.Builder, portErrorCounters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(portErrorCounters), 0) +} +func SlaveStatisticCountersResponseStartPortErrorCountersVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 1) +} +func SlaveStatisticCountersResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAuto.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAuto.go index 95bd96f..16140d7 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAuto.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAuto.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticModeAutoT struct { - Request *SlaveStatisticModeAutoRequestT - Response *SlaveStatisticModeAutoResponseT -} - -func (t *SlaveStatisticModeAutoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveStatisticModeAutoStart(builder) - SlaveStatisticModeAutoAddRequest(builder, requestOffset) - SlaveStatisticModeAutoAddResponse(builder, responseOffset) - return SlaveStatisticModeAutoEnd(builder) -} - -func (rcv *SlaveStatisticModeAuto) UnPackTo(t *SlaveStatisticModeAutoT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveStatisticModeAuto) UnPack() *SlaveStatisticModeAutoT { - if rcv == nil { return nil } - t := &SlaveStatisticModeAutoT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticModeAuto struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticModeAuto(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAuto { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticModeAuto{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticModeAuto(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAuto { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticModeAuto{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticModeAuto) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticModeAuto) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticModeAuto) Request(obj *SlaveStatisticModeAutoRequest) *SlaveStatisticModeAutoRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStatisticModeAutoRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveStatisticModeAuto) Response(obj *SlaveStatisticModeAutoResponse) *SlaveStatisticModeAutoResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStatisticModeAutoResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveStatisticModeAutoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStatisticModeAutoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveStatisticModeAutoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveStatisticModeAutoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticModeAutoT struct { + Request *SlaveStatisticModeAutoRequestT + Response *SlaveStatisticModeAutoResponseT +} + +func (t *SlaveStatisticModeAutoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveStatisticModeAutoStart(builder) + SlaveStatisticModeAutoAddRequest(builder, requestOffset) + SlaveStatisticModeAutoAddResponse(builder, responseOffset) + return SlaveStatisticModeAutoEnd(builder) +} + +func (rcv *SlaveStatisticModeAuto) UnPackTo(t *SlaveStatisticModeAutoT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveStatisticModeAuto) UnPack() *SlaveStatisticModeAutoT { + if rcv == nil { return nil } + t := &SlaveStatisticModeAutoT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticModeAuto struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticModeAuto(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAuto { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticModeAuto{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticModeAuto(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAuto { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticModeAuto{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticModeAuto) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticModeAuto) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticModeAuto) Request(obj *SlaveStatisticModeAutoRequest) *SlaveStatisticModeAutoRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStatisticModeAutoRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveStatisticModeAuto) Response(obj *SlaveStatisticModeAutoResponse) *SlaveStatisticModeAutoResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStatisticModeAutoResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveStatisticModeAutoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStatisticModeAutoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveStatisticModeAutoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveStatisticModeAutoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoRequest.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoRequest.go index c00f14c..5cccc79 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoRequest.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticModeAutoRequestT struct { - Enable bool - IdleTime uint32 -} - -func (t *SlaveStatisticModeAutoRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SlaveStatisticModeAutoRequestStart(builder) - SlaveStatisticModeAutoRequestAddEnable(builder, t.Enable) - SlaveStatisticModeAutoRequestAddIdleTime(builder, t.IdleTime) - return SlaveStatisticModeAutoRequestEnd(builder) -} - -func (rcv *SlaveStatisticModeAutoRequest) UnPackTo(t *SlaveStatisticModeAutoRequestT) { - t.Enable = rcv.Enable() - t.IdleTime = rcv.IdleTime() -} - -func (rcv *SlaveStatisticModeAutoRequest) UnPack() *SlaveStatisticModeAutoRequestT { - if rcv == nil { return nil } - t := &SlaveStatisticModeAutoRequestT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticModeAutoRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticModeAutoRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticModeAutoRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticModeAutoRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticModeAutoRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticModeAutoRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticModeAutoRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticModeAutoRequest) Enable() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveStatisticModeAutoRequest) MutateEnable(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *SlaveStatisticModeAutoRequest) IdleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveStatisticModeAutoRequest) MutateIdleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func SlaveStatisticModeAutoRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStatisticModeAutoRequestAddEnable(builder *flatbuffers.Builder, enable bool) { - builder.PrependBoolSlot(0, enable, false) -} -func SlaveStatisticModeAutoRequestAddIdleTime(builder *flatbuffers.Builder, idleTime uint32) { - builder.PrependUint32Slot(1, idleTime, 0) -} -func SlaveStatisticModeAutoRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticModeAutoRequestT struct { + Enable bool + IdleTime uint32 +} + +func (t *SlaveStatisticModeAutoRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SlaveStatisticModeAutoRequestStart(builder) + SlaveStatisticModeAutoRequestAddEnable(builder, t.Enable) + SlaveStatisticModeAutoRequestAddIdleTime(builder, t.IdleTime) + return SlaveStatisticModeAutoRequestEnd(builder) +} + +func (rcv *SlaveStatisticModeAutoRequest) UnPackTo(t *SlaveStatisticModeAutoRequestT) { + t.Enable = rcv.Enable() + t.IdleTime = rcv.IdleTime() +} + +func (rcv *SlaveStatisticModeAutoRequest) UnPack() *SlaveStatisticModeAutoRequestT { + if rcv == nil { return nil } + t := &SlaveStatisticModeAutoRequestT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticModeAutoRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticModeAutoRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticModeAutoRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticModeAutoRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticModeAutoRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticModeAutoRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticModeAutoRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticModeAutoRequest) Enable() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveStatisticModeAutoRequest) MutateEnable(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *SlaveStatisticModeAutoRequest) IdleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveStatisticModeAutoRequest) MutateIdleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func SlaveStatisticModeAutoRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStatisticModeAutoRequestAddEnable(builder *flatbuffers.Builder, enable bool) { + builder.PrependBoolSlot(0, enable, false) +} +func SlaveStatisticModeAutoRequestAddIdleTime(builder *flatbuffers.Builder, idleTime uint32) { + builder.PrependUint32Slot(1, idleTime, 0) +} +func SlaveStatisticModeAutoRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoResponse.go index 62a5280..bd3bbbb 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeAutoResponse.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticModeAutoResponseT struct { - Enable bool - IdleTime uint32 -} - -func (t *SlaveStatisticModeAutoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SlaveStatisticModeAutoResponseStart(builder) - SlaveStatisticModeAutoResponseAddEnable(builder, t.Enable) - SlaveStatisticModeAutoResponseAddIdleTime(builder, t.IdleTime) - return SlaveStatisticModeAutoResponseEnd(builder) -} - -func (rcv *SlaveStatisticModeAutoResponse) UnPackTo(t *SlaveStatisticModeAutoResponseT) { - t.Enable = rcv.Enable() - t.IdleTime = rcv.IdleTime() -} - -func (rcv *SlaveStatisticModeAutoResponse) UnPack() *SlaveStatisticModeAutoResponseT { - if rcv == nil { return nil } - t := &SlaveStatisticModeAutoResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticModeAutoResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticModeAutoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticModeAutoResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticModeAutoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticModeAutoResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticModeAutoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticModeAutoResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticModeAutoResponse) Enable() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveStatisticModeAutoResponse) MutateEnable(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *SlaveStatisticModeAutoResponse) IdleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveStatisticModeAutoResponse) MutateIdleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func SlaveStatisticModeAutoResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStatisticModeAutoResponseAddEnable(builder *flatbuffers.Builder, enable bool) { - builder.PrependBoolSlot(0, enable, false) -} -func SlaveStatisticModeAutoResponseAddIdleTime(builder *flatbuffers.Builder, idleTime uint32) { - builder.PrependUint32Slot(1, idleTime, 0) -} -func SlaveStatisticModeAutoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticModeAutoResponseT struct { + Enable bool + IdleTime uint32 +} + +func (t *SlaveStatisticModeAutoResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SlaveStatisticModeAutoResponseStart(builder) + SlaveStatisticModeAutoResponseAddEnable(builder, t.Enable) + SlaveStatisticModeAutoResponseAddIdleTime(builder, t.IdleTime) + return SlaveStatisticModeAutoResponseEnd(builder) +} + +func (rcv *SlaveStatisticModeAutoResponse) UnPackTo(t *SlaveStatisticModeAutoResponseT) { + t.Enable = rcv.Enable() + t.IdleTime = rcv.IdleTime() +} + +func (rcv *SlaveStatisticModeAutoResponse) UnPack() *SlaveStatisticModeAutoResponseT { + if rcv == nil { return nil } + t := &SlaveStatisticModeAutoResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticModeAutoResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticModeAutoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticModeAutoResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticModeAutoResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeAutoResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticModeAutoResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticModeAutoResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticModeAutoResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticModeAutoResponse) Enable() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveStatisticModeAutoResponse) MutateEnable(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *SlaveStatisticModeAutoResponse) IdleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveStatisticModeAutoResponse) MutateIdleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func SlaveStatisticModeAutoResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStatisticModeAutoResponseAddEnable(builder *flatbuffers.Builder, enable bool) { + builder.PrependBoolSlot(0, enable, false) +} +func SlaveStatisticModeAutoResponseAddIdleTime(builder *flatbuffers.Builder, idleTime uint32) { + builder.PrependUint32Slot(1, idleTime, 0) +} +func SlaveStatisticModeAutoResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTrigger.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTrigger.go index 1bd7e09..4617159 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTrigger.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTrigger.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticModeSingleShotTriggerT struct { - Request *SlaveStatisticModeSingleShotTriggerRequestT - Response *SlaveStatisticModeSingleShotTriggerResponseT -} - -func (t *SlaveStatisticModeSingleShotTriggerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveStatisticModeSingleShotTriggerStart(builder) - SlaveStatisticModeSingleShotTriggerAddRequest(builder, requestOffset) - SlaveStatisticModeSingleShotTriggerAddResponse(builder, responseOffset) - return SlaveStatisticModeSingleShotTriggerEnd(builder) -} - -func (rcv *SlaveStatisticModeSingleShotTrigger) UnPackTo(t *SlaveStatisticModeSingleShotTriggerT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveStatisticModeSingleShotTrigger) UnPack() *SlaveStatisticModeSingleShotTriggerT { - if rcv == nil { return nil } - t := &SlaveStatisticModeSingleShotTriggerT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticModeSingleShotTrigger struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticModeSingleShotTrigger(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTrigger { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticModeSingleShotTrigger{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticModeSingleShotTrigger(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTrigger { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticModeSingleShotTrigger{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticModeSingleShotTrigger) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticModeSingleShotTrigger) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticModeSingleShotTrigger) Request(obj *SlaveStatisticModeSingleShotTriggerRequest) *SlaveStatisticModeSingleShotTriggerRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStatisticModeSingleShotTriggerRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveStatisticModeSingleShotTrigger) Response(obj *SlaveStatisticModeSingleShotTriggerResponse) *SlaveStatisticModeSingleShotTriggerResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStatisticModeSingleShotTriggerResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveStatisticModeSingleShotTriggerStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStatisticModeSingleShotTriggerAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveStatisticModeSingleShotTriggerAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveStatisticModeSingleShotTriggerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticModeSingleShotTriggerT struct { + Request *SlaveStatisticModeSingleShotTriggerRequestT + Response *SlaveStatisticModeSingleShotTriggerResponseT +} + +func (t *SlaveStatisticModeSingleShotTriggerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveStatisticModeSingleShotTriggerStart(builder) + SlaveStatisticModeSingleShotTriggerAddRequest(builder, requestOffset) + SlaveStatisticModeSingleShotTriggerAddResponse(builder, responseOffset) + return SlaveStatisticModeSingleShotTriggerEnd(builder) +} + +func (rcv *SlaveStatisticModeSingleShotTrigger) UnPackTo(t *SlaveStatisticModeSingleShotTriggerT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveStatisticModeSingleShotTrigger) UnPack() *SlaveStatisticModeSingleShotTriggerT { + if rcv == nil { return nil } + t := &SlaveStatisticModeSingleShotTriggerT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticModeSingleShotTrigger struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticModeSingleShotTrigger(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTrigger { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticModeSingleShotTrigger{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticModeSingleShotTrigger(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTrigger { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticModeSingleShotTrigger{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticModeSingleShotTrigger) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticModeSingleShotTrigger) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticModeSingleShotTrigger) Request(obj *SlaveStatisticModeSingleShotTriggerRequest) *SlaveStatisticModeSingleShotTriggerRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStatisticModeSingleShotTriggerRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveStatisticModeSingleShotTrigger) Response(obj *SlaveStatisticModeSingleShotTriggerResponse) *SlaveStatisticModeSingleShotTriggerResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStatisticModeSingleShotTriggerResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveStatisticModeSingleShotTriggerStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStatisticModeSingleShotTriggerAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveStatisticModeSingleShotTriggerAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveStatisticModeSingleShotTriggerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerRequest.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerRequest.go index 8df78fe..359f6c4 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerRequest.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerRequest.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticModeSingleShotTriggerRequestT struct { - Force bool -} - -func (t *SlaveStatisticModeSingleShotTriggerRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SlaveStatisticModeSingleShotTriggerRequestStart(builder) - SlaveStatisticModeSingleShotTriggerRequestAddForce(builder, t.Force) - return SlaveStatisticModeSingleShotTriggerRequestEnd(builder) -} - -func (rcv *SlaveStatisticModeSingleShotTriggerRequest) UnPackTo(t *SlaveStatisticModeSingleShotTriggerRequestT) { - t.Force = rcv.Force() -} - -func (rcv *SlaveStatisticModeSingleShotTriggerRequest) UnPack() *SlaveStatisticModeSingleShotTriggerRequestT { - if rcv == nil { return nil } - t := &SlaveStatisticModeSingleShotTriggerRequestT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticModeSingleShotTriggerRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticModeSingleShotTriggerRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticModeSingleShotTriggerRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticModeSingleShotTriggerRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticModeSingleShotTriggerRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticModeSingleShotTriggerRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticModeSingleShotTriggerRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticModeSingleShotTriggerRequest) Force() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveStatisticModeSingleShotTriggerRequest) MutateForce(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func SlaveStatisticModeSingleShotTriggerRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SlaveStatisticModeSingleShotTriggerRequestAddForce(builder *flatbuffers.Builder, force bool) { - builder.PrependBoolSlot(0, force, false) -} -func SlaveStatisticModeSingleShotTriggerRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticModeSingleShotTriggerRequestT struct { + Force bool +} + +func (t *SlaveStatisticModeSingleShotTriggerRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SlaveStatisticModeSingleShotTriggerRequestStart(builder) + SlaveStatisticModeSingleShotTriggerRequestAddForce(builder, t.Force) + return SlaveStatisticModeSingleShotTriggerRequestEnd(builder) +} + +func (rcv *SlaveStatisticModeSingleShotTriggerRequest) UnPackTo(t *SlaveStatisticModeSingleShotTriggerRequestT) { + t.Force = rcv.Force() +} + +func (rcv *SlaveStatisticModeSingleShotTriggerRequest) UnPack() *SlaveStatisticModeSingleShotTriggerRequestT { + if rcv == nil { return nil } + t := &SlaveStatisticModeSingleShotTriggerRequestT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticModeSingleShotTriggerRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticModeSingleShotTriggerRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticModeSingleShotTriggerRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticModeSingleShotTriggerRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticModeSingleShotTriggerRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticModeSingleShotTriggerRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticModeSingleShotTriggerRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticModeSingleShotTriggerRequest) Force() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveStatisticModeSingleShotTriggerRequest) MutateForce(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func SlaveStatisticModeSingleShotTriggerRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SlaveStatisticModeSingleShotTriggerRequestAddForce(builder *flatbuffers.Builder, force bool) { + builder.PrependBoolSlot(0, force, false) +} +func SlaveStatisticModeSingleShotTriggerRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerResponse.go index 48d7ec8..c633c68 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatisticModeSingleShotTriggerResponse.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatisticModeSingleShotTriggerResponseT struct { - Forced bool - Discarded bool -} - -func (t *SlaveStatisticModeSingleShotTriggerResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SlaveStatisticModeSingleShotTriggerResponseStart(builder) - SlaveStatisticModeSingleShotTriggerResponseAddForced(builder, t.Forced) - SlaveStatisticModeSingleShotTriggerResponseAddDiscarded(builder, t.Discarded) - return SlaveStatisticModeSingleShotTriggerResponseEnd(builder) -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) UnPackTo(t *SlaveStatisticModeSingleShotTriggerResponseT) { - t.Forced = rcv.Forced() - t.Discarded = rcv.Discarded() -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) UnPack() *SlaveStatisticModeSingleShotTriggerResponseT { - if rcv == nil { return nil } - t := &SlaveStatisticModeSingleShotTriggerResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatisticModeSingleShotTriggerResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatisticModeSingleShotTriggerResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatisticModeSingleShotTriggerResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatisticModeSingleShotTriggerResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatisticModeSingleShotTriggerResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Forced() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) MutateForced(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Discarded() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SlaveStatisticModeSingleShotTriggerResponse) MutateDiscarded(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func SlaveStatisticModeSingleShotTriggerResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStatisticModeSingleShotTriggerResponseAddForced(builder *flatbuffers.Builder, forced bool) { - builder.PrependBoolSlot(0, forced, false) -} -func SlaveStatisticModeSingleShotTriggerResponseAddDiscarded(builder *flatbuffers.Builder, discarded bool) { - builder.PrependBoolSlot(1, discarded, false) -} -func SlaveStatisticModeSingleShotTriggerResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatisticModeSingleShotTriggerResponseT struct { + Forced bool + Discarded bool +} + +func (t *SlaveStatisticModeSingleShotTriggerResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SlaveStatisticModeSingleShotTriggerResponseStart(builder) + SlaveStatisticModeSingleShotTriggerResponseAddForced(builder, t.Forced) + SlaveStatisticModeSingleShotTriggerResponseAddDiscarded(builder, t.Discarded) + return SlaveStatisticModeSingleShotTriggerResponseEnd(builder) +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) UnPackTo(t *SlaveStatisticModeSingleShotTriggerResponseT) { + t.Forced = rcv.Forced() + t.Discarded = rcv.Discarded() +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) UnPack() *SlaveStatisticModeSingleShotTriggerResponseT { + if rcv == nil { return nil } + t := &SlaveStatisticModeSingleShotTriggerResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatisticModeSingleShotTriggerResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatisticModeSingleShotTriggerResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatisticModeSingleShotTriggerResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatisticModeSingleShotTriggerResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatisticModeSingleShotTriggerResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatisticModeSingleShotTriggerResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Forced() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) MutateForced(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) Discarded() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SlaveStatisticModeSingleShotTriggerResponse) MutateDiscarded(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func SlaveStatisticModeSingleShotTriggerResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStatisticModeSingleShotTriggerResponseAddForced(builder *flatbuffers.Builder, forced bool) { + builder.PrependBoolSlot(0, forced, false) +} +func SlaveStatisticModeSingleShotTriggerResponseAddDiscarded(builder *flatbuffers.Builder, discarded bool) { + builder.PrependBoolSlot(1, discarded, false) +} +func SlaveStatisticModeSingleShotTriggerResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatus.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatus.go index 97cf25a..c56ecf6 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatus.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatus.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatusT struct { - Request *AddressedRequestT - Response *SlaveStatusResponseT -} - -func (t *SlaveStatusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - requestOffset := t.Request.Pack(builder) - responseOffset := t.Response.Pack(builder) - SlaveStatusStart(builder) - SlaveStatusAddRequest(builder, requestOffset) - SlaveStatusAddResponse(builder, responseOffset) - return SlaveStatusEnd(builder) -} - -func (rcv *SlaveStatus) UnPackTo(t *SlaveStatusT) { - t.Request = rcv.Request(nil).UnPack() - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *SlaveStatus) UnPack() *SlaveStatusT { - if rcv == nil { return nil } - t := &SlaveStatusT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatus struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatus(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatus { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatus{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatus(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatus { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatus{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatus) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatus) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatus) Request(obj *AddressedRequest) *AddressedRequest { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AddressedRequest) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SlaveStatus) Response(obj *SlaveStatusResponse) *SlaveStatusResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SlaveStatusResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SlaveStatusStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SlaveStatusAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) -} -func SlaveStatusAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) -} -func SlaveStatusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatusT struct { + Request *AddressedRequestT + Response *SlaveStatusResponseT +} + +func (t *SlaveStatusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveStatusStart(builder) + SlaveStatusAddRequest(builder, requestOffset) + SlaveStatusAddResponse(builder, responseOffset) + return SlaveStatusEnd(builder) +} + +func (rcv *SlaveStatus) UnPackTo(t *SlaveStatusT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveStatus) UnPack() *SlaveStatusT { + if rcv == nil { return nil } + t := &SlaveStatusT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatus struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatus(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatus { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatus{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatus(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatus { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatus{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatus) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatus) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatus) Request(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveStatus) Response(obj *SlaveStatusResponse) *SlaveStatusResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveStatusResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveStatusStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveStatusAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveStatusAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveStatusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatusResponse.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatusResponse.go index 48ad1c4..ec75152 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SlaveStatusResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveStatusResponse.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SlaveStatusResponseT struct { - Status uint32 -} - -func (t *SlaveStatusResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SlaveStatusResponseStart(builder) - SlaveStatusResponseAddStatus(builder, t.Status) - return SlaveStatusResponseEnd(builder) -} - -func (rcv *SlaveStatusResponse) UnPackTo(t *SlaveStatusResponseT) { - t.Status = rcv.Status() -} - -func (rcv *SlaveStatusResponse) UnPack() *SlaveStatusResponseT { - if rcv == nil { return nil } - t := &SlaveStatusResponseT{} - rcv.UnPackTo(t) - return t -} - -type SlaveStatusResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsSlaveStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatusResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SlaveStatusResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSlaveStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatusResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SlaveStatusResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SlaveStatusResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SlaveStatusResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SlaveStatusResponse) Status() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SlaveStatusResponse) MutateStatus(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func SlaveStatusResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SlaveStatusResponseAddStatus(builder *flatbuffers.Builder, status uint32) { - builder.PrependUint32Slot(0, status, 0) -} -func SlaveStatusResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveStatusResponseT struct { + Status uint32 +} + +func (t *SlaveStatusResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SlaveStatusResponseStart(builder) + SlaveStatusResponseAddStatus(builder, t.Status) + return SlaveStatusResponseEnd(builder) +} + +func (rcv *SlaveStatusResponse) UnPackTo(t *SlaveStatusResponseT) { + t.Status = rcv.Status() +} + +func (rcv *SlaveStatusResponse) UnPack() *SlaveStatusResponseT { + if rcv == nil { return nil } + t := &SlaveStatusResponseT{} + rcv.UnPackTo(t) + return t +} + +type SlaveStatusResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveStatusResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *SlaveStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveStatusResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveStatusResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveStatusResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveStatusResponse) Status() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveStatusResponse) MutateStatus(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func SlaveStatusResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SlaveStatusResponseAddStatus(builder *flatbuffers.Builder, status uint32) { + builder.PrependUint32Slot(0, status, 0) +} +func SlaveStatusResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfo.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfo.go new file mode 100644 index 0000000..d997421 --- /dev/null +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfo.go @@ -0,0 +1,100 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveVariablesConfigInfoT struct { + Request *SlaveVariablesConfigInfoRequestT + Response *SlaveVariablesConfigInfoResponseListT +} + +func (t *SlaveVariablesConfigInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + SlaveVariablesConfigInfoStart(builder) + SlaveVariablesConfigInfoAddRequest(builder, requestOffset) + SlaveVariablesConfigInfoAddResponse(builder, responseOffset) + return SlaveVariablesConfigInfoEnd(builder) +} + +func (rcv *SlaveVariablesConfigInfo) UnPackTo(t *SlaveVariablesConfigInfoT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *SlaveVariablesConfigInfo) UnPack() *SlaveVariablesConfigInfoT { + if rcv == nil { return nil } + t := &SlaveVariablesConfigInfoT{} + rcv.UnPackTo(t) + return t +} + +type SlaveVariablesConfigInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveVariablesConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveVariablesConfigInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveVariablesConfigInfo(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveVariablesConfigInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveVariablesConfigInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveVariablesConfigInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveVariablesConfigInfo) Request(obj *SlaveVariablesConfigInfoRequest) *SlaveVariablesConfigInfoRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveVariablesConfigInfoRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveVariablesConfigInfo) Response(obj *SlaveVariablesConfigInfoResponseList) *SlaveVariablesConfigInfoResponseList { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SlaveVariablesConfigInfoResponseList) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveVariablesConfigInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveVariablesConfigInfoAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func SlaveVariablesConfigInfoAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func SlaveVariablesConfigInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoEntry.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoEntry.go new file mode 100644 index 0000000..63f4413 --- /dev/null +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoEntry.go @@ -0,0 +1,120 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + comm__datalayer "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/comm/datalayer" +) + +type SlaveVariablesConfigInfoEntryT struct { + VariableInfo *comm__datalayer.VariableT + EtgBaseType uint16 + ProtocolInfo *VariableProtocolInfoT +} + +func (t *SlaveVariablesConfigInfoEntryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + variableInfoOffset := t.VariableInfo.Pack(builder) + protocolInfoOffset := t.ProtocolInfo.Pack(builder) + SlaveVariablesConfigInfoEntryStart(builder) + SlaveVariablesConfigInfoEntryAddVariableInfo(builder, variableInfoOffset) + SlaveVariablesConfigInfoEntryAddEtgBaseType(builder, t.EtgBaseType) + SlaveVariablesConfigInfoEntryAddProtocolInfo(builder, protocolInfoOffset) + return SlaveVariablesConfigInfoEntryEnd(builder) +} + +func (rcv *SlaveVariablesConfigInfoEntry) UnPackTo(t *SlaveVariablesConfigInfoEntryT) { + t.VariableInfo = rcv.VariableInfo(nil).UnPack() + t.EtgBaseType = rcv.EtgBaseType() + t.ProtocolInfo = rcv.ProtocolInfo(nil).UnPack() +} + +func (rcv *SlaveVariablesConfigInfoEntry) UnPack() *SlaveVariablesConfigInfoEntryT { + if rcv == nil { return nil } + t := &SlaveVariablesConfigInfoEntryT{} + rcv.UnPackTo(t) + return t +} + +type SlaveVariablesConfigInfoEntry struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveVariablesConfigInfoEntry(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfoEntry { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveVariablesConfigInfoEntry{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveVariablesConfigInfoEntry(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfoEntry { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveVariablesConfigInfoEntry{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveVariablesConfigInfoEntry) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveVariablesConfigInfoEntry) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveVariablesConfigInfoEntry) VariableInfo(obj *comm__datalayer.Variable) *comm__datalayer.Variable { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(comm__datalayer.Variable) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveVariablesConfigInfoEntry) EtgBaseType() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SlaveVariablesConfigInfoEntry) MutateEtgBaseType(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *SlaveVariablesConfigInfoEntry) ProtocolInfo(obj *VariableProtocolInfo) *VariableProtocolInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(VariableProtocolInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SlaveVariablesConfigInfoEntryStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func SlaveVariablesConfigInfoEntryAddVariableInfo(builder *flatbuffers.Builder, variableInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(variableInfo), 0) +} +func SlaveVariablesConfigInfoEntryAddEtgBaseType(builder *flatbuffers.Builder, etgBaseType uint16) { + builder.PrependUint16Slot(1, etgBaseType, 0) +} +func SlaveVariablesConfigInfoEntryAddProtocolInfo(builder *flatbuffers.Builder, protocolInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(protocolInfo), 0) +} +func SlaveVariablesConfigInfoEntryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoRequest.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoRequest.go new file mode 100644 index 0000000..0b134b3 --- /dev/null +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoRequest.go @@ -0,0 +1,95 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveVariablesConfigInfoRequestT struct { + AddressedRequest *AddressedRequestT + VarType string +} + +func (t *SlaveVariablesConfigInfoRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + addressedRequestOffset := t.AddressedRequest.Pack(builder) + varTypeOffset := builder.CreateString(t.VarType) + SlaveVariablesConfigInfoRequestStart(builder) + SlaveVariablesConfigInfoRequestAddAddressedRequest(builder, addressedRequestOffset) + SlaveVariablesConfigInfoRequestAddVarType(builder, varTypeOffset) + return SlaveVariablesConfigInfoRequestEnd(builder) +} + +func (rcv *SlaveVariablesConfigInfoRequest) UnPackTo(t *SlaveVariablesConfigInfoRequestT) { + t.AddressedRequest = rcv.AddressedRequest(nil).UnPack() + t.VarType = string(rcv.VarType()) +} + +func (rcv *SlaveVariablesConfigInfoRequest) UnPack() *SlaveVariablesConfigInfoRequestT { + if rcv == nil { return nil } + t := &SlaveVariablesConfigInfoRequestT{} + rcv.UnPackTo(t) + return t +} + +type SlaveVariablesConfigInfoRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveVariablesConfigInfoRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfoRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveVariablesConfigInfoRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveVariablesConfigInfoRequest(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfoRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveVariablesConfigInfoRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveVariablesConfigInfoRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveVariablesConfigInfoRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveVariablesConfigInfoRequest) AddressedRequest(obj *AddressedRequest) *AddressedRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AddressedRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *SlaveVariablesConfigInfoRequest) VarType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func SlaveVariablesConfigInfoRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SlaveVariablesConfigInfoRequestAddAddressedRequest(builder *flatbuffers.Builder, addressedRequest flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(addressedRequest), 0) +} +func SlaveVariablesConfigInfoRequestAddVarType(builder *flatbuffers.Builder, varType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(varType), 0) +} +func SlaveVariablesConfigInfoRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoResponseList.go b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoResponseList.go new file mode 100644 index 0000000..1ea086e --- /dev/null +++ b/pkg/fbs/comm/ethercat/master/fbs/SlaveVariablesConfigInfoResponseList.go @@ -0,0 +1,108 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SlaveVariablesConfigInfoResponseListT struct { + SlVarConfInfoResponseList []*SlaveVariablesConfigInfoEntryT +} + +func (t *SlaveVariablesConfigInfoResponseListT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + slVarConfInfoResponseListOffset := flatbuffers.UOffsetT(0) + if t.SlVarConfInfoResponseList != nil { + slVarConfInfoResponseListLength := len(t.SlVarConfInfoResponseList) + slVarConfInfoResponseListOffsets := make([]flatbuffers.UOffsetT, slVarConfInfoResponseListLength) + for j := 0; j < slVarConfInfoResponseListLength; j++ { + slVarConfInfoResponseListOffsets[j] = t.SlVarConfInfoResponseList[j].Pack(builder) + } + SlaveVariablesConfigInfoResponseListStartSlVarConfInfoResponseListVector(builder, slVarConfInfoResponseListLength) + for j := slVarConfInfoResponseListLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(slVarConfInfoResponseListOffsets[j]) + } + slVarConfInfoResponseListOffset = builder.EndVector(slVarConfInfoResponseListLength) + } + SlaveVariablesConfigInfoResponseListStart(builder) + SlaveVariablesConfigInfoResponseListAddSlVarConfInfoResponseList(builder, slVarConfInfoResponseListOffset) + return SlaveVariablesConfigInfoResponseListEnd(builder) +} + +func (rcv *SlaveVariablesConfigInfoResponseList) UnPackTo(t *SlaveVariablesConfigInfoResponseListT) { + slVarConfInfoResponseListLength := rcv.SlVarConfInfoResponseListLength() + t.SlVarConfInfoResponseList = make([]*SlaveVariablesConfigInfoEntryT, slVarConfInfoResponseListLength) + for j := 0; j < slVarConfInfoResponseListLength; j++ { + x := SlaveVariablesConfigInfoEntry{} + rcv.SlVarConfInfoResponseList(&x, j) + t.SlVarConfInfoResponseList[j] = x.UnPack() + } +} + +func (rcv *SlaveVariablesConfigInfoResponseList) UnPack() *SlaveVariablesConfigInfoResponseListT { + if rcv == nil { return nil } + t := &SlaveVariablesConfigInfoResponseListT{} + rcv.UnPackTo(t) + return t +} + +type SlaveVariablesConfigInfoResponseList struct { + _tab flatbuffers.Table +} + +func GetRootAsSlaveVariablesConfigInfoResponseList(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfoResponseList { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SlaveVariablesConfigInfoResponseList{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSlaveVariablesConfigInfoResponseList(buf []byte, offset flatbuffers.UOffsetT) *SlaveVariablesConfigInfoResponseList { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SlaveVariablesConfigInfoResponseList{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SlaveVariablesConfigInfoResponseList) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SlaveVariablesConfigInfoResponseList) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SlaveVariablesConfigInfoResponseList) SlVarConfInfoResponseList(obj *SlaveVariablesConfigInfoEntry, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SlaveVariablesConfigInfoResponseList) SlVarConfInfoResponseListLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func SlaveVariablesConfigInfoResponseListStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SlaveVariablesConfigInfoResponseListAddSlVarConfInfoResponseList(builder *flatbuffers.Builder, slVarConfInfoResponseList flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(slVarConfInfoResponseList), 0) +} +func SlaveVariablesConfigInfoResponseListStartSlVarConfInfoResponseListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SlaveVariablesConfigInfoResponseListEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SoeVariableInfo.go b/pkg/fbs/comm/ethercat/master/fbs/SoeVariableInfo.go new file mode 100644 index 0000000..c57d7ce --- /dev/null +++ b/pkg/fbs/comm/ethercat/master/fbs/SoeVariableInfo.go @@ -0,0 +1,96 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SoeVariableInfoT struct { + ConfigurationListIdn uint16 + Idn uint16 +} + +func (t *SoeVariableInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SoeVariableInfoStart(builder) + SoeVariableInfoAddConfigurationListIdn(builder, t.ConfigurationListIdn) + SoeVariableInfoAddIdn(builder, t.Idn) + return SoeVariableInfoEnd(builder) +} + +func (rcv *SoeVariableInfo) UnPackTo(t *SoeVariableInfoT) { + t.ConfigurationListIdn = rcv.ConfigurationListIdn() + t.Idn = rcv.Idn() +} + +func (rcv *SoeVariableInfo) UnPack() *SoeVariableInfoT { + if rcv == nil { return nil } + t := &SoeVariableInfoT{} + rcv.UnPackTo(t) + return t +} + +type SoeVariableInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsSoeVariableInfo(buf []byte, offset flatbuffers.UOffsetT) *SoeVariableInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SoeVariableInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSoeVariableInfo(buf []byte, offset flatbuffers.UOffsetT) *SoeVariableInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SoeVariableInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SoeVariableInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SoeVariableInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SoeVariableInfo) ConfigurationListIdn() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SoeVariableInfo) MutateConfigurationListIdn(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func (rcv *SoeVariableInfo) Idn() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SoeVariableInfo) MutateIdn(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func SoeVariableInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SoeVariableInfoAddConfigurationListIdn(builder *flatbuffers.Builder, configurationListIdn uint16) { + builder.PrependUint16Slot(0, configurationListIdn, 0) +} +func SoeVariableInfoAddIdn(builder *flatbuffers.Builder, idn uint16) { + builder.PrependUint16Slot(1, idn, 0) +} +func SoeVariableInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/SyncMode.go b/pkg/fbs/comm/ethercat/master/fbs/SyncMode.go index 599a41b..3b495c4 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/SyncMode.go +++ b/pkg/fbs/comm/ethercat/master/fbs/SyncMode.go @@ -1,44 +1,44 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type SyncMode uint32 - -const ( - SyncModefreerun SyncMode = 0 - SyncModedcmAuto SyncMode = 1 - SyncModedcEnable SyncMode = 2 - SyncModedcmBusShift SyncMode = 3 - SyncModedcmMasterShift SyncMode = 4 - SyncModedcmLinkLayerRefClock SyncMode = 5 - SyncModeunknown SyncMode = 4294967295 -) - -var EnumNamesSyncMode = map[SyncMode]string{ - SyncModefreerun: "freerun", - SyncModedcmAuto: "dcmAuto", - SyncModedcEnable: "dcEnable", - SyncModedcmBusShift: "dcmBusShift", - SyncModedcmMasterShift: "dcmMasterShift", - SyncModedcmLinkLayerRefClock: "dcmLinkLayerRefClock", - SyncModeunknown: "unknown", -} - -var EnumValuesSyncMode = map[string]SyncMode{ - "freerun": SyncModefreerun, - "dcmAuto": SyncModedcmAuto, - "dcEnable": SyncModedcEnable, - "dcmBusShift": SyncModedcmBusShift, - "dcmMasterShift": SyncModedcmMasterShift, - "dcmLinkLayerRefClock": SyncModedcmLinkLayerRefClock, - "unknown": SyncModeunknown, -} - -func (v SyncMode) String() string { - if s, ok := EnumNamesSyncMode[v]; ok { - return s - } - return "SyncMode(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type SyncMode uint32 + +const ( + SyncModefreerun SyncMode = 0 + SyncModedcmAuto SyncMode = 1 + SyncModedcEnable SyncMode = 2 + SyncModedcmBusShift SyncMode = 3 + SyncModedcmMasterShift SyncMode = 4 + SyncModedcmLinkLayerRefClock SyncMode = 5 + SyncModeunknown SyncMode = 4294967295 +) + +var EnumNamesSyncMode = map[SyncMode]string{ + SyncModefreerun: "freerun", + SyncModedcmAuto: "dcmAuto", + SyncModedcEnable: "dcEnable", + SyncModedcmBusShift: "dcmBusShift", + SyncModedcmMasterShift: "dcmMasterShift", + SyncModedcmLinkLayerRefClock: "dcmLinkLayerRefClock", + SyncModeunknown: "unknown", +} + +var EnumValuesSyncMode = map[string]SyncMode{ + "freerun": SyncModefreerun, + "dcmAuto": SyncModedcmAuto, + "dcEnable": SyncModedcEnable, + "dcmBusShift": SyncModedcmBusShift, + "dcmMasterShift": SyncModedcmMasterShift, + "dcmLinkLayerRefClock": SyncModedcmLinkLayerRefClock, + "unknown": SyncModeunknown, +} + +func (v SyncMode) String() string { + if s, ok := EnumNamesSyncMode[v]; ok { + return s + } + return "SyncMode(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/TopologyState.go b/pkg/fbs/comm/ethercat/master/fbs/TopologyState.go index 32adcfd..823d4ac 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/TopologyState.go +++ b/pkg/fbs/comm/ethercat/master/fbs/TopologyState.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type TopologyState uint32 - -const ( - TopologyStateunknown TopologyState = 0 - TopologyStatevalid TopologyState = 1 - TopologyStatepending TopologyState = 2 -) - -var EnumNamesTopologyState = map[TopologyState]string{ - TopologyStateunknown: "unknown", - TopologyStatevalid: "valid", - TopologyStatepending: "pending", -} - -var EnumValuesTopologyState = map[string]TopologyState{ - "unknown": TopologyStateunknown, - "valid": TopologyStatevalid, - "pending": TopologyStatepending, -} - -func (v TopologyState) String() string { - if s, ok := EnumNamesTopologyState[v]; ok { - return s - } - return "TopologyState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type TopologyState uint32 + +const ( + TopologyStateunknown TopologyState = 0 + TopologyStatevalid TopologyState = 1 + TopologyStatepending TopologyState = 2 +) + +var EnumNamesTopologyState = map[TopologyState]string{ + TopologyStateunknown: "unknown", + TopologyStatevalid: "valid", + TopologyStatepending: "pending", +} + +var EnumValuesTopologyState = map[string]TopologyState{ + "unknown": TopologyStateunknown, + "valid": TopologyStatevalid, + "pending": TopologyStatepending, +} + +func (v TopologyState) String() string { + if s, ok := EnumNamesTopologyState[v]; ok { + return s + } + return "TopologyState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/TopologyStatus.go b/pkg/fbs/comm/ethercat/master/fbs/TopologyStatus.go index d6f95d9..73695fc 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/TopologyStatus.go +++ b/pkg/fbs/comm/ethercat/master/fbs/TopologyStatus.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TopologyStatusT struct { - Response *TopologyStatusResponseT -} - -func (t *TopologyStatusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - responseOffset := t.Response.Pack(builder) - TopologyStatusStart(builder) - TopologyStatusAddResponse(builder, responseOffset) - return TopologyStatusEnd(builder) -} - -func (rcv *TopologyStatus) UnPackTo(t *TopologyStatusT) { - t.Response = rcv.Response(nil).UnPack() -} - -func (rcv *TopologyStatus) UnPack() *TopologyStatusT { - if rcv == nil { return nil } - t := &TopologyStatusT{} - rcv.UnPackTo(t) - return t -} - -type TopologyStatus struct { - _tab flatbuffers.Table -} - -func GetRootAsTopologyStatus(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatus { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TopologyStatus{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTopologyStatus(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatus { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TopologyStatus{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TopologyStatus) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TopologyStatus) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TopologyStatus) Response(obj *TopologyStatusResponse) *TopologyStatusResponse { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(TopologyStatusResponse) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func TopologyStatusStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func TopologyStatusAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) -} -func TopologyStatusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TopologyStatusT struct { + Response *TopologyStatusResponseT +} + +func (t *TopologyStatusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + TopologyStatusStart(builder) + TopologyStatusAddResponse(builder, responseOffset) + return TopologyStatusEnd(builder) +} + +func (rcv *TopologyStatus) UnPackTo(t *TopologyStatusT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *TopologyStatus) UnPack() *TopologyStatusT { + if rcv == nil { return nil } + t := &TopologyStatusT{} + rcv.UnPackTo(t) + return t +} + +type TopologyStatus struct { + _tab flatbuffers.Table +} + +func GetRootAsTopologyStatus(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatus { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TopologyStatus{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTopologyStatus(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatus { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TopologyStatus{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TopologyStatus) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TopologyStatus) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *TopologyStatus) Response(obj *TopologyStatusResponse) *TopologyStatusResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(TopologyStatusResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func TopologyStatusStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func TopologyStatusAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func TopologyStatusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/TopologyStatusResponse.go b/pkg/fbs/comm/ethercat/master/fbs/TopologyStatusResponse.go index 43632c8..cf3c907 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/TopologyStatusResponse.go +++ b/pkg/fbs/comm/ethercat/master/fbs/TopologyStatusResponse.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TopologyStatusResponseT struct { - State TopologyState - NumChanges uint32 -} - -func (t *TopologyStatusResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TopologyStatusResponseStart(builder) - TopologyStatusResponseAddState(builder, t.State) - TopologyStatusResponseAddNumChanges(builder, t.NumChanges) - return TopologyStatusResponseEnd(builder) -} - -func (rcv *TopologyStatusResponse) UnPackTo(t *TopologyStatusResponseT) { - t.State = rcv.State() - t.NumChanges = rcv.NumChanges() -} - -func (rcv *TopologyStatusResponse) UnPack() *TopologyStatusResponseT { - if rcv == nil { return nil } - t := &TopologyStatusResponseT{} - rcv.UnPackTo(t) - return t -} - -type TopologyStatusResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsTopologyStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatusResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TopologyStatusResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTopologyStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatusResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TopologyStatusResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TopologyStatusResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TopologyStatusResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TopologyStatusResponse) State() TopologyState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return TopologyState(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *TopologyStatusResponse) MutateState(n TopologyState) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func (rcv *TopologyStatusResponse) NumChanges() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *TopologyStatusResponse) MutateNumChanges(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func TopologyStatusResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func TopologyStatusResponseAddState(builder *flatbuffers.Builder, state TopologyState) { - builder.PrependUint32Slot(0, uint32(state), 0) -} -func TopologyStatusResponseAddNumChanges(builder *flatbuffers.Builder, numChanges uint32) { - builder.PrependUint32Slot(1, numChanges, 0) -} -func TopologyStatusResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TopologyStatusResponseT struct { + State TopologyState + NumChanges uint32 +} + +func (t *TopologyStatusResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TopologyStatusResponseStart(builder) + TopologyStatusResponseAddState(builder, t.State) + TopologyStatusResponseAddNumChanges(builder, t.NumChanges) + return TopologyStatusResponseEnd(builder) +} + +func (rcv *TopologyStatusResponse) UnPackTo(t *TopologyStatusResponseT) { + t.State = rcv.State() + t.NumChanges = rcv.NumChanges() +} + +func (rcv *TopologyStatusResponse) UnPack() *TopologyStatusResponseT { + if rcv == nil { return nil } + t := &TopologyStatusResponseT{} + rcv.UnPackTo(t) + return t +} + +type TopologyStatusResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsTopologyStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TopologyStatusResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTopologyStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *TopologyStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TopologyStatusResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TopologyStatusResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TopologyStatusResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *TopologyStatusResponse) State() TopologyState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return TopologyState(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *TopologyStatusResponse) MutateState(n TopologyState) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func (rcv *TopologyStatusResponse) NumChanges() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *TopologyStatusResponse) MutateNumChanges(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func TopologyStatusResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func TopologyStatusResponseAddState(builder *flatbuffers.Builder, state TopologyState) { + builder.PrependUint32Slot(0, uint32(state), 0) +} +func TopologyStatusResponseAddNumChanges(builder *flatbuffers.Builder, numChanges uint32) { + builder.PrependUint32Slot(1, numChanges, 0) +} +func TopologyStatusResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/VariableProtocolInfo.go b/pkg/fbs/comm/ethercat/master/fbs/VariableProtocolInfo.go new file mode 100644 index 0000000..5c7330c --- /dev/null +++ b/pkg/fbs/comm/ethercat/master/fbs/VariableProtocolInfo.go @@ -0,0 +1,100 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type VariableProtocolInfoT struct { + Coe *CoeVariableInfoT + Soe *SoeVariableInfoT +} + +func (t *VariableProtocolInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + coeOffset := t.Coe.Pack(builder) + soeOffset := t.Soe.Pack(builder) + VariableProtocolInfoStart(builder) + VariableProtocolInfoAddCoe(builder, coeOffset) + VariableProtocolInfoAddSoe(builder, soeOffset) + return VariableProtocolInfoEnd(builder) +} + +func (rcv *VariableProtocolInfo) UnPackTo(t *VariableProtocolInfoT) { + t.Coe = rcv.Coe(nil).UnPack() + t.Soe = rcv.Soe(nil).UnPack() +} + +func (rcv *VariableProtocolInfo) UnPack() *VariableProtocolInfoT { + if rcv == nil { return nil } + t := &VariableProtocolInfoT{} + rcv.UnPackTo(t) + return t +} + +type VariableProtocolInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsVariableProtocolInfo(buf []byte, offset flatbuffers.UOffsetT) *VariableProtocolInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &VariableProtocolInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsVariableProtocolInfo(buf []byte, offset flatbuffers.UOffsetT) *VariableProtocolInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &VariableProtocolInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *VariableProtocolInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *VariableProtocolInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *VariableProtocolInfo) Coe(obj *CoeVariableInfo) *CoeVariableInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CoeVariableInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *VariableProtocolInfo) Soe(obj *SoeVariableInfo) *SoeVariableInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SoeVariableInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func VariableProtocolInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func VariableProtocolInfoAddCoe(builder *flatbuffers.Builder, coe flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(coe), 0) +} +func VariableProtocolInfoAddSoe(builder *flatbuffers.Builder, soe flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(soe), 0) +} +func VariableProtocolInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/ethercat/master/fbs/taskInfo.go b/pkg/fbs/comm/ethercat/master/fbs/taskInfo.go index 4009c05..0ed75f3 100644 --- a/pkg/fbs/comm/ethercat/master/fbs/taskInfo.go +++ b/pkg/fbs/comm/ethercat/master/fbs/taskInfo.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - common__scheduler__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs" -) - -type taskInfoT struct { - Task *common__scheduler__fbs.TaskT - Counter uint64 -} - -func (t *taskInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - taskOffset := t.Task.Pack(builder) - taskInfoStart(builder) - taskInfoAddTask(builder, taskOffset) - taskInfoAddCounter(builder, t.Counter) - return taskInfoEnd(builder) -} - -func (rcv *taskInfo) UnPackTo(t *taskInfoT) { - t.Task = rcv.Task(nil).UnPack() - t.Counter = rcv.Counter() -} - -func (rcv *taskInfo) UnPack() *taskInfoT { - if rcv == nil { return nil } - t := &taskInfoT{} - rcv.UnPackTo(t) - return t -} - -type taskInfo struct { - _tab flatbuffers.Table -} - -func GetRootAstaskInfo(buf []byte, offset flatbuffers.UOffsetT) *taskInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &taskInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstaskInfo(buf []byte, offset flatbuffers.UOffsetT) *taskInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &taskInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *taskInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *taskInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *taskInfo) Task(obj *common__scheduler__fbs.Task) *common__scheduler__fbs.Task { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(common__scheduler__fbs.Task) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *taskInfo) Counter() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *taskInfo) MutateCounter(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func taskInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func taskInfoAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(task), 0) -} -func taskInfoAddCounter(builder *flatbuffers.Builder, counter uint64) { - builder.PrependUint64Slot(1, counter, 0) -} -func taskInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + common__scheduler__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs" +) + +type taskInfoT struct { + Task *common__scheduler__fbs.TaskT + Counter uint64 +} + +func (t *taskInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + taskOffset := t.Task.Pack(builder) + taskInfoStart(builder) + taskInfoAddTask(builder, taskOffset) + taskInfoAddCounter(builder, t.Counter) + return taskInfoEnd(builder) +} + +func (rcv *taskInfo) UnPackTo(t *taskInfoT) { + t.Task = rcv.Task(nil).UnPack() + t.Counter = rcv.Counter() +} + +func (rcv *taskInfo) UnPack() *taskInfoT { + if rcv == nil { return nil } + t := &taskInfoT{} + rcv.UnPackTo(t) + return t +} + +type taskInfo struct { + _tab flatbuffers.Table +} + +func GetRootAstaskInfo(buf []byte, offset flatbuffers.UOffsetT) *taskInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &taskInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstaskInfo(buf []byte, offset flatbuffers.UOffsetT) *taskInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &taskInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *taskInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *taskInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *taskInfo) Task(obj *common__scheduler__fbs.Task) *common__scheduler__fbs.Task { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(common__scheduler__fbs.Task) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *taskInfo) Counter() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *taskInfo) MutateCounter(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +func taskInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func taskInfoAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(task), 0) +} +func taskInfoAddCounter(builder *flatbuffers.Builder, counter uint64) { + builder.PrependUint64Slot(1, counter, 0) +} +func taskInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/ClientConfiguration.go b/pkg/fbs/comm/opcua/client/ClientConfiguration.go index a0227bf..d8b2952 100644 --- a/pkg/fbs/comm/opcua/client/ClientConfiguration.go +++ b/pkg/fbs/comm/opcua/client/ClientConfiguration.go @@ -1,148 +1,158 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ClientConfigurationT struct { - Name string - EndpointUrl string - SessionConfiguration *SessionConfigurationT - TimeoutConfiguration *TimeoutConfigurationT - Persistent bool -} - -func (t *ClientConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - endpointUrlOffset := builder.CreateString(t.EndpointUrl) - sessionConfigurationOffset := t.SessionConfiguration.Pack(builder) - timeoutConfigurationOffset := t.TimeoutConfiguration.Pack(builder) - ClientConfigurationStart(builder) - ClientConfigurationAddName(builder, nameOffset) - ClientConfigurationAddEndpointUrl(builder, endpointUrlOffset) - ClientConfigurationAddSessionConfiguration(builder, sessionConfigurationOffset) - ClientConfigurationAddTimeoutConfiguration(builder, timeoutConfigurationOffset) - ClientConfigurationAddPersistent(builder, t.Persistent) - return ClientConfigurationEnd(builder) -} - -func (rcv *ClientConfiguration) UnPackTo(t *ClientConfigurationT) { - t.Name = string(rcv.Name()) - t.EndpointUrl = string(rcv.EndpointUrl()) - t.SessionConfiguration = rcv.SessionConfiguration(nil).UnPack() - t.TimeoutConfiguration = rcv.TimeoutConfiguration(nil).UnPack() - t.Persistent = rcv.Persistent() -} - -func (rcv *ClientConfiguration) UnPack() *ClientConfigurationT { - if rcv == nil { return nil } - t := &ClientConfigurationT{} - rcv.UnPackTo(t) - return t -} - -type ClientConfiguration struct { - _tab flatbuffers.Table -} - -func GetRootAsClientConfiguration(buf []byte, offset flatbuffers.UOffsetT) *ClientConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ClientConfiguration{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsClientConfiguration(buf []byte, offset flatbuffers.UOffsetT) *ClientConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ClientConfiguration{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ClientConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ClientConfiguration) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ClientConfiguration) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ClientConfiguration) EndpointUrl() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ClientConfiguration) SessionConfiguration(obj *SessionConfiguration) *SessionConfiguration { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SessionConfiguration) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ClientConfiguration) TimeoutConfiguration(obj *TimeoutConfiguration) *TimeoutConfiguration { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(TimeoutConfiguration) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ClientConfiguration) Persistent() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *ClientConfiguration) MutatePersistent(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -func ClientConfigurationStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func ClientConfigurationAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func ClientConfigurationAddEndpointUrl(builder *flatbuffers.Builder, endpointUrl flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(endpointUrl), 0) -} -func ClientConfigurationAddSessionConfiguration(builder *flatbuffers.Builder, sessionConfiguration flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(sessionConfiguration), 0) -} -func ClientConfigurationAddTimeoutConfiguration(builder *flatbuffers.Builder, timeoutConfiguration flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(timeoutConfiguration), 0) -} -func ClientConfigurationAddPersistent(builder *flatbuffers.Builder, persistent bool) { - builder.PrependBoolSlot(4, persistent, false) -} -func ClientConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ClientConfigurationT struct { + Name string + EndpointUrl string + SessionConfiguration *SessionConfigurationT + TimeoutConfiguration *TimeoutConfigurationT + Persistent bool +} + +func (t *ClientConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + endpointUrlOffset := builder.CreateString(t.EndpointUrl) + sessionConfigurationOffset := t.SessionConfiguration.Pack(builder) + timeoutConfigurationOffset := t.TimeoutConfiguration.Pack(builder) + ClientConfigurationStart(builder) + ClientConfigurationAddName(builder, nameOffset) + ClientConfigurationAddEndpointUrl(builder, endpointUrlOffset) + ClientConfigurationAddSessionConfiguration(builder, sessionConfigurationOffset) + ClientConfigurationAddTimeoutConfiguration(builder, timeoutConfigurationOffset) + ClientConfigurationAddPersistent(builder, t.Persistent) + return ClientConfigurationEnd(builder) +} + +func (rcv *ClientConfiguration) UnPackTo(t *ClientConfigurationT) { + t.Name = string(rcv.Name()) + t.EndpointUrl = string(rcv.EndpointUrl()) + t.SessionConfiguration = rcv.SessionConfiguration(nil).UnPack() + t.TimeoutConfiguration = rcv.TimeoutConfiguration(nil).UnPack() + t.Persistent = rcv.Persistent() +} + +func (rcv *ClientConfiguration) UnPack() *ClientConfigurationT { + if rcv == nil { return nil } + t := &ClientConfigurationT{} + rcv.UnPackTo(t) + return t +} + +type ClientConfiguration struct { + _tab flatbuffers.Table +} + +func GetRootAsClientConfiguration(buf []byte, offset flatbuffers.UOffsetT) *ClientConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ClientConfiguration{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsClientConfiguration(buf []byte, offset flatbuffers.UOffsetT) *ClientConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ClientConfiguration{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ClientConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ClientConfiguration) Table() flatbuffers.Table { + return rcv._tab +} + +/// Unique clientname (required) +func (rcv *ClientConfiguration) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Unique clientname (required) +/// Endpoint-url of the OPC UA Server to which the client should connect to (required) +func (rcv *ClientConfiguration) EndpointUrl() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Endpoint-url of the OPC UA Server to which the client should connect to (required) +/// Session configuration for the client instance +func (rcv *ClientConfiguration) SessionConfiguration(obj *SessionConfiguration) *SessionConfiguration { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SessionConfiguration) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Session configuration for the client instance +/// Timeout configuration for the client instance +func (rcv *ClientConfiguration) TimeoutConfiguration(obj *TimeoutConfiguration) *TimeoutConfiguration { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(TimeoutConfiguration) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Timeout configuration for the client instance +/// Determines whether configuration data of the client data is persisted and loaded upon the next start of the app or the control +func (rcv *ClientConfiguration) Persistent() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Determines whether configuration data of the client data is persisted and loaded upon the next start of the app or the control +func (rcv *ClientConfiguration) MutatePersistent(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func ClientConfigurationStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func ClientConfigurationAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func ClientConfigurationAddEndpointUrl(builder *flatbuffers.Builder, endpointUrl flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(endpointUrl), 0) +} +func ClientConfigurationAddSessionConfiguration(builder *flatbuffers.Builder, sessionConfiguration flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(sessionConfiguration), 0) +} +func ClientConfigurationAddTimeoutConfiguration(builder *flatbuffers.Builder, timeoutConfiguration flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(timeoutConfiguration), 0) +} +func ClientConfigurationAddPersistent(builder *flatbuffers.Builder, persistent bool) { + builder.PrependBoolSlot(4, persistent, false) +} +func ClientConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/ConnectionState.go b/pkg/fbs/comm/opcua/client/ConnectionState.go index a9b257d..a4e4926 100644 --- a/pkg/fbs/comm/opcua/client/ConnectionState.go +++ b/pkg/fbs/comm/opcua/client/ConnectionState.go @@ -1,41 +1,41 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import "strconv" - -type ConnectionState int8 - -const ( - ConnectionStateDISCONNECTED ConnectionState = 0 - ConnectionStateCONNECTED ConnectionState = 1 - ConnectionStateRECONNECTING ConnectionState = 2 - ConnectionStateSESSION_CREATED ConnectionState = 3 - ConnectionStateSESSION_DELETED ConnectionState = 4 - ConnectionStateSESSION_FIRST ConnectionState = 5 -) - -var EnumNamesConnectionState = map[ConnectionState]string{ - ConnectionStateDISCONNECTED: "DISCONNECTED", - ConnectionStateCONNECTED: "CONNECTED", - ConnectionStateRECONNECTING: "RECONNECTING", - ConnectionStateSESSION_CREATED: "SESSION_CREATED", - ConnectionStateSESSION_DELETED: "SESSION_DELETED", - ConnectionStateSESSION_FIRST: "SESSION_FIRST", -} - -var EnumValuesConnectionState = map[string]ConnectionState{ - "DISCONNECTED": ConnectionStateDISCONNECTED, - "CONNECTED": ConnectionStateCONNECTED, - "RECONNECTING": ConnectionStateRECONNECTING, - "SESSION_CREATED": ConnectionStateSESSION_CREATED, - "SESSION_DELETED": ConnectionStateSESSION_DELETED, - "SESSION_FIRST": ConnectionStateSESSION_FIRST, -} - -func (v ConnectionState) String() string { - if s, ok := EnumNamesConnectionState[v]; ok { - return s - } - return "ConnectionState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import "strconv" + +type ConnectionState int8 + +const ( + ConnectionStateDISCONNECTED ConnectionState = 0 + ConnectionStateCONNECTED ConnectionState = 1 + ConnectionStateRECONNECTING ConnectionState = 2 + ConnectionStateSESSION_CREATED ConnectionState = 3 + ConnectionStateSESSION_DELETED ConnectionState = 4 + ConnectionStateSESSION_FIRST ConnectionState = 5 +) + +var EnumNamesConnectionState = map[ConnectionState]string{ + ConnectionStateDISCONNECTED: "DISCONNECTED", + ConnectionStateCONNECTED: "CONNECTED", + ConnectionStateRECONNECTING: "RECONNECTING", + ConnectionStateSESSION_CREATED: "SESSION_CREATED", + ConnectionStateSESSION_DELETED: "SESSION_DELETED", + ConnectionStateSESSION_FIRST: "SESSION_FIRST", +} + +var EnumValuesConnectionState = map[string]ConnectionState{ + "DISCONNECTED": ConnectionStateDISCONNECTED, + "CONNECTED": ConnectionStateCONNECTED, + "RECONNECTING": ConnectionStateRECONNECTING, + "SESSION_CREATED": ConnectionStateSESSION_CREATED, + "SESSION_DELETED": ConnectionStateSESSION_DELETED, + "SESSION_FIRST": ConnectionStateSESSION_FIRST, +} + +func (v ConnectionState) String() string { + if s, ok := EnumNamesConnectionState[v]; ok { + return s + } + return "ConnectionState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/opcua/client/DlResultToUaStatusCode.go b/pkg/fbs/comm/opcua/client/DlResultToUaStatusCode.go index 35118f3..404aa3a 100644 --- a/pkg/fbs/comm/opcua/client/DlResultToUaStatusCode.go +++ b/pkg/fbs/comm/opcua/client/DlResultToUaStatusCode.go @@ -1,126 +1,126 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DlResultToUaStatusCodeT struct { - DlResult uint32 - UaStatusCode uint32 - UaStatusCodeName string - UaStatusCodeDescr string -} - -func (t *DlResultToUaStatusCodeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - uaStatusCodeNameOffset := builder.CreateString(t.UaStatusCodeName) - uaStatusCodeDescrOffset := builder.CreateString(t.UaStatusCodeDescr) - DlResultToUaStatusCodeStart(builder) - DlResultToUaStatusCodeAddDlResult(builder, t.DlResult) - DlResultToUaStatusCodeAddUaStatusCode(builder, t.UaStatusCode) - DlResultToUaStatusCodeAddUaStatusCodeName(builder, uaStatusCodeNameOffset) - DlResultToUaStatusCodeAddUaStatusCodeDescr(builder, uaStatusCodeDescrOffset) - return DlResultToUaStatusCodeEnd(builder) -} - -func (rcv *DlResultToUaStatusCode) UnPackTo(t *DlResultToUaStatusCodeT) { - t.DlResult = rcv.DlResult() - t.UaStatusCode = rcv.UaStatusCode() - t.UaStatusCodeName = string(rcv.UaStatusCodeName()) - t.UaStatusCodeDescr = string(rcv.UaStatusCodeDescr()) -} - -func (rcv *DlResultToUaStatusCode) UnPack() *DlResultToUaStatusCodeT { - if rcv == nil { return nil } - t := &DlResultToUaStatusCodeT{} - rcv.UnPackTo(t) - return t -} - -type DlResultToUaStatusCode struct { - _tab flatbuffers.Table -} - -func GetRootAsDlResultToUaStatusCode(buf []byte, offset flatbuffers.UOffsetT) *DlResultToUaStatusCode { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DlResultToUaStatusCode{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDlResultToUaStatusCode(buf []byte, offset flatbuffers.UOffsetT) *DlResultToUaStatusCode { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DlResultToUaStatusCode{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DlResultToUaStatusCode) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DlResultToUaStatusCode) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DlResultToUaStatusCode) DlResult() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DlResultToUaStatusCode) MutateDlResult(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *DlResultToUaStatusCode) UaStatusCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DlResultToUaStatusCode) MutateUaStatusCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *DlResultToUaStatusCode) UaStatusCodeName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DlResultToUaStatusCode) UaStatusCodeDescr() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DlResultToUaStatusCodeStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func DlResultToUaStatusCodeAddDlResult(builder *flatbuffers.Builder, dlResult uint32) { - builder.PrependUint32Slot(0, dlResult, 0) -} -func DlResultToUaStatusCodeAddUaStatusCode(builder *flatbuffers.Builder, uaStatusCode uint32) { - builder.PrependUint32Slot(1, uaStatusCode, 0) -} -func DlResultToUaStatusCodeAddUaStatusCodeName(builder *flatbuffers.Builder, uaStatusCodeName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(uaStatusCodeName), 0) -} -func DlResultToUaStatusCodeAddUaStatusCodeDescr(builder *flatbuffers.Builder, uaStatusCodeDescr flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(uaStatusCodeDescr), 0) -} -func DlResultToUaStatusCodeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DlResultToUaStatusCodeT struct { + DlResult uint32 + UaStatusCode uint32 + UaStatusCodeName string + UaStatusCodeDescr string +} + +func (t *DlResultToUaStatusCodeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + uaStatusCodeNameOffset := builder.CreateString(t.UaStatusCodeName) + uaStatusCodeDescrOffset := builder.CreateString(t.UaStatusCodeDescr) + DlResultToUaStatusCodeStart(builder) + DlResultToUaStatusCodeAddDlResult(builder, t.DlResult) + DlResultToUaStatusCodeAddUaStatusCode(builder, t.UaStatusCode) + DlResultToUaStatusCodeAddUaStatusCodeName(builder, uaStatusCodeNameOffset) + DlResultToUaStatusCodeAddUaStatusCodeDescr(builder, uaStatusCodeDescrOffset) + return DlResultToUaStatusCodeEnd(builder) +} + +func (rcv *DlResultToUaStatusCode) UnPackTo(t *DlResultToUaStatusCodeT) { + t.DlResult = rcv.DlResult() + t.UaStatusCode = rcv.UaStatusCode() + t.UaStatusCodeName = string(rcv.UaStatusCodeName()) + t.UaStatusCodeDescr = string(rcv.UaStatusCodeDescr()) +} + +func (rcv *DlResultToUaStatusCode) UnPack() *DlResultToUaStatusCodeT { + if rcv == nil { return nil } + t := &DlResultToUaStatusCodeT{} + rcv.UnPackTo(t) + return t +} + +type DlResultToUaStatusCode struct { + _tab flatbuffers.Table +} + +func GetRootAsDlResultToUaStatusCode(buf []byte, offset flatbuffers.UOffsetT) *DlResultToUaStatusCode { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DlResultToUaStatusCode{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDlResultToUaStatusCode(buf []byte, offset flatbuffers.UOffsetT) *DlResultToUaStatusCode { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DlResultToUaStatusCode{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DlResultToUaStatusCode) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DlResultToUaStatusCode) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DlResultToUaStatusCode) DlResult() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DlResultToUaStatusCode) MutateDlResult(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *DlResultToUaStatusCode) UaStatusCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DlResultToUaStatusCode) MutateUaStatusCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *DlResultToUaStatusCode) UaStatusCodeName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DlResultToUaStatusCode) UaStatusCodeDescr() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func DlResultToUaStatusCodeStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func DlResultToUaStatusCodeAddDlResult(builder *flatbuffers.Builder, dlResult uint32) { + builder.PrependUint32Slot(0, dlResult, 0) +} +func DlResultToUaStatusCodeAddUaStatusCode(builder *flatbuffers.Builder, uaStatusCode uint32) { + builder.PrependUint32Slot(1, uaStatusCode, 0) +} +func DlResultToUaStatusCodeAddUaStatusCodeName(builder *flatbuffers.Builder, uaStatusCodeName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(uaStatusCodeName), 0) +} +func DlResultToUaStatusCodeAddUaStatusCodeDescr(builder *flatbuffers.Builder, uaStatusCodeDescr flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(uaStatusCodeDescr), 0) +} +func DlResultToUaStatusCodeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/EnumMessageSecurityMode.go b/pkg/fbs/comm/opcua/client/EnumMessageSecurityMode.go index e5cb9ab..1f0d4e3 100644 --- a/pkg/fbs/comm/opcua/client/EnumMessageSecurityMode.go +++ b/pkg/fbs/comm/opcua/client/EnumMessageSecurityMode.go @@ -1,35 +1,39 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import "strconv" - -type EnumMessageSecurityMode int8 - -const ( - EnumMessageSecurityModeBESTAVAILABLE EnumMessageSecurityMode = 0 - EnumMessageSecurityModeNONE EnumMessageSecurityMode = 1 - EnumMessageSecurityModeSIGN EnumMessageSecurityMode = 2 - EnumMessageSecurityModeSIGNENCRYPT EnumMessageSecurityMode = 3 -) - -var EnumNamesEnumMessageSecurityMode = map[EnumMessageSecurityMode]string{ - EnumMessageSecurityModeBESTAVAILABLE: "BESTAVAILABLE", - EnumMessageSecurityModeNONE: "NONE", - EnumMessageSecurityModeSIGN: "SIGN", - EnumMessageSecurityModeSIGNENCRYPT: "SIGNENCRYPT", -} - -var EnumValuesEnumMessageSecurityMode = map[string]EnumMessageSecurityMode{ - "BESTAVAILABLE": EnumMessageSecurityModeBESTAVAILABLE, - "NONE": EnumMessageSecurityModeNONE, - "SIGN": EnumMessageSecurityModeSIGN, - "SIGNENCRYPT": EnumMessageSecurityModeSIGNENCRYPT, -} - -func (v EnumMessageSecurityMode) String() string { - if s, ok := EnumNamesEnumMessageSecurityMode[v]; ok { - return s - } - return "EnumMessageSecurityMode(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import "strconv" + +type EnumMessageSecurityMode int8 + +const ( + /// Determines and uses the most secure method automatically + EnumMessageSecurityModeBESTAVAILABLE EnumMessageSecurityMode = 0 + /// Unencrypted connection (only together with the security policy "None") + EnumMessageSecurityModeNONE EnumMessageSecurityMode = 1 + /// Signed connection + EnumMessageSecurityModeSIGN EnumMessageSecurityMode = 2 + /// Signed and encrypted connection + EnumMessageSecurityModeSIGNENCRYPT EnumMessageSecurityMode = 3 +) + +var EnumNamesEnumMessageSecurityMode = map[EnumMessageSecurityMode]string{ + EnumMessageSecurityModeBESTAVAILABLE: "BESTAVAILABLE", + EnumMessageSecurityModeNONE: "NONE", + EnumMessageSecurityModeSIGN: "SIGN", + EnumMessageSecurityModeSIGNENCRYPT: "SIGNENCRYPT", +} + +var EnumValuesEnumMessageSecurityMode = map[string]EnumMessageSecurityMode{ + "BESTAVAILABLE": EnumMessageSecurityModeBESTAVAILABLE, + "NONE": EnumMessageSecurityModeNONE, + "SIGN": EnumMessageSecurityModeSIGN, + "SIGNENCRYPT": EnumMessageSecurityModeSIGNENCRYPT, +} + +func (v EnumMessageSecurityMode) String() string { + if s, ok := EnumNamesEnumMessageSecurityMode[v]; ok { + return s + } + return "EnumMessageSecurityMode(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/opcua/client/EnumSecurityPolicy.go b/pkg/fbs/comm/opcua/client/EnumSecurityPolicy.go index acd4306..1e4e294 100644 --- a/pkg/fbs/comm/opcua/client/EnumSecurityPolicy.go +++ b/pkg/fbs/comm/opcua/client/EnumSecurityPolicy.go @@ -1,44 +1,51 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import "strconv" - -type EnumSecurityPolicy int8 - -const ( - EnumSecurityPolicyBESTAVAILABLE EnumSecurityPolicy = 0 - EnumSecurityPolicyNONE EnumSecurityPolicy = 1 - EnumSecurityPolicyBASIC128RSA15 EnumSecurityPolicy = 2 - EnumSecurityPolicyBASIC256 EnumSecurityPolicy = 3 - EnumSecurityPolicyBASIC256SHA256 EnumSecurityPolicy = 4 - EnumSecurityPolicyAES128_SHA256_RSAOAEP EnumSecurityPolicy = 5 - EnumSecurityPolicyAES256_SHA256_RSAPSS EnumSecurityPolicy = 6 -) - -var EnumNamesEnumSecurityPolicy = map[EnumSecurityPolicy]string{ - EnumSecurityPolicyBESTAVAILABLE: "BESTAVAILABLE", - EnumSecurityPolicyNONE: "NONE", - EnumSecurityPolicyBASIC128RSA15: "BASIC128RSA15", - EnumSecurityPolicyBASIC256: "BASIC256", - EnumSecurityPolicyBASIC256SHA256: "BASIC256SHA256", - EnumSecurityPolicyAES128_SHA256_RSAOAEP: "AES128_SHA256_RSAOAEP", - EnumSecurityPolicyAES256_SHA256_RSAPSS: "AES256_SHA256_RSAPSS", -} - -var EnumValuesEnumSecurityPolicy = map[string]EnumSecurityPolicy{ - "BESTAVAILABLE": EnumSecurityPolicyBESTAVAILABLE, - "NONE": EnumSecurityPolicyNONE, - "BASIC128RSA15": EnumSecurityPolicyBASIC128RSA15, - "BASIC256": EnumSecurityPolicyBASIC256, - "BASIC256SHA256": EnumSecurityPolicyBASIC256SHA256, - "AES128_SHA256_RSAOAEP": EnumSecurityPolicyAES128_SHA256_RSAOAEP, - "AES256_SHA256_RSAPSS": EnumSecurityPolicyAES256_SHA256_RSAPSS, -} - -func (v EnumSecurityPolicy) String() string { - if s, ok := EnumNamesEnumSecurityPolicy[v]; ok { - return s - } - return "EnumSecurityPolicy(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import "strconv" + +type EnumSecurityPolicy int8 + +const ( + /// Determines and uses the most secure method automatically + EnumSecurityPolicyBESTAVAILABLE EnumSecurityPolicy = 0 + /// "http://opcfoundation.org/UA/SecurityPolicy#None" + EnumSecurityPolicyNONE EnumSecurityPolicy = 1 + /// "http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15" + EnumSecurityPolicyBASIC128RSA15 EnumSecurityPolicy = 2 + /// "http://opcfoundation.org/UA/SecurityPolicy#Basic256" + EnumSecurityPolicyBASIC256 EnumSecurityPolicy = 3 + /// "http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256" + EnumSecurityPolicyBASIC256SHA256 EnumSecurityPolicy = 4 + /// "http://opcfoundation.org/UA/SecurityPolicy#Aes128_Sha256_RsaOaep" + EnumSecurityPolicyAES128_SHA256_RSAOAEP EnumSecurityPolicy = 5 + /// "http://opcfoundation.org/UA/SecurityPolicy#Aes256_Sha256_RsaPss" + EnumSecurityPolicyAES256_SHA256_RSAPSS EnumSecurityPolicy = 6 +) + +var EnumNamesEnumSecurityPolicy = map[EnumSecurityPolicy]string{ + EnumSecurityPolicyBESTAVAILABLE: "BESTAVAILABLE", + EnumSecurityPolicyNONE: "NONE", + EnumSecurityPolicyBASIC128RSA15: "BASIC128RSA15", + EnumSecurityPolicyBASIC256: "BASIC256", + EnumSecurityPolicyBASIC256SHA256: "BASIC256SHA256", + EnumSecurityPolicyAES128_SHA256_RSAOAEP: "AES128_SHA256_RSAOAEP", + EnumSecurityPolicyAES256_SHA256_RSAPSS: "AES256_SHA256_RSAPSS", +} + +var EnumValuesEnumSecurityPolicy = map[string]EnumSecurityPolicy{ + "BESTAVAILABLE": EnumSecurityPolicyBESTAVAILABLE, + "NONE": EnumSecurityPolicyNONE, + "BASIC128RSA15": EnumSecurityPolicyBASIC128RSA15, + "BASIC256": EnumSecurityPolicyBASIC256, + "BASIC256SHA256": EnumSecurityPolicyBASIC256SHA256, + "AES128_SHA256_RSAOAEP": EnumSecurityPolicyAES128_SHA256_RSAOAEP, + "AES256_SHA256_RSAPSS": EnumSecurityPolicyAES256_SHA256_RSAPSS, +} + +func (v EnumSecurityPolicy) String() string { + if s, ok := EnumNamesEnumSecurityPolicy[v]; ok { + return s + } + return "EnumSecurityPolicy(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/opcua/client/ErrorCodeMapping.go b/pkg/fbs/comm/opcua/client/ErrorCodeMapping.go index ec056a5..59548d9 100644 --- a/pkg/fbs/comm/opcua/client/ErrorCodeMapping.go +++ b/pkg/fbs/comm/opcua/client/ErrorCodeMapping.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ErrorCodeMappingT struct { - ListDlResultToUaStatusCode []*DlResultToUaStatusCodeT -} - -func (t *ErrorCodeMappingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - listDlResultToUaStatusCodeOffset := flatbuffers.UOffsetT(0) - if t.ListDlResultToUaStatusCode != nil { - listDlResultToUaStatusCodeLength := len(t.ListDlResultToUaStatusCode) - listDlResultToUaStatusCodeOffsets := make([]flatbuffers.UOffsetT, listDlResultToUaStatusCodeLength) - for j := 0; j < listDlResultToUaStatusCodeLength; j++ { - listDlResultToUaStatusCodeOffsets[j] = t.ListDlResultToUaStatusCode[j].Pack(builder) - } - ErrorCodeMappingStartListDlResultToUaStatusCodeVector(builder, listDlResultToUaStatusCodeLength) - for j := listDlResultToUaStatusCodeLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(listDlResultToUaStatusCodeOffsets[j]) - } - listDlResultToUaStatusCodeOffset = builder.EndVector(listDlResultToUaStatusCodeLength) - } - ErrorCodeMappingStart(builder) - ErrorCodeMappingAddListDlResultToUaStatusCode(builder, listDlResultToUaStatusCodeOffset) - return ErrorCodeMappingEnd(builder) -} - -func (rcv *ErrorCodeMapping) UnPackTo(t *ErrorCodeMappingT) { - listDlResultToUaStatusCodeLength := rcv.ListDlResultToUaStatusCodeLength() - t.ListDlResultToUaStatusCode = make([]*DlResultToUaStatusCodeT, listDlResultToUaStatusCodeLength) - for j := 0; j < listDlResultToUaStatusCodeLength; j++ { - x := DlResultToUaStatusCode{} - rcv.ListDlResultToUaStatusCode(&x, j) - t.ListDlResultToUaStatusCode[j] = x.UnPack() - } -} - -func (rcv *ErrorCodeMapping) UnPack() *ErrorCodeMappingT { - if rcv == nil { return nil } - t := &ErrorCodeMappingT{} - rcv.UnPackTo(t) - return t -} - -type ErrorCodeMapping struct { - _tab flatbuffers.Table -} - -func GetRootAsErrorCodeMapping(buf []byte, offset flatbuffers.UOffsetT) *ErrorCodeMapping { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ErrorCodeMapping{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsErrorCodeMapping(buf []byte, offset flatbuffers.UOffsetT) *ErrorCodeMapping { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ErrorCodeMapping{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ErrorCodeMapping) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ErrorCodeMapping) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ErrorCodeMapping) ListDlResultToUaStatusCode(obj *DlResultToUaStatusCode, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ErrorCodeMapping) ListDlResultToUaStatusCodeLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ErrorCodeMappingStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ErrorCodeMappingAddListDlResultToUaStatusCode(builder *flatbuffers.Builder, listDlResultToUaStatusCode flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(listDlResultToUaStatusCode), 0) -} -func ErrorCodeMappingStartListDlResultToUaStatusCodeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ErrorCodeMappingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ErrorCodeMappingT struct { + ListDlResultToUaStatusCode []*DlResultToUaStatusCodeT +} + +func (t *ErrorCodeMappingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + listDlResultToUaStatusCodeOffset := flatbuffers.UOffsetT(0) + if t.ListDlResultToUaStatusCode != nil { + listDlResultToUaStatusCodeLength := len(t.ListDlResultToUaStatusCode) + listDlResultToUaStatusCodeOffsets := make([]flatbuffers.UOffsetT, listDlResultToUaStatusCodeLength) + for j := 0; j < listDlResultToUaStatusCodeLength; j++ { + listDlResultToUaStatusCodeOffsets[j] = t.ListDlResultToUaStatusCode[j].Pack(builder) + } + ErrorCodeMappingStartListDlResultToUaStatusCodeVector(builder, listDlResultToUaStatusCodeLength) + for j := listDlResultToUaStatusCodeLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(listDlResultToUaStatusCodeOffsets[j]) + } + listDlResultToUaStatusCodeOffset = builder.EndVector(listDlResultToUaStatusCodeLength) + } + ErrorCodeMappingStart(builder) + ErrorCodeMappingAddListDlResultToUaStatusCode(builder, listDlResultToUaStatusCodeOffset) + return ErrorCodeMappingEnd(builder) +} + +func (rcv *ErrorCodeMapping) UnPackTo(t *ErrorCodeMappingT) { + listDlResultToUaStatusCodeLength := rcv.ListDlResultToUaStatusCodeLength() + t.ListDlResultToUaStatusCode = make([]*DlResultToUaStatusCodeT, listDlResultToUaStatusCodeLength) + for j := 0; j < listDlResultToUaStatusCodeLength; j++ { + x := DlResultToUaStatusCode{} + rcv.ListDlResultToUaStatusCode(&x, j) + t.ListDlResultToUaStatusCode[j] = x.UnPack() + } +} + +func (rcv *ErrorCodeMapping) UnPack() *ErrorCodeMappingT { + if rcv == nil { return nil } + t := &ErrorCodeMappingT{} + rcv.UnPackTo(t) + return t +} + +type ErrorCodeMapping struct { + _tab flatbuffers.Table +} + +func GetRootAsErrorCodeMapping(buf []byte, offset flatbuffers.UOffsetT) *ErrorCodeMapping { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ErrorCodeMapping{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsErrorCodeMapping(buf []byte, offset flatbuffers.UOffsetT) *ErrorCodeMapping { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ErrorCodeMapping{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ErrorCodeMapping) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ErrorCodeMapping) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ErrorCodeMapping) ListDlResultToUaStatusCode(obj *DlResultToUaStatusCode, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ErrorCodeMapping) ListDlResultToUaStatusCodeLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ErrorCodeMappingStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ErrorCodeMappingAddListDlResultToUaStatusCode(builder *flatbuffers.Builder, listDlResultToUaStatusCode flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(listDlResultToUaStatusCode), 0) +} +func ErrorCodeMappingStartListDlResultToUaStatusCodeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ErrorCodeMappingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/MessageSecurityMode.go b/pkg/fbs/comm/opcua/client/MessageSecurityMode.go index ab59ed5..41f92e5 100644 --- a/pkg/fbs/comm/opcua/client/MessageSecurityMode.go +++ b/pkg/fbs/comm/opcua/client/MessageSecurityMode.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MessageSecurityModeT struct { - MessageSecurityMode EnumMessageSecurityMode -} - -func (t *MessageSecurityModeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - MessageSecurityModeStart(builder) - MessageSecurityModeAddMessageSecurityMode(builder, t.MessageSecurityMode) - return MessageSecurityModeEnd(builder) -} - -func (rcv *MessageSecurityMode) UnPackTo(t *MessageSecurityModeT) { - t.MessageSecurityMode = rcv.MessageSecurityMode() -} - -func (rcv *MessageSecurityMode) UnPack() *MessageSecurityModeT { - if rcv == nil { return nil } - t := &MessageSecurityModeT{} - rcv.UnPackTo(t) - return t -} - -type MessageSecurityMode struct { - _tab flatbuffers.Table -} - -func GetRootAsMessageSecurityMode(buf []byte, offset flatbuffers.UOffsetT) *MessageSecurityMode { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MessageSecurityMode{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMessageSecurityMode(buf []byte, offset flatbuffers.UOffsetT) *MessageSecurityMode { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MessageSecurityMode{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MessageSecurityMode) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MessageSecurityMode) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MessageSecurityMode) MessageSecurityMode() EnumMessageSecurityMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return EnumMessageSecurityMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *MessageSecurityMode) MutateMessageSecurityMode(n EnumMessageSecurityMode) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func MessageSecurityModeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MessageSecurityModeAddMessageSecurityMode(builder *flatbuffers.Builder, messageSecurityMode EnumMessageSecurityMode) { - builder.PrependInt8Slot(0, int8(messageSecurityMode), 0) -} -func MessageSecurityModeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type MessageSecurityModeT struct { + MessageSecurityMode EnumMessageSecurityMode +} + +func (t *MessageSecurityModeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + MessageSecurityModeStart(builder) + MessageSecurityModeAddMessageSecurityMode(builder, t.MessageSecurityMode) + return MessageSecurityModeEnd(builder) +} + +func (rcv *MessageSecurityMode) UnPackTo(t *MessageSecurityModeT) { + t.MessageSecurityMode = rcv.MessageSecurityMode() +} + +func (rcv *MessageSecurityMode) UnPack() *MessageSecurityModeT { + if rcv == nil { return nil } + t := &MessageSecurityModeT{} + rcv.UnPackTo(t) + return t +} + +type MessageSecurityMode struct { + _tab flatbuffers.Table +} + +func GetRootAsMessageSecurityMode(buf []byte, offset flatbuffers.UOffsetT) *MessageSecurityMode { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MessageSecurityMode{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMessageSecurityMode(buf []byte, offset flatbuffers.UOffsetT) *MessageSecurityMode { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MessageSecurityMode{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MessageSecurityMode) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MessageSecurityMode) Table() flatbuffers.Table { + return rcv._tab +} + +/// default is BESTAVAILABLE this determines and uses the most secure method automatically +func (rcv *MessageSecurityMode) MessageSecurityMode() EnumMessageSecurityMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return EnumMessageSecurityMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// default is BESTAVAILABLE this determines and uses the most secure method automatically +func (rcv *MessageSecurityMode) MutateMessageSecurityMode(n EnumMessageSecurityMode) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func MessageSecurityModeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MessageSecurityModeAddMessageSecurityMode(builder *flatbuffers.Builder, messageSecurityMode EnumMessageSecurityMode) { + builder.PrependInt8Slot(0, int8(messageSecurityMode), 0) +} +func MessageSecurityModeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/SecurityPolicy.go b/pkg/fbs/comm/opcua/client/SecurityPolicy.go index fcf062a..d682cf1 100644 --- a/pkg/fbs/comm/opcua/client/SecurityPolicy.go +++ b/pkg/fbs/comm/opcua/client/SecurityPolicy.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SecurityPolicyT struct { - SecurityPolicy EnumSecurityPolicy -} - -func (t *SecurityPolicyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SecurityPolicyStart(builder) - SecurityPolicyAddSecurityPolicy(builder, t.SecurityPolicy) - return SecurityPolicyEnd(builder) -} - -func (rcv *SecurityPolicy) UnPackTo(t *SecurityPolicyT) { - t.SecurityPolicy = rcv.SecurityPolicy() -} - -func (rcv *SecurityPolicy) UnPack() *SecurityPolicyT { - if rcv == nil { return nil } - t := &SecurityPolicyT{} - rcv.UnPackTo(t) - return t -} - -type SecurityPolicy struct { - _tab flatbuffers.Table -} - -func GetRootAsSecurityPolicy(buf []byte, offset flatbuffers.UOffsetT) *SecurityPolicy { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SecurityPolicy{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSecurityPolicy(buf []byte, offset flatbuffers.UOffsetT) *SecurityPolicy { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SecurityPolicy{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SecurityPolicy) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SecurityPolicy) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SecurityPolicy) SecurityPolicy() EnumSecurityPolicy { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return EnumSecurityPolicy(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *SecurityPolicy) MutateSecurityPolicy(n EnumSecurityPolicy) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func SecurityPolicyStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SecurityPolicyAddSecurityPolicy(builder *flatbuffers.Builder, securityPolicy EnumSecurityPolicy) { - builder.PrependInt8Slot(0, int8(securityPolicy), 0) -} -func SecurityPolicyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SecurityPolicyT struct { + SecurityPolicy EnumSecurityPolicy +} + +func (t *SecurityPolicyT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SecurityPolicyStart(builder) + SecurityPolicyAddSecurityPolicy(builder, t.SecurityPolicy) + return SecurityPolicyEnd(builder) +} + +func (rcv *SecurityPolicy) UnPackTo(t *SecurityPolicyT) { + t.SecurityPolicy = rcv.SecurityPolicy() +} + +func (rcv *SecurityPolicy) UnPack() *SecurityPolicyT { + if rcv == nil { return nil } + t := &SecurityPolicyT{} + rcv.UnPackTo(t) + return t +} + +type SecurityPolicy struct { + _tab flatbuffers.Table +} + +func GetRootAsSecurityPolicy(buf []byte, offset flatbuffers.UOffsetT) *SecurityPolicy { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SecurityPolicy{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSecurityPolicy(buf []byte, offset flatbuffers.UOffsetT) *SecurityPolicy { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SecurityPolicy{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SecurityPolicy) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SecurityPolicy) Table() flatbuffers.Table { + return rcv._tab +} + +/// default is BESTAVAILABLE determines and uses the most secure method automatically +func (rcv *SecurityPolicy) SecurityPolicy() EnumSecurityPolicy { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return EnumSecurityPolicy(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// default is BESTAVAILABLE determines and uses the most secure method automatically +func (rcv *SecurityPolicy) MutateSecurityPolicy(n EnumSecurityPolicy) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func SecurityPolicyStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SecurityPolicyAddSecurityPolicy(builder *flatbuffers.Builder, securityPolicy EnumSecurityPolicy) { + builder.PrependInt8Slot(0, int8(securityPolicy), 0) +} +func SecurityPolicyEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/SessionConfiguration.go b/pkg/fbs/comm/opcua/client/SessionConfiguration.go index d135c12..3dbd7f9 100644 --- a/pkg/fbs/comm/opcua/client/SessionConfiguration.go +++ b/pkg/fbs/comm/opcua/client/SessionConfiguration.go @@ -1,163 +1,171 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SessionConfigurationT struct { - UserToken *UserIdentityTokenT - MessageSecurityMode *MessageSecurityModeT - SecurityPolicy *SecurityPolicyT - LocaleIds []string -} - -func (t *SessionConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - userTokenOffset := t.UserToken.Pack(builder) - messageSecurityModeOffset := t.MessageSecurityMode.Pack(builder) - securityPolicyOffset := t.SecurityPolicy.Pack(builder) - localeIdsOffset := flatbuffers.UOffsetT(0) - if t.LocaleIds != nil { - localeIdsLength := len(t.LocaleIds) - localeIdsOffsets := make([]flatbuffers.UOffsetT, localeIdsLength) - for j := 0; j < localeIdsLength; j++ { - localeIdsOffsets[j] = builder.CreateString(t.LocaleIds[j]) - } - SessionConfigurationStartLocaleIdsVector(builder, localeIdsLength) - for j := localeIdsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(localeIdsOffsets[j]) - } - localeIdsOffset = builder.EndVector(localeIdsLength) - } - SessionConfigurationStart(builder) - SessionConfigurationAddUserToken(builder, userTokenOffset) - SessionConfigurationAddMessageSecurityMode(builder, messageSecurityModeOffset) - SessionConfigurationAddSecurityPolicy(builder, securityPolicyOffset) - SessionConfigurationAddLocaleIds(builder, localeIdsOffset) - return SessionConfigurationEnd(builder) -} - -func (rcv *SessionConfiguration) UnPackTo(t *SessionConfigurationT) { - t.UserToken = rcv.UserToken(nil).UnPack() - t.MessageSecurityMode = rcv.MessageSecurityMode(nil).UnPack() - t.SecurityPolicy = rcv.SecurityPolicy(nil).UnPack() - localeIdsLength := rcv.LocaleIdsLength() - t.LocaleIds = make([]string, localeIdsLength) - for j := 0; j < localeIdsLength; j++ { - t.LocaleIds[j] = string(rcv.LocaleIds(j)) - } -} - -func (rcv *SessionConfiguration) UnPack() *SessionConfigurationT { - if rcv == nil { return nil } - t := &SessionConfigurationT{} - rcv.UnPackTo(t) - return t -} - -type SessionConfiguration struct { - _tab flatbuffers.Table -} - -func GetRootAsSessionConfiguration(buf []byte, offset flatbuffers.UOffsetT) *SessionConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SessionConfiguration{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSessionConfiguration(buf []byte, offset flatbuffers.UOffsetT) *SessionConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SessionConfiguration{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SessionConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SessionConfiguration) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SessionConfiguration) UserToken(obj *UserIdentityToken) *UserIdentityToken { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(UserIdentityToken) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SessionConfiguration) MessageSecurityMode(obj *MessageSecurityMode) *MessageSecurityMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(MessageSecurityMode) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SessionConfiguration) SecurityPolicy(obj *SecurityPolicy) *SecurityPolicy { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SecurityPolicy) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *SessionConfiguration) LocaleIds(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SessionConfiguration) LocaleIdsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func SessionConfigurationStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SessionConfigurationAddUserToken(builder *flatbuffers.Builder, userToken flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(userToken), 0) -} -func SessionConfigurationAddMessageSecurityMode(builder *flatbuffers.Builder, messageSecurityMode flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(messageSecurityMode), 0) -} -func SessionConfigurationAddSecurityPolicy(builder *flatbuffers.Builder, securityPolicy flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(securityPolicy), 0) -} -func SessionConfigurationAddLocaleIds(builder *flatbuffers.Builder, localeIds flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(localeIds), 0) -} -func SessionConfigurationStartLocaleIdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SessionConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SessionConfigurationT struct { + UserToken *UserIdentityTokenT + MessageSecurityMode *MessageSecurityModeT + SecurityPolicy *SecurityPolicyT + LocaleIds []string +} + +func (t *SessionConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + userTokenOffset := t.UserToken.Pack(builder) + messageSecurityModeOffset := t.MessageSecurityMode.Pack(builder) + securityPolicyOffset := t.SecurityPolicy.Pack(builder) + localeIdsOffset := flatbuffers.UOffsetT(0) + if t.LocaleIds != nil { + localeIdsLength := len(t.LocaleIds) + localeIdsOffsets := make([]flatbuffers.UOffsetT, localeIdsLength) + for j := 0; j < localeIdsLength; j++ { + localeIdsOffsets[j] = builder.CreateString(t.LocaleIds[j]) + } + SessionConfigurationStartLocaleIdsVector(builder, localeIdsLength) + for j := localeIdsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(localeIdsOffsets[j]) + } + localeIdsOffset = builder.EndVector(localeIdsLength) + } + SessionConfigurationStart(builder) + SessionConfigurationAddUserToken(builder, userTokenOffset) + SessionConfigurationAddMessageSecurityMode(builder, messageSecurityModeOffset) + SessionConfigurationAddSecurityPolicy(builder, securityPolicyOffset) + SessionConfigurationAddLocaleIds(builder, localeIdsOffset) + return SessionConfigurationEnd(builder) +} + +func (rcv *SessionConfiguration) UnPackTo(t *SessionConfigurationT) { + t.UserToken = rcv.UserToken(nil).UnPack() + t.MessageSecurityMode = rcv.MessageSecurityMode(nil).UnPack() + t.SecurityPolicy = rcv.SecurityPolicy(nil).UnPack() + localeIdsLength := rcv.LocaleIdsLength() + t.LocaleIds = make([]string, localeIdsLength) + for j := 0; j < localeIdsLength; j++ { + t.LocaleIds[j] = string(rcv.LocaleIds(j)) + } +} + +func (rcv *SessionConfiguration) UnPack() *SessionConfigurationT { + if rcv == nil { return nil } + t := &SessionConfigurationT{} + rcv.UnPackTo(t) + return t +} + +type SessionConfiguration struct { + _tab flatbuffers.Table +} + +func GetRootAsSessionConfiguration(buf []byte, offset flatbuffers.UOffsetT) *SessionConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SessionConfiguration{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSessionConfiguration(buf []byte, offset flatbuffers.UOffsetT) *SessionConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SessionConfiguration{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SessionConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SessionConfiguration) Table() flatbuffers.Table { + return rcv._tab +} + +/// UserToken to be used, e.g. for Anonymous or Username, Password +func (rcv *SessionConfiguration) UserToken(obj *UserIdentityToken) *UserIdentityToken { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(UserIdentityToken) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// UserToken to be used, e.g. for Anonymous or Username, Password +/// The OPC UA Server to connect has to support the selected MessageSecurityMode +func (rcv *SessionConfiguration) MessageSecurityMode(obj *MessageSecurityMode) *MessageSecurityMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(MessageSecurityMode) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// The OPC UA Server to connect has to support the selected MessageSecurityMode +/// The OPC UA Server to connect has to support the selected SecurityPolicy +func (rcv *SessionConfiguration) SecurityPolicy(obj *SecurityPolicy) *SecurityPolicy { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SecurityPolicy) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// The OPC UA Server to connect has to support the selected SecurityPolicy +/// Define the LocalId establish a connection to the OPC UA Server (ActivateSession service) +func (rcv *SessionConfiguration) LocaleIds(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SessionConfiguration) LocaleIdsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Define the LocalId establish a connection to the OPC UA Server (ActivateSession service) +func SessionConfigurationStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SessionConfigurationAddUserToken(builder *flatbuffers.Builder, userToken flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(userToken), 0) +} +func SessionConfigurationAddMessageSecurityMode(builder *flatbuffers.Builder, messageSecurityMode flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(messageSecurityMode), 0) +} +func SessionConfigurationAddSecurityPolicy(builder *flatbuffers.Builder, securityPolicy flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(securityPolicy), 0) +} +func SessionConfigurationAddLocaleIds(builder *flatbuffers.Builder, localeIds flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(localeIds), 0) +} +func SessionConfigurationStartLocaleIdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SessionConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/State.go b/pkg/fbs/comm/opcua/client/State.go index f53cff2..f0dae28 100644 --- a/pkg/fbs/comm/opcua/client/State.go +++ b/pkg/fbs/comm/opcua/client/State.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StateT struct { - State ConnectionState -} - -func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StateStart(builder) - StateAddState(builder, t.State) - return StateEnd(builder) -} - -func (rcv *State) UnPackTo(t *StateT) { - t.State = rcv.State() -} - -func (rcv *State) UnPack() *StateT { - if rcv == nil { return nil } - t := &StateT{} - rcv.UnPackTo(t) - return t -} - -type State struct { - _tab flatbuffers.Table -} - -func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State) State() ConnectionState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return ConnectionState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *State) MutateState(n ConnectionState) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func StateStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StateAddState(builder *flatbuffers.Builder, state ConnectionState) { - builder.PrependInt8Slot(0, int8(state), 0) -} -func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StateT struct { + State ConnectionState +} + +func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StateStart(builder) + StateAddState(builder, t.State) + return StateEnd(builder) +} + +func (rcv *State) UnPackTo(t *StateT) { + t.State = rcv.State() +} + +func (rcv *State) UnPack() *StateT { + if rcv == nil { return nil } + t := &StateT{} + rcv.UnPackTo(t) + return t +} + +type State struct { + _tab flatbuffers.Table +} + +func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State) State() ConnectionState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ConnectionState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *State) MutateState(n ConnectionState) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func StateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StateAddState(builder *flatbuffers.Builder, state ConnectionState) { + builder.PrependInt8Slot(0, int8(state), 0) +} +func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/TimeoutConfiguration.go b/pkg/fbs/comm/opcua/client/TimeoutConfiguration.go index b1db30e..229ff98 100644 --- a/pkg/fbs/comm/opcua/client/TimeoutConfiguration.go +++ b/pkg/fbs/comm/opcua/client/TimeoutConfiguration.go @@ -1,204 +1,224 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TimeoutConfigurationT struct { - BrowseCallTimeout uint32 - DiscoveryTimeout uint32 - PublishTimeout uint32 - ReadCallTimeout uint32 - SessionTimeout float64 - WatchdogTimeout uint32 - WriteCallTimeout uint32 - CallCallTimeout uint32 -} - -func (t *TimeoutConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TimeoutConfigurationStart(builder) - TimeoutConfigurationAddBrowseCallTimeout(builder, t.BrowseCallTimeout) - TimeoutConfigurationAddDiscoveryTimeout(builder, t.DiscoveryTimeout) - TimeoutConfigurationAddPublishTimeout(builder, t.PublishTimeout) - TimeoutConfigurationAddReadCallTimeout(builder, t.ReadCallTimeout) - TimeoutConfigurationAddSessionTimeout(builder, t.SessionTimeout) - TimeoutConfigurationAddWatchdogTimeout(builder, t.WatchdogTimeout) - TimeoutConfigurationAddWriteCallTimeout(builder, t.WriteCallTimeout) - TimeoutConfigurationAddCallCallTimeout(builder, t.CallCallTimeout) - return TimeoutConfigurationEnd(builder) -} - -func (rcv *TimeoutConfiguration) UnPackTo(t *TimeoutConfigurationT) { - t.BrowseCallTimeout = rcv.BrowseCallTimeout() - t.DiscoveryTimeout = rcv.DiscoveryTimeout() - t.PublishTimeout = rcv.PublishTimeout() - t.ReadCallTimeout = rcv.ReadCallTimeout() - t.SessionTimeout = rcv.SessionTimeout() - t.WatchdogTimeout = rcv.WatchdogTimeout() - t.WriteCallTimeout = rcv.WriteCallTimeout() - t.CallCallTimeout = rcv.CallCallTimeout() -} - -func (rcv *TimeoutConfiguration) UnPack() *TimeoutConfigurationT { - if rcv == nil { return nil } - t := &TimeoutConfigurationT{} - rcv.UnPackTo(t) - return t -} - -type TimeoutConfiguration struct { - _tab flatbuffers.Table -} - -func GetRootAsTimeoutConfiguration(buf []byte, offset flatbuffers.UOffsetT) *TimeoutConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TimeoutConfiguration{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTimeoutConfiguration(buf []byte, offset flatbuffers.UOffsetT) *TimeoutConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TimeoutConfiguration{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TimeoutConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TimeoutConfiguration) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TimeoutConfiguration) BrowseCallTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 10000 -} - -func (rcv *TimeoutConfiguration) MutateBrowseCallTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *TimeoutConfiguration) DiscoveryTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 60000 -} - -func (rcv *TimeoutConfiguration) MutateDiscoveryTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *TimeoutConfiguration) PublishTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 60000 -} - -func (rcv *TimeoutConfiguration) MutatePublishTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *TimeoutConfiguration) ReadCallTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 10000 -} - -func (rcv *TimeoutConfiguration) MutateReadCallTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *TimeoutConfiguration) SessionTimeout() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 1200000.0 -} - -func (rcv *TimeoutConfiguration) MutateSessionTimeout(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -func (rcv *TimeoutConfiguration) WatchdogTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 5000 -} - -func (rcv *TimeoutConfiguration) MutateWatchdogTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *TimeoutConfiguration) WriteCallTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 10000 -} - -func (rcv *TimeoutConfiguration) MutateWriteCallTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func (rcv *TimeoutConfiguration) CallCallTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 10000 -} - -func (rcv *TimeoutConfiguration) MutateCallCallTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(18, n) -} - -func TimeoutConfigurationStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func TimeoutConfigurationAddBrowseCallTimeout(builder *flatbuffers.Builder, browseCallTimeout uint32) { - builder.PrependUint32Slot(0, browseCallTimeout, 10000) -} -func TimeoutConfigurationAddDiscoveryTimeout(builder *flatbuffers.Builder, discoveryTimeout uint32) { - builder.PrependUint32Slot(1, discoveryTimeout, 60000) -} -func TimeoutConfigurationAddPublishTimeout(builder *flatbuffers.Builder, publishTimeout uint32) { - builder.PrependUint32Slot(2, publishTimeout, 60000) -} -func TimeoutConfigurationAddReadCallTimeout(builder *flatbuffers.Builder, readCallTimeout uint32) { - builder.PrependUint32Slot(3, readCallTimeout, 10000) -} -func TimeoutConfigurationAddSessionTimeout(builder *flatbuffers.Builder, sessionTimeout float64) { - builder.PrependFloat64Slot(4, sessionTimeout, 1200000.0) -} -func TimeoutConfigurationAddWatchdogTimeout(builder *flatbuffers.Builder, watchdogTimeout uint32) { - builder.PrependUint32Slot(5, watchdogTimeout, 5000) -} -func TimeoutConfigurationAddWriteCallTimeout(builder *flatbuffers.Builder, writeCallTimeout uint32) { - builder.PrependUint32Slot(6, writeCallTimeout, 10000) -} -func TimeoutConfigurationAddCallCallTimeout(builder *flatbuffers.Builder, callCallTimeout uint32) { - builder.PrependUint32Slot(7, callCallTimeout, 10000) -} -func TimeoutConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TimeoutConfigurationT struct { + BrowseCallTimeout uint32 + DiscoveryTimeout uint32 + PublishTimeout uint32 + ReadCallTimeout uint32 + SessionTimeout float64 + WatchdogTimeout uint32 + WriteCallTimeout uint32 + CallCallTimeout uint32 +} + +func (t *TimeoutConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TimeoutConfigurationStart(builder) + TimeoutConfigurationAddBrowseCallTimeout(builder, t.BrowseCallTimeout) + TimeoutConfigurationAddDiscoveryTimeout(builder, t.DiscoveryTimeout) + TimeoutConfigurationAddPublishTimeout(builder, t.PublishTimeout) + TimeoutConfigurationAddReadCallTimeout(builder, t.ReadCallTimeout) + TimeoutConfigurationAddSessionTimeout(builder, t.SessionTimeout) + TimeoutConfigurationAddWatchdogTimeout(builder, t.WatchdogTimeout) + TimeoutConfigurationAddWriteCallTimeout(builder, t.WriteCallTimeout) + TimeoutConfigurationAddCallCallTimeout(builder, t.CallCallTimeout) + return TimeoutConfigurationEnd(builder) +} + +func (rcv *TimeoutConfiguration) UnPackTo(t *TimeoutConfigurationT) { + t.BrowseCallTimeout = rcv.BrowseCallTimeout() + t.DiscoveryTimeout = rcv.DiscoveryTimeout() + t.PublishTimeout = rcv.PublishTimeout() + t.ReadCallTimeout = rcv.ReadCallTimeout() + t.SessionTimeout = rcv.SessionTimeout() + t.WatchdogTimeout = rcv.WatchdogTimeout() + t.WriteCallTimeout = rcv.WriteCallTimeout() + t.CallCallTimeout = rcv.CallCallTimeout() +} + +func (rcv *TimeoutConfiguration) UnPack() *TimeoutConfigurationT { + if rcv == nil { return nil } + t := &TimeoutConfigurationT{} + rcv.UnPackTo(t) + return t +} + +type TimeoutConfiguration struct { + _tab flatbuffers.Table +} + +func GetRootAsTimeoutConfiguration(buf []byte, offset flatbuffers.UOffsetT) *TimeoutConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TimeoutConfiguration{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTimeoutConfiguration(buf []byte, offset flatbuffers.UOffsetT) *TimeoutConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TimeoutConfiguration{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TimeoutConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TimeoutConfiguration) Table() flatbuffers.Table { + return rcv._tab +} + +/// The browse service timeout in ms +func (rcv *TimeoutConfiguration) BrowseCallTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 10000 +} + +/// The browse service timeout in ms +func (rcv *TimeoutConfiguration) MutateBrowseCallTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// The discovery service timeout in ms +func (rcv *TimeoutConfiguration) DiscoveryTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 60000 +} + +/// The discovery service timeout in ms +func (rcv *TimeoutConfiguration) MutateDiscoveryTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// The publish service timeout in ms +func (rcv *TimeoutConfiguration) PublishTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 60000 +} + +/// The publish service timeout in ms +func (rcv *TimeoutConfiguration) MutatePublishTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// The read service timeout in ms +func (rcv *TimeoutConfiguration) ReadCallTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 10000 +} + +/// The read service timeout in ms +func (rcv *TimeoutConfiguration) MutateReadCallTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +/// The requested session timeout in ms +func (rcv *TimeoutConfiguration) SessionTimeout() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 1200000.0 +} + +/// The requested session timeout in ms +func (rcv *TimeoutConfiguration) MutateSessionTimeout(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +/// The discovery service timeout in ms +/// If the response of the “Watchdog-Read” does not return within the watchdog-timeout, +/// the client assumes that the connection to the server was interrupted or closed +func (rcv *TimeoutConfiguration) WatchdogTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 5000 +} + +/// The discovery service timeout in ms +/// If the response of the “Watchdog-Read” does not return within the watchdog-timeout, +/// the client assumes that the connection to the server was interrupted or closed +func (rcv *TimeoutConfiguration) MutateWatchdogTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +/// the write service timeout in ms +func (rcv *TimeoutConfiguration) WriteCallTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 10000 +} + +/// the write service timeout in ms +func (rcv *TimeoutConfiguration) MutateWriteCallTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +/// The call service timeout in ms +func (rcv *TimeoutConfiguration) CallCallTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 10000 +} + +/// The call service timeout in ms +func (rcv *TimeoutConfiguration) MutateCallCallTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +func TimeoutConfigurationStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func TimeoutConfigurationAddBrowseCallTimeout(builder *flatbuffers.Builder, browseCallTimeout uint32) { + builder.PrependUint32Slot(0, browseCallTimeout, 10000) +} +func TimeoutConfigurationAddDiscoveryTimeout(builder *flatbuffers.Builder, discoveryTimeout uint32) { + builder.PrependUint32Slot(1, discoveryTimeout, 60000) +} +func TimeoutConfigurationAddPublishTimeout(builder *flatbuffers.Builder, publishTimeout uint32) { + builder.PrependUint32Slot(2, publishTimeout, 60000) +} +func TimeoutConfigurationAddReadCallTimeout(builder *flatbuffers.Builder, readCallTimeout uint32) { + builder.PrependUint32Slot(3, readCallTimeout, 10000) +} +func TimeoutConfigurationAddSessionTimeout(builder *flatbuffers.Builder, sessionTimeout float64) { + builder.PrependFloat64Slot(4, sessionTimeout, 1200000.0) +} +func TimeoutConfigurationAddWatchdogTimeout(builder *flatbuffers.Builder, watchdogTimeout uint32) { + builder.PrependUint32Slot(5, watchdogTimeout, 5000) +} +func TimeoutConfigurationAddWriteCallTimeout(builder *flatbuffers.Builder, writeCallTimeout uint32) { + builder.PrependUint32Slot(6, writeCallTimeout, 10000) +} +func TimeoutConfigurationAddCallCallTimeout(builder *flatbuffers.Builder, callCallTimeout uint32) { + builder.PrependUint32Slot(7, callCallTimeout, 10000) +} +func TimeoutConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/TokenAnonymous.go b/pkg/fbs/comm/opcua/client/TokenAnonymous.go index 4c09d3e..2e1fb9d 100644 --- a/pkg/fbs/comm/opcua/client/TokenAnonymous.go +++ b/pkg/fbs/comm/opcua/client/TokenAnonymous.go @@ -1,60 +1,60 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TokenAnonymousT struct { -} - -func (t *TokenAnonymousT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TokenAnonymousStart(builder) - return TokenAnonymousEnd(builder) -} - -func (rcv *TokenAnonymous) UnPackTo(t *TokenAnonymousT) { -} - -func (rcv *TokenAnonymous) UnPack() *TokenAnonymousT { - if rcv == nil { return nil } - t := &TokenAnonymousT{} - rcv.UnPackTo(t) - return t -} - -type TokenAnonymous struct { - _tab flatbuffers.Table -} - -func GetRootAsTokenAnonymous(buf []byte, offset flatbuffers.UOffsetT) *TokenAnonymous { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TokenAnonymous{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTokenAnonymous(buf []byte, offset flatbuffers.UOffsetT) *TokenAnonymous { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TokenAnonymous{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TokenAnonymous) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TokenAnonymous) Table() flatbuffers.Table { - return rcv._tab -} - -func TokenAnonymousStart(builder *flatbuffers.Builder) { - builder.StartObject(0) -} -func TokenAnonymousEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TokenAnonymousT struct { +} + +func (t *TokenAnonymousT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TokenAnonymousStart(builder) + return TokenAnonymousEnd(builder) +} + +func (rcv *TokenAnonymous) UnPackTo(t *TokenAnonymousT) { +} + +func (rcv *TokenAnonymous) UnPack() *TokenAnonymousT { + if rcv == nil { return nil } + t := &TokenAnonymousT{} + rcv.UnPackTo(t) + return t +} + +type TokenAnonymous struct { + _tab flatbuffers.Table +} + +func GetRootAsTokenAnonymous(buf []byte, offset flatbuffers.UOffsetT) *TokenAnonymous { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TokenAnonymous{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTokenAnonymous(buf []byte, offset flatbuffers.UOffsetT) *TokenAnonymous { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TokenAnonymous{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TokenAnonymous) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TokenAnonymous) Table() flatbuffers.Table { + return rcv._tab +} + +func TokenAnonymousStart(builder *flatbuffers.Builder) { + builder.StartObject(0) +} +func TokenAnonymousEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/TokenCert.go b/pkg/fbs/comm/opcua/client/TokenCert.go index abc7949..d4cb1fc 100644 --- a/pkg/fbs/comm/opcua/client/TokenCert.go +++ b/pkg/fbs/comm/opcua/client/TokenCert.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TokenCertT struct { - Location string - Name string -} - -func (t *TokenCertT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - locationOffset := builder.CreateString(t.Location) - nameOffset := builder.CreateString(t.Name) - TokenCertStart(builder) - TokenCertAddLocation(builder, locationOffset) - TokenCertAddName(builder, nameOffset) - return TokenCertEnd(builder) -} - -func (rcv *TokenCert) UnPackTo(t *TokenCertT) { - t.Location = string(rcv.Location()) - t.Name = string(rcv.Name()) -} - -func (rcv *TokenCert) UnPack() *TokenCertT { - if rcv == nil { return nil } - t := &TokenCertT{} - rcv.UnPackTo(t) - return t -} - -type TokenCert struct { - _tab flatbuffers.Table -} - -func GetRootAsTokenCert(buf []byte, offset flatbuffers.UOffsetT) *TokenCert { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TokenCert{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTokenCert(buf []byte, offset flatbuffers.UOffsetT) *TokenCert { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TokenCert{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TokenCert) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TokenCert) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TokenCert) Location() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *TokenCert) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func TokenCertStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func TokenCertAddLocation(builder *flatbuffers.Builder, location flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(location), 0) -} -func TokenCertAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) -} -func TokenCertEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TokenCertT struct { + Location string + Name string +} + +func (t *TokenCertT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + locationOffset := builder.CreateString(t.Location) + nameOffset := builder.CreateString(t.Name) + TokenCertStart(builder) + TokenCertAddLocation(builder, locationOffset) + TokenCertAddName(builder, nameOffset) + return TokenCertEnd(builder) +} + +func (rcv *TokenCert) UnPackTo(t *TokenCertT) { + t.Location = string(rcv.Location()) + t.Name = string(rcv.Name()) +} + +func (rcv *TokenCert) UnPack() *TokenCertT { + if rcv == nil { return nil } + t := &TokenCertT{} + rcv.UnPackTo(t) + return t +} + +type TokenCert struct { + _tab flatbuffers.Table +} + +func GetRootAsTokenCert(buf []byte, offset flatbuffers.UOffsetT) *TokenCert { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TokenCert{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTokenCert(buf []byte, offset flatbuffers.UOffsetT) *TokenCert { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TokenCert{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TokenCert) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TokenCert) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *TokenCert) Location() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *TokenCert) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func TokenCertStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func TokenCertAddLocation(builder *flatbuffers.Builder, location flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(location), 0) +} +func TokenCertAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) +} +func TokenCertEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/TokenUserPassword.go b/pkg/fbs/comm/opcua/client/TokenUserPassword.go index 759bbcc..b07f2f0 100644 --- a/pkg/fbs/comm/opcua/client/TokenUserPassword.go +++ b/pkg/fbs/comm/opcua/client/TokenUserPassword.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TokenUserPasswordT struct { - Username string - Password string -} - -func (t *TokenUserPasswordT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - usernameOffset := builder.CreateString(t.Username) - passwordOffset := builder.CreateString(t.Password) - TokenUserPasswordStart(builder) - TokenUserPasswordAddUsername(builder, usernameOffset) - TokenUserPasswordAddPassword(builder, passwordOffset) - return TokenUserPasswordEnd(builder) -} - -func (rcv *TokenUserPassword) UnPackTo(t *TokenUserPasswordT) { - t.Username = string(rcv.Username()) - t.Password = string(rcv.Password()) -} - -func (rcv *TokenUserPassword) UnPack() *TokenUserPasswordT { - if rcv == nil { return nil } - t := &TokenUserPasswordT{} - rcv.UnPackTo(t) - return t -} - -type TokenUserPassword struct { - _tab flatbuffers.Table -} - -func GetRootAsTokenUserPassword(buf []byte, offset flatbuffers.UOffsetT) *TokenUserPassword { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TokenUserPassword{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTokenUserPassword(buf []byte, offset flatbuffers.UOffsetT) *TokenUserPassword { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TokenUserPassword{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TokenUserPassword) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TokenUserPassword) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TokenUserPassword) Username() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *TokenUserPassword) Password() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func TokenUserPasswordStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func TokenUserPasswordAddUsername(builder *flatbuffers.Builder, username flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(username), 0) -} -func TokenUserPasswordAddPassword(builder *flatbuffers.Builder, password flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(password), 0) -} -func TokenUserPasswordEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TokenUserPasswordT struct { + Username string + Password string +} + +func (t *TokenUserPasswordT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + usernameOffset := builder.CreateString(t.Username) + passwordOffset := builder.CreateString(t.Password) + TokenUserPasswordStart(builder) + TokenUserPasswordAddUsername(builder, usernameOffset) + TokenUserPasswordAddPassword(builder, passwordOffset) + return TokenUserPasswordEnd(builder) +} + +func (rcv *TokenUserPassword) UnPackTo(t *TokenUserPasswordT) { + t.Username = string(rcv.Username()) + t.Password = string(rcv.Password()) +} + +func (rcv *TokenUserPassword) UnPack() *TokenUserPasswordT { + if rcv == nil { return nil } + t := &TokenUserPasswordT{} + rcv.UnPackTo(t) + return t +} + +type TokenUserPassword struct { + _tab flatbuffers.Table +} + +func GetRootAsTokenUserPassword(buf []byte, offset flatbuffers.UOffsetT) *TokenUserPassword { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TokenUserPassword{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTokenUserPassword(buf []byte, offset flatbuffers.UOffsetT) *TokenUserPassword { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TokenUserPassword{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TokenUserPassword) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TokenUserPassword) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *TokenUserPassword) Username() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *TokenUserPassword) Password() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func TokenUserPasswordStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func TokenUserPasswordAddUsername(builder *flatbuffers.Builder, username flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(username), 0) +} +func TokenUserPasswordAddPassword(builder *flatbuffers.Builder, password flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(password), 0) +} +func TokenUserPasswordEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/UserIdentityToken.go b/pkg/fbs/comm/opcua/client/UserIdentityToken.go index 96ee25d..54399f7 100644 --- a/pkg/fbs/comm/opcua/client/UserIdentityToken.go +++ b/pkg/fbs/comm/opcua/client/UserIdentityToken.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type UserIdentityTokenT struct { - UserIdentityToken *UserIdentityTokenUnionT -} - -func (t *UserIdentityTokenT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - userIdentityTokenOffset := t.UserIdentityToken.Pack(builder) - - UserIdentityTokenStart(builder) - if t.UserIdentityToken != nil { - UserIdentityTokenAddUserIdentityTokenType(builder, t.UserIdentityToken.Type) - } - UserIdentityTokenAddUserIdentityToken(builder, userIdentityTokenOffset) - return UserIdentityTokenEnd(builder) -} - -func (rcv *UserIdentityToken) UnPackTo(t *UserIdentityTokenT) { - userIdentityTokenTable := flatbuffers.Table{} - if rcv.UserIdentityToken(&userIdentityTokenTable) { - t.UserIdentityToken = rcv.UserIdentityTokenType().UnPack(userIdentityTokenTable) - } -} - -func (rcv *UserIdentityToken) UnPack() *UserIdentityTokenT { - if rcv == nil { return nil } - t := &UserIdentityTokenT{} - rcv.UnPackTo(t) - return t -} - -type UserIdentityToken struct { - _tab flatbuffers.Table -} - -func GetRootAsUserIdentityToken(buf []byte, offset flatbuffers.UOffsetT) *UserIdentityToken { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UserIdentityToken{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUserIdentityToken(buf []byte, offset flatbuffers.UOffsetT) *UserIdentityToken { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UserIdentityToken{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UserIdentityToken) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UserIdentityToken) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *UserIdentityToken) UserIdentityTokenType() UserIdentityTokenUnion { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return UserIdentityTokenUnion(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *UserIdentityToken) MutateUserIdentityTokenType(n UserIdentityTokenUnion) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *UserIdentityToken) UserIdentityToken(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -func UserIdentityTokenStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func UserIdentityTokenAddUserIdentityTokenType(builder *flatbuffers.Builder, userIdentityTokenType UserIdentityTokenUnion) { - builder.PrependByteSlot(0, byte(userIdentityTokenType), 0) -} -func UserIdentityTokenAddUserIdentityToken(builder *flatbuffers.Builder, userIdentityToken flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(userIdentityToken), 0) -} -func UserIdentityTokenEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type UserIdentityTokenT struct { + UserIdentityToken *UserIdentityTokenUnionT +} + +func (t *UserIdentityTokenT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + userIdentityTokenOffset := t.UserIdentityToken.Pack(builder) + + UserIdentityTokenStart(builder) + if t.UserIdentityToken != nil { + UserIdentityTokenAddUserIdentityTokenType(builder, t.UserIdentityToken.Type) + } + UserIdentityTokenAddUserIdentityToken(builder, userIdentityTokenOffset) + return UserIdentityTokenEnd(builder) +} + +func (rcv *UserIdentityToken) UnPackTo(t *UserIdentityTokenT) { + userIdentityTokenTable := flatbuffers.Table{} + if rcv.UserIdentityToken(&userIdentityTokenTable) { + t.UserIdentityToken = rcv.UserIdentityTokenType().UnPack(userIdentityTokenTable) + } +} + +func (rcv *UserIdentityToken) UnPack() *UserIdentityTokenT { + if rcv == nil { return nil } + t := &UserIdentityTokenT{} + rcv.UnPackTo(t) + return t +} + +type UserIdentityToken struct { + _tab flatbuffers.Table +} + +func GetRootAsUserIdentityToken(buf []byte, offset flatbuffers.UOffsetT) *UserIdentityToken { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UserIdentityToken{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUserIdentityToken(buf []byte, offset flatbuffers.UOffsetT) *UserIdentityToken { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UserIdentityToken{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UserIdentityToken) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UserIdentityToken) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *UserIdentityToken) UserIdentityTokenType() UserIdentityTokenUnion { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return UserIdentityTokenUnion(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *UserIdentityToken) MutateUserIdentityTokenType(n UserIdentityTokenUnion) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +func (rcv *UserIdentityToken) UserIdentityToken(obj *flatbuffers.Table) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + rcv._tab.Union(obj, o) + return true + } + return false +} + +func UserIdentityTokenStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func UserIdentityTokenAddUserIdentityTokenType(builder *flatbuffers.Builder, userIdentityTokenType UserIdentityTokenUnion) { + builder.PrependByteSlot(0, byte(userIdentityTokenType), 0) +} +func UserIdentityTokenAddUserIdentityToken(builder *flatbuffers.Builder, userIdentityToken flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(userIdentityToken), 0) +} +func UserIdentityTokenEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/client/UserIdentityTokenUnion.go b/pkg/fbs/comm/opcua/client/UserIdentityTokenUnion.go index 79d6668..982a4af 100644 --- a/pkg/fbs/comm/opcua/client/UserIdentityTokenUnion.go +++ b/pkg/fbs/comm/opcua/client/UserIdentityTokenUnion.go @@ -1,74 +1,74 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package client - -import ( - "strconv" - - flatbuffers "github.com/google/flatbuffers/go" -) - -type UserIdentityTokenUnion byte - -const ( - UserIdentityTokenUnionNONE UserIdentityTokenUnion = 0 - UserIdentityTokenUnionTokenAnonymous UserIdentityTokenUnion = 1 - UserIdentityTokenUnionTokenUserPassword UserIdentityTokenUnion = 2 - UserIdentityTokenUnionTokenCert UserIdentityTokenUnion = 3 -) - -var EnumNamesUserIdentityTokenUnion = map[UserIdentityTokenUnion]string{ - UserIdentityTokenUnionNONE: "NONE", - UserIdentityTokenUnionTokenAnonymous: "TokenAnonymous", - UserIdentityTokenUnionTokenUserPassword: "TokenUserPassword", - UserIdentityTokenUnionTokenCert: "TokenCert", -} - -var EnumValuesUserIdentityTokenUnion = map[string]UserIdentityTokenUnion{ - "NONE": UserIdentityTokenUnionNONE, - "TokenAnonymous": UserIdentityTokenUnionTokenAnonymous, - "TokenUserPassword": UserIdentityTokenUnionTokenUserPassword, - "TokenCert": UserIdentityTokenUnionTokenCert, -} - -func (v UserIdentityTokenUnion) String() string { - if s, ok := EnumNamesUserIdentityTokenUnion[v]; ok { - return s - } - return "UserIdentityTokenUnion(" + strconv.FormatInt(int64(v), 10) + ")" -} - -type UserIdentityTokenUnionT struct { - Type UserIdentityTokenUnion - Value interface{} -} - -func (t *UserIdentityTokenUnionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { - return 0 - } - switch t.Type { - case UserIdentityTokenUnionTokenAnonymous: - return t.Value.(*TokenAnonymousT).Pack(builder) - case UserIdentityTokenUnionTokenUserPassword: - return t.Value.(*TokenUserPasswordT).Pack(builder) - case UserIdentityTokenUnionTokenCert: - return t.Value.(*TokenCertT).Pack(builder) - } - return 0 -} - -func (rcv UserIdentityTokenUnion) UnPack(table flatbuffers.Table) *UserIdentityTokenUnionT { - switch rcv { - case UserIdentityTokenUnionTokenAnonymous: - x := TokenAnonymous{_tab: table} - return &UserIdentityTokenUnionT{ Type: UserIdentityTokenUnionTokenAnonymous, Value: x.UnPack() } - case UserIdentityTokenUnionTokenUserPassword: - x := TokenUserPassword{_tab: table} - return &UserIdentityTokenUnionT{ Type: UserIdentityTokenUnionTokenUserPassword, Value: x.UnPack() } - case UserIdentityTokenUnionTokenCert: - x := TokenCert{_tab: table} - return &UserIdentityTokenUnionT{ Type: UserIdentityTokenUnionTokenCert, Value: x.UnPack() } - } - return nil -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package client + +import ( + "strconv" + + flatbuffers "github.com/google/flatbuffers/go" +) + +type UserIdentityTokenUnion byte + +const ( + UserIdentityTokenUnionNONE UserIdentityTokenUnion = 0 + UserIdentityTokenUnionTokenAnonymous UserIdentityTokenUnion = 1 + UserIdentityTokenUnionTokenUserPassword UserIdentityTokenUnion = 2 + UserIdentityTokenUnionTokenCert UserIdentityTokenUnion = 3 +) + +var EnumNamesUserIdentityTokenUnion = map[UserIdentityTokenUnion]string{ + UserIdentityTokenUnionNONE: "NONE", + UserIdentityTokenUnionTokenAnonymous: "TokenAnonymous", + UserIdentityTokenUnionTokenUserPassword: "TokenUserPassword", + UserIdentityTokenUnionTokenCert: "TokenCert", +} + +var EnumValuesUserIdentityTokenUnion = map[string]UserIdentityTokenUnion{ + "NONE": UserIdentityTokenUnionNONE, + "TokenAnonymous": UserIdentityTokenUnionTokenAnonymous, + "TokenUserPassword": UserIdentityTokenUnionTokenUserPassword, + "TokenCert": UserIdentityTokenUnionTokenCert, +} + +func (v UserIdentityTokenUnion) String() string { + if s, ok := EnumNamesUserIdentityTokenUnion[v]; ok { + return s + } + return "UserIdentityTokenUnion(" + strconv.FormatInt(int64(v), 10) + ")" +} + +type UserIdentityTokenUnionT struct { + Type UserIdentityTokenUnion + Value interface{} +} + +func (t *UserIdentityTokenUnionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { + return 0 + } + switch t.Type { + case UserIdentityTokenUnionTokenAnonymous: + return t.Value.(*TokenAnonymousT).Pack(builder) + case UserIdentityTokenUnionTokenUserPassword: + return t.Value.(*TokenUserPasswordT).Pack(builder) + case UserIdentityTokenUnionTokenCert: + return t.Value.(*TokenCertT).Pack(builder) + } + return 0 +} + +func (rcv UserIdentityTokenUnion) UnPack(table flatbuffers.Table) *UserIdentityTokenUnionT { + switch rcv { + case UserIdentityTokenUnionTokenAnonymous: + x := TokenAnonymous{_tab: table} + return &UserIdentityTokenUnionT{ Type: UserIdentityTokenUnionTokenAnonymous, Value: x.UnPack() } + case UserIdentityTokenUnionTokenUserPassword: + x := TokenUserPassword{_tab: table} + return &UserIdentityTokenUnionT{ Type: UserIdentityTokenUnionTokenUserPassword, Value: x.UnPack() } + case UserIdentityTokenUnionTokenCert: + x := TokenCert{_tab: table} + return &UserIdentityTokenUnionT{ Type: UserIdentityTokenUnionTokenCert, Value: x.UnPack() } + } + return nil +} diff --git a/pkg/fbs/comm/opcua/server/ArrayOfCertificateConfigType.go b/pkg/fbs/comm/opcua/server/ArrayOfCertificateConfigType.go index 787105d..838210a 100644 --- a/pkg/fbs/comm/opcua/server/ArrayOfCertificateConfigType.go +++ b/pkg/fbs/comm/opcua/server/ArrayOfCertificateConfigType.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfCertificateConfigTypeT struct { - CertificateConfigArray []*CertificateConfigTypeT -} - -func (t *ArrayOfCertificateConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - certificateConfigArrayOffset := flatbuffers.UOffsetT(0) - if t.CertificateConfigArray != nil { - certificateConfigArrayLength := len(t.CertificateConfigArray) - certificateConfigArrayOffsets := make([]flatbuffers.UOffsetT, certificateConfigArrayLength) - for j := 0; j < certificateConfigArrayLength; j++ { - certificateConfigArrayOffsets[j] = t.CertificateConfigArray[j].Pack(builder) - } - ArrayOfCertificateConfigTypeStartCertificateConfigArrayVector(builder, certificateConfigArrayLength) - for j := certificateConfigArrayLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(certificateConfigArrayOffsets[j]) - } - certificateConfigArrayOffset = builder.EndVector(certificateConfigArrayLength) - } - ArrayOfCertificateConfigTypeStart(builder) - ArrayOfCertificateConfigTypeAddCertificateConfigArray(builder, certificateConfigArrayOffset) - return ArrayOfCertificateConfigTypeEnd(builder) -} - -func (rcv *ArrayOfCertificateConfigType) UnPackTo(t *ArrayOfCertificateConfigTypeT) { - certificateConfigArrayLength := rcv.CertificateConfigArrayLength() - t.CertificateConfigArray = make([]*CertificateConfigTypeT, certificateConfigArrayLength) - for j := 0; j < certificateConfigArrayLength; j++ { - x := CertificateConfigType{} - rcv.CertificateConfigArray(&x, j) - t.CertificateConfigArray[j] = x.UnPack() - } -} - -func (rcv *ArrayOfCertificateConfigType) UnPack() *ArrayOfCertificateConfigTypeT { - if rcv == nil { return nil } - t := &ArrayOfCertificateConfigTypeT{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfCertificateConfigType struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfCertificateConfigType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfCertificateConfigType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfCertificateConfigType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfCertificateConfigType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfCertificateConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfCertificateConfigType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfCertificateConfigType) CertificateConfigArray(obj *CertificateConfigType, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ArrayOfCertificateConfigType) CertificateConfigArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ArrayOfCertificateConfigTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfCertificateConfigTypeAddCertificateConfigArray(builder *flatbuffers.Builder, certificateConfigArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(certificateConfigArray), 0) -} -func ArrayOfCertificateConfigTypeStartCertificateConfigArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfCertificateConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfCertificateConfigTypeT struct { + CertificateConfigArray []*CertificateConfigTypeT +} + +func (t *ArrayOfCertificateConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + certificateConfigArrayOffset := flatbuffers.UOffsetT(0) + if t.CertificateConfigArray != nil { + certificateConfigArrayLength := len(t.CertificateConfigArray) + certificateConfigArrayOffsets := make([]flatbuffers.UOffsetT, certificateConfigArrayLength) + for j := 0; j < certificateConfigArrayLength; j++ { + certificateConfigArrayOffsets[j] = t.CertificateConfigArray[j].Pack(builder) + } + ArrayOfCertificateConfigTypeStartCertificateConfigArrayVector(builder, certificateConfigArrayLength) + for j := certificateConfigArrayLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(certificateConfigArrayOffsets[j]) + } + certificateConfigArrayOffset = builder.EndVector(certificateConfigArrayLength) + } + ArrayOfCertificateConfigTypeStart(builder) + ArrayOfCertificateConfigTypeAddCertificateConfigArray(builder, certificateConfigArrayOffset) + return ArrayOfCertificateConfigTypeEnd(builder) +} + +func (rcv *ArrayOfCertificateConfigType) UnPackTo(t *ArrayOfCertificateConfigTypeT) { + certificateConfigArrayLength := rcv.CertificateConfigArrayLength() + t.CertificateConfigArray = make([]*CertificateConfigTypeT, certificateConfigArrayLength) + for j := 0; j < certificateConfigArrayLength; j++ { + x := CertificateConfigType{} + rcv.CertificateConfigArray(&x, j) + t.CertificateConfigArray[j] = x.UnPack() + } +} + +func (rcv *ArrayOfCertificateConfigType) UnPack() *ArrayOfCertificateConfigTypeT { + if rcv == nil { return nil } + t := &ArrayOfCertificateConfigTypeT{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfCertificateConfigType struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfCertificateConfigType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfCertificateConfigType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfCertificateConfigType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfCertificateConfigType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfCertificateConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfCertificateConfigType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfCertificateConfigType) CertificateConfigArray(obj *CertificateConfigType, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ArrayOfCertificateConfigType) CertificateConfigArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ArrayOfCertificateConfigTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfCertificateConfigTypeAddCertificateConfigArray(builder *flatbuffers.Builder, certificateConfigArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(certificateConfigArray), 0) +} +func ArrayOfCertificateConfigTypeStartCertificateConfigArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfCertificateConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/ArrayOfObjectPoolDiagType.go b/pkg/fbs/comm/opcua/server/ArrayOfObjectPoolDiagType.go index b2d32c5..163277f 100644 --- a/pkg/fbs/comm/opcua/server/ArrayOfObjectPoolDiagType.go +++ b/pkg/fbs/comm/opcua/server/ArrayOfObjectPoolDiagType.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfObjectPoolDiagTypeT struct { - ObjectPoolDiagArray []*ObjectPoolDiagTypeT -} - -func (t *ArrayOfObjectPoolDiagTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - objectPoolDiagArrayOffset := flatbuffers.UOffsetT(0) - if t.ObjectPoolDiagArray != nil { - objectPoolDiagArrayLength := len(t.ObjectPoolDiagArray) - objectPoolDiagArrayOffsets := make([]flatbuffers.UOffsetT, objectPoolDiagArrayLength) - for j := 0; j < objectPoolDiagArrayLength; j++ { - objectPoolDiagArrayOffsets[j] = t.ObjectPoolDiagArray[j].Pack(builder) - } - ArrayOfObjectPoolDiagTypeStartObjectPoolDiagArrayVector(builder, objectPoolDiagArrayLength) - for j := objectPoolDiagArrayLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(objectPoolDiagArrayOffsets[j]) - } - objectPoolDiagArrayOffset = builder.EndVector(objectPoolDiagArrayLength) - } - ArrayOfObjectPoolDiagTypeStart(builder) - ArrayOfObjectPoolDiagTypeAddObjectPoolDiagArray(builder, objectPoolDiagArrayOffset) - return ArrayOfObjectPoolDiagTypeEnd(builder) -} - -func (rcv *ArrayOfObjectPoolDiagType) UnPackTo(t *ArrayOfObjectPoolDiagTypeT) { - objectPoolDiagArrayLength := rcv.ObjectPoolDiagArrayLength() - t.ObjectPoolDiagArray = make([]*ObjectPoolDiagTypeT, objectPoolDiagArrayLength) - for j := 0; j < objectPoolDiagArrayLength; j++ { - x := ObjectPoolDiagType{} - rcv.ObjectPoolDiagArray(&x, j) - t.ObjectPoolDiagArray[j] = x.UnPack() - } -} - -func (rcv *ArrayOfObjectPoolDiagType) UnPack() *ArrayOfObjectPoolDiagTypeT { - if rcv == nil { return nil } - t := &ArrayOfObjectPoolDiagTypeT{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfObjectPoolDiagType struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfObjectPoolDiagType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfObjectPoolDiagType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfObjectPoolDiagType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfObjectPoolDiagType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfObjectPoolDiagType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfObjectPoolDiagType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfObjectPoolDiagType) ObjectPoolDiagArray(obj *ObjectPoolDiagType, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ArrayOfObjectPoolDiagType) ObjectPoolDiagArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ArrayOfObjectPoolDiagTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfObjectPoolDiagTypeAddObjectPoolDiagArray(builder *flatbuffers.Builder, objectPoolDiagArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objectPoolDiagArray), 0) -} -func ArrayOfObjectPoolDiagTypeStartObjectPoolDiagArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfObjectPoolDiagTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfObjectPoolDiagTypeT struct { + ObjectPoolDiagArray []*ObjectPoolDiagTypeT +} + +func (t *ArrayOfObjectPoolDiagTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objectPoolDiagArrayOffset := flatbuffers.UOffsetT(0) + if t.ObjectPoolDiagArray != nil { + objectPoolDiagArrayLength := len(t.ObjectPoolDiagArray) + objectPoolDiagArrayOffsets := make([]flatbuffers.UOffsetT, objectPoolDiagArrayLength) + for j := 0; j < objectPoolDiagArrayLength; j++ { + objectPoolDiagArrayOffsets[j] = t.ObjectPoolDiagArray[j].Pack(builder) + } + ArrayOfObjectPoolDiagTypeStartObjectPoolDiagArrayVector(builder, objectPoolDiagArrayLength) + for j := objectPoolDiagArrayLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(objectPoolDiagArrayOffsets[j]) + } + objectPoolDiagArrayOffset = builder.EndVector(objectPoolDiagArrayLength) + } + ArrayOfObjectPoolDiagTypeStart(builder) + ArrayOfObjectPoolDiagTypeAddObjectPoolDiagArray(builder, objectPoolDiagArrayOffset) + return ArrayOfObjectPoolDiagTypeEnd(builder) +} + +func (rcv *ArrayOfObjectPoolDiagType) UnPackTo(t *ArrayOfObjectPoolDiagTypeT) { + objectPoolDiagArrayLength := rcv.ObjectPoolDiagArrayLength() + t.ObjectPoolDiagArray = make([]*ObjectPoolDiagTypeT, objectPoolDiagArrayLength) + for j := 0; j < objectPoolDiagArrayLength; j++ { + x := ObjectPoolDiagType{} + rcv.ObjectPoolDiagArray(&x, j) + t.ObjectPoolDiagArray[j] = x.UnPack() + } +} + +func (rcv *ArrayOfObjectPoolDiagType) UnPack() *ArrayOfObjectPoolDiagTypeT { + if rcv == nil { return nil } + t := &ArrayOfObjectPoolDiagTypeT{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfObjectPoolDiagType struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfObjectPoolDiagType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfObjectPoolDiagType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfObjectPoolDiagType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfObjectPoolDiagType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfObjectPoolDiagType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfObjectPoolDiagType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayOfObjectPoolDiagType) ObjectPoolDiagArray(obj *ObjectPoolDiagType, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ArrayOfObjectPoolDiagType) ObjectPoolDiagArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ArrayOfObjectPoolDiagTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfObjectPoolDiagTypeAddObjectPoolDiagArray(builder *flatbuffers.Builder, objectPoolDiagArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objectPoolDiagArray), 0) +} +func ArrayOfObjectPoolDiagTypeStartObjectPoolDiagArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfObjectPoolDiagTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/ArrayOfSecConfigType.go b/pkg/fbs/comm/opcua/server/ArrayOfSecConfigType.go index bfe00ae..ff8c272 100644 --- a/pkg/fbs/comm/opcua/server/ArrayOfSecConfigType.go +++ b/pkg/fbs/comm/opcua/server/ArrayOfSecConfigType.go @@ -1,108 +1,112 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfSecConfigTypeT struct { - SecConfigArray []*SecConfigTypeT -} - -func (t *ArrayOfSecConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - secConfigArrayOffset := flatbuffers.UOffsetT(0) - if t.SecConfigArray != nil { - secConfigArrayLength := len(t.SecConfigArray) - secConfigArrayOffsets := make([]flatbuffers.UOffsetT, secConfigArrayLength) - for j := 0; j < secConfigArrayLength; j++ { - secConfigArrayOffsets[j] = t.SecConfigArray[j].Pack(builder) - } - ArrayOfSecConfigTypeStartSecConfigArrayVector(builder, secConfigArrayLength) - for j := secConfigArrayLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(secConfigArrayOffsets[j]) - } - secConfigArrayOffset = builder.EndVector(secConfigArrayLength) - } - ArrayOfSecConfigTypeStart(builder) - ArrayOfSecConfigTypeAddSecConfigArray(builder, secConfigArrayOffset) - return ArrayOfSecConfigTypeEnd(builder) -} - -func (rcv *ArrayOfSecConfigType) UnPackTo(t *ArrayOfSecConfigTypeT) { - secConfigArrayLength := rcv.SecConfigArrayLength() - t.SecConfigArray = make([]*SecConfigTypeT, secConfigArrayLength) - for j := 0; j < secConfigArrayLength; j++ { - x := SecConfigType{} - rcv.SecConfigArray(&x, j) - t.SecConfigArray[j] = x.UnPack() - } -} - -func (rcv *ArrayOfSecConfigType) UnPack() *ArrayOfSecConfigTypeT { - if rcv == nil { return nil } - t := &ArrayOfSecConfigTypeT{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfSecConfigType struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfSecConfigType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfSecConfigType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfSecConfigType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfSecConfigType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfSecConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfSecConfigType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfSecConfigType) SecConfigArray(obj *SecConfigType, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ArrayOfSecConfigType) SecConfigArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ArrayOfSecConfigTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfSecConfigTypeAddSecConfigArray(builder *flatbuffers.Builder, secConfigArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(secConfigArray), 0) -} -func ArrayOfSecConfigTypeStartSecConfigArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfSecConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfSecConfigTypeT struct { + SecConfigArray []*SecConfigTypeT +} + +func (t *ArrayOfSecConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + secConfigArrayOffset := flatbuffers.UOffsetT(0) + if t.SecConfigArray != nil { + secConfigArrayLength := len(t.SecConfigArray) + secConfigArrayOffsets := make([]flatbuffers.UOffsetT, secConfigArrayLength) + for j := 0; j < secConfigArrayLength; j++ { + secConfigArrayOffsets[j] = t.SecConfigArray[j].Pack(builder) + } + ArrayOfSecConfigTypeStartSecConfigArrayVector(builder, secConfigArrayLength) + for j := secConfigArrayLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(secConfigArrayOffsets[j]) + } + secConfigArrayOffset = builder.EndVector(secConfigArrayLength) + } + ArrayOfSecConfigTypeStart(builder) + ArrayOfSecConfigTypeAddSecConfigArray(builder, secConfigArrayOffset) + return ArrayOfSecConfigTypeEnd(builder) +} + +func (rcv *ArrayOfSecConfigType) UnPackTo(t *ArrayOfSecConfigTypeT) { + secConfigArrayLength := rcv.SecConfigArrayLength() + t.SecConfigArray = make([]*SecConfigTypeT, secConfigArrayLength) + for j := 0; j < secConfigArrayLength; j++ { + x := SecConfigType{} + rcv.SecConfigArray(&x, j) + t.SecConfigArray[j] = x.UnPack() + } +} + +func (rcv *ArrayOfSecConfigType) UnPack() *ArrayOfSecConfigTypeT { + if rcv == nil { return nil } + t := &ArrayOfSecConfigTypeT{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfSecConfigType struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfSecConfigType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfSecConfigType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfSecConfigType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfSecConfigType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfSecConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfSecConfigType) Table() flatbuffers.Table { + return rcv._tab +} + +/// The endpoint security configurations of the OPC UA Server in an array +/// Each array element describes one security configuration of OPC UA Server endpoint +func (rcv *ArrayOfSecConfigType) SecConfigArray(obj *SecConfigType, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ArrayOfSecConfigType) SecConfigArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// The endpoint security configurations of the OPC UA Server in an array +/// Each array element describes one security configuration of OPC UA Server endpoint +func ArrayOfSecConfigTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfSecConfigTypeAddSecConfigArray(builder *flatbuffers.Builder, secConfigArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(secConfigArray), 0) +} +func ArrayOfSecConfigTypeStartSecConfigArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfSecConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/ArrayOfUserTokenType.go b/pkg/fbs/comm/opcua/server/ArrayOfUserTokenType.go index d30c330..c9a8959 100644 --- a/pkg/fbs/comm/opcua/server/ArrayOfUserTokenType.go +++ b/pkg/fbs/comm/opcua/server/ArrayOfUserTokenType.go @@ -1,108 +1,110 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayOfUserTokenTypeT struct { - UserTokenArray []*UserTokenTypeT -} - -func (t *ArrayOfUserTokenTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - userTokenArrayOffset := flatbuffers.UOffsetT(0) - if t.UserTokenArray != nil { - userTokenArrayLength := len(t.UserTokenArray) - userTokenArrayOffsets := make([]flatbuffers.UOffsetT, userTokenArrayLength) - for j := 0; j < userTokenArrayLength; j++ { - userTokenArrayOffsets[j] = t.UserTokenArray[j].Pack(builder) - } - ArrayOfUserTokenTypeStartUserTokenArrayVector(builder, userTokenArrayLength) - for j := userTokenArrayLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(userTokenArrayOffsets[j]) - } - userTokenArrayOffset = builder.EndVector(userTokenArrayLength) - } - ArrayOfUserTokenTypeStart(builder) - ArrayOfUserTokenTypeAddUserTokenArray(builder, userTokenArrayOffset) - return ArrayOfUserTokenTypeEnd(builder) -} - -func (rcv *ArrayOfUserTokenType) UnPackTo(t *ArrayOfUserTokenTypeT) { - userTokenArrayLength := rcv.UserTokenArrayLength() - t.UserTokenArray = make([]*UserTokenTypeT, userTokenArrayLength) - for j := 0; j < userTokenArrayLength; j++ { - x := UserTokenType{} - rcv.UserTokenArray(&x, j) - t.UserTokenArray[j] = x.UnPack() - } -} - -func (rcv *ArrayOfUserTokenType) UnPack() *ArrayOfUserTokenTypeT { - if rcv == nil { return nil } - t := &ArrayOfUserTokenTypeT{} - rcv.UnPackTo(t) - return t -} - -type ArrayOfUserTokenType struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayOfUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUserTokenType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayOfUserTokenType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayOfUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUserTokenType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayOfUserTokenType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayOfUserTokenType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayOfUserTokenType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayOfUserTokenType) UserTokenArray(obj *UserTokenType, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ArrayOfUserTokenType) UserTokenArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ArrayOfUserTokenTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayOfUserTokenTypeAddUserTokenArray(builder *flatbuffers.Builder, userTokenArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(userTokenArray), 0) -} -func ArrayOfUserTokenTypeStartUserTokenArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayOfUserTokenTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayOfUserTokenTypeT struct { + UserTokenArray []*UserTokenTypeT +} + +func (t *ArrayOfUserTokenTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + userTokenArrayOffset := flatbuffers.UOffsetT(0) + if t.UserTokenArray != nil { + userTokenArrayLength := len(t.UserTokenArray) + userTokenArrayOffsets := make([]flatbuffers.UOffsetT, userTokenArrayLength) + for j := 0; j < userTokenArrayLength; j++ { + userTokenArrayOffsets[j] = t.UserTokenArray[j].Pack(builder) + } + ArrayOfUserTokenTypeStartUserTokenArrayVector(builder, userTokenArrayLength) + for j := userTokenArrayLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(userTokenArrayOffsets[j]) + } + userTokenArrayOffset = builder.EndVector(userTokenArrayLength) + } + ArrayOfUserTokenTypeStart(builder) + ArrayOfUserTokenTypeAddUserTokenArray(builder, userTokenArrayOffset) + return ArrayOfUserTokenTypeEnd(builder) +} + +func (rcv *ArrayOfUserTokenType) UnPackTo(t *ArrayOfUserTokenTypeT) { + userTokenArrayLength := rcv.UserTokenArrayLength() + t.UserTokenArray = make([]*UserTokenTypeT, userTokenArrayLength) + for j := 0; j < userTokenArrayLength; j++ { + x := UserTokenType{} + rcv.UserTokenArray(&x, j) + t.UserTokenArray[j] = x.UnPack() + } +} + +func (rcv *ArrayOfUserTokenType) UnPack() *ArrayOfUserTokenTypeT { + if rcv == nil { return nil } + t := &ArrayOfUserTokenTypeT{} + rcv.UnPackTo(t) + return t +} + +type ArrayOfUserTokenType struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayOfUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUserTokenType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayOfUserTokenType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayOfUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *ArrayOfUserTokenType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayOfUserTokenType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayOfUserTokenType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayOfUserTokenType) Table() flatbuffers.Table { + return rcv._tab +} + +/// The user token configuration of the OPC UA Server in an array +func (rcv *ArrayOfUserTokenType) UserTokenArray(obj *UserTokenType, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ArrayOfUserTokenType) UserTokenArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// The user token configuration of the OPC UA Server in an array +func ArrayOfUserTokenTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayOfUserTokenTypeAddUserTokenArray(builder *flatbuffers.Builder, userTokenArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(userTokenArray), 0) +} +func ArrayOfUserTokenTypeStartUserTokenArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayOfUserTokenTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/BuildInfoType.go b/pkg/fbs/comm/opcua/server/BuildInfoType.go index c5cabe4..29531ef 100644 --- a/pkg/fbs/comm/opcua/server/BuildInfoType.go +++ b/pkg/fbs/comm/opcua/server/BuildInfoType.go @@ -1,153 +1,165 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type BuildInfoTypeT struct { - BuildDate uint64 - BuildNumber string - ManufacturerName string - ProductName string - ProductUri string - SoftwareVersion string -} - -func (t *BuildInfoTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - buildNumberOffset := builder.CreateString(t.BuildNumber) - manufacturerNameOffset := builder.CreateString(t.ManufacturerName) - productNameOffset := builder.CreateString(t.ProductName) - productUriOffset := builder.CreateString(t.ProductUri) - softwareVersionOffset := builder.CreateString(t.SoftwareVersion) - BuildInfoTypeStart(builder) - BuildInfoTypeAddBuildDate(builder, t.BuildDate) - BuildInfoTypeAddBuildNumber(builder, buildNumberOffset) - BuildInfoTypeAddManufacturerName(builder, manufacturerNameOffset) - BuildInfoTypeAddProductName(builder, productNameOffset) - BuildInfoTypeAddProductUri(builder, productUriOffset) - BuildInfoTypeAddSoftwareVersion(builder, softwareVersionOffset) - return BuildInfoTypeEnd(builder) -} - -func (rcv *BuildInfoType) UnPackTo(t *BuildInfoTypeT) { - t.BuildDate = rcv.BuildDate() - t.BuildNumber = string(rcv.BuildNumber()) - t.ManufacturerName = string(rcv.ManufacturerName()) - t.ProductName = string(rcv.ProductName()) - t.ProductUri = string(rcv.ProductUri()) - t.SoftwareVersion = string(rcv.SoftwareVersion()) -} - -func (rcv *BuildInfoType) UnPack() *BuildInfoTypeT { - if rcv == nil { return nil } - t := &BuildInfoTypeT{} - rcv.UnPackTo(t) - return t -} - -type BuildInfoType struct { - _tab flatbuffers.Table -} - -func GetRootAsBuildInfoType(buf []byte, offset flatbuffers.UOffsetT) *BuildInfoType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &BuildInfoType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBuildInfoType(buf []byte, offset flatbuffers.UOffsetT) *BuildInfoType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &BuildInfoType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *BuildInfoType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *BuildInfoType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *BuildInfoType) BuildDate() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *BuildInfoType) MutateBuildDate(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func (rcv *BuildInfoType) BuildNumber() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *BuildInfoType) ManufacturerName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *BuildInfoType) ProductName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *BuildInfoType) ProductUri() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *BuildInfoType) SoftwareVersion() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func BuildInfoTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func BuildInfoTypeAddBuildDate(builder *flatbuffers.Builder, buildDate uint64) { - builder.PrependUint64Slot(0, buildDate, 0) -} -func BuildInfoTypeAddBuildNumber(builder *flatbuffers.Builder, buildNumber flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(buildNumber), 0) -} -func BuildInfoTypeAddManufacturerName(builder *flatbuffers.Builder, manufacturerName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(manufacturerName), 0) -} -func BuildInfoTypeAddProductName(builder *flatbuffers.Builder, productName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(productName), 0) -} -func BuildInfoTypeAddProductUri(builder *flatbuffers.Builder, productUri flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(productUri), 0) -} -func BuildInfoTypeAddSoftwareVersion(builder *flatbuffers.Builder, softwareVersion flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(softwareVersion), 0) -} -func BuildInfoTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type BuildInfoTypeT struct { + BuildDate uint64 + BuildNumber string + ManufacturerName string + ProductName string + ProductUri string + SoftwareVersion string +} + +func (t *BuildInfoTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + buildNumberOffset := builder.CreateString(t.BuildNumber) + manufacturerNameOffset := builder.CreateString(t.ManufacturerName) + productNameOffset := builder.CreateString(t.ProductName) + productUriOffset := builder.CreateString(t.ProductUri) + softwareVersionOffset := builder.CreateString(t.SoftwareVersion) + BuildInfoTypeStart(builder) + BuildInfoTypeAddBuildDate(builder, t.BuildDate) + BuildInfoTypeAddBuildNumber(builder, buildNumberOffset) + BuildInfoTypeAddManufacturerName(builder, manufacturerNameOffset) + BuildInfoTypeAddProductName(builder, productNameOffset) + BuildInfoTypeAddProductUri(builder, productUriOffset) + BuildInfoTypeAddSoftwareVersion(builder, softwareVersionOffset) + return BuildInfoTypeEnd(builder) +} + +func (rcv *BuildInfoType) UnPackTo(t *BuildInfoTypeT) { + t.BuildDate = rcv.BuildDate() + t.BuildNumber = string(rcv.BuildNumber()) + t.ManufacturerName = string(rcv.ManufacturerName()) + t.ProductName = string(rcv.ProductName()) + t.ProductUri = string(rcv.ProductUri()) + t.SoftwareVersion = string(rcv.SoftwareVersion()) +} + +func (rcv *BuildInfoType) UnPack() *BuildInfoTypeT { + if rcv == nil { return nil } + t := &BuildInfoTypeT{} + rcv.UnPackTo(t) + return t +} + +type BuildInfoType struct { + _tab flatbuffers.Table +} + +func GetRootAsBuildInfoType(buf []byte, offset flatbuffers.UOffsetT) *BuildInfoType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &BuildInfoType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBuildInfoType(buf []byte, offset flatbuffers.UOffsetT) *BuildInfoType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &BuildInfoType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *BuildInfoType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *BuildInfoType) Table() flatbuffers.Table { + return rcv._tab +} + +/// The build date of the OPC UA Server +func (rcv *BuildInfoType) BuildDate() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// The build date of the OPC UA Server +func (rcv *BuildInfoType) MutateBuildDate(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +/// The build number of the OPC UA Server +func (rcv *BuildInfoType) BuildNumber() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The build number of the OPC UA Server +/// The manufacturer name of the OPC UA Server +func (rcv *BuildInfoType) ManufacturerName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The manufacturer name of the OPC UA Server +/// The product name of the OPC UA Server +func (rcv *BuildInfoType) ProductName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The product name of the OPC UA Server +/// The product uri of the OPC UA Server +func (rcv *BuildInfoType) ProductUri() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The product uri of the OPC UA Server +/// The software version of the OPC UA Server +func (rcv *BuildInfoType) SoftwareVersion() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The software version of the OPC UA Server +func BuildInfoTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func BuildInfoTypeAddBuildDate(builder *flatbuffers.Builder, buildDate uint64) { + builder.PrependUint64Slot(0, buildDate, 0) +} +func BuildInfoTypeAddBuildNumber(builder *flatbuffers.Builder, buildNumber flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(buildNumber), 0) +} +func BuildInfoTypeAddManufacturerName(builder *flatbuffers.Builder, manufacturerName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(manufacturerName), 0) +} +func BuildInfoTypeAddProductName(builder *flatbuffers.Builder, productName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(productName), 0) +} +func BuildInfoTypeAddProductUri(builder *flatbuffers.Builder, productUri flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(productUri), 0) +} +func BuildInfoTypeAddSoftwareVersion(builder *flatbuffers.Builder, softwareVersion flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(softwareVersion), 0) +} +func BuildInfoTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/CertificateConfigType.go b/pkg/fbs/comm/opcua/server/CertificateConfigType.go index a5ec031..7483ba0 100644 --- a/pkg/fbs/comm/opcua/server/CertificateConfigType.go +++ b/pkg/fbs/comm/opcua/server/CertificateConfigType.go @@ -1,210 +1,210 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CertificateConfigTypeT struct { - Certificate string - Key string - Store uint32 - DaysValid uint32 - Algorithm string - KeyUsage string - KeyLength uint32 - IssuerIndex uint32 - Create bool -} - -func (t *CertificateConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - certificateOffset := builder.CreateString(t.Certificate) - keyOffset := builder.CreateString(t.Key) - algorithmOffset := builder.CreateString(t.Algorithm) - keyUsageOffset := builder.CreateString(t.KeyUsage) - CertificateConfigTypeStart(builder) - CertificateConfigTypeAddCertificate(builder, certificateOffset) - CertificateConfigTypeAddKey(builder, keyOffset) - CertificateConfigTypeAddStore(builder, t.Store) - CertificateConfigTypeAddDaysValid(builder, t.DaysValid) - CertificateConfigTypeAddAlgorithm(builder, algorithmOffset) - CertificateConfigTypeAddKeyUsage(builder, keyUsageOffset) - CertificateConfigTypeAddKeyLength(builder, t.KeyLength) - CertificateConfigTypeAddIssuerIndex(builder, t.IssuerIndex) - CertificateConfigTypeAddCreate(builder, t.Create) - return CertificateConfigTypeEnd(builder) -} - -func (rcv *CertificateConfigType) UnPackTo(t *CertificateConfigTypeT) { - t.Certificate = string(rcv.Certificate()) - t.Key = string(rcv.Key()) - t.Store = rcv.Store() - t.DaysValid = rcv.DaysValid() - t.Algorithm = string(rcv.Algorithm()) - t.KeyUsage = string(rcv.KeyUsage()) - t.KeyLength = rcv.KeyLength() - t.IssuerIndex = rcv.IssuerIndex() - t.Create = rcv.Create() -} - -func (rcv *CertificateConfigType) UnPack() *CertificateConfigTypeT { - if rcv == nil { return nil } - t := &CertificateConfigTypeT{} - rcv.UnPackTo(t) - return t -} - -type CertificateConfigType struct { - _tab flatbuffers.Table -} - -func GetRootAsCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *CertificateConfigType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CertificateConfigType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *CertificateConfigType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CertificateConfigType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CertificateConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CertificateConfigType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CertificateConfigType) Certificate() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CertificateConfigType) Key() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CertificateConfigType) Store() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CertificateConfigType) MutateStore(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *CertificateConfigType) DaysValid() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CertificateConfigType) MutateDaysValid(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *CertificateConfigType) Algorithm() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CertificateConfigType) KeyUsage() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CertificateConfigType) KeyLength() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CertificateConfigType) MutateKeyLength(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func (rcv *CertificateConfigType) IssuerIndex() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CertificateConfigType) MutateIssuerIndex(n uint32) bool { - return rcv._tab.MutateUint32Slot(18, n) -} - -func (rcv *CertificateConfigType) Create() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *CertificateConfigType) MutateCreate(n bool) bool { - return rcv._tab.MutateBoolSlot(20, n) -} - -func CertificateConfigTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func CertificateConfigTypeAddCertificate(builder *flatbuffers.Builder, certificate flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(certificate), 0) -} -func CertificateConfigTypeAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(key), 0) -} -func CertificateConfigTypeAddStore(builder *flatbuffers.Builder, store uint32) { - builder.PrependUint32Slot(2, store, 0) -} -func CertificateConfigTypeAddDaysValid(builder *flatbuffers.Builder, daysValid uint32) { - builder.PrependUint32Slot(3, daysValid, 0) -} -func CertificateConfigTypeAddAlgorithm(builder *flatbuffers.Builder, algorithm flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(algorithm), 0) -} -func CertificateConfigTypeAddKeyUsage(builder *flatbuffers.Builder, keyUsage flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(keyUsage), 0) -} -func CertificateConfigTypeAddKeyLength(builder *flatbuffers.Builder, keyLength uint32) { - builder.PrependUint32Slot(6, keyLength, 0) -} -func CertificateConfigTypeAddIssuerIndex(builder *flatbuffers.Builder, issuerIndex uint32) { - builder.PrependUint32Slot(7, issuerIndex, 0) -} -func CertificateConfigTypeAddCreate(builder *flatbuffers.Builder, create bool) { - builder.PrependBoolSlot(8, create, false) -} -func CertificateConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CertificateConfigTypeT struct { + Certificate string + Key string + Store uint32 + DaysValid uint32 + Algorithm string + KeyUsage string + KeyLength uint32 + IssuerIndex uint32 + Create bool +} + +func (t *CertificateConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + certificateOffset := builder.CreateString(t.Certificate) + keyOffset := builder.CreateString(t.Key) + algorithmOffset := builder.CreateString(t.Algorithm) + keyUsageOffset := builder.CreateString(t.KeyUsage) + CertificateConfigTypeStart(builder) + CertificateConfigTypeAddCertificate(builder, certificateOffset) + CertificateConfigTypeAddKey(builder, keyOffset) + CertificateConfigTypeAddStore(builder, t.Store) + CertificateConfigTypeAddDaysValid(builder, t.DaysValid) + CertificateConfigTypeAddAlgorithm(builder, algorithmOffset) + CertificateConfigTypeAddKeyUsage(builder, keyUsageOffset) + CertificateConfigTypeAddKeyLength(builder, t.KeyLength) + CertificateConfigTypeAddIssuerIndex(builder, t.IssuerIndex) + CertificateConfigTypeAddCreate(builder, t.Create) + return CertificateConfigTypeEnd(builder) +} + +func (rcv *CertificateConfigType) UnPackTo(t *CertificateConfigTypeT) { + t.Certificate = string(rcv.Certificate()) + t.Key = string(rcv.Key()) + t.Store = rcv.Store() + t.DaysValid = rcv.DaysValid() + t.Algorithm = string(rcv.Algorithm()) + t.KeyUsage = string(rcv.KeyUsage()) + t.KeyLength = rcv.KeyLength() + t.IssuerIndex = rcv.IssuerIndex() + t.Create = rcv.Create() +} + +func (rcv *CertificateConfigType) UnPack() *CertificateConfigTypeT { + if rcv == nil { return nil } + t := &CertificateConfigTypeT{} + rcv.UnPackTo(t) + return t +} + +type CertificateConfigType struct { + _tab flatbuffers.Table +} + +func GetRootAsCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *CertificateConfigType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CertificateConfigType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCertificateConfigType(buf []byte, offset flatbuffers.UOffsetT) *CertificateConfigType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CertificateConfigType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CertificateConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CertificateConfigType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CertificateConfigType) Certificate() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CertificateConfigType) Key() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CertificateConfigType) Store() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CertificateConfigType) MutateStore(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func (rcv *CertificateConfigType) DaysValid() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CertificateConfigType) MutateDaysValid(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func (rcv *CertificateConfigType) Algorithm() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CertificateConfigType) KeyUsage() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CertificateConfigType) KeyLength() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CertificateConfigType) MutateKeyLength(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +func (rcv *CertificateConfigType) IssuerIndex() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CertificateConfigType) MutateIssuerIndex(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +func (rcv *CertificateConfigType) Create() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *CertificateConfigType) MutateCreate(n bool) bool { + return rcv._tab.MutateBoolSlot(20, n) +} + +func CertificateConfigTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func CertificateConfigTypeAddCertificate(builder *flatbuffers.Builder, certificate flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(certificate), 0) +} +func CertificateConfigTypeAddKey(builder *flatbuffers.Builder, key flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(key), 0) +} +func CertificateConfigTypeAddStore(builder *flatbuffers.Builder, store uint32) { + builder.PrependUint32Slot(2, store, 0) +} +func CertificateConfigTypeAddDaysValid(builder *flatbuffers.Builder, daysValid uint32) { + builder.PrependUint32Slot(3, daysValid, 0) +} +func CertificateConfigTypeAddAlgorithm(builder *flatbuffers.Builder, algorithm flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(algorithm), 0) +} +func CertificateConfigTypeAddKeyUsage(builder *flatbuffers.Builder, keyUsage flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(keyUsage), 0) +} +func CertificateConfigTypeAddKeyLength(builder *flatbuffers.Builder, keyLength uint32) { + builder.PrependUint32Slot(6, keyLength, 0) +} +func CertificateConfigTypeAddIssuerIndex(builder *flatbuffers.Builder, issuerIndex uint32) { + builder.PrependUint32Slot(7, issuerIndex, 0) +} +func CertificateConfigTypeAddCreate(builder *flatbuffers.Builder, create bool) { + builder.PrependBoolSlot(8, create, false) +} +func CertificateConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/EnumServerState.go b/pkg/fbs/comm/opcua/server/EnumServerState.go index 67c2259..afa4367 100644 --- a/pkg/fbs/comm/opcua/server/EnumServerState.go +++ b/pkg/fbs/comm/opcua/server/EnumServerState.go @@ -1,50 +1,61 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import "strconv" - -type EnumServerState int32 - -const ( - EnumServerStateRUNNING EnumServerState = 0 - EnumServerStateFAILED EnumServerState = 1 - EnumServerStateNOCONFIGURATION EnumServerState = 2 - EnumServerStateSUSPENDED EnumServerState = 3 - EnumServerStateSHUTDOWN EnumServerState = 4 - EnumServerStateTEST EnumServerState = 5 - EnumServerStateCOMMUNICATIONFAULT EnumServerState = 6 - EnumServerStateUNKNOWN EnumServerState = 7 - EnumServerStateMAX_ENUM_VALUE EnumServerState = 2147483647 -) - -var EnumNamesEnumServerState = map[EnumServerState]string{ - EnumServerStateRUNNING: "RUNNING", - EnumServerStateFAILED: "FAILED", - EnumServerStateNOCONFIGURATION: "NOCONFIGURATION", - EnumServerStateSUSPENDED: "SUSPENDED", - EnumServerStateSHUTDOWN: "SHUTDOWN", - EnumServerStateTEST: "TEST", - EnumServerStateCOMMUNICATIONFAULT: "COMMUNICATIONFAULT", - EnumServerStateUNKNOWN: "UNKNOWN", - EnumServerStateMAX_ENUM_VALUE: "MAX_ENUM_VALUE", -} - -var EnumValuesEnumServerState = map[string]EnumServerState{ - "RUNNING": EnumServerStateRUNNING, - "FAILED": EnumServerStateFAILED, - "NOCONFIGURATION": EnumServerStateNOCONFIGURATION, - "SUSPENDED": EnumServerStateSUSPENDED, - "SHUTDOWN": EnumServerStateSHUTDOWN, - "TEST": EnumServerStateTEST, - "COMMUNICATIONFAULT": EnumServerStateCOMMUNICATIONFAULT, - "UNKNOWN": EnumServerStateUNKNOWN, - "MAX_ENUM_VALUE": EnumServerStateMAX_ENUM_VALUE, -} - -func (v EnumServerState) String() string { - if s, ok := EnumNamesEnumServerState[v]; ok { - return s - } - return "EnumServerState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import "strconv" + +type EnumServerState int32 + +const ( + /// The OPC UA Server is running normally + /// This is the usual state for the OPC UA Server + EnumServerStateRUNNING EnumServerState = 0 + /// A vendor-specific fatal error has occurred within the OPC UA Server + /// The OPC UA Server is not working. Please have a look in the logbook for errors. + EnumServerStateFAILED EnumServerState = 1 + /// The OPC UA Server is running but has no configuration information loaded and therefore does not transfer data + EnumServerStateNOCONFIGURATION EnumServerState = 2 + /// The OPC UA Server has been temporarily suspended by some vendor-specific method and is not receiving or sending data + EnumServerStateSUSPENDED EnumServerState = 3 + /// The OPC UA Server initiated a shut down or is in the process of shutting down + EnumServerStateSHUTDOWN EnumServerState = 4 + /// The OPC UA Server is in Test Mode + /// The outputs are disconnected from the real hardware, but the OPC UA Server will otherwise behave normally + EnumServerStateTEST EnumServerState = 5 + /// The OPC UA Server is running properly, but is having difficulty accessing data from its data sources + EnumServerStateCOMMUNICATIONFAULT EnumServerState = 6 + /// This state is used only to indicate that the OPC UA Server does not know the state of underlying system + EnumServerStateUNKNOWN EnumServerState = 7 + EnumServerStateMAX_ENUM_VALUE EnumServerState = 2147483647 +) + +var EnumNamesEnumServerState = map[EnumServerState]string{ + EnumServerStateRUNNING: "RUNNING", + EnumServerStateFAILED: "FAILED", + EnumServerStateNOCONFIGURATION: "NOCONFIGURATION", + EnumServerStateSUSPENDED: "SUSPENDED", + EnumServerStateSHUTDOWN: "SHUTDOWN", + EnumServerStateTEST: "TEST", + EnumServerStateCOMMUNICATIONFAULT: "COMMUNICATIONFAULT", + EnumServerStateUNKNOWN: "UNKNOWN", + EnumServerStateMAX_ENUM_VALUE: "MAX_ENUM_VALUE", +} + +var EnumValuesEnumServerState = map[string]EnumServerState{ + "RUNNING": EnumServerStateRUNNING, + "FAILED": EnumServerStateFAILED, + "NOCONFIGURATION": EnumServerStateNOCONFIGURATION, + "SUSPENDED": EnumServerStateSUSPENDED, + "SHUTDOWN": EnumServerStateSHUTDOWN, + "TEST": EnumServerStateTEST, + "COMMUNICATIONFAULT": EnumServerStateCOMMUNICATIONFAULT, + "UNKNOWN": EnumServerStateUNKNOWN, + "MAX_ENUM_VALUE": EnumServerStateMAX_ENUM_VALUE, +} + +func (v EnumServerState) String() string { + if s, ok := EnumNamesEnumServerState[v]; ok { + return s + } + return "EnumServerState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/opcua/server/HeapDiagType.go b/pkg/fbs/comm/opcua/server/HeapDiagType.go index 3a20087..af81c1b 100644 --- a/pkg/fbs/comm/opcua/server/HeapDiagType.go +++ b/pkg/fbs/comm/opcua/server/HeapDiagType.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type HeapDiagTypeT struct { - UsedMemory uint32 - MaxUsedMemory uint32 -} - -func (t *HeapDiagTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - HeapDiagTypeStart(builder) - HeapDiagTypeAddUsedMemory(builder, t.UsedMemory) - HeapDiagTypeAddMaxUsedMemory(builder, t.MaxUsedMemory) - return HeapDiagTypeEnd(builder) -} - -func (rcv *HeapDiagType) UnPackTo(t *HeapDiagTypeT) { - t.UsedMemory = rcv.UsedMemory() - t.MaxUsedMemory = rcv.MaxUsedMemory() -} - -func (rcv *HeapDiagType) UnPack() *HeapDiagTypeT { - if rcv == nil { return nil } - t := &HeapDiagTypeT{} - rcv.UnPackTo(t) - return t -} - -type HeapDiagType struct { - _tab flatbuffers.Table -} - -func GetRootAsHeapDiagType(buf []byte, offset flatbuffers.UOffsetT) *HeapDiagType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &HeapDiagType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsHeapDiagType(buf []byte, offset flatbuffers.UOffsetT) *HeapDiagType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &HeapDiagType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *HeapDiagType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *HeapDiagType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *HeapDiagType) UsedMemory() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *HeapDiagType) MutateUsedMemory(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *HeapDiagType) MaxUsedMemory() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *HeapDiagType) MutateMaxUsedMemory(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func HeapDiagTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func HeapDiagTypeAddUsedMemory(builder *flatbuffers.Builder, usedMemory uint32) { - builder.PrependUint32Slot(0, usedMemory, 0) -} -func HeapDiagTypeAddMaxUsedMemory(builder *flatbuffers.Builder, maxUsedMemory uint32) { - builder.PrependUint32Slot(1, maxUsedMemory, 0) -} -func HeapDiagTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type HeapDiagTypeT struct { + UsedMemory uint32 + MaxUsedMemory uint32 +} + +func (t *HeapDiagTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + HeapDiagTypeStart(builder) + HeapDiagTypeAddUsedMemory(builder, t.UsedMemory) + HeapDiagTypeAddMaxUsedMemory(builder, t.MaxUsedMemory) + return HeapDiagTypeEnd(builder) +} + +func (rcv *HeapDiagType) UnPackTo(t *HeapDiagTypeT) { + t.UsedMemory = rcv.UsedMemory() + t.MaxUsedMemory = rcv.MaxUsedMemory() +} + +func (rcv *HeapDiagType) UnPack() *HeapDiagTypeT { + if rcv == nil { return nil } + t := &HeapDiagTypeT{} + rcv.UnPackTo(t) + return t +} + +type HeapDiagType struct { + _tab flatbuffers.Table +} + +func GetRootAsHeapDiagType(buf []byte, offset flatbuffers.UOffsetT) *HeapDiagType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &HeapDiagType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsHeapDiagType(buf []byte, offset flatbuffers.UOffsetT) *HeapDiagType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &HeapDiagType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *HeapDiagType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *HeapDiagType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *HeapDiagType) UsedMemory() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *HeapDiagType) MutateUsedMemory(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *HeapDiagType) MaxUsedMemory() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *HeapDiagType) MutateMaxUsedMemory(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func HeapDiagTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func HeapDiagTypeAddUsedMemory(builder *flatbuffers.Builder, usedMemory uint32) { + builder.PrependUint32Slot(0, usedMemory, 0) +} +func HeapDiagTypeAddMaxUsedMemory(builder *flatbuffers.Builder, maxUsedMemory uint32) { + builder.PrependUint32Slot(1, maxUsedMemory, 0) +} +func HeapDiagTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/IndexType.go b/pkg/fbs/comm/opcua/server/IndexType.go index fcc90d6..f70e8b7 100644 --- a/pkg/fbs/comm/opcua/server/IndexType.go +++ b/pkg/fbs/comm/opcua/server/IndexType.go @@ -1,56 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type IndexType struct { - _tab flatbuffers.Table -} - -func GetRootAsIndexType(buf []byte, offset flatbuffers.UOffsetT) *IndexType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &IndexType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsIndexType(buf []byte, offset flatbuffers.UOffsetT) *IndexType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &IndexType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *IndexType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *IndexType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *IndexType) Index() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *IndexType) MutateIndex(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func IndexTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func IndexTypeAddIndex(builder *flatbuffers.Builder, index uint32) { - builder.PrependUint32Slot(0, index, 0) -} -func IndexTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type IndexTypeT struct { + Index uint32 +} + +func (t *IndexTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + IndexTypeStart(builder) + IndexTypeAddIndex(builder, t.Index) + return IndexTypeEnd(builder) +} + +func (rcv *IndexType) UnPackTo(t *IndexTypeT) { + t.Index = rcv.Index() +} + +func (rcv *IndexType) UnPack() *IndexTypeT { + if rcv == nil { return nil } + t := &IndexTypeT{} + rcv.UnPackTo(t) + return t +} + +type IndexType struct { + _tab flatbuffers.Table +} + +func GetRootAsIndexType(buf []byte, offset flatbuffers.UOffsetT) *IndexType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &IndexType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsIndexType(buf []byte, offset flatbuffers.UOffsetT) *IndexType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &IndexType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *IndexType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *IndexType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *IndexType) Index() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *IndexType) MutateIndex(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func IndexTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func IndexTypeAddIndex(builder *flatbuffers.Builder, index uint32) { + builder.PrependUint32Slot(0, index, 0) +} +func IndexTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/ObjectPoolDiagType.go b/pkg/fbs/comm/opcua/server/ObjectPoolDiagType.go index d8b50af..800eb3f 100644 --- a/pkg/fbs/comm/opcua/server/ObjectPoolDiagType.go +++ b/pkg/fbs/comm/opcua/server/ObjectPoolDiagType.go @@ -1,129 +1,129 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ObjectPoolDiagTypeT struct { - Name string - UsedObjects uint32 - MaxUsedObjects uint32 - NumObjects uint32 -} - -func (t *ObjectPoolDiagTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - ObjectPoolDiagTypeStart(builder) - ObjectPoolDiagTypeAddName(builder, nameOffset) - ObjectPoolDiagTypeAddUsedObjects(builder, t.UsedObjects) - ObjectPoolDiagTypeAddMaxUsedObjects(builder, t.MaxUsedObjects) - ObjectPoolDiagTypeAddNumObjects(builder, t.NumObjects) - return ObjectPoolDiagTypeEnd(builder) -} - -func (rcv *ObjectPoolDiagType) UnPackTo(t *ObjectPoolDiagTypeT) { - t.Name = string(rcv.Name()) - t.UsedObjects = rcv.UsedObjects() - t.MaxUsedObjects = rcv.MaxUsedObjects() - t.NumObjects = rcv.NumObjects() -} - -func (rcv *ObjectPoolDiagType) UnPack() *ObjectPoolDiagTypeT { - if rcv == nil { return nil } - t := &ObjectPoolDiagTypeT{} - rcv.UnPackTo(t) - return t -} - -type ObjectPoolDiagType struct { - _tab flatbuffers.Table -} - -func GetRootAsObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ObjectPoolDiagType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ObjectPoolDiagType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ObjectPoolDiagType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ObjectPoolDiagType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ObjectPoolDiagType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ObjectPoolDiagType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ObjectPoolDiagType) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ObjectPoolDiagType) UsedObjects() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectPoolDiagType) MutateUsedObjects(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *ObjectPoolDiagType) MaxUsedObjects() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectPoolDiagType) MutateMaxUsedObjects(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *ObjectPoolDiagType) NumObjects() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ObjectPoolDiagType) MutateNumObjects(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func ObjectPoolDiagTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func ObjectPoolDiagTypeAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func ObjectPoolDiagTypeAddUsedObjects(builder *flatbuffers.Builder, usedObjects uint32) { - builder.PrependUint32Slot(1, usedObjects, 0) -} -func ObjectPoolDiagTypeAddMaxUsedObjects(builder *flatbuffers.Builder, maxUsedObjects uint32) { - builder.PrependUint32Slot(2, maxUsedObjects, 0) -} -func ObjectPoolDiagTypeAddNumObjects(builder *flatbuffers.Builder, numObjects uint32) { - builder.PrependUint32Slot(3, numObjects, 0) -} -func ObjectPoolDiagTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ObjectPoolDiagTypeT struct { + Name string + UsedObjects uint32 + MaxUsedObjects uint32 + NumObjects uint32 +} + +func (t *ObjectPoolDiagTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + ObjectPoolDiagTypeStart(builder) + ObjectPoolDiagTypeAddName(builder, nameOffset) + ObjectPoolDiagTypeAddUsedObjects(builder, t.UsedObjects) + ObjectPoolDiagTypeAddMaxUsedObjects(builder, t.MaxUsedObjects) + ObjectPoolDiagTypeAddNumObjects(builder, t.NumObjects) + return ObjectPoolDiagTypeEnd(builder) +} + +func (rcv *ObjectPoolDiagType) UnPackTo(t *ObjectPoolDiagTypeT) { + t.Name = string(rcv.Name()) + t.UsedObjects = rcv.UsedObjects() + t.MaxUsedObjects = rcv.MaxUsedObjects() + t.NumObjects = rcv.NumObjects() +} + +func (rcv *ObjectPoolDiagType) UnPack() *ObjectPoolDiagTypeT { + if rcv == nil { return nil } + t := &ObjectPoolDiagTypeT{} + rcv.UnPackTo(t) + return t +} + +type ObjectPoolDiagType struct { + _tab flatbuffers.Table +} + +func GetRootAsObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ObjectPoolDiagType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ObjectPoolDiagType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsObjectPoolDiagType(buf []byte, offset flatbuffers.UOffsetT) *ObjectPoolDiagType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ObjectPoolDiagType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ObjectPoolDiagType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ObjectPoolDiagType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ObjectPoolDiagType) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ObjectPoolDiagType) UsedObjects() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectPoolDiagType) MutateUsedObjects(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *ObjectPoolDiagType) MaxUsedObjects() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectPoolDiagType) MutateMaxUsedObjects(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func (rcv *ObjectPoolDiagType) NumObjects() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ObjectPoolDiagType) MutateNumObjects(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func ObjectPoolDiagTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func ObjectPoolDiagTypeAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func ObjectPoolDiagTypeAddUsedObjects(builder *flatbuffers.Builder, usedObjects uint32) { + builder.PrependUint32Slot(1, usedObjects, 0) +} +func ObjectPoolDiagTypeAddMaxUsedObjects(builder *flatbuffers.Builder, maxUsedObjects uint32) { + builder.PrependUint32Slot(2, maxUsedObjects, 0) +} +func ObjectPoolDiagTypeAddNumObjects(builder *flatbuffers.Builder, numObjects uint32) { + builder.PrependUint32Slot(3, numObjects, 0) +} +func ObjectPoolDiagTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/Sample1TypeMain.go b/pkg/fbs/comm/opcua/server/Sample1TypeMain.go index f125789..1f706c9 100644 --- a/pkg/fbs/comm/opcua/server/Sample1TypeMain.go +++ b/pkg/fbs/comm/opcua/server/Sample1TypeMain.go @@ -1,140 +1,199 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Sample1TypeMain struct { - _tab flatbuffers.Table -} - -func GetRootAsSample1TypeMain(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeMain { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Sample1TypeMain{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSample1TypeMain(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeMain { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Sample1TypeMain{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Sample1TypeMain) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Sample1TypeMain) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Sample1TypeMain) A1() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Sample1TypeMain) A2() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Sample1TypeMain) MutateA2(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Sample1TypeMain) A3(obj *Sample1TypeSub1Sub) *Sample1TypeSub1Sub { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Sample1TypeSub1Sub) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Sample1TypeMain) A4(obj *Sample1TypeSub1Sub, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Sample1TypeMain) A4Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Sample1TypeMain) A5() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Sample1TypeMain) MutateA5(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *Sample1TypeMain) A6(obj *Sample1TypeSub2Sub) *Sample1TypeSub2Sub { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Sample1TypeSub2Sub) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func Sample1TypeMainStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func Sample1TypeMainAddA1(builder *flatbuffers.Builder, a1 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(a1), 0) -} -func Sample1TypeMainAddA2(builder *flatbuffers.Builder, a2 uint32) { - builder.PrependUint32Slot(1, a2, 0) -} -func Sample1TypeMainAddA3(builder *flatbuffers.Builder, a3 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(a3), 0) -} -func Sample1TypeMainAddA4(builder *flatbuffers.Builder, a4 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(a4), 0) -} -func Sample1TypeMainStartA4Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func Sample1TypeMainAddA5(builder *flatbuffers.Builder, a5 uint32) { - builder.PrependUint32Slot(4, a5, 0) -} -func Sample1TypeMainAddA6(builder *flatbuffers.Builder, a6 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(a6), 0) -} -func Sample1TypeMainEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Sample1TypeMainT struct { + A1 string + A2 uint32 + A3 *Sample1TypeSub1SubT + A4 []*Sample1TypeSub1SubT + A5 uint32 + A6 *Sample1TypeSub2SubT +} + +func (t *Sample1TypeMainT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + a1Offset := builder.CreateString(t.A1) + a3Offset := t.A3.Pack(builder) + a4Offset := flatbuffers.UOffsetT(0) + if t.A4 != nil { + a4Length := len(t.A4) + a4Offsets := make([]flatbuffers.UOffsetT, a4Length) + for j := 0; j < a4Length; j++ { + a4Offsets[j] = t.A4[j].Pack(builder) + } + Sample1TypeMainStartA4Vector(builder, a4Length) + for j := a4Length - 1; j >= 0; j-- { + builder.PrependUOffsetT(a4Offsets[j]) + } + a4Offset = builder.EndVector(a4Length) + } + a6Offset := t.A6.Pack(builder) + Sample1TypeMainStart(builder) + Sample1TypeMainAddA1(builder, a1Offset) + Sample1TypeMainAddA2(builder, t.A2) + Sample1TypeMainAddA3(builder, a3Offset) + Sample1TypeMainAddA4(builder, a4Offset) + Sample1TypeMainAddA5(builder, t.A5) + Sample1TypeMainAddA6(builder, a6Offset) + return Sample1TypeMainEnd(builder) +} + +func (rcv *Sample1TypeMain) UnPackTo(t *Sample1TypeMainT) { + t.A1 = string(rcv.A1()) + t.A2 = rcv.A2() + t.A3 = rcv.A3(nil).UnPack() + a4Length := rcv.A4Length() + t.A4 = make([]*Sample1TypeSub1SubT, a4Length) + for j := 0; j < a4Length; j++ { + x := Sample1TypeSub1Sub{} + rcv.A4(&x, j) + t.A4[j] = x.UnPack() + } + t.A5 = rcv.A5() + t.A6 = rcv.A6(nil).UnPack() +} + +func (rcv *Sample1TypeMain) UnPack() *Sample1TypeMainT { + if rcv == nil { return nil } + t := &Sample1TypeMainT{} + rcv.UnPackTo(t) + return t +} + +type Sample1TypeMain struct { + _tab flatbuffers.Table +} + +func GetRootAsSample1TypeMain(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeMain { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Sample1TypeMain{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSample1TypeMain(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeMain { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Sample1TypeMain{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Sample1TypeMain) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Sample1TypeMain) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Sample1TypeMain) A1() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Sample1TypeMain) A2() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Sample1TypeMain) MutateA2(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *Sample1TypeMain) A3(obj *Sample1TypeSub1Sub) *Sample1TypeSub1Sub { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Sample1TypeSub1Sub) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Sample1TypeMain) A4(obj *Sample1TypeSub1Sub, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Sample1TypeMain) A4Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Sample1TypeMain) A5() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Sample1TypeMain) MutateA5(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *Sample1TypeMain) A6(obj *Sample1TypeSub2Sub) *Sample1TypeSub2Sub { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Sample1TypeSub2Sub) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func Sample1TypeMainStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func Sample1TypeMainAddA1(builder *flatbuffers.Builder, a1 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(a1), 0) +} +func Sample1TypeMainAddA2(builder *flatbuffers.Builder, a2 uint32) { + builder.PrependUint32Slot(1, a2, 0) +} +func Sample1TypeMainAddA3(builder *flatbuffers.Builder, a3 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(a3), 0) +} +func Sample1TypeMainAddA4(builder *flatbuffers.Builder, a4 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(a4), 0) +} +func Sample1TypeMainStartA4Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func Sample1TypeMainAddA5(builder *flatbuffers.Builder, a5 uint32) { + builder.PrependUint32Slot(4, a5, 0) +} +func Sample1TypeMainAddA6(builder *flatbuffers.Builder, a6 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(a6), 0) +} +func Sample1TypeMainEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/Sample1TypeSub1Sub.go b/pkg/fbs/comm/opcua/server/Sample1TypeSub1Sub.go index 3ed4ef1..ec96648 100644 --- a/pkg/fbs/comm/opcua/server/Sample1TypeSub1Sub.go +++ b/pkg/fbs/comm/opcua/server/Sample1TypeSub1Sub.go @@ -1,88 +1,126 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Sample1TypeSub1Sub struct { - _tab flatbuffers.Table -} - -func GetRootAsSample1TypeSub1Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub1Sub { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Sample1TypeSub1Sub{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSample1TypeSub1Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub1Sub { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Sample1TypeSub1Sub{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Sample1TypeSub1Sub) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Sample1TypeSub1Sub) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Sample1TypeSub1Sub) B1() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Sample1TypeSub1Sub) MutateB1(n int32) bool { - return rcv._tab.MutateInt32Slot(4, n) -} - -func (rcv *Sample1TypeSub1Sub) B2(j int) int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *Sample1TypeSub1Sub) B2Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Sample1TypeSub1Sub) MutateB2(j int, n int32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func Sample1TypeSub1SubStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Sample1TypeSub1SubAddB1(builder *flatbuffers.Builder, b1 int32) { - builder.PrependInt32Slot(0, b1, 0) -} -func Sample1TypeSub1SubAddB2(builder *flatbuffers.Builder, b2 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(b2), 0) -} -func Sample1TypeSub1SubStartB2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func Sample1TypeSub1SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Sample1TypeSub1SubT struct { + B1 int32 + B2 []int32 +} + +func (t *Sample1TypeSub1SubT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + b2Offset := flatbuffers.UOffsetT(0) + if t.B2 != nil { + b2Length := len(t.B2) + Sample1TypeSub1SubStartB2Vector(builder, b2Length) + for j := b2Length - 1; j >= 0; j-- { + builder.PrependInt32(t.B2[j]) + } + b2Offset = builder.EndVector(b2Length) + } + Sample1TypeSub1SubStart(builder) + Sample1TypeSub1SubAddB1(builder, t.B1) + Sample1TypeSub1SubAddB2(builder, b2Offset) + return Sample1TypeSub1SubEnd(builder) +} + +func (rcv *Sample1TypeSub1Sub) UnPackTo(t *Sample1TypeSub1SubT) { + t.B1 = rcv.B1() + b2Length := rcv.B2Length() + t.B2 = make([]int32, b2Length) + for j := 0; j < b2Length; j++ { + t.B2[j] = rcv.B2(j) + } +} + +func (rcv *Sample1TypeSub1Sub) UnPack() *Sample1TypeSub1SubT { + if rcv == nil { return nil } + t := &Sample1TypeSub1SubT{} + rcv.UnPackTo(t) + return t +} + +type Sample1TypeSub1Sub struct { + _tab flatbuffers.Table +} + +func GetRootAsSample1TypeSub1Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub1Sub { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Sample1TypeSub1Sub{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSample1TypeSub1Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub1Sub { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Sample1TypeSub1Sub{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Sample1TypeSub1Sub) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Sample1TypeSub1Sub) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Sample1TypeSub1Sub) B1() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Sample1TypeSub1Sub) MutateB1(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +func (rcv *Sample1TypeSub1Sub) B2(j int) int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *Sample1TypeSub1Sub) B2Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Sample1TypeSub1Sub) MutateB2(j int, n int32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func Sample1TypeSub1SubStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Sample1TypeSub1SubAddB1(builder *flatbuffers.Builder, b1 int32) { + builder.PrependInt32Slot(0, b1, 0) +} +func Sample1TypeSub1SubAddB2(builder *flatbuffers.Builder, b2 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(b2), 0) +} +func Sample1TypeSub1SubStartB2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func Sample1TypeSub1SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/Sample1TypeSub2Sub.go b/pkg/fbs/comm/opcua/server/Sample1TypeSub2Sub.go index 3e030cb..26fcce7 100644 --- a/pkg/fbs/comm/opcua/server/Sample1TypeSub2Sub.go +++ b/pkg/fbs/comm/opcua/server/Sample1TypeSub2Sub.go @@ -1,89 +1,128 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Sample1TypeSub2Sub struct { - _tab flatbuffers.Table -} - -func GetRootAsSample1TypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub2Sub { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Sample1TypeSub2Sub{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSample1TypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub2Sub { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Sample1TypeSub2Sub{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Sample1TypeSub2Sub) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Sample1TypeSub2Sub) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Sample1TypeSub2Sub) C1(obj *Sample1TypeSub3Sub) *Sample1TypeSub3Sub { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Sample1TypeSub3Sub) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Sample1TypeSub2Sub) C2(j int) int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *Sample1TypeSub2Sub) C2Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Sample1TypeSub2Sub) MutateC2(j int, n int32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func Sample1TypeSub2SubStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Sample1TypeSub2SubAddC1(builder *flatbuffers.Builder, c1 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(c1), 0) -} -func Sample1TypeSub2SubAddC2(builder *flatbuffers.Builder, c2 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(c2), 0) -} -func Sample1TypeSub2SubStartC2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func Sample1TypeSub2SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Sample1TypeSub2SubT struct { + C1 *Sample1TypeSub3SubT + C2 []int32 +} + +func (t *Sample1TypeSub2SubT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + c1Offset := t.C1.Pack(builder) + c2Offset := flatbuffers.UOffsetT(0) + if t.C2 != nil { + c2Length := len(t.C2) + Sample1TypeSub2SubStartC2Vector(builder, c2Length) + for j := c2Length - 1; j >= 0; j-- { + builder.PrependInt32(t.C2[j]) + } + c2Offset = builder.EndVector(c2Length) + } + Sample1TypeSub2SubStart(builder) + Sample1TypeSub2SubAddC1(builder, c1Offset) + Sample1TypeSub2SubAddC2(builder, c2Offset) + return Sample1TypeSub2SubEnd(builder) +} + +func (rcv *Sample1TypeSub2Sub) UnPackTo(t *Sample1TypeSub2SubT) { + t.C1 = rcv.C1(nil).UnPack() + c2Length := rcv.C2Length() + t.C2 = make([]int32, c2Length) + for j := 0; j < c2Length; j++ { + t.C2[j] = rcv.C2(j) + } +} + +func (rcv *Sample1TypeSub2Sub) UnPack() *Sample1TypeSub2SubT { + if rcv == nil { return nil } + t := &Sample1TypeSub2SubT{} + rcv.UnPackTo(t) + return t +} + +type Sample1TypeSub2Sub struct { + _tab flatbuffers.Table +} + +func GetRootAsSample1TypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub2Sub { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Sample1TypeSub2Sub{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSample1TypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub2Sub { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Sample1TypeSub2Sub{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Sample1TypeSub2Sub) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Sample1TypeSub2Sub) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Sample1TypeSub2Sub) C1(obj *Sample1TypeSub3Sub) *Sample1TypeSub3Sub { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Sample1TypeSub3Sub) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Sample1TypeSub2Sub) C2(j int) int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *Sample1TypeSub2Sub) C2Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Sample1TypeSub2Sub) MutateC2(j int, n int32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func Sample1TypeSub2SubStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Sample1TypeSub2SubAddC1(builder *flatbuffers.Builder, c1 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(c1), 0) +} +func Sample1TypeSub2SubAddC2(builder *flatbuffers.Builder, c2 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(c2), 0) +} +func Sample1TypeSub2SubStartC2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func Sample1TypeSub2SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/Sample1TypeSub3Sub.go b/pkg/fbs/comm/opcua/server/Sample1TypeSub3Sub.go index 75b4e86..e1e9d41 100644 --- a/pkg/fbs/comm/opcua/server/Sample1TypeSub3Sub.go +++ b/pkg/fbs/comm/opcua/server/Sample1TypeSub3Sub.go @@ -1,88 +1,126 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Sample1TypeSub3Sub struct { - _tab flatbuffers.Table -} - -func GetRootAsSample1TypeSub3Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub3Sub { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Sample1TypeSub3Sub{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSample1TypeSub3Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub3Sub { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Sample1TypeSub3Sub{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Sample1TypeSub3Sub) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Sample1TypeSub3Sub) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Sample1TypeSub3Sub) D1() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Sample1TypeSub3Sub) MutateD1(n int32) bool { - return rcv._tab.MutateInt32Slot(4, n) -} - -func (rcv *Sample1TypeSub3Sub) D2(j int) int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *Sample1TypeSub3Sub) D2Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Sample1TypeSub3Sub) MutateD2(j int, n int32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func Sample1TypeSub3SubStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Sample1TypeSub3SubAddD1(builder *flatbuffers.Builder, d1 int32) { - builder.PrependInt32Slot(0, d1, 0) -} -func Sample1TypeSub3SubAddD2(builder *flatbuffers.Builder, d2 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(d2), 0) -} -func Sample1TypeSub3SubStartD2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func Sample1TypeSub3SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Sample1TypeSub3SubT struct { + D1 int32 + D2 []int32 +} + +func (t *Sample1TypeSub3SubT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + d2Offset := flatbuffers.UOffsetT(0) + if t.D2 != nil { + d2Length := len(t.D2) + Sample1TypeSub3SubStartD2Vector(builder, d2Length) + for j := d2Length - 1; j >= 0; j-- { + builder.PrependInt32(t.D2[j]) + } + d2Offset = builder.EndVector(d2Length) + } + Sample1TypeSub3SubStart(builder) + Sample1TypeSub3SubAddD1(builder, t.D1) + Sample1TypeSub3SubAddD2(builder, d2Offset) + return Sample1TypeSub3SubEnd(builder) +} + +func (rcv *Sample1TypeSub3Sub) UnPackTo(t *Sample1TypeSub3SubT) { + t.D1 = rcv.D1() + d2Length := rcv.D2Length() + t.D2 = make([]int32, d2Length) + for j := 0; j < d2Length; j++ { + t.D2[j] = rcv.D2(j) + } +} + +func (rcv *Sample1TypeSub3Sub) UnPack() *Sample1TypeSub3SubT { + if rcv == nil { return nil } + t := &Sample1TypeSub3SubT{} + rcv.UnPackTo(t) + return t +} + +type Sample1TypeSub3Sub struct { + _tab flatbuffers.Table +} + +func GetRootAsSample1TypeSub3Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub3Sub { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Sample1TypeSub3Sub{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSample1TypeSub3Sub(buf []byte, offset flatbuffers.UOffsetT) *Sample1TypeSub3Sub { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Sample1TypeSub3Sub{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Sample1TypeSub3Sub) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Sample1TypeSub3Sub) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Sample1TypeSub3Sub) D1() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Sample1TypeSub3Sub) MutateD1(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +func (rcv *Sample1TypeSub3Sub) D2(j int) int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *Sample1TypeSub3Sub) D2Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Sample1TypeSub3Sub) MutateD2(j int, n int32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func Sample1TypeSub3SubStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Sample1TypeSub3SubAddD1(builder *flatbuffers.Builder, d1 int32) { + builder.PrependInt32Slot(0, d1, 0) +} +func Sample1TypeSub3SubAddD2(builder *flatbuffers.Builder, d2 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(d2), 0) +} +func Sample1TypeSub3SubStartD2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func Sample1TypeSub3SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/SampleType.go b/pkg/fbs/comm/opcua/server/SampleType.go index 2723fe6..85c9c91 100644 --- a/pkg/fbs/comm/opcua/server/SampleType.go +++ b/pkg/fbs/comm/opcua/server/SampleType.go @@ -1,498 +1,712 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SampleType struct { - _tab flatbuffers.Table -} - -func GetRootAsSampleType(buf []byte, offset flatbuffers.UOffsetT) *SampleType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SampleType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSampleType(buf []byte, offset flatbuffers.UOffsetT) *SampleType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SampleType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SampleType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SampleType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SampleType) AValueBool() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SampleType) MutateAValueBool(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *SampleType) AValueBoolArray(j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) - } - return false -} - -func (rcv *SampleType) AValueBoolArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateAValueBoolArray(j int, n bool) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *SampleType) BValueShort() int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleType) MutateBValueShort(n int16) bool { - return rcv._tab.MutateInt16Slot(8, n) -} - -func (rcv *SampleType) BValueShortArray(j int) int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SampleType) BValueShortArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateBValueShortArray(j int, n int16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func (rcv *SampleType) CValueUshort() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleType) MutateCValueUshort(n uint16) bool { - return rcv._tab.MutateUint16Slot(12, n) -} - -func (rcv *SampleType) CValueUshortArray(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SampleType) CValueUshortArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateCValueUshortArray(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func (rcv *SampleType) DValueInt() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleType) MutateDValueInt(n int32) bool { - return rcv._tab.MutateInt32Slot(16, n) -} - -func (rcv *SampleType) DValueIntArray(j int) int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SampleType) DValueIntArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateDValueIntArray(j int, n int32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SampleType) EValueUint() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleType) MutateEValueUint(n uint32) bool { - return rcv._tab.MutateUint32Slot(20, n) -} - -func (rcv *SampleType) EValueUintArray(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SampleType) EValueUintArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateEValueUintArray(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SampleType) FValueFloat() float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetFloat32(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *SampleType) MutateFValueFloat(n float32) bool { - return rcv._tab.MutateFloat32Slot(24, n) -} - -func (rcv *SampleType) FValueFloatArray(j int) float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SampleType) FValueFloatArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateFValueFloatArray(j int, n float32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SampleType) GValueLong() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleType) MutateGValueLong(n int64) bool { - return rcv._tab.MutateInt64Slot(28, n) -} - -func (rcv *SampleType) GValueLongArray(j int) int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SampleType) GValueLongArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateGValueLongArray(j int, n int64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *SampleType) HValueUlong() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleType) MutateHValueUlong(n uint64) bool { - return rcv._tab.MutateUint64Slot(32, n) -} - -func (rcv *SampleType) HValueUlongArray(j int) uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SampleType) HValueUlongArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateHValueUlongArray(j int, n uint64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *SampleType) IValueDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *SampleType) MutateIValueDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(36, n) -} - -func (rcv *SampleType) IValueDoubleArray(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SampleType) IValueDoubleArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleType) MutateIValueDoubleArray(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *SampleType) JValueString() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SampleType) JValueStringArray(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SampleType) JValueStringArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func SampleTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(20) -} -func SampleTypeAddAValueBool(builder *flatbuffers.Builder, aValueBool bool) { - builder.PrependBoolSlot(0, aValueBool, false) -} -func SampleTypeAddAValueBoolArray(builder *flatbuffers.Builder, aValueBoolArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(aValueBoolArray), 0) -} -func SampleTypeStartAValueBoolArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func SampleTypeAddBValueShort(builder *flatbuffers.Builder, bValueShort int16) { - builder.PrependInt16Slot(2, bValueShort, 0) -} -func SampleTypeAddBValueShortArray(builder *flatbuffers.Builder, bValueShortArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(bValueShortArray), 0) -} -func SampleTypeStartBValueShortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SampleTypeAddCValueUshort(builder *flatbuffers.Builder, cValueUshort uint16) { - builder.PrependUint16Slot(4, cValueUshort, 0) -} -func SampleTypeAddCValueUshortArray(builder *flatbuffers.Builder, cValueUshortArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(cValueUshortArray), 0) -} -func SampleTypeStartCValueUshortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SampleTypeAddDValueInt(builder *flatbuffers.Builder, dValueInt int32) { - builder.PrependInt32Slot(6, dValueInt, 0) -} -func SampleTypeAddDValueIntArray(builder *flatbuffers.Builder, dValueIntArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dValueIntArray), 0) -} -func SampleTypeStartDValueIntArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeAddEValueUint(builder *flatbuffers.Builder, eValueUint uint32) { - builder.PrependUint32Slot(8, eValueUint, 0) -} -func SampleTypeAddEValueUintArray(builder *flatbuffers.Builder, eValueUintArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(eValueUintArray), 0) -} -func SampleTypeStartEValueUintArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeAddFValueFloat(builder *flatbuffers.Builder, fValueFloat float32) { - builder.PrependFloat32Slot(10, fValueFloat, 0.0) -} -func SampleTypeAddFValueFloatArray(builder *flatbuffers.Builder, fValueFloatArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(fValueFloatArray), 0) -} -func SampleTypeStartFValueFloatArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeAddGValueLong(builder *flatbuffers.Builder, gValueLong int64) { - builder.PrependInt64Slot(12, gValueLong, 0) -} -func SampleTypeAddGValueLongArray(builder *flatbuffers.Builder, gValueLongArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(gValueLongArray), 0) -} -func SampleTypeStartGValueLongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SampleTypeAddHValueUlong(builder *flatbuffers.Builder, hValueUlong uint64) { - builder.PrependUint64Slot(14, hValueUlong, 0) -} -func SampleTypeAddHValueUlongArray(builder *flatbuffers.Builder, hValueUlongArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(15, flatbuffers.UOffsetT(hValueUlongArray), 0) -} -func SampleTypeStartHValueUlongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SampleTypeAddIValueDouble(builder *flatbuffers.Builder, iValueDouble float64) { - builder.PrependFloat64Slot(16, iValueDouble, 0.0) -} -func SampleTypeAddIValueDoubleArray(builder *flatbuffers.Builder, iValueDoubleArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(17, flatbuffers.UOffsetT(iValueDoubleArray), 0) -} -func SampleTypeStartIValueDoubleArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SampleTypeAddJValueString(builder *flatbuffers.Builder, jValueString flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(18, flatbuffers.UOffsetT(jValueString), 0) -} -func SampleTypeAddJValueStringArray(builder *flatbuffers.Builder, jValueStringArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(19, flatbuffers.UOffsetT(jValueStringArray), 0) -} -func SampleTypeStartJValueStringArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SampleTypeT struct { + AValueBool bool + AValueBoolArray []bool + BValueShort int16 + BValueShortArray []int16 + CValueUshort uint16 + CValueUshortArray []uint16 + DValueInt int32 + DValueIntArray []int32 + EValueUint uint32 + EValueUintArray []uint32 + FValueFloat float32 + FValueFloatArray []float32 + GValueLong int64 + GValueLongArray []int64 + HValueUlong uint64 + HValueUlongArray []uint64 + IValueDouble float64 + IValueDoubleArray []float64 + JValueString string + JValueStringArray []string +} + +func (t *SampleTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + aValueBoolArrayOffset := flatbuffers.UOffsetT(0) + if t.AValueBoolArray != nil { + aValueBoolArrayLength := len(t.AValueBoolArray) + SampleTypeStartAValueBoolArrayVector(builder, aValueBoolArrayLength) + for j := aValueBoolArrayLength - 1; j >= 0; j-- { + builder.PrependBool(t.AValueBoolArray[j]) + } + aValueBoolArrayOffset = builder.EndVector(aValueBoolArrayLength) + } + bValueShortArrayOffset := flatbuffers.UOffsetT(0) + if t.BValueShortArray != nil { + bValueShortArrayLength := len(t.BValueShortArray) + SampleTypeStartBValueShortArrayVector(builder, bValueShortArrayLength) + for j := bValueShortArrayLength - 1; j >= 0; j-- { + builder.PrependInt16(t.BValueShortArray[j]) + } + bValueShortArrayOffset = builder.EndVector(bValueShortArrayLength) + } + cValueUshortArrayOffset := flatbuffers.UOffsetT(0) + if t.CValueUshortArray != nil { + cValueUshortArrayLength := len(t.CValueUshortArray) + SampleTypeStartCValueUshortArrayVector(builder, cValueUshortArrayLength) + for j := cValueUshortArrayLength - 1; j >= 0; j-- { + builder.PrependUint16(t.CValueUshortArray[j]) + } + cValueUshortArrayOffset = builder.EndVector(cValueUshortArrayLength) + } + dValueIntArrayOffset := flatbuffers.UOffsetT(0) + if t.DValueIntArray != nil { + dValueIntArrayLength := len(t.DValueIntArray) + SampleTypeStartDValueIntArrayVector(builder, dValueIntArrayLength) + for j := dValueIntArrayLength - 1; j >= 0; j-- { + builder.PrependInt32(t.DValueIntArray[j]) + } + dValueIntArrayOffset = builder.EndVector(dValueIntArrayLength) + } + eValueUintArrayOffset := flatbuffers.UOffsetT(0) + if t.EValueUintArray != nil { + eValueUintArrayLength := len(t.EValueUintArray) + SampleTypeStartEValueUintArrayVector(builder, eValueUintArrayLength) + for j := eValueUintArrayLength - 1; j >= 0; j-- { + builder.PrependUint32(t.EValueUintArray[j]) + } + eValueUintArrayOffset = builder.EndVector(eValueUintArrayLength) + } + fValueFloatArrayOffset := flatbuffers.UOffsetT(0) + if t.FValueFloatArray != nil { + fValueFloatArrayLength := len(t.FValueFloatArray) + SampleTypeStartFValueFloatArrayVector(builder, fValueFloatArrayLength) + for j := fValueFloatArrayLength - 1; j >= 0; j-- { + builder.PrependFloat32(t.FValueFloatArray[j]) + } + fValueFloatArrayOffset = builder.EndVector(fValueFloatArrayLength) + } + gValueLongArrayOffset := flatbuffers.UOffsetT(0) + if t.GValueLongArray != nil { + gValueLongArrayLength := len(t.GValueLongArray) + SampleTypeStartGValueLongArrayVector(builder, gValueLongArrayLength) + for j := gValueLongArrayLength - 1; j >= 0; j-- { + builder.PrependInt64(t.GValueLongArray[j]) + } + gValueLongArrayOffset = builder.EndVector(gValueLongArrayLength) + } + hValueUlongArrayOffset := flatbuffers.UOffsetT(0) + if t.HValueUlongArray != nil { + hValueUlongArrayLength := len(t.HValueUlongArray) + SampleTypeStartHValueUlongArrayVector(builder, hValueUlongArrayLength) + for j := hValueUlongArrayLength - 1; j >= 0; j-- { + builder.PrependUint64(t.HValueUlongArray[j]) + } + hValueUlongArrayOffset = builder.EndVector(hValueUlongArrayLength) + } + iValueDoubleArrayOffset := flatbuffers.UOffsetT(0) + if t.IValueDoubleArray != nil { + iValueDoubleArrayLength := len(t.IValueDoubleArray) + SampleTypeStartIValueDoubleArrayVector(builder, iValueDoubleArrayLength) + for j := iValueDoubleArrayLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.IValueDoubleArray[j]) + } + iValueDoubleArrayOffset = builder.EndVector(iValueDoubleArrayLength) + } + jValueStringOffset := builder.CreateString(t.JValueString) + jValueStringArrayOffset := flatbuffers.UOffsetT(0) + if t.JValueStringArray != nil { + jValueStringArrayLength := len(t.JValueStringArray) + jValueStringArrayOffsets := make([]flatbuffers.UOffsetT, jValueStringArrayLength) + for j := 0; j < jValueStringArrayLength; j++ { + jValueStringArrayOffsets[j] = builder.CreateString(t.JValueStringArray[j]) + } + SampleTypeStartJValueStringArrayVector(builder, jValueStringArrayLength) + for j := jValueStringArrayLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(jValueStringArrayOffsets[j]) + } + jValueStringArrayOffset = builder.EndVector(jValueStringArrayLength) + } + SampleTypeStart(builder) + SampleTypeAddAValueBool(builder, t.AValueBool) + SampleTypeAddAValueBoolArray(builder, aValueBoolArrayOffset) + SampleTypeAddBValueShort(builder, t.BValueShort) + SampleTypeAddBValueShortArray(builder, bValueShortArrayOffset) + SampleTypeAddCValueUshort(builder, t.CValueUshort) + SampleTypeAddCValueUshortArray(builder, cValueUshortArrayOffset) + SampleTypeAddDValueInt(builder, t.DValueInt) + SampleTypeAddDValueIntArray(builder, dValueIntArrayOffset) + SampleTypeAddEValueUint(builder, t.EValueUint) + SampleTypeAddEValueUintArray(builder, eValueUintArrayOffset) + SampleTypeAddFValueFloat(builder, t.FValueFloat) + SampleTypeAddFValueFloatArray(builder, fValueFloatArrayOffset) + SampleTypeAddGValueLong(builder, t.GValueLong) + SampleTypeAddGValueLongArray(builder, gValueLongArrayOffset) + SampleTypeAddHValueUlong(builder, t.HValueUlong) + SampleTypeAddHValueUlongArray(builder, hValueUlongArrayOffset) + SampleTypeAddIValueDouble(builder, t.IValueDouble) + SampleTypeAddIValueDoubleArray(builder, iValueDoubleArrayOffset) + SampleTypeAddJValueString(builder, jValueStringOffset) + SampleTypeAddJValueStringArray(builder, jValueStringArrayOffset) + return SampleTypeEnd(builder) +} + +func (rcv *SampleType) UnPackTo(t *SampleTypeT) { + t.AValueBool = rcv.AValueBool() + aValueBoolArrayLength := rcv.AValueBoolArrayLength() + t.AValueBoolArray = make([]bool, aValueBoolArrayLength) + for j := 0; j < aValueBoolArrayLength; j++ { + t.AValueBoolArray[j] = rcv.AValueBoolArray(j) + } + t.BValueShort = rcv.BValueShort() + bValueShortArrayLength := rcv.BValueShortArrayLength() + t.BValueShortArray = make([]int16, bValueShortArrayLength) + for j := 0; j < bValueShortArrayLength; j++ { + t.BValueShortArray[j] = rcv.BValueShortArray(j) + } + t.CValueUshort = rcv.CValueUshort() + cValueUshortArrayLength := rcv.CValueUshortArrayLength() + t.CValueUshortArray = make([]uint16, cValueUshortArrayLength) + for j := 0; j < cValueUshortArrayLength; j++ { + t.CValueUshortArray[j] = rcv.CValueUshortArray(j) + } + t.DValueInt = rcv.DValueInt() + dValueIntArrayLength := rcv.DValueIntArrayLength() + t.DValueIntArray = make([]int32, dValueIntArrayLength) + for j := 0; j < dValueIntArrayLength; j++ { + t.DValueIntArray[j] = rcv.DValueIntArray(j) + } + t.EValueUint = rcv.EValueUint() + eValueUintArrayLength := rcv.EValueUintArrayLength() + t.EValueUintArray = make([]uint32, eValueUintArrayLength) + for j := 0; j < eValueUintArrayLength; j++ { + t.EValueUintArray[j] = rcv.EValueUintArray(j) + } + t.FValueFloat = rcv.FValueFloat() + fValueFloatArrayLength := rcv.FValueFloatArrayLength() + t.FValueFloatArray = make([]float32, fValueFloatArrayLength) + for j := 0; j < fValueFloatArrayLength; j++ { + t.FValueFloatArray[j] = rcv.FValueFloatArray(j) + } + t.GValueLong = rcv.GValueLong() + gValueLongArrayLength := rcv.GValueLongArrayLength() + t.GValueLongArray = make([]int64, gValueLongArrayLength) + for j := 0; j < gValueLongArrayLength; j++ { + t.GValueLongArray[j] = rcv.GValueLongArray(j) + } + t.HValueUlong = rcv.HValueUlong() + hValueUlongArrayLength := rcv.HValueUlongArrayLength() + t.HValueUlongArray = make([]uint64, hValueUlongArrayLength) + for j := 0; j < hValueUlongArrayLength; j++ { + t.HValueUlongArray[j] = rcv.HValueUlongArray(j) + } + t.IValueDouble = rcv.IValueDouble() + iValueDoubleArrayLength := rcv.IValueDoubleArrayLength() + t.IValueDoubleArray = make([]float64, iValueDoubleArrayLength) + for j := 0; j < iValueDoubleArrayLength; j++ { + t.IValueDoubleArray[j] = rcv.IValueDoubleArray(j) + } + t.JValueString = string(rcv.JValueString()) + jValueStringArrayLength := rcv.JValueStringArrayLength() + t.JValueStringArray = make([]string, jValueStringArrayLength) + for j := 0; j < jValueStringArrayLength; j++ { + t.JValueStringArray[j] = string(rcv.JValueStringArray(j)) + } +} + +func (rcv *SampleType) UnPack() *SampleTypeT { + if rcv == nil { return nil } + t := &SampleTypeT{} + rcv.UnPackTo(t) + return t +} + +type SampleType struct { + _tab flatbuffers.Table +} + +func GetRootAsSampleType(buf []byte, offset flatbuffers.UOffsetT) *SampleType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SampleType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSampleType(buf []byte, offset flatbuffers.UOffsetT) *SampleType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SampleType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SampleType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SampleType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SampleType) AValueBool() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SampleType) MutateAValueBool(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *SampleType) AValueBoolArray(j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) + } + return false +} + +func (rcv *SampleType) AValueBoolArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateAValueBoolArray(j int, n bool) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *SampleType) BValueShort() int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleType) MutateBValueShort(n int16) bool { + return rcv._tab.MutateInt16Slot(8, n) +} + +func (rcv *SampleType) BValueShortArray(j int) int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SampleType) BValueShortArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateBValueShortArray(j int, n int16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func (rcv *SampleType) CValueUshort() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleType) MutateCValueUshort(n uint16) bool { + return rcv._tab.MutateUint16Slot(12, n) +} + +func (rcv *SampleType) CValueUshortArray(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SampleType) CValueUshortArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateCValueUshortArray(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func (rcv *SampleType) DValueInt() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleType) MutateDValueInt(n int32) bool { + return rcv._tab.MutateInt32Slot(16, n) +} + +func (rcv *SampleType) DValueIntArray(j int) int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SampleType) DValueIntArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateDValueIntArray(j int, n int32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SampleType) EValueUint() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleType) MutateEValueUint(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +func (rcv *SampleType) EValueUintArray(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SampleType) EValueUintArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateEValueUintArray(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SampleType) FValueFloat() float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetFloat32(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *SampleType) MutateFValueFloat(n float32) bool { + return rcv._tab.MutateFloat32Slot(24, n) +} + +func (rcv *SampleType) FValueFloatArray(j int) float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SampleType) FValueFloatArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateFValueFloatArray(j int, n float32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SampleType) GValueLong() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleType) MutateGValueLong(n int64) bool { + return rcv._tab.MutateInt64Slot(28, n) +} + +func (rcv *SampleType) GValueLongArray(j int) int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SampleType) GValueLongArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateGValueLongArray(j int, n int64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *SampleType) HValueUlong() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleType) MutateHValueUlong(n uint64) bool { + return rcv._tab.MutateUint64Slot(32, n) +} + +func (rcv *SampleType) HValueUlongArray(j int) uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SampleType) HValueUlongArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateHValueUlongArray(j int, n uint64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *SampleType) IValueDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *SampleType) MutateIValueDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(36, n) +} + +func (rcv *SampleType) IValueDoubleArray(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SampleType) IValueDoubleArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleType) MutateIValueDoubleArray(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *SampleType) JValueString() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SampleType) JValueStringArray(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SampleType) JValueStringArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func SampleTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(20) +} +func SampleTypeAddAValueBool(builder *flatbuffers.Builder, aValueBool bool) { + builder.PrependBoolSlot(0, aValueBool, false) +} +func SampleTypeAddAValueBoolArray(builder *flatbuffers.Builder, aValueBoolArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(aValueBoolArray), 0) +} +func SampleTypeStartAValueBoolArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func SampleTypeAddBValueShort(builder *flatbuffers.Builder, bValueShort int16) { + builder.PrependInt16Slot(2, bValueShort, 0) +} +func SampleTypeAddBValueShortArray(builder *flatbuffers.Builder, bValueShortArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(bValueShortArray), 0) +} +func SampleTypeStartBValueShortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SampleTypeAddCValueUshort(builder *flatbuffers.Builder, cValueUshort uint16) { + builder.PrependUint16Slot(4, cValueUshort, 0) +} +func SampleTypeAddCValueUshortArray(builder *flatbuffers.Builder, cValueUshortArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(cValueUshortArray), 0) +} +func SampleTypeStartCValueUshortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SampleTypeAddDValueInt(builder *flatbuffers.Builder, dValueInt int32) { + builder.PrependInt32Slot(6, dValueInt, 0) +} +func SampleTypeAddDValueIntArray(builder *flatbuffers.Builder, dValueIntArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dValueIntArray), 0) +} +func SampleTypeStartDValueIntArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeAddEValueUint(builder *flatbuffers.Builder, eValueUint uint32) { + builder.PrependUint32Slot(8, eValueUint, 0) +} +func SampleTypeAddEValueUintArray(builder *flatbuffers.Builder, eValueUintArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(eValueUintArray), 0) +} +func SampleTypeStartEValueUintArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeAddFValueFloat(builder *flatbuffers.Builder, fValueFloat float32) { + builder.PrependFloat32Slot(10, fValueFloat, 0.0) +} +func SampleTypeAddFValueFloatArray(builder *flatbuffers.Builder, fValueFloatArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(fValueFloatArray), 0) +} +func SampleTypeStartFValueFloatArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeAddGValueLong(builder *flatbuffers.Builder, gValueLong int64) { + builder.PrependInt64Slot(12, gValueLong, 0) +} +func SampleTypeAddGValueLongArray(builder *flatbuffers.Builder, gValueLongArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(gValueLongArray), 0) +} +func SampleTypeStartGValueLongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SampleTypeAddHValueUlong(builder *flatbuffers.Builder, hValueUlong uint64) { + builder.PrependUint64Slot(14, hValueUlong, 0) +} +func SampleTypeAddHValueUlongArray(builder *flatbuffers.Builder, hValueUlongArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(15, flatbuffers.UOffsetT(hValueUlongArray), 0) +} +func SampleTypeStartHValueUlongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SampleTypeAddIValueDouble(builder *flatbuffers.Builder, iValueDouble float64) { + builder.PrependFloat64Slot(16, iValueDouble, 0.0) +} +func SampleTypeAddIValueDoubleArray(builder *flatbuffers.Builder, iValueDoubleArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(17, flatbuffers.UOffsetT(iValueDoubleArray), 0) +} +func SampleTypeStartIValueDoubleArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SampleTypeAddJValueString(builder *flatbuffers.Builder, jValueString flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(18, flatbuffers.UOffsetT(jValueString), 0) +} +func SampleTypeAddJValueStringArray(builder *flatbuffers.Builder, jValueStringArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(19, flatbuffers.UOffsetT(jValueStringArray), 0) +} +func SampleTypeStartJValueStringArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/SampleTypeSub2.go b/pkg/fbs/comm/opcua/server/SampleTypeSub2.go index 049d464..bb811a6 100644 --- a/pkg/fbs/comm/opcua/server/SampleTypeSub2.go +++ b/pkg/fbs/comm/opcua/server/SampleTypeSub2.go @@ -1,83 +1,113 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SampleTypeSub2 struct { - _tab flatbuffers.Table -} - -func GetRootAsSampleTypeSub2(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SampleTypeSub2{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSampleTypeSub2(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SampleTypeSub2{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SampleTypeSub2) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SampleTypeSub2) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SampleTypeSub2) SimpleData() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SampleTypeSub2) SimpleData2() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleTypeSub2) MutateSimpleData2(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *SampleTypeSub2) SubStruct(obj *SampleTypeSub2Sub) *SampleTypeSub2Sub { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SampleTypeSub2Sub) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func SampleTypeSub2Start(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func SampleTypeSub2AddSimpleData(builder *flatbuffers.Builder, simpleData flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(simpleData), 0) -} -func SampleTypeSub2AddSimpleData2(builder *flatbuffers.Builder, simpleData2 uint32) { - builder.PrependUint32Slot(1, simpleData2, 0) -} -func SampleTypeSub2AddSubStruct(builder *flatbuffers.Builder, subStruct flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(subStruct), 0) -} -func SampleTypeSub2End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SampleTypeSub2T struct { + SimpleData string + SimpleData2 uint32 + SubStruct *SampleTypeSub2SubT +} + +func (t *SampleTypeSub2T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + simpleDataOffset := builder.CreateString(t.SimpleData) + subStructOffset := t.SubStruct.Pack(builder) + SampleTypeSub2Start(builder) + SampleTypeSub2AddSimpleData(builder, simpleDataOffset) + SampleTypeSub2AddSimpleData2(builder, t.SimpleData2) + SampleTypeSub2AddSubStruct(builder, subStructOffset) + return SampleTypeSub2End(builder) +} + +func (rcv *SampleTypeSub2) UnPackTo(t *SampleTypeSub2T) { + t.SimpleData = string(rcv.SimpleData()) + t.SimpleData2 = rcv.SimpleData2() + t.SubStruct = rcv.SubStruct(nil).UnPack() +} + +func (rcv *SampleTypeSub2) UnPack() *SampleTypeSub2T { + if rcv == nil { return nil } + t := &SampleTypeSub2T{} + rcv.UnPackTo(t) + return t +} + +type SampleTypeSub2 struct { + _tab flatbuffers.Table +} + +func GetRootAsSampleTypeSub2(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SampleTypeSub2{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSampleTypeSub2(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SampleTypeSub2{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SampleTypeSub2) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SampleTypeSub2) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SampleTypeSub2) SimpleData() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SampleTypeSub2) SimpleData2() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleTypeSub2) MutateSimpleData2(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *SampleTypeSub2) SubStruct(obj *SampleTypeSub2Sub) *SampleTypeSub2Sub { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SampleTypeSub2Sub) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func SampleTypeSub2Start(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func SampleTypeSub2AddSimpleData(builder *flatbuffers.Builder, simpleData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(simpleData), 0) +} +func SampleTypeSub2AddSimpleData2(builder *flatbuffers.Builder, simpleData2 uint32) { + builder.PrependUint32Slot(1, simpleData2, 0) +} +func SampleTypeSub2AddSubStruct(builder *flatbuffers.Builder, subStruct flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(subStruct), 0) +} +func SampleTypeSub2End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/SampleTypeSub2Sub.go b/pkg/fbs/comm/opcua/server/SampleTypeSub2Sub.go index 6593d67..533fd8a 100644 --- a/pkg/fbs/comm/opcua/server/SampleTypeSub2Sub.go +++ b/pkg/fbs/comm/opcua/server/SampleTypeSub2Sub.go @@ -1,498 +1,712 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SampleTypeSub2Sub struct { - _tab flatbuffers.Table -} - -func GetRootAsSampleTypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2Sub { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SampleTypeSub2Sub{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSampleTypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2Sub { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SampleTypeSub2Sub{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SampleTypeSub2Sub) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SampleTypeSub2Sub) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SampleTypeSub2Sub) AValueBool() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SampleTypeSub2Sub) MutateAValueBool(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *SampleTypeSub2Sub) AValueBoolArray(j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) - } - return false -} - -func (rcv *SampleTypeSub2Sub) AValueBoolArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateAValueBoolArray(j int, n bool) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) BValueShort() int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateBValueShort(n int16) bool { - return rcv._tab.MutateInt16Slot(8, n) -} - -func (rcv *SampleTypeSub2Sub) BValueShortArray(j int) int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) BValueShortArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateBValueShortArray(j int, n int16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) CValueUshort() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateCValueUshort(n uint16) bool { - return rcv._tab.MutateUint16Slot(12, n) -} - -func (rcv *SampleTypeSub2Sub) CValueUshortArray(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) CValueUshortArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateCValueUshortArray(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) DValueInt() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateDValueInt(n int32) bool { - return rcv._tab.MutateInt32Slot(16, n) -} - -func (rcv *SampleTypeSub2Sub) DValueIntArray(j int) int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) DValueIntArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateDValueIntArray(j int, n int32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) EValueUint() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateEValueUint(n uint32) bool { - return rcv._tab.MutateUint32Slot(20, n) -} - -func (rcv *SampleTypeSub2Sub) EValueUintArray(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) EValueUintArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateEValueUintArray(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) FValueFloat() float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetFloat32(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *SampleTypeSub2Sub) MutateFValueFloat(n float32) bool { - return rcv._tab.MutateFloat32Slot(24, n) -} - -func (rcv *SampleTypeSub2Sub) FValueFloatArray(j int) float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) FValueFloatArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateFValueFloatArray(j int, n float32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) GValueLong() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateGValueLong(n int64) bool { - return rcv._tab.MutateInt64Slot(28, n) -} - -func (rcv *SampleTypeSub2Sub) GValueLongArray(j int) int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) GValueLongArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateGValueLongArray(j int, n int64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) HValueUlong() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateHValueUlong(n uint64) bool { - return rcv._tab.MutateUint64Slot(32, n) -} - -func (rcv *SampleTypeSub2Sub) HValueUlongArray(j int) uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) HValueUlongArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateHValueUlongArray(j int, n uint64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) IValueDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *SampleTypeSub2Sub) MutateIValueDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(36, n) -} - -func (rcv *SampleTypeSub2Sub) IValueDoubleArray(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) IValueDoubleArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *SampleTypeSub2Sub) MutateIValueDoubleArray(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *SampleTypeSub2Sub) JValueString() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *SampleTypeSub2Sub) JValueStringArray(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SampleTypeSub2Sub) JValueStringArrayLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func SampleTypeSub2SubStart(builder *flatbuffers.Builder) { - builder.StartObject(20) -} -func SampleTypeSub2SubAddAValueBool(builder *flatbuffers.Builder, aValueBool bool) { - builder.PrependBoolSlot(0, aValueBool, false) -} -func SampleTypeSub2SubAddAValueBoolArray(builder *flatbuffers.Builder, aValueBoolArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(aValueBoolArray), 0) -} -func SampleTypeSub2SubStartAValueBoolArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func SampleTypeSub2SubAddBValueShort(builder *flatbuffers.Builder, bValueShort int16) { - builder.PrependInt16Slot(2, bValueShort, 0) -} -func SampleTypeSub2SubAddBValueShortArray(builder *flatbuffers.Builder, bValueShortArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(bValueShortArray), 0) -} -func SampleTypeSub2SubStartBValueShortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SampleTypeSub2SubAddCValueUshort(builder *flatbuffers.Builder, cValueUshort uint16) { - builder.PrependUint16Slot(4, cValueUshort, 0) -} -func SampleTypeSub2SubAddCValueUshortArray(builder *flatbuffers.Builder, cValueUshortArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(cValueUshortArray), 0) -} -func SampleTypeSub2SubStartCValueUshortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func SampleTypeSub2SubAddDValueInt(builder *flatbuffers.Builder, dValueInt int32) { - builder.PrependInt32Slot(6, dValueInt, 0) -} -func SampleTypeSub2SubAddDValueIntArray(builder *flatbuffers.Builder, dValueIntArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dValueIntArray), 0) -} -func SampleTypeSub2SubStartDValueIntArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeSub2SubAddEValueUint(builder *flatbuffers.Builder, eValueUint uint32) { - builder.PrependUint32Slot(8, eValueUint, 0) -} -func SampleTypeSub2SubAddEValueUintArray(builder *flatbuffers.Builder, eValueUintArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(eValueUintArray), 0) -} -func SampleTypeSub2SubStartEValueUintArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeSub2SubAddFValueFloat(builder *flatbuffers.Builder, fValueFloat float32) { - builder.PrependFloat32Slot(10, fValueFloat, 0.0) -} -func SampleTypeSub2SubAddFValueFloatArray(builder *flatbuffers.Builder, fValueFloatArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(fValueFloatArray), 0) -} -func SampleTypeSub2SubStartFValueFloatArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeSub2SubAddGValueLong(builder *flatbuffers.Builder, gValueLong int64) { - builder.PrependInt64Slot(12, gValueLong, 0) -} -func SampleTypeSub2SubAddGValueLongArray(builder *flatbuffers.Builder, gValueLongArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(gValueLongArray), 0) -} -func SampleTypeSub2SubStartGValueLongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SampleTypeSub2SubAddHValueUlong(builder *flatbuffers.Builder, hValueUlong uint64) { - builder.PrependUint64Slot(14, hValueUlong, 0) -} -func SampleTypeSub2SubAddHValueUlongArray(builder *flatbuffers.Builder, hValueUlongArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(15, flatbuffers.UOffsetT(hValueUlongArray), 0) -} -func SampleTypeSub2SubStartHValueUlongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SampleTypeSub2SubAddIValueDouble(builder *flatbuffers.Builder, iValueDouble float64) { - builder.PrependFloat64Slot(16, iValueDouble, 0.0) -} -func SampleTypeSub2SubAddIValueDoubleArray(builder *flatbuffers.Builder, iValueDoubleArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(17, flatbuffers.UOffsetT(iValueDoubleArray), 0) -} -func SampleTypeSub2SubStartIValueDoubleArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SampleTypeSub2SubAddJValueString(builder *flatbuffers.Builder, jValueString flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(18, flatbuffers.UOffsetT(jValueString), 0) -} -func SampleTypeSub2SubAddJValueStringArray(builder *flatbuffers.Builder, jValueStringArray flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(19, flatbuffers.UOffsetT(jValueStringArray), 0) -} -func SampleTypeSub2SubStartJValueStringArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SampleTypeSub2SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SampleTypeSub2SubT struct { + AValueBool bool + AValueBoolArray []bool + BValueShort int16 + BValueShortArray []int16 + CValueUshort uint16 + CValueUshortArray []uint16 + DValueInt int32 + DValueIntArray []int32 + EValueUint uint32 + EValueUintArray []uint32 + FValueFloat float32 + FValueFloatArray []float32 + GValueLong int64 + GValueLongArray []int64 + HValueUlong uint64 + HValueUlongArray []uint64 + IValueDouble float64 + IValueDoubleArray []float64 + JValueString string + JValueStringArray []string +} + +func (t *SampleTypeSub2SubT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + aValueBoolArrayOffset := flatbuffers.UOffsetT(0) + if t.AValueBoolArray != nil { + aValueBoolArrayLength := len(t.AValueBoolArray) + SampleTypeSub2SubStartAValueBoolArrayVector(builder, aValueBoolArrayLength) + for j := aValueBoolArrayLength - 1; j >= 0; j-- { + builder.PrependBool(t.AValueBoolArray[j]) + } + aValueBoolArrayOffset = builder.EndVector(aValueBoolArrayLength) + } + bValueShortArrayOffset := flatbuffers.UOffsetT(0) + if t.BValueShortArray != nil { + bValueShortArrayLength := len(t.BValueShortArray) + SampleTypeSub2SubStartBValueShortArrayVector(builder, bValueShortArrayLength) + for j := bValueShortArrayLength - 1; j >= 0; j-- { + builder.PrependInt16(t.BValueShortArray[j]) + } + bValueShortArrayOffset = builder.EndVector(bValueShortArrayLength) + } + cValueUshortArrayOffset := flatbuffers.UOffsetT(0) + if t.CValueUshortArray != nil { + cValueUshortArrayLength := len(t.CValueUshortArray) + SampleTypeSub2SubStartCValueUshortArrayVector(builder, cValueUshortArrayLength) + for j := cValueUshortArrayLength - 1; j >= 0; j-- { + builder.PrependUint16(t.CValueUshortArray[j]) + } + cValueUshortArrayOffset = builder.EndVector(cValueUshortArrayLength) + } + dValueIntArrayOffset := flatbuffers.UOffsetT(0) + if t.DValueIntArray != nil { + dValueIntArrayLength := len(t.DValueIntArray) + SampleTypeSub2SubStartDValueIntArrayVector(builder, dValueIntArrayLength) + for j := dValueIntArrayLength - 1; j >= 0; j-- { + builder.PrependInt32(t.DValueIntArray[j]) + } + dValueIntArrayOffset = builder.EndVector(dValueIntArrayLength) + } + eValueUintArrayOffset := flatbuffers.UOffsetT(0) + if t.EValueUintArray != nil { + eValueUintArrayLength := len(t.EValueUintArray) + SampleTypeSub2SubStartEValueUintArrayVector(builder, eValueUintArrayLength) + for j := eValueUintArrayLength - 1; j >= 0; j-- { + builder.PrependUint32(t.EValueUintArray[j]) + } + eValueUintArrayOffset = builder.EndVector(eValueUintArrayLength) + } + fValueFloatArrayOffset := flatbuffers.UOffsetT(0) + if t.FValueFloatArray != nil { + fValueFloatArrayLength := len(t.FValueFloatArray) + SampleTypeSub2SubStartFValueFloatArrayVector(builder, fValueFloatArrayLength) + for j := fValueFloatArrayLength - 1; j >= 0; j-- { + builder.PrependFloat32(t.FValueFloatArray[j]) + } + fValueFloatArrayOffset = builder.EndVector(fValueFloatArrayLength) + } + gValueLongArrayOffset := flatbuffers.UOffsetT(0) + if t.GValueLongArray != nil { + gValueLongArrayLength := len(t.GValueLongArray) + SampleTypeSub2SubStartGValueLongArrayVector(builder, gValueLongArrayLength) + for j := gValueLongArrayLength - 1; j >= 0; j-- { + builder.PrependInt64(t.GValueLongArray[j]) + } + gValueLongArrayOffset = builder.EndVector(gValueLongArrayLength) + } + hValueUlongArrayOffset := flatbuffers.UOffsetT(0) + if t.HValueUlongArray != nil { + hValueUlongArrayLength := len(t.HValueUlongArray) + SampleTypeSub2SubStartHValueUlongArrayVector(builder, hValueUlongArrayLength) + for j := hValueUlongArrayLength - 1; j >= 0; j-- { + builder.PrependUint64(t.HValueUlongArray[j]) + } + hValueUlongArrayOffset = builder.EndVector(hValueUlongArrayLength) + } + iValueDoubleArrayOffset := flatbuffers.UOffsetT(0) + if t.IValueDoubleArray != nil { + iValueDoubleArrayLength := len(t.IValueDoubleArray) + SampleTypeSub2SubStartIValueDoubleArrayVector(builder, iValueDoubleArrayLength) + for j := iValueDoubleArrayLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.IValueDoubleArray[j]) + } + iValueDoubleArrayOffset = builder.EndVector(iValueDoubleArrayLength) + } + jValueStringOffset := builder.CreateString(t.JValueString) + jValueStringArrayOffset := flatbuffers.UOffsetT(0) + if t.JValueStringArray != nil { + jValueStringArrayLength := len(t.JValueStringArray) + jValueStringArrayOffsets := make([]flatbuffers.UOffsetT, jValueStringArrayLength) + for j := 0; j < jValueStringArrayLength; j++ { + jValueStringArrayOffsets[j] = builder.CreateString(t.JValueStringArray[j]) + } + SampleTypeSub2SubStartJValueStringArrayVector(builder, jValueStringArrayLength) + for j := jValueStringArrayLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(jValueStringArrayOffsets[j]) + } + jValueStringArrayOffset = builder.EndVector(jValueStringArrayLength) + } + SampleTypeSub2SubStart(builder) + SampleTypeSub2SubAddAValueBool(builder, t.AValueBool) + SampleTypeSub2SubAddAValueBoolArray(builder, aValueBoolArrayOffset) + SampleTypeSub2SubAddBValueShort(builder, t.BValueShort) + SampleTypeSub2SubAddBValueShortArray(builder, bValueShortArrayOffset) + SampleTypeSub2SubAddCValueUshort(builder, t.CValueUshort) + SampleTypeSub2SubAddCValueUshortArray(builder, cValueUshortArrayOffset) + SampleTypeSub2SubAddDValueInt(builder, t.DValueInt) + SampleTypeSub2SubAddDValueIntArray(builder, dValueIntArrayOffset) + SampleTypeSub2SubAddEValueUint(builder, t.EValueUint) + SampleTypeSub2SubAddEValueUintArray(builder, eValueUintArrayOffset) + SampleTypeSub2SubAddFValueFloat(builder, t.FValueFloat) + SampleTypeSub2SubAddFValueFloatArray(builder, fValueFloatArrayOffset) + SampleTypeSub2SubAddGValueLong(builder, t.GValueLong) + SampleTypeSub2SubAddGValueLongArray(builder, gValueLongArrayOffset) + SampleTypeSub2SubAddHValueUlong(builder, t.HValueUlong) + SampleTypeSub2SubAddHValueUlongArray(builder, hValueUlongArrayOffset) + SampleTypeSub2SubAddIValueDouble(builder, t.IValueDouble) + SampleTypeSub2SubAddIValueDoubleArray(builder, iValueDoubleArrayOffset) + SampleTypeSub2SubAddJValueString(builder, jValueStringOffset) + SampleTypeSub2SubAddJValueStringArray(builder, jValueStringArrayOffset) + return SampleTypeSub2SubEnd(builder) +} + +func (rcv *SampleTypeSub2Sub) UnPackTo(t *SampleTypeSub2SubT) { + t.AValueBool = rcv.AValueBool() + aValueBoolArrayLength := rcv.AValueBoolArrayLength() + t.AValueBoolArray = make([]bool, aValueBoolArrayLength) + for j := 0; j < aValueBoolArrayLength; j++ { + t.AValueBoolArray[j] = rcv.AValueBoolArray(j) + } + t.BValueShort = rcv.BValueShort() + bValueShortArrayLength := rcv.BValueShortArrayLength() + t.BValueShortArray = make([]int16, bValueShortArrayLength) + for j := 0; j < bValueShortArrayLength; j++ { + t.BValueShortArray[j] = rcv.BValueShortArray(j) + } + t.CValueUshort = rcv.CValueUshort() + cValueUshortArrayLength := rcv.CValueUshortArrayLength() + t.CValueUshortArray = make([]uint16, cValueUshortArrayLength) + for j := 0; j < cValueUshortArrayLength; j++ { + t.CValueUshortArray[j] = rcv.CValueUshortArray(j) + } + t.DValueInt = rcv.DValueInt() + dValueIntArrayLength := rcv.DValueIntArrayLength() + t.DValueIntArray = make([]int32, dValueIntArrayLength) + for j := 0; j < dValueIntArrayLength; j++ { + t.DValueIntArray[j] = rcv.DValueIntArray(j) + } + t.EValueUint = rcv.EValueUint() + eValueUintArrayLength := rcv.EValueUintArrayLength() + t.EValueUintArray = make([]uint32, eValueUintArrayLength) + for j := 0; j < eValueUintArrayLength; j++ { + t.EValueUintArray[j] = rcv.EValueUintArray(j) + } + t.FValueFloat = rcv.FValueFloat() + fValueFloatArrayLength := rcv.FValueFloatArrayLength() + t.FValueFloatArray = make([]float32, fValueFloatArrayLength) + for j := 0; j < fValueFloatArrayLength; j++ { + t.FValueFloatArray[j] = rcv.FValueFloatArray(j) + } + t.GValueLong = rcv.GValueLong() + gValueLongArrayLength := rcv.GValueLongArrayLength() + t.GValueLongArray = make([]int64, gValueLongArrayLength) + for j := 0; j < gValueLongArrayLength; j++ { + t.GValueLongArray[j] = rcv.GValueLongArray(j) + } + t.HValueUlong = rcv.HValueUlong() + hValueUlongArrayLength := rcv.HValueUlongArrayLength() + t.HValueUlongArray = make([]uint64, hValueUlongArrayLength) + for j := 0; j < hValueUlongArrayLength; j++ { + t.HValueUlongArray[j] = rcv.HValueUlongArray(j) + } + t.IValueDouble = rcv.IValueDouble() + iValueDoubleArrayLength := rcv.IValueDoubleArrayLength() + t.IValueDoubleArray = make([]float64, iValueDoubleArrayLength) + for j := 0; j < iValueDoubleArrayLength; j++ { + t.IValueDoubleArray[j] = rcv.IValueDoubleArray(j) + } + t.JValueString = string(rcv.JValueString()) + jValueStringArrayLength := rcv.JValueStringArrayLength() + t.JValueStringArray = make([]string, jValueStringArrayLength) + for j := 0; j < jValueStringArrayLength; j++ { + t.JValueStringArray[j] = string(rcv.JValueStringArray(j)) + } +} + +func (rcv *SampleTypeSub2Sub) UnPack() *SampleTypeSub2SubT { + if rcv == nil { return nil } + t := &SampleTypeSub2SubT{} + rcv.UnPackTo(t) + return t +} + +type SampleTypeSub2Sub struct { + _tab flatbuffers.Table +} + +func GetRootAsSampleTypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2Sub { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SampleTypeSub2Sub{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSampleTypeSub2Sub(buf []byte, offset flatbuffers.UOffsetT) *SampleTypeSub2Sub { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SampleTypeSub2Sub{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SampleTypeSub2Sub) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SampleTypeSub2Sub) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SampleTypeSub2Sub) AValueBool() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SampleTypeSub2Sub) MutateAValueBool(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *SampleTypeSub2Sub) AValueBoolArray(j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) + } + return false +} + +func (rcv *SampleTypeSub2Sub) AValueBoolArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateAValueBoolArray(j int, n bool) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) BValueShort() int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateBValueShort(n int16) bool { + return rcv._tab.MutateInt16Slot(8, n) +} + +func (rcv *SampleTypeSub2Sub) BValueShortArray(j int) int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) BValueShortArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateBValueShortArray(j int, n int16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) CValueUshort() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateCValueUshort(n uint16) bool { + return rcv._tab.MutateUint16Slot(12, n) +} + +func (rcv *SampleTypeSub2Sub) CValueUshortArray(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) CValueUshortArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateCValueUshortArray(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) DValueInt() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateDValueInt(n int32) bool { + return rcv._tab.MutateInt32Slot(16, n) +} + +func (rcv *SampleTypeSub2Sub) DValueIntArray(j int) int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) DValueIntArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateDValueIntArray(j int, n int32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) EValueUint() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateEValueUint(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +func (rcv *SampleTypeSub2Sub) EValueUintArray(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) EValueUintArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateEValueUintArray(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) FValueFloat() float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetFloat32(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *SampleTypeSub2Sub) MutateFValueFloat(n float32) bool { + return rcv._tab.MutateFloat32Slot(24, n) +} + +func (rcv *SampleTypeSub2Sub) FValueFloatArray(j int) float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) FValueFloatArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateFValueFloatArray(j int, n float32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) GValueLong() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateGValueLong(n int64) bool { + return rcv._tab.MutateInt64Slot(28, n) +} + +func (rcv *SampleTypeSub2Sub) GValueLongArray(j int) int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) GValueLongArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateGValueLongArray(j int, n int64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) HValueUlong() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateHValueUlong(n uint64) bool { + return rcv._tab.MutateUint64Slot(32, n) +} + +func (rcv *SampleTypeSub2Sub) HValueUlongArray(j int) uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) HValueUlongArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateHValueUlongArray(j int, n uint64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) IValueDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *SampleTypeSub2Sub) MutateIValueDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(36, n) +} + +func (rcv *SampleTypeSub2Sub) IValueDoubleArray(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) IValueDoubleArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *SampleTypeSub2Sub) MutateIValueDoubleArray(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *SampleTypeSub2Sub) JValueString() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *SampleTypeSub2Sub) JValueStringArray(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SampleTypeSub2Sub) JValueStringArrayLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func SampleTypeSub2SubStart(builder *flatbuffers.Builder) { + builder.StartObject(20) +} +func SampleTypeSub2SubAddAValueBool(builder *flatbuffers.Builder, aValueBool bool) { + builder.PrependBoolSlot(0, aValueBool, false) +} +func SampleTypeSub2SubAddAValueBoolArray(builder *flatbuffers.Builder, aValueBoolArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(aValueBoolArray), 0) +} +func SampleTypeSub2SubStartAValueBoolArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func SampleTypeSub2SubAddBValueShort(builder *flatbuffers.Builder, bValueShort int16) { + builder.PrependInt16Slot(2, bValueShort, 0) +} +func SampleTypeSub2SubAddBValueShortArray(builder *flatbuffers.Builder, bValueShortArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(bValueShortArray), 0) +} +func SampleTypeSub2SubStartBValueShortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SampleTypeSub2SubAddCValueUshort(builder *flatbuffers.Builder, cValueUshort uint16) { + builder.PrependUint16Slot(4, cValueUshort, 0) +} +func SampleTypeSub2SubAddCValueUshortArray(builder *flatbuffers.Builder, cValueUshortArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(cValueUshortArray), 0) +} +func SampleTypeSub2SubStartCValueUshortArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func SampleTypeSub2SubAddDValueInt(builder *flatbuffers.Builder, dValueInt int32) { + builder.PrependInt32Slot(6, dValueInt, 0) +} +func SampleTypeSub2SubAddDValueIntArray(builder *flatbuffers.Builder, dValueIntArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dValueIntArray), 0) +} +func SampleTypeSub2SubStartDValueIntArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeSub2SubAddEValueUint(builder *flatbuffers.Builder, eValueUint uint32) { + builder.PrependUint32Slot(8, eValueUint, 0) +} +func SampleTypeSub2SubAddEValueUintArray(builder *flatbuffers.Builder, eValueUintArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(eValueUintArray), 0) +} +func SampleTypeSub2SubStartEValueUintArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeSub2SubAddFValueFloat(builder *flatbuffers.Builder, fValueFloat float32) { + builder.PrependFloat32Slot(10, fValueFloat, 0.0) +} +func SampleTypeSub2SubAddFValueFloatArray(builder *flatbuffers.Builder, fValueFloatArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(fValueFloatArray), 0) +} +func SampleTypeSub2SubStartFValueFloatArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeSub2SubAddGValueLong(builder *flatbuffers.Builder, gValueLong int64) { + builder.PrependInt64Slot(12, gValueLong, 0) +} +func SampleTypeSub2SubAddGValueLongArray(builder *flatbuffers.Builder, gValueLongArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(gValueLongArray), 0) +} +func SampleTypeSub2SubStartGValueLongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SampleTypeSub2SubAddHValueUlong(builder *flatbuffers.Builder, hValueUlong uint64) { + builder.PrependUint64Slot(14, hValueUlong, 0) +} +func SampleTypeSub2SubAddHValueUlongArray(builder *flatbuffers.Builder, hValueUlongArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(15, flatbuffers.UOffsetT(hValueUlongArray), 0) +} +func SampleTypeSub2SubStartHValueUlongArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SampleTypeSub2SubAddIValueDouble(builder *flatbuffers.Builder, iValueDouble float64) { + builder.PrependFloat64Slot(16, iValueDouble, 0.0) +} +func SampleTypeSub2SubAddIValueDoubleArray(builder *flatbuffers.Builder, iValueDoubleArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(17, flatbuffers.UOffsetT(iValueDoubleArray), 0) +} +func SampleTypeSub2SubStartIValueDoubleArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SampleTypeSub2SubAddJValueString(builder *flatbuffers.Builder, jValueString flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(18, flatbuffers.UOffsetT(jValueString), 0) +} +func SampleTypeSub2SubAddJValueStringArray(builder *flatbuffers.Builder, jValueStringArray flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(19, flatbuffers.UOffsetT(jValueStringArray), 0) +} +func SampleTypeSub2SubStartJValueStringArrayVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SampleTypeSub2SubEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/SecConfigType.go b/pkg/fbs/comm/opcua/server/SecConfigType.go index 1aa0605..4e1a81e 100644 --- a/pkg/fbs/comm/opcua/server/SecConfigType.go +++ b/pkg/fbs/comm/opcua/server/SecConfigType.go @@ -1,132 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SecConfigTypeT struct { - PolicyId uint32 - ModeNone bool - ModeSign bool - ModeSignAndEncrypt bool -} - -func (t *SecConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SecConfigTypeStart(builder) - SecConfigTypeAddPolicyId(builder, t.PolicyId) - SecConfigTypeAddModeNone(builder, t.ModeNone) - SecConfigTypeAddModeSign(builder, t.ModeSign) - SecConfigTypeAddModeSignAndEncrypt(builder, t.ModeSignAndEncrypt) - return SecConfigTypeEnd(builder) -} - -func (rcv *SecConfigType) UnPackTo(t *SecConfigTypeT) { - t.PolicyId = rcv.PolicyId() - t.ModeNone = rcv.ModeNone() - t.ModeSign = rcv.ModeSign() - t.ModeSignAndEncrypt = rcv.ModeSignAndEncrypt() -} - -func (rcv *SecConfigType) UnPack() *SecConfigTypeT { - if rcv == nil { return nil } - t := &SecConfigTypeT{} - rcv.UnPackTo(t) - return t -} - -type SecConfigType struct { - _tab flatbuffers.Table -} - -func GetRootAsSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *SecConfigType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SecConfigType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *SecConfigType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SecConfigType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SecConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SecConfigType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SecConfigType) PolicyId() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SecConfigType) MutatePolicyId(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *SecConfigType) ModeNone() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SecConfigType) MutateModeNone(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *SecConfigType) ModeSign() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SecConfigType) MutateModeSign(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *SecConfigType) ModeSignAndEncrypt() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SecConfigType) MutateModeSignAndEncrypt(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func SecConfigTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SecConfigTypeAddPolicyId(builder *flatbuffers.Builder, policyId uint32) { - builder.PrependUint32Slot(0, policyId, 0) -} -func SecConfigTypeAddModeNone(builder *flatbuffers.Builder, modeNone bool) { - builder.PrependBoolSlot(1, modeNone, false) -} -func SecConfigTypeAddModeSign(builder *flatbuffers.Builder, modeSign bool) { - builder.PrependBoolSlot(2, modeSign, false) -} -func SecConfigTypeAddModeSignAndEncrypt(builder *flatbuffers.Builder, modeSignAndEncrypt bool) { - builder.PrependBoolSlot(3, modeSignAndEncrypt, false) -} -func SecConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SecConfigTypeT struct { + PolicyId uint32 + ModeNone bool + ModeSign bool + ModeSignAndEncrypt bool +} + +func (t *SecConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SecConfigTypeStart(builder) + SecConfigTypeAddPolicyId(builder, t.PolicyId) + SecConfigTypeAddModeNone(builder, t.ModeNone) + SecConfigTypeAddModeSign(builder, t.ModeSign) + SecConfigTypeAddModeSignAndEncrypt(builder, t.ModeSignAndEncrypt) + return SecConfigTypeEnd(builder) +} + +func (rcv *SecConfigType) UnPackTo(t *SecConfigTypeT) { + t.PolicyId = rcv.PolicyId() + t.ModeNone = rcv.ModeNone() + t.ModeSign = rcv.ModeSign() + t.ModeSignAndEncrypt = rcv.ModeSignAndEncrypt() +} + +func (rcv *SecConfigType) UnPack() *SecConfigTypeT { + if rcv == nil { return nil } + t := &SecConfigTypeT{} + rcv.UnPackTo(t) + return t +} + +type SecConfigType struct { + _tab flatbuffers.Table +} + +func GetRootAsSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *SecConfigType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SecConfigType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSecConfigType(buf []byte, offset flatbuffers.UOffsetT) *SecConfigType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SecConfigType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SecConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SecConfigType) Table() flatbuffers.Table { + return rcv._tab +} + +/// Identifier of the policy to use +/// UA_SECURITY_POLICY_NONE = 0, +/// UA_SECURITY_POLICY_BASIC128RSA15 = 1, +/// UA_SECURITY_POLICY_BASIC256 = 2, +/// UA_SECURITY_POLICY_BASIC256SHA256 = 3, +/// UA_SECURITY_POLICY_AES128_SHA256_RSAOAEP = 4, +/// UA_SECURITY_POLICY_AES256_SHA256_RSAPSS = 5, +/// UA_SECURITY_POLICY_ID_MAX = 6 +func (rcv *SecConfigType) PolicyId() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Identifier of the policy to use +/// UA_SECURITY_POLICY_NONE = 0, +/// UA_SECURITY_POLICY_BASIC128RSA15 = 1, +/// UA_SECURITY_POLICY_BASIC256 = 2, +/// UA_SECURITY_POLICY_BASIC256SHA256 = 3, +/// UA_SECURITY_POLICY_AES128_SHA256_RSAOAEP = 4, +/// UA_SECURITY_POLICY_AES256_SHA256_RSAPSS = 5, +/// UA_SECURITY_POLICY_ID_MAX = 6 +func (rcv *SecConfigType) MutatePolicyId(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// True if message security mode none is allowed +func (rcv *SecConfigType) ModeNone() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// True if message security mode none is allowed +func (rcv *SecConfigType) MutateModeNone(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// True if message security mode sign is allowed +func (rcv *SecConfigType) ModeSign() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// True if message security mode sign is allowed +func (rcv *SecConfigType) MutateModeSign(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +/// True if message security mode sign and encrypt is allowed +func (rcv *SecConfigType) ModeSignAndEncrypt() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// True if message security mode sign and encrypt is allowed +func (rcv *SecConfigType) MutateModeSignAndEncrypt(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func SecConfigTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SecConfigTypeAddPolicyId(builder *flatbuffers.Builder, policyId uint32) { + builder.PrependUint32Slot(0, policyId, 0) +} +func SecConfigTypeAddModeNone(builder *flatbuffers.Builder, modeNone bool) { + builder.PrependBoolSlot(1, modeNone, false) +} +func SecConfigTypeAddModeSign(builder *flatbuffers.Builder, modeSign bool) { + builder.PrependBoolSlot(2, modeSign, false) +} +func SecConfigTypeAddModeSignAndEncrypt(builder *flatbuffers.Builder, modeSignAndEncrypt bool) { + builder.PrependBoolSlot(3, modeSignAndEncrypt, false) +} +func SecConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/SechanConfigType.go b/pkg/fbs/comm/opcua/server/SechanConfigType.go index 80c6599..1bcb8cf 100644 --- a/pkg/fbs/comm/opcua/server/SechanConfigType.go +++ b/pkg/fbs/comm/opcua/server/SechanConfigType.go @@ -1,101 +1,132 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type SechanConfigType struct { - _tab flatbuffers.Table -} - -func GetRootAsSechanConfigType(buf []byte, offset flatbuffers.UOffsetT) *SechanConfigType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SechanConfigType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSechanConfigType(buf []byte, offset flatbuffers.UOffsetT) *SechanConfigType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SechanConfigType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SechanConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SechanConfigType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *SechanConfigType) PolicyId() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *SechanConfigType) MutatePolicyId(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *SechanConfigType) ModeNone() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SechanConfigType) MutateModeNone(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *SechanConfigType) ModeSign() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SechanConfigType) MutateModeSign(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *SechanConfigType) ModeSignAndEncrypt() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *SechanConfigType) MutateModeSignAndEncrypt(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func SechanConfigTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SechanConfigTypeAddPolicyId(builder *flatbuffers.Builder, policyId uint32) { - builder.PrependUint32Slot(0, policyId, 0) -} -func SechanConfigTypeAddModeNone(builder *flatbuffers.Builder, modeNone bool) { - builder.PrependBoolSlot(1, modeNone, false) -} -func SechanConfigTypeAddModeSign(builder *flatbuffers.Builder, modeSign bool) { - builder.PrependBoolSlot(2, modeSign, false) -} -func SechanConfigTypeAddModeSignAndEncrypt(builder *flatbuffers.Builder, modeSignAndEncrypt bool) { - builder.PrependBoolSlot(3, modeSignAndEncrypt, false) -} -func SechanConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SechanConfigTypeT struct { + PolicyId uint32 + ModeNone bool + ModeSign bool + ModeSignAndEncrypt bool +} + +func (t *SechanConfigTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SechanConfigTypeStart(builder) + SechanConfigTypeAddPolicyId(builder, t.PolicyId) + SechanConfigTypeAddModeNone(builder, t.ModeNone) + SechanConfigTypeAddModeSign(builder, t.ModeSign) + SechanConfigTypeAddModeSignAndEncrypt(builder, t.ModeSignAndEncrypt) + return SechanConfigTypeEnd(builder) +} + +func (rcv *SechanConfigType) UnPackTo(t *SechanConfigTypeT) { + t.PolicyId = rcv.PolicyId() + t.ModeNone = rcv.ModeNone() + t.ModeSign = rcv.ModeSign() + t.ModeSignAndEncrypt = rcv.ModeSignAndEncrypt() +} + +func (rcv *SechanConfigType) UnPack() *SechanConfigTypeT { + if rcv == nil { return nil } + t := &SechanConfigTypeT{} + rcv.UnPackTo(t) + return t +} + +type SechanConfigType struct { + _tab flatbuffers.Table +} + +func GetRootAsSechanConfigType(buf []byte, offset flatbuffers.UOffsetT) *SechanConfigType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SechanConfigType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSechanConfigType(buf []byte, offset flatbuffers.UOffsetT) *SechanConfigType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SechanConfigType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SechanConfigType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SechanConfigType) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SechanConfigType) PolicyId() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *SechanConfigType) MutatePolicyId(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *SechanConfigType) ModeNone() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SechanConfigType) MutateModeNone(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *SechanConfigType) ModeSign() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SechanConfigType) MutateModeSign(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *SechanConfigType) ModeSignAndEncrypt() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *SechanConfigType) MutateModeSignAndEncrypt(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func SechanConfigTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SechanConfigTypeAddPolicyId(builder *flatbuffers.Builder, policyId uint32) { + builder.PrependUint32Slot(0, policyId, 0) +} +func SechanConfigTypeAddModeNone(builder *flatbuffers.Builder, modeNone bool) { + builder.PrependBoolSlot(1, modeNone, false) +} +func SechanConfigTypeAddModeSign(builder *flatbuffers.Builder, modeSign bool) { + builder.PrependBoolSlot(2, modeSign, false) +} +func SechanConfigTypeAddModeSignAndEncrypt(builder *flatbuffers.Builder, modeSignAndEncrypt bool) { + builder.PrependBoolSlot(3, modeSignAndEncrypt, false) +} +func SechanConfigTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/ServerDiagnosticsSummaryType.go b/pkg/fbs/comm/opcua/server/ServerDiagnosticsSummaryType.go index 3f1a4cc..555b1ea 100644 --- a/pkg/fbs/comm/opcua/server/ServerDiagnosticsSummaryType.go +++ b/pkg/fbs/comm/opcua/server/ServerDiagnosticsSummaryType.go @@ -1,276 +1,304 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ServerDiagnosticsSummaryTypeT struct { - CumulatedSessionCount uint32 - CumulatedSubscriptionCount uint32 - CurrentSessonCount uint32 - CurrentSubscriptionCount uint32 - PublishingIntervalCount uint32 - RejectedRequestsCount uint32 - RejectedSessionCount uint32 - SecurityRejectedRequestsCount uint32 - SecurityRejectedSessionCount uint32 - ServerViewCount uint32 - SessionAbortCount uint32 - SessionTimeoutCount uint32 -} - -func (t *ServerDiagnosticsSummaryTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ServerDiagnosticsSummaryTypeStart(builder) - ServerDiagnosticsSummaryTypeAddCumulatedSessionCount(builder, t.CumulatedSessionCount) - ServerDiagnosticsSummaryTypeAddCumulatedSubscriptionCount(builder, t.CumulatedSubscriptionCount) - ServerDiagnosticsSummaryTypeAddCurrentSessonCount(builder, t.CurrentSessonCount) - ServerDiagnosticsSummaryTypeAddCurrentSubscriptionCount(builder, t.CurrentSubscriptionCount) - ServerDiagnosticsSummaryTypeAddPublishingIntervalCount(builder, t.PublishingIntervalCount) - ServerDiagnosticsSummaryTypeAddRejectedRequestsCount(builder, t.RejectedRequestsCount) - ServerDiagnosticsSummaryTypeAddRejectedSessionCount(builder, t.RejectedSessionCount) - ServerDiagnosticsSummaryTypeAddSecurityRejectedRequestsCount(builder, t.SecurityRejectedRequestsCount) - ServerDiagnosticsSummaryTypeAddSecurityRejectedSessionCount(builder, t.SecurityRejectedSessionCount) - ServerDiagnosticsSummaryTypeAddServerViewCount(builder, t.ServerViewCount) - ServerDiagnosticsSummaryTypeAddSessionAbortCount(builder, t.SessionAbortCount) - ServerDiagnosticsSummaryTypeAddSessionTimeoutCount(builder, t.SessionTimeoutCount) - return ServerDiagnosticsSummaryTypeEnd(builder) -} - -func (rcv *ServerDiagnosticsSummaryType) UnPackTo(t *ServerDiagnosticsSummaryTypeT) { - t.CumulatedSessionCount = rcv.CumulatedSessionCount() - t.CumulatedSubscriptionCount = rcv.CumulatedSubscriptionCount() - t.CurrentSessonCount = rcv.CurrentSessonCount() - t.CurrentSubscriptionCount = rcv.CurrentSubscriptionCount() - t.PublishingIntervalCount = rcv.PublishingIntervalCount() - t.RejectedRequestsCount = rcv.RejectedRequestsCount() - t.RejectedSessionCount = rcv.RejectedSessionCount() - t.SecurityRejectedRequestsCount = rcv.SecurityRejectedRequestsCount() - t.SecurityRejectedSessionCount = rcv.SecurityRejectedSessionCount() - t.ServerViewCount = rcv.ServerViewCount() - t.SessionAbortCount = rcv.SessionAbortCount() - t.SessionTimeoutCount = rcv.SessionTimeoutCount() -} - -func (rcv *ServerDiagnosticsSummaryType) UnPack() *ServerDiagnosticsSummaryTypeT { - if rcv == nil { return nil } - t := &ServerDiagnosticsSummaryTypeT{} - rcv.UnPackTo(t) - return t -} - -type ServerDiagnosticsSummaryType struct { - _tab flatbuffers.Table -} - -func GetRootAsServerDiagnosticsSummaryType(buf []byte, offset flatbuffers.UOffsetT) *ServerDiagnosticsSummaryType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ServerDiagnosticsSummaryType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsServerDiagnosticsSummaryType(buf []byte, offset flatbuffers.UOffsetT) *ServerDiagnosticsSummaryType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ServerDiagnosticsSummaryType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ServerDiagnosticsSummaryType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ServerDiagnosticsSummaryType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ServerDiagnosticsSummaryType) CumulatedSessionCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateCumulatedSessionCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *ServerDiagnosticsSummaryType) CumulatedSubscriptionCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateCumulatedSubscriptionCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *ServerDiagnosticsSummaryType) CurrentSessonCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateCurrentSessonCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *ServerDiagnosticsSummaryType) CurrentSubscriptionCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateCurrentSubscriptionCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *ServerDiagnosticsSummaryType) PublishingIntervalCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutatePublishingIntervalCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *ServerDiagnosticsSummaryType) RejectedRequestsCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateRejectedRequestsCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *ServerDiagnosticsSummaryType) RejectedSessionCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateRejectedSessionCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func (rcv *ServerDiagnosticsSummaryType) SecurityRejectedRequestsCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateSecurityRejectedRequestsCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(18, n) -} - -func (rcv *ServerDiagnosticsSummaryType) SecurityRejectedSessionCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateSecurityRejectedSessionCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(20, n) -} - -func (rcv *ServerDiagnosticsSummaryType) ServerViewCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateServerViewCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(22, n) -} - -func (rcv *ServerDiagnosticsSummaryType) SessionAbortCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateSessionAbortCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(24, n) -} - -func (rcv *ServerDiagnosticsSummaryType) SessionTimeoutCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerDiagnosticsSummaryType) MutateSessionTimeoutCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(26, n) -} - -func ServerDiagnosticsSummaryTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(12) -} -func ServerDiagnosticsSummaryTypeAddCumulatedSessionCount(builder *flatbuffers.Builder, cumulatedSessionCount uint32) { - builder.PrependUint32Slot(0, cumulatedSessionCount, 0) -} -func ServerDiagnosticsSummaryTypeAddCumulatedSubscriptionCount(builder *flatbuffers.Builder, cumulatedSubscriptionCount uint32) { - builder.PrependUint32Slot(1, cumulatedSubscriptionCount, 0) -} -func ServerDiagnosticsSummaryTypeAddCurrentSessonCount(builder *flatbuffers.Builder, currentSessonCount uint32) { - builder.PrependUint32Slot(2, currentSessonCount, 0) -} -func ServerDiagnosticsSummaryTypeAddCurrentSubscriptionCount(builder *flatbuffers.Builder, currentSubscriptionCount uint32) { - builder.PrependUint32Slot(3, currentSubscriptionCount, 0) -} -func ServerDiagnosticsSummaryTypeAddPublishingIntervalCount(builder *flatbuffers.Builder, publishingIntervalCount uint32) { - builder.PrependUint32Slot(4, publishingIntervalCount, 0) -} -func ServerDiagnosticsSummaryTypeAddRejectedRequestsCount(builder *flatbuffers.Builder, rejectedRequestsCount uint32) { - builder.PrependUint32Slot(5, rejectedRequestsCount, 0) -} -func ServerDiagnosticsSummaryTypeAddRejectedSessionCount(builder *flatbuffers.Builder, rejectedSessionCount uint32) { - builder.PrependUint32Slot(6, rejectedSessionCount, 0) -} -func ServerDiagnosticsSummaryTypeAddSecurityRejectedRequestsCount(builder *flatbuffers.Builder, securityRejectedRequestsCount uint32) { - builder.PrependUint32Slot(7, securityRejectedRequestsCount, 0) -} -func ServerDiagnosticsSummaryTypeAddSecurityRejectedSessionCount(builder *flatbuffers.Builder, securityRejectedSessionCount uint32) { - builder.PrependUint32Slot(8, securityRejectedSessionCount, 0) -} -func ServerDiagnosticsSummaryTypeAddServerViewCount(builder *flatbuffers.Builder, serverViewCount uint32) { - builder.PrependUint32Slot(9, serverViewCount, 0) -} -func ServerDiagnosticsSummaryTypeAddSessionAbortCount(builder *flatbuffers.Builder, sessionAbortCount uint32) { - builder.PrependUint32Slot(10, sessionAbortCount, 0) -} -func ServerDiagnosticsSummaryTypeAddSessionTimeoutCount(builder *flatbuffers.Builder, sessionTimeoutCount uint32) { - builder.PrependUint32Slot(11, sessionTimeoutCount, 0) -} -func ServerDiagnosticsSummaryTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ServerDiagnosticsSummaryTypeT struct { + CumulatedSessionCount uint32 + CumulatedSubscriptionCount uint32 + CurrentSessonCount uint32 + CurrentSubscriptionCount uint32 + PublishingIntervalCount uint32 + RejectedRequestsCount uint32 + RejectedSessionCount uint32 + SecurityRejectedRequestsCount uint32 + SecurityRejectedSessionCount uint32 + ServerViewCount uint32 + SessionAbortCount uint32 + SessionTimeoutCount uint32 +} + +func (t *ServerDiagnosticsSummaryTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ServerDiagnosticsSummaryTypeStart(builder) + ServerDiagnosticsSummaryTypeAddCumulatedSessionCount(builder, t.CumulatedSessionCount) + ServerDiagnosticsSummaryTypeAddCumulatedSubscriptionCount(builder, t.CumulatedSubscriptionCount) + ServerDiagnosticsSummaryTypeAddCurrentSessonCount(builder, t.CurrentSessonCount) + ServerDiagnosticsSummaryTypeAddCurrentSubscriptionCount(builder, t.CurrentSubscriptionCount) + ServerDiagnosticsSummaryTypeAddPublishingIntervalCount(builder, t.PublishingIntervalCount) + ServerDiagnosticsSummaryTypeAddRejectedRequestsCount(builder, t.RejectedRequestsCount) + ServerDiagnosticsSummaryTypeAddRejectedSessionCount(builder, t.RejectedSessionCount) + ServerDiagnosticsSummaryTypeAddSecurityRejectedRequestsCount(builder, t.SecurityRejectedRequestsCount) + ServerDiagnosticsSummaryTypeAddSecurityRejectedSessionCount(builder, t.SecurityRejectedSessionCount) + ServerDiagnosticsSummaryTypeAddServerViewCount(builder, t.ServerViewCount) + ServerDiagnosticsSummaryTypeAddSessionAbortCount(builder, t.SessionAbortCount) + ServerDiagnosticsSummaryTypeAddSessionTimeoutCount(builder, t.SessionTimeoutCount) + return ServerDiagnosticsSummaryTypeEnd(builder) +} + +func (rcv *ServerDiagnosticsSummaryType) UnPackTo(t *ServerDiagnosticsSummaryTypeT) { + t.CumulatedSessionCount = rcv.CumulatedSessionCount() + t.CumulatedSubscriptionCount = rcv.CumulatedSubscriptionCount() + t.CurrentSessonCount = rcv.CurrentSessonCount() + t.CurrentSubscriptionCount = rcv.CurrentSubscriptionCount() + t.PublishingIntervalCount = rcv.PublishingIntervalCount() + t.RejectedRequestsCount = rcv.RejectedRequestsCount() + t.RejectedSessionCount = rcv.RejectedSessionCount() + t.SecurityRejectedRequestsCount = rcv.SecurityRejectedRequestsCount() + t.SecurityRejectedSessionCount = rcv.SecurityRejectedSessionCount() + t.ServerViewCount = rcv.ServerViewCount() + t.SessionAbortCount = rcv.SessionAbortCount() + t.SessionTimeoutCount = rcv.SessionTimeoutCount() +} + +func (rcv *ServerDiagnosticsSummaryType) UnPack() *ServerDiagnosticsSummaryTypeT { + if rcv == nil { return nil } + t := &ServerDiagnosticsSummaryTypeT{} + rcv.UnPackTo(t) + return t +} + +type ServerDiagnosticsSummaryType struct { + _tab flatbuffers.Table +} + +func GetRootAsServerDiagnosticsSummaryType(buf []byte, offset flatbuffers.UOffsetT) *ServerDiagnosticsSummaryType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ServerDiagnosticsSummaryType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsServerDiagnosticsSummaryType(buf []byte, offset flatbuffers.UOffsetT) *ServerDiagnosticsSummaryType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ServerDiagnosticsSummaryType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ServerDiagnosticsSummaryType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ServerDiagnosticsSummaryType) Table() flatbuffers.Table { + return rcv._tab +} + +/// The sum of the created sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) CumulatedSessionCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The sum of the created sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) MutateCumulatedSessionCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// The sum of the created subscriptions during all sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) CumulatedSubscriptionCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The sum of the created subscriptions during all sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) MutateCumulatedSubscriptionCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// The current number of active sessions of the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) CurrentSessonCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The current number of active sessions of the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) MutateCurrentSessonCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// The current number of active subscriptions of the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) CurrentSubscriptionCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The current number of active subscriptions of the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) MutateCurrentSubscriptionCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +/// The number of the supported publishing intervals of the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) PublishingIntervalCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of the supported publishing intervals of the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) MutatePublishingIntervalCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +/// The number of the discarded queries of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) RejectedRequestsCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of the discarded queries of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) MutateRejectedRequestsCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +/// The number of the discarded sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) RejectedSessionCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of the discarded sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) MutateRejectedSessionCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +/// The number of discarded service queries of the OPC UA Server since its start +/// that were rejected due to security criteria that were not met +func (rcv *ServerDiagnosticsSummaryType) SecurityRejectedRequestsCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of discarded service queries of the OPC UA Server since its start +/// that were rejected due to security criteria that were not met +func (rcv *ServerDiagnosticsSummaryType) MutateSecurityRejectedRequestsCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +/// The number of discarded sessions (service queries) of the OPC UA Server since its start +/// that were rejected due to security criteria that were not met +func (rcv *ServerDiagnosticsSummaryType) SecurityRejectedSessionCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of discarded sessions (service queries) of the OPC UA Server since its start +/// that were rejected due to security criteria that were not met +func (rcv *ServerDiagnosticsSummaryType) MutateSecurityRejectedSessionCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +/// The number of views available in the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) ServerViewCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of views available in the OPC UA Server +func (rcv *ServerDiagnosticsSummaryType) MutateServerViewCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(22, n) +} + +/// The number of the error-caused ended sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) SessionAbortCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of the error-caused ended sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) MutateSessionAbortCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(24, n) +} + +/// The number of the timeout-caused ended sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) SessionTimeoutCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The number of the timeout-caused ended sessions of the OPC UA Server since its start +func (rcv *ServerDiagnosticsSummaryType) MutateSessionTimeoutCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(26, n) +} + +func ServerDiagnosticsSummaryTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(12) +} +func ServerDiagnosticsSummaryTypeAddCumulatedSessionCount(builder *flatbuffers.Builder, cumulatedSessionCount uint32) { + builder.PrependUint32Slot(0, cumulatedSessionCount, 0) +} +func ServerDiagnosticsSummaryTypeAddCumulatedSubscriptionCount(builder *flatbuffers.Builder, cumulatedSubscriptionCount uint32) { + builder.PrependUint32Slot(1, cumulatedSubscriptionCount, 0) +} +func ServerDiagnosticsSummaryTypeAddCurrentSessonCount(builder *flatbuffers.Builder, currentSessonCount uint32) { + builder.PrependUint32Slot(2, currentSessonCount, 0) +} +func ServerDiagnosticsSummaryTypeAddCurrentSubscriptionCount(builder *flatbuffers.Builder, currentSubscriptionCount uint32) { + builder.PrependUint32Slot(3, currentSubscriptionCount, 0) +} +func ServerDiagnosticsSummaryTypeAddPublishingIntervalCount(builder *flatbuffers.Builder, publishingIntervalCount uint32) { + builder.PrependUint32Slot(4, publishingIntervalCount, 0) +} +func ServerDiagnosticsSummaryTypeAddRejectedRequestsCount(builder *flatbuffers.Builder, rejectedRequestsCount uint32) { + builder.PrependUint32Slot(5, rejectedRequestsCount, 0) +} +func ServerDiagnosticsSummaryTypeAddRejectedSessionCount(builder *flatbuffers.Builder, rejectedSessionCount uint32) { + builder.PrependUint32Slot(6, rejectedSessionCount, 0) +} +func ServerDiagnosticsSummaryTypeAddSecurityRejectedRequestsCount(builder *flatbuffers.Builder, securityRejectedRequestsCount uint32) { + builder.PrependUint32Slot(7, securityRejectedRequestsCount, 0) +} +func ServerDiagnosticsSummaryTypeAddSecurityRejectedSessionCount(builder *flatbuffers.Builder, securityRejectedSessionCount uint32) { + builder.PrependUint32Slot(8, securityRejectedSessionCount, 0) +} +func ServerDiagnosticsSummaryTypeAddServerViewCount(builder *flatbuffers.Builder, serverViewCount uint32) { + builder.PrependUint32Slot(9, serverViewCount, 0) +} +func ServerDiagnosticsSummaryTypeAddSessionAbortCount(builder *flatbuffers.Builder, sessionAbortCount uint32) { + builder.PrependUint32Slot(10, sessionAbortCount, 0) +} +func ServerDiagnosticsSummaryTypeAddSessionTimeoutCount(builder *flatbuffers.Builder, sessionTimeoutCount uint32) { + builder.PrependUint32Slot(11, sessionTimeoutCount, 0) +} +func ServerDiagnosticsSummaryTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/ServerStateType.go b/pkg/fbs/comm/opcua/server/ServerStateType.go index 9cc56da..b9117a9 100644 --- a/pkg/fbs/comm/opcua/server/ServerStateType.go +++ b/pkg/fbs/comm/opcua/server/ServerStateType.go @@ -1,78 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ServerStateTypeT struct { - State EnumServerState -} - -func (t *ServerStateTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ServerStateTypeStart(builder) - ServerStateTypeAddState(builder, t.State) - return ServerStateTypeEnd(builder) -} - -func (rcv *ServerStateType) UnPackTo(t *ServerStateTypeT) { - t.State = rcv.State() -} - -func (rcv *ServerStateType) UnPack() *ServerStateTypeT { - if rcv == nil { return nil } - t := &ServerStateTypeT{} - rcv.UnPackTo(t) - return t -} - -type ServerStateType struct { - _tab flatbuffers.Table -} - -func GetRootAsServerStateType(buf []byte, offset flatbuffers.UOffsetT) *ServerStateType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ServerStateType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsServerStateType(buf []byte, offset flatbuffers.UOffsetT) *ServerStateType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ServerStateType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ServerStateType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ServerStateType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ServerStateType) State() EnumServerState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return EnumServerState(rcv._tab.GetInt32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ServerStateType) MutateState(n EnumServerState) bool { - return rcv._tab.MutateInt32Slot(4, int32(n)) -} - -func ServerStateTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ServerStateTypeAddState(builder *flatbuffers.Builder, state EnumServerState) { - builder.PrependInt32Slot(0, int32(state), 0) -} -func ServerStateTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ServerStateTypeT struct { + State EnumServerState +} + +func (t *ServerStateTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ServerStateTypeStart(builder) + ServerStateTypeAddState(builder, t.State) + return ServerStateTypeEnd(builder) +} + +func (rcv *ServerStateType) UnPackTo(t *ServerStateTypeT) { + t.State = rcv.State() +} + +func (rcv *ServerStateType) UnPack() *ServerStateTypeT { + if rcv == nil { return nil } + t := &ServerStateTypeT{} + rcv.UnPackTo(t) + return t +} + +type ServerStateType struct { + _tab flatbuffers.Table +} + +func GetRootAsServerStateType(buf []byte, offset flatbuffers.UOffsetT) *ServerStateType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ServerStateType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsServerStateType(buf []byte, offset flatbuffers.UOffsetT) *ServerStateType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ServerStateType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ServerStateType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ServerStateType) Table() flatbuffers.Table { + return rcv._tab +} + +/// Shows the current state of the OPC UA Server +func (rcv *ServerStateType) State() EnumServerState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return EnumServerState(rcv._tab.GetInt32(o + rcv._tab.Pos)) + } + return 0 +} + +/// Shows the current state of the OPC UA Server +func (rcv *ServerStateType) MutateState(n EnumServerState) bool { + return rcv._tab.MutateInt32Slot(4, int32(n)) +} + +func ServerStateTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ServerStateTypeAddState(builder *flatbuffers.Builder, state EnumServerState) { + builder.PrependInt32Slot(0, int32(state), 0) +} +func ServerStateTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/ServerStatusType.go b/pkg/fbs/comm/opcua/server/ServerStatusType.go index 5c59076..90008b5 100644 --- a/pkg/fbs/comm/opcua/server/ServerStatusType.go +++ b/pkg/fbs/comm/opcua/server/ServerStatusType.go @@ -1,167 +1,183 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ServerStatusTypeT struct { - BuildInfo *BuildInfoTypeT - CurrentTime uint32 - SecondsTillShutdown uint32 - ShutdownReason string - StartTime uint32 - State EnumServerState -} - -func (t *ServerStatusTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - buildInfoOffset := t.BuildInfo.Pack(builder) - shutdownReasonOffset := builder.CreateString(t.ShutdownReason) - ServerStatusTypeStart(builder) - ServerStatusTypeAddBuildInfo(builder, buildInfoOffset) - ServerStatusTypeAddCurrentTime(builder, t.CurrentTime) - ServerStatusTypeAddSecondsTillShutdown(builder, t.SecondsTillShutdown) - ServerStatusTypeAddShutdownReason(builder, shutdownReasonOffset) - ServerStatusTypeAddStartTime(builder, t.StartTime) - ServerStatusTypeAddState(builder, t.State) - return ServerStatusTypeEnd(builder) -} - -func (rcv *ServerStatusType) UnPackTo(t *ServerStatusTypeT) { - t.BuildInfo = rcv.BuildInfo(nil).UnPack() - t.CurrentTime = rcv.CurrentTime() - t.SecondsTillShutdown = rcv.SecondsTillShutdown() - t.ShutdownReason = string(rcv.ShutdownReason()) - t.StartTime = rcv.StartTime() - t.State = rcv.State() -} - -func (rcv *ServerStatusType) UnPack() *ServerStatusTypeT { - if rcv == nil { return nil } - t := &ServerStatusTypeT{} - rcv.UnPackTo(t) - return t -} - -type ServerStatusType struct { - _tab flatbuffers.Table -} - -func GetRootAsServerStatusType(buf []byte, offset flatbuffers.UOffsetT) *ServerStatusType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ServerStatusType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsServerStatusType(buf []byte, offset flatbuffers.UOffsetT) *ServerStatusType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ServerStatusType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ServerStatusType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ServerStatusType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ServerStatusType) BuildInfo(obj *BuildInfoType) *BuildInfoType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(BuildInfoType) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ServerStatusType) CurrentTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerStatusType) MutateCurrentTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *ServerStatusType) SecondsTillShutdown() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerStatusType) MutateSecondsTillShutdown(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *ServerStatusType) ShutdownReason() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ServerStatusType) StartTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ServerStatusType) MutateStartTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *ServerStatusType) State() EnumServerState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return EnumServerState(rcv._tab.GetInt32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ServerStatusType) MutateState(n EnumServerState) bool { - return rcv._tab.MutateInt32Slot(14, int32(n)) -} - -func ServerStatusTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func ServerStatusTypeAddBuildInfo(builder *flatbuffers.Builder, buildInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(buildInfo), 0) -} -func ServerStatusTypeAddCurrentTime(builder *flatbuffers.Builder, currentTime uint32) { - builder.PrependUint32Slot(1, currentTime, 0) -} -func ServerStatusTypeAddSecondsTillShutdown(builder *flatbuffers.Builder, secondsTillShutdown uint32) { - builder.PrependUint32Slot(2, secondsTillShutdown, 0) -} -func ServerStatusTypeAddShutdownReason(builder *flatbuffers.Builder, shutdownReason flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(shutdownReason), 0) -} -func ServerStatusTypeAddStartTime(builder *flatbuffers.Builder, startTime uint32) { - builder.PrependUint32Slot(4, startTime, 0) -} -func ServerStatusTypeAddState(builder *flatbuffers.Builder, state EnumServerState) { - builder.PrependInt32Slot(5, int32(state), 0) -} -func ServerStatusTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ServerStatusTypeT struct { + BuildInfo *BuildInfoTypeT + CurrentTime uint32 + SecondsTillShutdown uint32 + ShutdownReason string + StartTime uint32 + State EnumServerState +} + +func (t *ServerStatusTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + buildInfoOffset := t.BuildInfo.Pack(builder) + shutdownReasonOffset := builder.CreateString(t.ShutdownReason) + ServerStatusTypeStart(builder) + ServerStatusTypeAddBuildInfo(builder, buildInfoOffset) + ServerStatusTypeAddCurrentTime(builder, t.CurrentTime) + ServerStatusTypeAddSecondsTillShutdown(builder, t.SecondsTillShutdown) + ServerStatusTypeAddShutdownReason(builder, shutdownReasonOffset) + ServerStatusTypeAddStartTime(builder, t.StartTime) + ServerStatusTypeAddState(builder, t.State) + return ServerStatusTypeEnd(builder) +} + +func (rcv *ServerStatusType) UnPackTo(t *ServerStatusTypeT) { + t.BuildInfo = rcv.BuildInfo(nil).UnPack() + t.CurrentTime = rcv.CurrentTime() + t.SecondsTillShutdown = rcv.SecondsTillShutdown() + t.ShutdownReason = string(rcv.ShutdownReason()) + t.StartTime = rcv.StartTime() + t.State = rcv.State() +} + +func (rcv *ServerStatusType) UnPack() *ServerStatusTypeT { + if rcv == nil { return nil } + t := &ServerStatusTypeT{} + rcv.UnPackTo(t) + return t +} + +type ServerStatusType struct { + _tab flatbuffers.Table +} + +func GetRootAsServerStatusType(buf []byte, offset flatbuffers.UOffsetT) *ServerStatusType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ServerStatusType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsServerStatusType(buf []byte, offset flatbuffers.UOffsetT) *ServerStatusType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ServerStatusType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ServerStatusType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ServerStatusType) Table() flatbuffers.Table { + return rcv._tab +} + +/// Build info of the OPC UA Server +func (rcv *ServerStatusType) BuildInfo(obj *BuildInfoType) *BuildInfoType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(BuildInfoType) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Build info of the OPC UA Server +/// The current time of the OPC UA Server +func (rcv *ServerStatusType) CurrentTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The current time of the OPC UA Server +func (rcv *ServerStatusType) MutateCurrentTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// The time until server shutdown if an OPC UA Server shutdown was requested +/// Otherwise, the value is 0 +func (rcv *ServerStatusType) SecondsTillShutdown() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The time until server shutdown if an OPC UA Server shutdown was requested +/// Otherwise, the value is 0 +func (rcv *ServerStatusType) MutateSecondsTillShutdown(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// The reason for the server shutdown if an OPC UA Server shutdown was requested +/// Otherwise, an empty string is displayed +func (rcv *ServerStatusType) ShutdownReason() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// The reason for the server shutdown if an OPC UA Server shutdown was requested +/// Otherwise, an empty string is displayed +/// The starting point in time of the OPC UA Server +func (rcv *ServerStatusType) StartTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// The starting point in time of the OPC UA Server +func (rcv *ServerStatusType) MutateStartTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +/// The current state of the OPC UA Server +func (rcv *ServerStatusType) State() EnumServerState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return EnumServerState(rcv._tab.GetInt32(o + rcv._tab.Pos)) + } + return 0 +} + +/// The current state of the OPC UA Server +func (rcv *ServerStatusType) MutateState(n EnumServerState) bool { + return rcv._tab.MutateInt32Slot(14, int32(n)) +} + +func ServerStatusTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func ServerStatusTypeAddBuildInfo(builder *flatbuffers.Builder, buildInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(buildInfo), 0) +} +func ServerStatusTypeAddCurrentTime(builder *flatbuffers.Builder, currentTime uint32) { + builder.PrependUint32Slot(1, currentTime, 0) +} +func ServerStatusTypeAddSecondsTillShutdown(builder *flatbuffers.Builder, secondsTillShutdown uint32) { + builder.PrependUint32Slot(2, secondsTillShutdown, 0) +} +func ServerStatusTypeAddShutdownReason(builder *flatbuffers.Builder, shutdownReason flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(shutdownReason), 0) +} +func ServerStatusTypeAddStartTime(builder *flatbuffers.Builder, startTime uint32) { + builder.PrependUint32Slot(4, startTime, 0) +} +func ServerStatusTypeAddState(builder *flatbuffers.Builder, state EnumServerState) { + builder.PrependInt32Slot(5, int32(state), 0) +} +func ServerStatusTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/opcua/server/UserTokenType.go b/pkg/fbs/comm/opcua/server/UserTokenType.go index f56a8bb..c9a37ff 100644 --- a/pkg/fbs/comm/opcua/server/UserTokenType.go +++ b/pkg/fbs/comm/opcua/server/UserTokenType.go @@ -1,96 +1,122 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package server - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type UserTokenTypeT struct { - Type uint32 - PolicyId uint32 -} - -func (t *UserTokenTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - UserTokenTypeStart(builder) - UserTokenTypeAddType(builder, t.Type) - UserTokenTypeAddPolicyId(builder, t.PolicyId) - return UserTokenTypeEnd(builder) -} - -func (rcv *UserTokenType) UnPackTo(t *UserTokenTypeT) { - t.Type = rcv.Type() - t.PolicyId = rcv.PolicyId() -} - -func (rcv *UserTokenType) UnPack() *UserTokenTypeT { - if rcv == nil { return nil } - t := &UserTokenTypeT{} - rcv.UnPackTo(t) - return t -} - -type UserTokenType struct { - _tab flatbuffers.Table -} - -func GetRootAsUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *UserTokenType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UserTokenType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *UserTokenType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UserTokenType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UserTokenType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UserTokenType) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *UserTokenType) Type() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *UserTokenType) MutateType(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *UserTokenType) PolicyId() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *UserTokenType) MutatePolicyId(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func UserTokenTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func UserTokenTypeAddType(builder *flatbuffers.Builder, type_ uint32) { - builder.PrependUint32Slot(0, type_, 0) -} -func UserTokenTypeAddPolicyId(builder *flatbuffers.Builder, policyId uint32) { - builder.PrependUint32Slot(1, policyId, 0) -} -func UserTokenTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package server + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type UserTokenTypeT struct { + Type uint32 + PolicyId uint32 +} + +func (t *UserTokenTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + UserTokenTypeStart(builder) + UserTokenTypeAddType(builder, t.Type) + UserTokenTypeAddPolicyId(builder, t.PolicyId) + return UserTokenTypeEnd(builder) +} + +func (rcv *UserTokenType) UnPackTo(t *UserTokenTypeT) { + t.Type = rcv.Type() + t.PolicyId = rcv.PolicyId() +} + +func (rcv *UserTokenType) UnPack() *UserTokenTypeT { + if rcv == nil { return nil } + t := &UserTokenTypeT{} + rcv.UnPackTo(t) + return t +} + +type UserTokenType struct { + _tab flatbuffers.Table +} + +func GetRootAsUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *UserTokenType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UserTokenType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUserTokenType(buf []byte, offset flatbuffers.UOffsetT) *UserTokenType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UserTokenType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UserTokenType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UserTokenType) Table() flatbuffers.Table { + return rcv._tab +} + +/// User token type +/// UA_USERTOKENTYPE_ANONYMOUS = 0, +/// UA_USERTOKENTYPE_USERNAME = 1, +/// UA_USERTOKENTYPE_CERTIFICATE = 2, +/// UA_USERTOKENTYPE_ISSUEDTOKEN = 3 +func (rcv *UserTokenType) Type() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// User token type +/// UA_USERTOKENTYPE_ANONYMOUS = 0, +/// UA_USERTOKENTYPE_USERNAME = 1, +/// UA_USERTOKENTYPE_CERTIFICATE = 2, +/// UA_USERTOKENTYPE_ISSUEDTOKEN = 3 +func (rcv *UserTokenType) MutateType(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// Security policies +/// UA_SECURITY_POLICY_NONE = 0, +/// UA_SECURITY_POLICY_BASIC128RSA15 = 1, +/// UA_SECURITY_POLICY_BASIC256 = 2, +/// UA_SECURITY_POLICY_BASIC256SHA256 = 3, +/// UA_SECURITY_POLICY_AES128_SHA256_RSAOAEP = 4, +/// UA_SECURITY_POLICY_AES256_SHA256_RSAPSS = 5, +/// UA_SECURITY_POLICY_ID_MAX = 6 +func (rcv *UserTokenType) PolicyId() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Security policies +/// UA_SECURITY_POLICY_NONE = 0, +/// UA_SECURITY_POLICY_BASIC128RSA15 = 1, +/// UA_SECURITY_POLICY_BASIC256 = 2, +/// UA_SECURITY_POLICY_BASIC256SHA256 = 3, +/// UA_SECURITY_POLICY_AES128_SHA256_RSAOAEP = 4, +/// UA_SECURITY_POLICY_AES256_SHA256_RSAPSS = 5, +/// UA_SECURITY_POLICY_ID_MAX = 6 +func (rcv *UserTokenType) MutatePolicyId(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func UserTokenTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func UserTokenTypeAddType(builder *flatbuffers.Builder, type_ uint32) { + builder.PrependUint32Slot(0, type_, 0) +} +func UserTokenTypeAddPolicyId(builder *flatbuffers.Builder, policyId uint32) { + builder.PrependUint32Slot(1, policyId, 0) +} +func UserTokenTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/BufferCfg.go b/pkg/fbs/comm/osci/fbtypes/BufferCfg.go index 255681f..a045f9b 100644 --- a/pkg/fbs/comm/osci/fbtypes/BufferCfg.go +++ b/pkg/fbs/comm/osci/fbtypes/BufferCfg.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type BufferCfgT struct { - RecordingTime *TimeT - BufferType BufferTypeEnumFb - RecordingInterval *TimeT -} - -func (t *BufferCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - recordingTimeOffset := t.RecordingTime.Pack(builder) - recordingIntervalOffset := t.RecordingInterval.Pack(builder) - BufferCfgStart(builder) - BufferCfgAddRecordingTime(builder, recordingTimeOffset) - BufferCfgAddBufferType(builder, t.BufferType) - BufferCfgAddRecordingInterval(builder, recordingIntervalOffset) - return BufferCfgEnd(builder) -} - -func (rcv *BufferCfg) UnPackTo(t *BufferCfgT) { - t.RecordingTime = rcv.RecordingTime(nil).UnPack() - t.BufferType = rcv.BufferType() - t.RecordingInterval = rcv.RecordingInterval(nil).UnPack() -} - -func (rcv *BufferCfg) UnPack() *BufferCfgT { - if rcv == nil { return nil } - t := &BufferCfgT{} - rcv.UnPackTo(t) - return t -} - -type BufferCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsBufferCfg(buf []byte, offset flatbuffers.UOffsetT) *BufferCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &BufferCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBufferCfg(buf []byte, offset flatbuffers.UOffsetT) *BufferCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &BufferCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *BufferCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *BufferCfg) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *BufferCfg) RecordingTime(obj *Time) *Time { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Time) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *BufferCfg) BufferType() BufferTypeEnumFb { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return BufferTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *BufferCfg) MutateBufferType(n BufferTypeEnumFb) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func (rcv *BufferCfg) RecordingInterval(obj *Time) *Time { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Time) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func BufferCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func BufferCfgAddRecordingTime(builder *flatbuffers.Builder, recordingTime flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(recordingTime), 0) -} -func BufferCfgAddBufferType(builder *flatbuffers.Builder, bufferType BufferTypeEnumFb) { - builder.PrependInt8Slot(1, int8(bufferType), 0) -} -func BufferCfgAddRecordingInterval(builder *flatbuffers.Builder, recordingInterval flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(recordingInterval), 0) -} -func BufferCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type BufferCfgT struct { + RecordingTime *TimeT + BufferType BufferTypeEnumFb + RecordingInterval *TimeT +} + +func (t *BufferCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + recordingTimeOffset := t.RecordingTime.Pack(builder) + recordingIntervalOffset := t.RecordingInterval.Pack(builder) + BufferCfgStart(builder) + BufferCfgAddRecordingTime(builder, recordingTimeOffset) + BufferCfgAddBufferType(builder, t.BufferType) + BufferCfgAddRecordingInterval(builder, recordingIntervalOffset) + return BufferCfgEnd(builder) +} + +func (rcv *BufferCfg) UnPackTo(t *BufferCfgT) { + t.RecordingTime = rcv.RecordingTime(nil).UnPack() + t.BufferType = rcv.BufferType() + t.RecordingInterval = rcv.RecordingInterval(nil).UnPack() +} + +func (rcv *BufferCfg) UnPack() *BufferCfgT { + if rcv == nil { return nil } + t := &BufferCfgT{} + rcv.UnPackTo(t) + return t +} + +type BufferCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsBufferCfg(buf []byte, offset flatbuffers.UOffsetT) *BufferCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &BufferCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBufferCfg(buf []byte, offset flatbuffers.UOffsetT) *BufferCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &BufferCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *BufferCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *BufferCfg) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *BufferCfg) RecordingTime(obj *Time) *Time { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Time) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *BufferCfg) BufferType() BufferTypeEnumFb { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return BufferTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *BufferCfg) MutateBufferType(n BufferTypeEnumFb) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func (rcv *BufferCfg) RecordingInterval(obj *Time) *Time { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Time) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func BufferCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func BufferCfgAddRecordingTime(builder *flatbuffers.Builder, recordingTime flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(recordingTime), 0) +} +func BufferCfgAddBufferType(builder *flatbuffers.Builder, bufferType BufferTypeEnumFb) { + builder.PrependInt8Slot(1, int8(bufferType), 0) +} +func BufferCfgAddRecordingInterval(builder *flatbuffers.Builder, recordingInterval flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(recordingInterval), 0) +} +func BufferCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/BufferTypeEnumFb.go b/pkg/fbs/comm/osci/fbtypes/BufferTypeEnumFb.go index 2574cd5..f356cb4 100644 --- a/pkg/fbs/comm/osci/fbtypes/BufferTypeEnumFb.go +++ b/pkg/fbs/comm/osci/fbtypes/BufferTypeEnumFb.go @@ -1,38 +1,38 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type BufferTypeEnumFb int8 - -const ( - BufferTypeEnumFbSINGLESHOT BufferTypeEnumFb = 0 - BufferTypeEnumFbCONTINUOUS BufferTypeEnumFb = 1 - BufferTypeEnumFbREPEAT BufferTypeEnumFb = 2 - BufferTypeEnumFbLONGTERM BufferTypeEnumFb = 3 - BufferTypeEnumFbBULKREAD BufferTypeEnumFb = 4 -) - -var EnumNamesBufferTypeEnumFb = map[BufferTypeEnumFb]string{ - BufferTypeEnumFbSINGLESHOT: "SINGLESHOT", - BufferTypeEnumFbCONTINUOUS: "CONTINUOUS", - BufferTypeEnumFbREPEAT: "REPEAT", - BufferTypeEnumFbLONGTERM: "LONGTERM", - BufferTypeEnumFbBULKREAD: "BULKREAD", -} - -var EnumValuesBufferTypeEnumFb = map[string]BufferTypeEnumFb{ - "SINGLESHOT": BufferTypeEnumFbSINGLESHOT, - "CONTINUOUS": BufferTypeEnumFbCONTINUOUS, - "REPEAT": BufferTypeEnumFbREPEAT, - "LONGTERM": BufferTypeEnumFbLONGTERM, - "BULKREAD": BufferTypeEnumFbBULKREAD, -} - -func (v BufferTypeEnumFb) String() string { - if s, ok := EnumNamesBufferTypeEnumFb[v]; ok { - return s - } - return "BufferTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type BufferTypeEnumFb int8 + +const ( + BufferTypeEnumFbSINGLESHOT BufferTypeEnumFb = 0 + BufferTypeEnumFbCONTINUOUS BufferTypeEnumFb = 1 + BufferTypeEnumFbREPEAT BufferTypeEnumFb = 2 + BufferTypeEnumFbLONGTERM BufferTypeEnumFb = 3 + BufferTypeEnumFbBULKREAD BufferTypeEnumFb = 4 +) + +var EnumNamesBufferTypeEnumFb = map[BufferTypeEnumFb]string{ + BufferTypeEnumFbSINGLESHOT: "SINGLESHOT", + BufferTypeEnumFbCONTINUOUS: "CONTINUOUS", + BufferTypeEnumFbREPEAT: "REPEAT", + BufferTypeEnumFbLONGTERM: "LONGTERM", + BufferTypeEnumFbBULKREAD: "BULKREAD", +} + +var EnumValuesBufferTypeEnumFb = map[string]BufferTypeEnumFb{ + "SINGLESHOT": BufferTypeEnumFbSINGLESHOT, + "CONTINUOUS": BufferTypeEnumFbCONTINUOUS, + "REPEAT": BufferTypeEnumFbREPEAT, + "LONGTERM": BufferTypeEnumFbLONGTERM, + "BULKREAD": BufferTypeEnumFbBULKREAD, +} + +func (v BufferTypeEnumFb) String() string { + if s, ok := EnumNamesBufferTypeEnumFb[v]; ok { + return s + } + return "BufferTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/osci/fbtypes/ChannelCfg.go b/pkg/fbs/comm/osci/fbtypes/ChannelCfg.go index a68ce12..57412ea 100644 --- a/pkg/fbs/comm/osci/fbtypes/ChannelCfg.go +++ b/pkg/fbs/comm/osci/fbtypes/ChannelCfg.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ChannelCfgT struct { - Name string - Source string - Type ChannelTypeEnumFb - Unit string -} - -func (t *ChannelCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - sourceOffset := builder.CreateString(t.Source) - unitOffset := builder.CreateString(t.Unit) - ChannelCfgStart(builder) - ChannelCfgAddName(builder, nameOffset) - ChannelCfgAddSource(builder, sourceOffset) - ChannelCfgAddType(builder, t.Type) - ChannelCfgAddUnit(builder, unitOffset) - return ChannelCfgEnd(builder) -} - -func (rcv *ChannelCfg) UnPackTo(t *ChannelCfgT) { - t.Name = string(rcv.Name()) - t.Source = string(rcv.Source()) - t.Type = rcv.Type() - t.Unit = string(rcv.Unit()) -} - -func (rcv *ChannelCfg) UnPack() *ChannelCfgT { - if rcv == nil { return nil } - t := &ChannelCfgT{} - rcv.UnPackTo(t) - return t -} - -type ChannelCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsChannelCfg(buf []byte, offset flatbuffers.UOffsetT) *ChannelCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ChannelCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsChannelCfg(buf []byte, offset flatbuffers.UOffsetT) *ChannelCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ChannelCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ChannelCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ChannelCfg) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ChannelCfg) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ChannelCfg) Source() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ChannelCfg) Type() ChannelTypeEnumFb { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return ChannelTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ChannelCfg) MutateType(n ChannelTypeEnumFb) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func (rcv *ChannelCfg) Unit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ChannelCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func ChannelCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func ChannelCfgAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(source), 0) -} -func ChannelCfgAddType(builder *flatbuffers.Builder, type_ ChannelTypeEnumFb) { - builder.PrependInt8Slot(2, int8(type_), 0) -} -func ChannelCfgAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(unit), 0) -} -func ChannelCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ChannelCfgT struct { + Name string + Source string + Type ChannelTypeEnumFb + Unit string +} + +func (t *ChannelCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + sourceOffset := builder.CreateString(t.Source) + unitOffset := builder.CreateString(t.Unit) + ChannelCfgStart(builder) + ChannelCfgAddName(builder, nameOffset) + ChannelCfgAddSource(builder, sourceOffset) + ChannelCfgAddType(builder, t.Type) + ChannelCfgAddUnit(builder, unitOffset) + return ChannelCfgEnd(builder) +} + +func (rcv *ChannelCfg) UnPackTo(t *ChannelCfgT) { + t.Name = string(rcv.Name()) + t.Source = string(rcv.Source()) + t.Type = rcv.Type() + t.Unit = string(rcv.Unit()) +} + +func (rcv *ChannelCfg) UnPack() *ChannelCfgT { + if rcv == nil { return nil } + t := &ChannelCfgT{} + rcv.UnPackTo(t) + return t +} + +type ChannelCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsChannelCfg(buf []byte, offset flatbuffers.UOffsetT) *ChannelCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ChannelCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsChannelCfg(buf []byte, offset flatbuffers.UOffsetT) *ChannelCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ChannelCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ChannelCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ChannelCfg) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ChannelCfg) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ChannelCfg) Source() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ChannelCfg) Type() ChannelTypeEnumFb { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return ChannelTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ChannelCfg) MutateType(n ChannelTypeEnumFb) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func (rcv *ChannelCfg) Unit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func ChannelCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func ChannelCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func ChannelCfgAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(source), 0) +} +func ChannelCfgAddType(builder *flatbuffers.Builder, type_ ChannelTypeEnumFb) { + builder.PrependInt8Slot(2, int8(type_), 0) +} +func ChannelCfgAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(unit), 0) +} +func ChannelCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/ChannelTypeEnumFb.go b/pkg/fbs/comm/osci/fbtypes/ChannelTypeEnumFb.go index 34ad984..3d1a4cd 100644 --- a/pkg/fbs/comm/osci/fbtypes/ChannelTypeEnumFb.go +++ b/pkg/fbs/comm/osci/fbtypes/ChannelTypeEnumFb.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type ChannelTypeEnumFb int8 - -const ( - ChannelTypeEnumFbRT ChannelTypeEnumFb = 0 - ChannelTypeEnumFbNRT ChannelTypeEnumFb = 1 - ChannelTypeEnumFbDRIVE ChannelTypeEnumFb = 2 -) - -var EnumNamesChannelTypeEnumFb = map[ChannelTypeEnumFb]string{ - ChannelTypeEnumFbRT: "RT", - ChannelTypeEnumFbNRT: "NRT", - ChannelTypeEnumFbDRIVE: "DRIVE", -} - -var EnumValuesChannelTypeEnumFb = map[string]ChannelTypeEnumFb{ - "RT": ChannelTypeEnumFbRT, - "NRT": ChannelTypeEnumFbNRT, - "DRIVE": ChannelTypeEnumFbDRIVE, -} - -func (v ChannelTypeEnumFb) String() string { - if s, ok := EnumNamesChannelTypeEnumFb[v]; ok { - return s - } - return "ChannelTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type ChannelTypeEnumFb int8 + +const ( + ChannelTypeEnumFbRT ChannelTypeEnumFb = 0 + ChannelTypeEnumFbNRT ChannelTypeEnumFb = 1 + ChannelTypeEnumFbDRIVE ChannelTypeEnumFb = 2 +) + +var EnumNamesChannelTypeEnumFb = map[ChannelTypeEnumFb]string{ + ChannelTypeEnumFbRT: "RT", + ChannelTypeEnumFbNRT: "NRT", + ChannelTypeEnumFbDRIVE: "DRIVE", +} + +var EnumValuesChannelTypeEnumFb = map[string]ChannelTypeEnumFb{ + "RT": ChannelTypeEnumFbRT, + "NRT": ChannelTypeEnumFbNRT, + "DRIVE": ChannelTypeEnumFbDRIVE, +} + +func (v ChannelTypeEnumFb) String() string { + if s, ok := EnumNamesChannelTypeEnumFb[v]; ok { + return s + } + return "ChannelTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/osci/fbtypes/ConnectionTypeEnumFb.go b/pkg/fbs/comm/osci/fbtypes/ConnectionTypeEnumFb.go index 41fcd0f..20ce71f 100644 --- a/pkg/fbs/comm/osci/fbtypes/ConnectionTypeEnumFb.go +++ b/pkg/fbs/comm/osci/fbtypes/ConnectionTypeEnumFb.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type ConnectionTypeEnumFb int8 - -const ( - ConnectionTypeEnumFbLINE ConnectionTypeEnumFb = 0 - ConnectionTypeEnumFbSPLINE ConnectionTypeEnumFb = 1 - ConnectionTypeEnumFbSTEP ConnectionTypeEnumFb = 2 -) - -var EnumNamesConnectionTypeEnumFb = map[ConnectionTypeEnumFb]string{ - ConnectionTypeEnumFbLINE: "LINE", - ConnectionTypeEnumFbSPLINE: "SPLINE", - ConnectionTypeEnumFbSTEP: "STEP", -} - -var EnumValuesConnectionTypeEnumFb = map[string]ConnectionTypeEnumFb{ - "LINE": ConnectionTypeEnumFbLINE, - "SPLINE": ConnectionTypeEnumFbSPLINE, - "STEP": ConnectionTypeEnumFbSTEP, -} - -func (v ConnectionTypeEnumFb) String() string { - if s, ok := EnumNamesConnectionTypeEnumFb[v]; ok { - return s - } - return "ConnectionTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type ConnectionTypeEnumFb int8 + +const ( + ConnectionTypeEnumFbLINE ConnectionTypeEnumFb = 0 + ConnectionTypeEnumFbSPLINE ConnectionTypeEnumFb = 1 + ConnectionTypeEnumFbSTEP ConnectionTypeEnumFb = 2 +) + +var EnumNamesConnectionTypeEnumFb = map[ConnectionTypeEnumFb]string{ + ConnectionTypeEnumFbLINE: "LINE", + ConnectionTypeEnumFbSPLINE: "SPLINE", + ConnectionTypeEnumFbSTEP: "STEP", +} + +var EnumValuesConnectionTypeEnumFb = map[string]ConnectionTypeEnumFb{ + "LINE": ConnectionTypeEnumFbLINE, + "SPLINE": ConnectionTypeEnumFbSPLINE, + "STEP": ConnectionTypeEnumFbSTEP, +} + +func (v ConnectionTypeEnumFb) String() string { + if s, ok := EnumNamesConnectionTypeEnumFb[v]; ok { + return s + } + return "ConnectionTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/osci/fbtypes/DiagramCfg.go b/pkg/fbs/comm/osci/fbtypes/DiagramCfg.go index 6df8599..5209911 100644 --- a/pkg/fbs/comm/osci/fbtypes/DiagramCfg.go +++ b/pkg/fbs/comm/osci/fbtypes/DiagramCfg.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagramCfgT struct { - Name string - Channels []*ViewChannelT -} - -func (t *DiagramCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - channelsOffset := flatbuffers.UOffsetT(0) - if t.Channels != nil { - channelsLength := len(t.Channels) - channelsOffsets := make([]flatbuffers.UOffsetT, channelsLength) - for j := 0; j < channelsLength; j++ { - channelsOffsets[j] = t.Channels[j].Pack(builder) - } - DiagramCfgStartChannelsVector(builder, channelsLength) - for j := channelsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(channelsOffsets[j]) - } - channelsOffset = builder.EndVector(channelsLength) - } - DiagramCfgStart(builder) - DiagramCfgAddName(builder, nameOffset) - DiagramCfgAddChannels(builder, channelsOffset) - return DiagramCfgEnd(builder) -} - -func (rcv *DiagramCfg) UnPackTo(t *DiagramCfgT) { - t.Name = string(rcv.Name()) - channelsLength := rcv.ChannelsLength() - t.Channels = make([]*ViewChannelT, channelsLength) - for j := 0; j < channelsLength; j++ { - x := ViewChannel{} - rcv.Channels(&x, j) - t.Channels[j] = x.UnPack() - } -} - -func (rcv *DiagramCfg) UnPack() *DiagramCfgT { - if rcv == nil { return nil } - t := &DiagramCfgT{} - rcv.UnPackTo(t) - return t -} - -type DiagramCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagramCfg(buf []byte, offset flatbuffers.UOffsetT) *DiagramCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagramCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagramCfg(buf []byte, offset flatbuffers.UOffsetT) *DiagramCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagramCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagramCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagramCfg) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DiagramCfg) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DiagramCfg) Channels(obj *ViewChannel, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *DiagramCfg) ChannelsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func DiagramCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func DiagramCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func DiagramCfgAddChannels(builder *flatbuffers.Builder, channels flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(channels), 0) -} -func DiagramCfgStartChannelsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func DiagramCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DiagramCfgT struct { + Name string + Channels []*ViewChannelT +} + +func (t *DiagramCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + channelsOffset := flatbuffers.UOffsetT(0) + if t.Channels != nil { + channelsLength := len(t.Channels) + channelsOffsets := make([]flatbuffers.UOffsetT, channelsLength) + for j := 0; j < channelsLength; j++ { + channelsOffsets[j] = t.Channels[j].Pack(builder) + } + DiagramCfgStartChannelsVector(builder, channelsLength) + for j := channelsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(channelsOffsets[j]) + } + channelsOffset = builder.EndVector(channelsLength) + } + DiagramCfgStart(builder) + DiagramCfgAddName(builder, nameOffset) + DiagramCfgAddChannels(builder, channelsOffset) + return DiagramCfgEnd(builder) +} + +func (rcv *DiagramCfg) UnPackTo(t *DiagramCfgT) { + t.Name = string(rcv.Name()) + channelsLength := rcv.ChannelsLength() + t.Channels = make([]*ViewChannelT, channelsLength) + for j := 0; j < channelsLength; j++ { + x := ViewChannel{} + rcv.Channels(&x, j) + t.Channels[j] = x.UnPack() + } +} + +func (rcv *DiagramCfg) UnPack() *DiagramCfgT { + if rcv == nil { return nil } + t := &DiagramCfgT{} + rcv.UnPackTo(t) + return t +} + +type DiagramCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagramCfg(buf []byte, offset flatbuffers.UOffsetT) *DiagramCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagramCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagramCfg(buf []byte, offset flatbuffers.UOffsetT) *DiagramCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagramCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagramCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagramCfg) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DiagramCfg) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DiagramCfg) Channels(obj *ViewChannel, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *DiagramCfg) ChannelsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func DiagramCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DiagramCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func DiagramCfgAddChannels(builder *flatbuffers.Builder, channels flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(channels), 0) +} +func DiagramCfgStartChannelsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func DiagramCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/Oscilloscope.go b/pkg/fbs/comm/osci/fbtypes/Oscilloscope.go index f8e18a0..8ebcd37 100644 --- a/pkg/fbs/comm/osci/fbtypes/Oscilloscope.go +++ b/pkg/fbs/comm/osci/fbtypes/Oscilloscope.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OscilloscopeT struct { - Cfg *OscilloscopeCfgT - State *OscilloscopeStateT -} - -func (t *OscilloscopeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cfgOffset := t.Cfg.Pack(builder) - stateOffset := t.State.Pack(builder) - OscilloscopeStart(builder) - OscilloscopeAddCfg(builder, cfgOffset) - OscilloscopeAddState(builder, stateOffset) - return OscilloscopeEnd(builder) -} - -func (rcv *Oscilloscope) UnPackTo(t *OscilloscopeT) { - t.Cfg = rcv.Cfg(nil).UnPack() - t.State = rcv.State(nil).UnPack() -} - -func (rcv *Oscilloscope) UnPack() *OscilloscopeT { - if rcv == nil { return nil } - t := &OscilloscopeT{} - rcv.UnPackTo(t) - return t -} - -type Oscilloscope struct { - _tab flatbuffers.Table -} - -func GetRootAsOscilloscope(buf []byte, offset flatbuffers.UOffsetT) *Oscilloscope { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Oscilloscope{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOscilloscope(buf []byte, offset flatbuffers.UOffsetT) *Oscilloscope { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Oscilloscope{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Oscilloscope) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Oscilloscope) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Oscilloscope) Cfg(obj *OscilloscopeCfg) *OscilloscopeCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(OscilloscopeCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Oscilloscope) State(obj *OscilloscopeState) *OscilloscopeState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(OscilloscopeState) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func OscilloscopeStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func OscilloscopeAddCfg(builder *flatbuffers.Builder, cfg flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cfg), 0) -} -func OscilloscopeAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(state), 0) -} -func OscilloscopeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OscilloscopeT struct { + Cfg *OscilloscopeCfgT + State *OscilloscopeStateT +} + +func (t *OscilloscopeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cfgOffset := t.Cfg.Pack(builder) + stateOffset := t.State.Pack(builder) + OscilloscopeStart(builder) + OscilloscopeAddCfg(builder, cfgOffset) + OscilloscopeAddState(builder, stateOffset) + return OscilloscopeEnd(builder) +} + +func (rcv *Oscilloscope) UnPackTo(t *OscilloscopeT) { + t.Cfg = rcv.Cfg(nil).UnPack() + t.State = rcv.State(nil).UnPack() +} + +func (rcv *Oscilloscope) UnPack() *OscilloscopeT { + if rcv == nil { return nil } + t := &OscilloscopeT{} + rcv.UnPackTo(t) + return t +} + +type Oscilloscope struct { + _tab flatbuffers.Table +} + +func GetRootAsOscilloscope(buf []byte, offset flatbuffers.UOffsetT) *Oscilloscope { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Oscilloscope{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOscilloscope(buf []byte, offset flatbuffers.UOffsetT) *Oscilloscope { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Oscilloscope{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Oscilloscope) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Oscilloscope) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Oscilloscope) Cfg(obj *OscilloscopeCfg) *OscilloscopeCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(OscilloscopeCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Oscilloscope) State(obj *OscilloscopeState) *OscilloscopeState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(OscilloscopeState) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func OscilloscopeStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func OscilloscopeAddCfg(builder *flatbuffers.Builder, cfg flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cfg), 0) +} +func OscilloscopeAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(state), 0) +} +func OscilloscopeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/OscilloscopeCfg.go b/pkg/fbs/comm/osci/fbtypes/OscilloscopeCfg.go index 8b8c1de..a7863ac 100644 --- a/pkg/fbs/comm/osci/fbtypes/OscilloscopeCfg.go +++ b/pkg/fbs/comm/osci/fbtypes/OscilloscopeCfg.go @@ -1,211 +1,211 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OscilloscopeCfgT struct { - Name string - Channels []*ChannelCfgT - Buffer *BufferCfgT - Trigger *TriggerCfgT - Diagramview []*DiagramCfgT -} - -func (t *OscilloscopeCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - channelsOffset := flatbuffers.UOffsetT(0) - if t.Channels != nil { - channelsLength := len(t.Channels) - channelsOffsets := make([]flatbuffers.UOffsetT, channelsLength) - for j := 0; j < channelsLength; j++ { - channelsOffsets[j] = t.Channels[j].Pack(builder) - } - OscilloscopeCfgStartChannelsVector(builder, channelsLength) - for j := channelsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(channelsOffsets[j]) - } - channelsOffset = builder.EndVector(channelsLength) - } - bufferOffset := t.Buffer.Pack(builder) - triggerOffset := t.Trigger.Pack(builder) - diagramviewOffset := flatbuffers.UOffsetT(0) - if t.Diagramview != nil { - diagramviewLength := len(t.Diagramview) - diagramviewOffsets := make([]flatbuffers.UOffsetT, diagramviewLength) - for j := 0; j < diagramviewLength; j++ { - diagramviewOffsets[j] = t.Diagramview[j].Pack(builder) - } - OscilloscopeCfgStartDiagramviewVector(builder, diagramviewLength) - for j := diagramviewLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(diagramviewOffsets[j]) - } - diagramviewOffset = builder.EndVector(diagramviewLength) - } - OscilloscopeCfgStart(builder) - OscilloscopeCfgAddName(builder, nameOffset) - OscilloscopeCfgAddChannels(builder, channelsOffset) - OscilloscopeCfgAddBuffer(builder, bufferOffset) - OscilloscopeCfgAddTrigger(builder, triggerOffset) - OscilloscopeCfgAddDiagramview(builder, diagramviewOffset) - return OscilloscopeCfgEnd(builder) -} - -func (rcv *OscilloscopeCfg) UnPackTo(t *OscilloscopeCfgT) { - t.Name = string(rcv.Name()) - channelsLength := rcv.ChannelsLength() - t.Channels = make([]*ChannelCfgT, channelsLength) - for j := 0; j < channelsLength; j++ { - x := ChannelCfg{} - rcv.Channels(&x, j) - t.Channels[j] = x.UnPack() - } - t.Buffer = rcv.Buffer(nil).UnPack() - t.Trigger = rcv.Trigger(nil).UnPack() - diagramviewLength := rcv.DiagramviewLength() - t.Diagramview = make([]*DiagramCfgT, diagramviewLength) - for j := 0; j < diagramviewLength; j++ { - x := DiagramCfg{} - rcv.Diagramview(&x, j) - t.Diagramview[j] = x.UnPack() - } -} - -func (rcv *OscilloscopeCfg) UnPack() *OscilloscopeCfgT { - if rcv == nil { return nil } - t := &OscilloscopeCfgT{} - rcv.UnPackTo(t) - return t -} - -type OscilloscopeCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsOscilloscopeCfg(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OscilloscopeCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOscilloscopeCfg(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OscilloscopeCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OscilloscopeCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OscilloscopeCfg) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OscilloscopeCfg) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *OscilloscopeCfg) Channels(obj *ChannelCfg, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *OscilloscopeCfg) ChannelsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *OscilloscopeCfg) Buffer(obj *BufferCfg) *BufferCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(BufferCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *OscilloscopeCfg) Trigger(obj *TriggerCfg) *TriggerCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(TriggerCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *OscilloscopeCfg) Diagramview(obj *DiagramCfg, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *OscilloscopeCfg) DiagramviewLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func OscilloscopeCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func OscilloscopeCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func OscilloscopeCfgAddChannels(builder *flatbuffers.Builder, channels flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(channels), 0) -} -func OscilloscopeCfgStartChannelsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func OscilloscopeCfgAddBuffer(builder *flatbuffers.Builder, buffer flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(buffer), 0) -} -func OscilloscopeCfgAddTrigger(builder *flatbuffers.Builder, trigger flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(trigger), 0) -} -func OscilloscopeCfgAddDiagramview(builder *flatbuffers.Builder, diagramview flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(diagramview), 0) -} -func OscilloscopeCfgStartDiagramviewVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func OscilloscopeCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OscilloscopeCfgT struct { + Name string + Channels []*ChannelCfgT + Buffer *BufferCfgT + Trigger *TriggerCfgT + Diagramview []*DiagramCfgT +} + +func (t *OscilloscopeCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + channelsOffset := flatbuffers.UOffsetT(0) + if t.Channels != nil { + channelsLength := len(t.Channels) + channelsOffsets := make([]flatbuffers.UOffsetT, channelsLength) + for j := 0; j < channelsLength; j++ { + channelsOffsets[j] = t.Channels[j].Pack(builder) + } + OscilloscopeCfgStartChannelsVector(builder, channelsLength) + for j := channelsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(channelsOffsets[j]) + } + channelsOffset = builder.EndVector(channelsLength) + } + bufferOffset := t.Buffer.Pack(builder) + triggerOffset := t.Trigger.Pack(builder) + diagramviewOffset := flatbuffers.UOffsetT(0) + if t.Diagramview != nil { + diagramviewLength := len(t.Diagramview) + diagramviewOffsets := make([]flatbuffers.UOffsetT, diagramviewLength) + for j := 0; j < diagramviewLength; j++ { + diagramviewOffsets[j] = t.Diagramview[j].Pack(builder) + } + OscilloscopeCfgStartDiagramviewVector(builder, diagramviewLength) + for j := diagramviewLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(diagramviewOffsets[j]) + } + diagramviewOffset = builder.EndVector(diagramviewLength) + } + OscilloscopeCfgStart(builder) + OscilloscopeCfgAddName(builder, nameOffset) + OscilloscopeCfgAddChannels(builder, channelsOffset) + OscilloscopeCfgAddBuffer(builder, bufferOffset) + OscilloscopeCfgAddTrigger(builder, triggerOffset) + OscilloscopeCfgAddDiagramview(builder, diagramviewOffset) + return OscilloscopeCfgEnd(builder) +} + +func (rcv *OscilloscopeCfg) UnPackTo(t *OscilloscopeCfgT) { + t.Name = string(rcv.Name()) + channelsLength := rcv.ChannelsLength() + t.Channels = make([]*ChannelCfgT, channelsLength) + for j := 0; j < channelsLength; j++ { + x := ChannelCfg{} + rcv.Channels(&x, j) + t.Channels[j] = x.UnPack() + } + t.Buffer = rcv.Buffer(nil).UnPack() + t.Trigger = rcv.Trigger(nil).UnPack() + diagramviewLength := rcv.DiagramviewLength() + t.Diagramview = make([]*DiagramCfgT, diagramviewLength) + for j := 0; j < diagramviewLength; j++ { + x := DiagramCfg{} + rcv.Diagramview(&x, j) + t.Diagramview[j] = x.UnPack() + } +} + +func (rcv *OscilloscopeCfg) UnPack() *OscilloscopeCfgT { + if rcv == nil { return nil } + t := &OscilloscopeCfgT{} + rcv.UnPackTo(t) + return t +} + +type OscilloscopeCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsOscilloscopeCfg(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OscilloscopeCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOscilloscopeCfg(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OscilloscopeCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OscilloscopeCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OscilloscopeCfg) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OscilloscopeCfg) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *OscilloscopeCfg) Channels(obj *ChannelCfg, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *OscilloscopeCfg) ChannelsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *OscilloscopeCfg) Buffer(obj *BufferCfg) *BufferCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(BufferCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *OscilloscopeCfg) Trigger(obj *TriggerCfg) *TriggerCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(TriggerCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *OscilloscopeCfg) Diagramview(obj *DiagramCfg, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *OscilloscopeCfg) DiagramviewLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func OscilloscopeCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func OscilloscopeCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func OscilloscopeCfgAddChannels(builder *flatbuffers.Builder, channels flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(channels), 0) +} +func OscilloscopeCfgStartChannelsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func OscilloscopeCfgAddBuffer(builder *flatbuffers.Builder, buffer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(buffer), 0) +} +func OscilloscopeCfgAddTrigger(builder *flatbuffers.Builder, trigger flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(trigger), 0) +} +func OscilloscopeCfgAddDiagramview(builder *flatbuffers.Builder, diagramview flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(diagramview), 0) +} +func OscilloscopeCfgStartDiagramviewVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func OscilloscopeCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/OscilloscopeDiagnosis.go b/pkg/fbs/comm/osci/fbtypes/OscilloscopeDiagnosis.go index 54ff82e..b3ec153 100644 --- a/pkg/fbs/comm/osci/fbtypes/OscilloscopeDiagnosis.go +++ b/pkg/fbs/comm/osci/fbtypes/OscilloscopeDiagnosis.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OscilloscopeDiagnosisT struct { - MainDiagnosisCode uint32 - DetailedDiagnosisCode uint32 - DynamicDescription string -} - -func (t *OscilloscopeDiagnosisT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) - OscilloscopeDiagnosisStart(builder) - OscilloscopeDiagnosisAddMainDiagnosisCode(builder, t.MainDiagnosisCode) - OscilloscopeDiagnosisAddDetailedDiagnosisCode(builder, t.DetailedDiagnosisCode) - OscilloscopeDiagnosisAddDynamicDescription(builder, dynamicDescriptionOffset) - return OscilloscopeDiagnosisEnd(builder) -} - -func (rcv *OscilloscopeDiagnosis) UnPackTo(t *OscilloscopeDiagnosisT) { - t.MainDiagnosisCode = rcv.MainDiagnosisCode() - t.DetailedDiagnosisCode = rcv.DetailedDiagnosisCode() - t.DynamicDescription = string(rcv.DynamicDescription()) -} - -func (rcv *OscilloscopeDiagnosis) UnPack() *OscilloscopeDiagnosisT { - if rcv == nil { return nil } - t := &OscilloscopeDiagnosisT{} - rcv.UnPackTo(t) - return t -} - -type OscilloscopeDiagnosis struct { - _tab flatbuffers.Table -} - -func GetRootAsOscilloscopeDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeDiagnosis { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OscilloscopeDiagnosis{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOscilloscopeDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeDiagnosis { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OscilloscopeDiagnosis{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OscilloscopeDiagnosis) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OscilloscopeDiagnosis) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OscilloscopeDiagnosis) MainDiagnosisCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OscilloscopeDiagnosis) MutateMainDiagnosisCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *OscilloscopeDiagnosis) DetailedDiagnosisCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OscilloscopeDiagnosis) MutateDetailedDiagnosisCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *OscilloscopeDiagnosis) DynamicDescription() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func OscilloscopeDiagnosisStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func OscilloscopeDiagnosisAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode uint32) { - builder.PrependUint32Slot(0, mainDiagnosisCode, 0) -} -func OscilloscopeDiagnosisAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode uint32) { - builder.PrependUint32Slot(1, detailedDiagnosisCode, 0) -} -func OscilloscopeDiagnosisAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dynamicDescription), 0) -} -func OscilloscopeDiagnosisEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OscilloscopeDiagnosisT struct { + MainDiagnosisCode uint32 + DetailedDiagnosisCode uint32 + DynamicDescription string +} + +func (t *OscilloscopeDiagnosisT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) + OscilloscopeDiagnosisStart(builder) + OscilloscopeDiagnosisAddMainDiagnosisCode(builder, t.MainDiagnosisCode) + OscilloscopeDiagnosisAddDetailedDiagnosisCode(builder, t.DetailedDiagnosisCode) + OscilloscopeDiagnosisAddDynamicDescription(builder, dynamicDescriptionOffset) + return OscilloscopeDiagnosisEnd(builder) +} + +func (rcv *OscilloscopeDiagnosis) UnPackTo(t *OscilloscopeDiagnosisT) { + t.MainDiagnosisCode = rcv.MainDiagnosisCode() + t.DetailedDiagnosisCode = rcv.DetailedDiagnosisCode() + t.DynamicDescription = string(rcv.DynamicDescription()) +} + +func (rcv *OscilloscopeDiagnosis) UnPack() *OscilloscopeDiagnosisT { + if rcv == nil { return nil } + t := &OscilloscopeDiagnosisT{} + rcv.UnPackTo(t) + return t +} + +type OscilloscopeDiagnosis struct { + _tab flatbuffers.Table +} + +func GetRootAsOscilloscopeDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeDiagnosis { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OscilloscopeDiagnosis{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOscilloscopeDiagnosis(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeDiagnosis { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OscilloscopeDiagnosis{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OscilloscopeDiagnosis) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OscilloscopeDiagnosis) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OscilloscopeDiagnosis) MainDiagnosisCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OscilloscopeDiagnosis) MutateMainDiagnosisCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *OscilloscopeDiagnosis) DetailedDiagnosisCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OscilloscopeDiagnosis) MutateDetailedDiagnosisCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *OscilloscopeDiagnosis) DynamicDescription() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func OscilloscopeDiagnosisStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func OscilloscopeDiagnosisAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode uint32) { + builder.PrependUint32Slot(0, mainDiagnosisCode, 0) +} +func OscilloscopeDiagnosisAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode uint32) { + builder.PrependUint32Slot(1, detailedDiagnosisCode, 0) +} +func OscilloscopeDiagnosisAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dynamicDescription), 0) +} +func OscilloscopeDiagnosisEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/OscilloscopeRec.go b/pkg/fbs/comm/osci/fbtypes/OscilloscopeRec.go index 15ca41c..8941e7f 100644 --- a/pkg/fbs/comm/osci/fbtypes/OscilloscopeRec.go +++ b/pkg/fbs/comm/osci/fbtypes/OscilloscopeRec.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OscilloscopeRecT struct { - Trigger *TimeT - Channels []string -} - -func (t *OscilloscopeRecT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - triggerOffset := t.Trigger.Pack(builder) - channelsOffset := flatbuffers.UOffsetT(0) - if t.Channels != nil { - channelsLength := len(t.Channels) - channelsOffsets := make([]flatbuffers.UOffsetT, channelsLength) - for j := 0; j < channelsLength; j++ { - channelsOffsets[j] = builder.CreateString(t.Channels[j]) - } - OscilloscopeRecStartChannelsVector(builder, channelsLength) - for j := channelsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(channelsOffsets[j]) - } - channelsOffset = builder.EndVector(channelsLength) - } - OscilloscopeRecStart(builder) - OscilloscopeRecAddTrigger(builder, triggerOffset) - OscilloscopeRecAddChannels(builder, channelsOffset) - return OscilloscopeRecEnd(builder) -} - -func (rcv *OscilloscopeRec) UnPackTo(t *OscilloscopeRecT) { - t.Trigger = rcv.Trigger(nil).UnPack() - channelsLength := rcv.ChannelsLength() - t.Channels = make([]string, channelsLength) - for j := 0; j < channelsLength; j++ { - t.Channels[j] = string(rcv.Channels(j)) - } -} - -func (rcv *OscilloscopeRec) UnPack() *OscilloscopeRecT { - if rcv == nil { return nil } - t := &OscilloscopeRecT{} - rcv.UnPackTo(t) - return t -} - -type OscilloscopeRec struct { - _tab flatbuffers.Table -} - -func GetRootAsOscilloscopeRec(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeRec { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OscilloscopeRec{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOscilloscopeRec(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeRec { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OscilloscopeRec{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OscilloscopeRec) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OscilloscopeRec) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OscilloscopeRec) Trigger(obj *Time) *Time { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Time) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *OscilloscopeRec) Channels(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *OscilloscopeRec) ChannelsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func OscilloscopeRecStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func OscilloscopeRecAddTrigger(builder *flatbuffers.Builder, trigger flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(trigger), 0) -} -func OscilloscopeRecAddChannels(builder *flatbuffers.Builder, channels flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(channels), 0) -} -func OscilloscopeRecStartChannelsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func OscilloscopeRecEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OscilloscopeRecT struct { + Trigger *TimeT + Channels []string +} + +func (t *OscilloscopeRecT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + triggerOffset := t.Trigger.Pack(builder) + channelsOffset := flatbuffers.UOffsetT(0) + if t.Channels != nil { + channelsLength := len(t.Channels) + channelsOffsets := make([]flatbuffers.UOffsetT, channelsLength) + for j := 0; j < channelsLength; j++ { + channelsOffsets[j] = builder.CreateString(t.Channels[j]) + } + OscilloscopeRecStartChannelsVector(builder, channelsLength) + for j := channelsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(channelsOffsets[j]) + } + channelsOffset = builder.EndVector(channelsLength) + } + OscilloscopeRecStart(builder) + OscilloscopeRecAddTrigger(builder, triggerOffset) + OscilloscopeRecAddChannels(builder, channelsOffset) + return OscilloscopeRecEnd(builder) +} + +func (rcv *OscilloscopeRec) UnPackTo(t *OscilloscopeRecT) { + t.Trigger = rcv.Trigger(nil).UnPack() + channelsLength := rcv.ChannelsLength() + t.Channels = make([]string, channelsLength) + for j := 0; j < channelsLength; j++ { + t.Channels[j] = string(rcv.Channels(j)) + } +} + +func (rcv *OscilloscopeRec) UnPack() *OscilloscopeRecT { + if rcv == nil { return nil } + t := &OscilloscopeRecT{} + rcv.UnPackTo(t) + return t +} + +type OscilloscopeRec struct { + _tab flatbuffers.Table +} + +func GetRootAsOscilloscopeRec(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeRec { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OscilloscopeRec{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOscilloscopeRec(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeRec { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OscilloscopeRec{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OscilloscopeRec) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OscilloscopeRec) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OscilloscopeRec) Trigger(obj *Time) *Time { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Time) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *OscilloscopeRec) Channels(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *OscilloscopeRec) ChannelsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func OscilloscopeRecStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func OscilloscopeRecAddTrigger(builder *flatbuffers.Builder, trigger flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(trigger), 0) +} +func OscilloscopeRecAddChannels(builder *flatbuffers.Builder, channels flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(channels), 0) +} +func OscilloscopeRecStartChannelsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func OscilloscopeRecEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/OscilloscopeState.go b/pkg/fbs/comm/osci/fbtypes/OscilloscopeState.go index ed2521d..a340d3c 100644 --- a/pkg/fbs/comm/osci/fbtypes/OscilloscopeState.go +++ b/pkg/fbs/comm/osci/fbtypes/OscilloscopeState.go @@ -1,116 +1,116 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OscilloscopeStateT struct { - Opstate OscilloscopeStateEnum - Diagnosis *OscilloscopeDiagnosisT - BufferLevel float64 -} - -func (t *OscilloscopeStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - diagnosisOffset := t.Diagnosis.Pack(builder) - OscilloscopeStateStart(builder) - OscilloscopeStateAddOpstate(builder, t.Opstate) - OscilloscopeStateAddDiagnosis(builder, diagnosisOffset) - OscilloscopeStateAddBufferLevel(builder, t.BufferLevel) - return OscilloscopeStateEnd(builder) -} - -func (rcv *OscilloscopeState) UnPackTo(t *OscilloscopeStateT) { - t.Opstate = rcv.Opstate() - t.Diagnosis = rcv.Diagnosis(nil).UnPack() - t.BufferLevel = rcv.BufferLevel() -} - -func (rcv *OscilloscopeState) UnPack() *OscilloscopeStateT { - if rcv == nil { return nil } - t := &OscilloscopeStateT{} - rcv.UnPackTo(t) - return t -} - -type OscilloscopeState struct { - _tab flatbuffers.Table -} - -func GetRootAsOscilloscopeState(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OscilloscopeState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOscilloscopeState(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OscilloscopeState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OscilloscopeState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OscilloscopeState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OscilloscopeState) Opstate() OscilloscopeStateEnum { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return OscilloscopeStateEnum(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *OscilloscopeState) MutateOpstate(n OscilloscopeStateEnum) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *OscilloscopeState) Diagnosis(obj *OscilloscopeDiagnosis) *OscilloscopeDiagnosis { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(OscilloscopeDiagnosis) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *OscilloscopeState) BufferLevel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *OscilloscopeState) MutateBufferLevel(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func OscilloscopeStateStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func OscilloscopeStateAddOpstate(builder *flatbuffers.Builder, opstate OscilloscopeStateEnum) { - builder.PrependInt8Slot(0, int8(opstate), 0) -} -func OscilloscopeStateAddDiagnosis(builder *flatbuffers.Builder, diagnosis flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(diagnosis), 0) -} -func OscilloscopeStateAddBufferLevel(builder *flatbuffers.Builder, bufferLevel float64) { - builder.PrependFloat64Slot(2, bufferLevel, 0.0) -} -func OscilloscopeStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OscilloscopeStateT struct { + Opstate OscilloscopeStateEnum + Diagnosis *OscilloscopeDiagnosisT + BufferLevel float64 +} + +func (t *OscilloscopeStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + diagnosisOffset := t.Diagnosis.Pack(builder) + OscilloscopeStateStart(builder) + OscilloscopeStateAddOpstate(builder, t.Opstate) + OscilloscopeStateAddDiagnosis(builder, diagnosisOffset) + OscilloscopeStateAddBufferLevel(builder, t.BufferLevel) + return OscilloscopeStateEnd(builder) +} + +func (rcv *OscilloscopeState) UnPackTo(t *OscilloscopeStateT) { + t.Opstate = rcv.Opstate() + t.Diagnosis = rcv.Diagnosis(nil).UnPack() + t.BufferLevel = rcv.BufferLevel() +} + +func (rcv *OscilloscopeState) UnPack() *OscilloscopeStateT { + if rcv == nil { return nil } + t := &OscilloscopeStateT{} + rcv.UnPackTo(t) + return t +} + +type OscilloscopeState struct { + _tab flatbuffers.Table +} + +func GetRootAsOscilloscopeState(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OscilloscopeState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOscilloscopeState(buf []byte, offset flatbuffers.UOffsetT) *OscilloscopeState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OscilloscopeState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OscilloscopeState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OscilloscopeState) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OscilloscopeState) Opstate() OscilloscopeStateEnum { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return OscilloscopeStateEnum(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *OscilloscopeState) MutateOpstate(n OscilloscopeStateEnum) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func (rcv *OscilloscopeState) Diagnosis(obj *OscilloscopeDiagnosis) *OscilloscopeDiagnosis { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(OscilloscopeDiagnosis) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *OscilloscopeState) BufferLevel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *OscilloscopeState) MutateBufferLevel(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func OscilloscopeStateStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func OscilloscopeStateAddOpstate(builder *flatbuffers.Builder, opstate OscilloscopeStateEnum) { + builder.PrependInt8Slot(0, int8(opstate), 0) +} +func OscilloscopeStateAddDiagnosis(builder *flatbuffers.Builder, diagnosis flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(diagnosis), 0) +} +func OscilloscopeStateAddBufferLevel(builder *flatbuffers.Builder, bufferLevel float64) { + builder.PrependFloat64Slot(2, bufferLevel, 0.0) +} +func OscilloscopeStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/OscilloscopeStateEnum.go b/pkg/fbs/comm/osci/fbtypes/OscilloscopeStateEnum.go index ab8cd49..d9ada29 100644 --- a/pkg/fbs/comm/osci/fbtypes/OscilloscopeStateEnum.go +++ b/pkg/fbs/comm/osci/fbtypes/OscilloscopeStateEnum.go @@ -1,47 +1,47 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type OscilloscopeStateEnum int8 - -const ( - OscilloscopeStateEnumNOT_CONFIGURED OscilloscopeStateEnum = 0 - OscilloscopeStateEnumCONFIGURED OscilloscopeStateEnum = 1 - OscilloscopeStateEnumSTARTING OscilloscopeStateEnum = 2 - OscilloscopeStateEnumWAIT_FOR_TRIGGER OscilloscopeStateEnum = 3 - OscilloscopeStateEnumTRIGGERED OscilloscopeStateEnum = 4 - OscilloscopeStateEnumRECORDING_COMPLETED OscilloscopeStateEnum = 5 - OscilloscopeStateEnumRECORDING OscilloscopeStateEnum = 6 - OscilloscopeStateEnumERROR OscilloscopeStateEnum = 7 -) - -var EnumNamesOscilloscopeStateEnum = map[OscilloscopeStateEnum]string{ - OscilloscopeStateEnumNOT_CONFIGURED: "NOT_CONFIGURED", - OscilloscopeStateEnumCONFIGURED: "CONFIGURED", - OscilloscopeStateEnumSTARTING: "STARTING", - OscilloscopeStateEnumWAIT_FOR_TRIGGER: "WAIT_FOR_TRIGGER", - OscilloscopeStateEnumTRIGGERED: "TRIGGERED", - OscilloscopeStateEnumRECORDING_COMPLETED: "RECORDING_COMPLETED", - OscilloscopeStateEnumRECORDING: "RECORDING", - OscilloscopeStateEnumERROR: "ERROR", -} - -var EnumValuesOscilloscopeStateEnum = map[string]OscilloscopeStateEnum{ - "NOT_CONFIGURED": OscilloscopeStateEnumNOT_CONFIGURED, - "CONFIGURED": OscilloscopeStateEnumCONFIGURED, - "STARTING": OscilloscopeStateEnumSTARTING, - "WAIT_FOR_TRIGGER": OscilloscopeStateEnumWAIT_FOR_TRIGGER, - "TRIGGERED": OscilloscopeStateEnumTRIGGERED, - "RECORDING_COMPLETED": OscilloscopeStateEnumRECORDING_COMPLETED, - "RECORDING": OscilloscopeStateEnumRECORDING, - "ERROR": OscilloscopeStateEnumERROR, -} - -func (v OscilloscopeStateEnum) String() string { - if s, ok := EnumNamesOscilloscopeStateEnum[v]; ok { - return s - } - return "OscilloscopeStateEnum(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type OscilloscopeStateEnum int8 + +const ( + OscilloscopeStateEnumNOT_CONFIGURED OscilloscopeStateEnum = 0 + OscilloscopeStateEnumCONFIGURED OscilloscopeStateEnum = 1 + OscilloscopeStateEnumSTARTING OscilloscopeStateEnum = 2 + OscilloscopeStateEnumWAIT_FOR_TRIGGER OscilloscopeStateEnum = 3 + OscilloscopeStateEnumTRIGGERED OscilloscopeStateEnum = 4 + OscilloscopeStateEnumRECORDING_COMPLETED OscilloscopeStateEnum = 5 + OscilloscopeStateEnumRECORDING OscilloscopeStateEnum = 6 + OscilloscopeStateEnumERROR OscilloscopeStateEnum = 7 +) + +var EnumNamesOscilloscopeStateEnum = map[OscilloscopeStateEnum]string{ + OscilloscopeStateEnumNOT_CONFIGURED: "NOT_CONFIGURED", + OscilloscopeStateEnumCONFIGURED: "CONFIGURED", + OscilloscopeStateEnumSTARTING: "STARTING", + OscilloscopeStateEnumWAIT_FOR_TRIGGER: "WAIT_FOR_TRIGGER", + OscilloscopeStateEnumTRIGGERED: "TRIGGERED", + OscilloscopeStateEnumRECORDING_COMPLETED: "RECORDING_COMPLETED", + OscilloscopeStateEnumRECORDING: "RECORDING", + OscilloscopeStateEnumERROR: "ERROR", +} + +var EnumValuesOscilloscopeStateEnum = map[string]OscilloscopeStateEnum{ + "NOT_CONFIGURED": OscilloscopeStateEnumNOT_CONFIGURED, + "CONFIGURED": OscilloscopeStateEnumCONFIGURED, + "STARTING": OscilloscopeStateEnumSTARTING, + "WAIT_FOR_TRIGGER": OscilloscopeStateEnumWAIT_FOR_TRIGGER, + "TRIGGERED": OscilloscopeStateEnumTRIGGERED, + "RECORDING_COMPLETED": OscilloscopeStateEnumRECORDING_COMPLETED, + "RECORDING": OscilloscopeStateEnumRECORDING, + "ERROR": OscilloscopeStateEnumERROR, +} + +func (v OscilloscopeStateEnum) String() string { + if s, ok := EnumNamesOscilloscopeStateEnum[v]; ok { + return s + } + return "OscilloscopeStateEnum(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/osci/fbtypes/RecAllSignals.go b/pkg/fbs/comm/osci/fbtypes/RecAllSignals.go index 5e4321c..e2ef672 100644 --- a/pkg/fbs/comm/osci/fbtypes/RecAllSignals.go +++ b/pkg/fbs/comm/osci/fbtypes/RecAllSignals.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RecAllSignalsT struct { - AllSignals []*RecChannelT -} - -func (t *RecAllSignalsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - allSignalsOffset := flatbuffers.UOffsetT(0) - if t.AllSignals != nil { - allSignalsLength := len(t.AllSignals) - allSignalsOffsets := make([]flatbuffers.UOffsetT, allSignalsLength) - for j := 0; j < allSignalsLength; j++ { - allSignalsOffsets[j] = t.AllSignals[j].Pack(builder) - } - RecAllSignalsStartAllSignalsVector(builder, allSignalsLength) - for j := allSignalsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(allSignalsOffsets[j]) - } - allSignalsOffset = builder.EndVector(allSignalsLength) - } - RecAllSignalsStart(builder) - RecAllSignalsAddAllSignals(builder, allSignalsOffset) - return RecAllSignalsEnd(builder) -} - -func (rcv *RecAllSignals) UnPackTo(t *RecAllSignalsT) { - allSignalsLength := rcv.AllSignalsLength() - t.AllSignals = make([]*RecChannelT, allSignalsLength) - for j := 0; j < allSignalsLength; j++ { - x := RecChannel{} - rcv.AllSignals(&x, j) - t.AllSignals[j] = x.UnPack() - } -} - -func (rcv *RecAllSignals) UnPack() *RecAllSignalsT { - if rcv == nil { return nil } - t := &RecAllSignalsT{} - rcv.UnPackTo(t) - return t -} - -type RecAllSignals struct { - _tab flatbuffers.Table -} - -func GetRootAsRecAllSignals(buf []byte, offset flatbuffers.UOffsetT) *RecAllSignals { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RecAllSignals{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRecAllSignals(buf []byte, offset flatbuffers.UOffsetT) *RecAllSignals { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RecAllSignals{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RecAllSignals) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RecAllSignals) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RecAllSignals) AllSignals(obj *RecChannel, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *RecAllSignals) AllSignalsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func RecAllSignalsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func RecAllSignalsAddAllSignals(builder *flatbuffers.Builder, allSignals flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(allSignals), 0) -} -func RecAllSignalsStartAllSignalsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func RecAllSignalsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RecAllSignalsT struct { + AllSignals []*RecChannelT +} + +func (t *RecAllSignalsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + allSignalsOffset := flatbuffers.UOffsetT(0) + if t.AllSignals != nil { + allSignalsLength := len(t.AllSignals) + allSignalsOffsets := make([]flatbuffers.UOffsetT, allSignalsLength) + for j := 0; j < allSignalsLength; j++ { + allSignalsOffsets[j] = t.AllSignals[j].Pack(builder) + } + RecAllSignalsStartAllSignalsVector(builder, allSignalsLength) + for j := allSignalsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(allSignalsOffsets[j]) + } + allSignalsOffset = builder.EndVector(allSignalsLength) + } + RecAllSignalsStart(builder) + RecAllSignalsAddAllSignals(builder, allSignalsOffset) + return RecAllSignalsEnd(builder) +} + +func (rcv *RecAllSignals) UnPackTo(t *RecAllSignalsT) { + allSignalsLength := rcv.AllSignalsLength() + t.AllSignals = make([]*RecChannelT, allSignalsLength) + for j := 0; j < allSignalsLength; j++ { + x := RecChannel{} + rcv.AllSignals(&x, j) + t.AllSignals[j] = x.UnPack() + } +} + +func (rcv *RecAllSignals) UnPack() *RecAllSignalsT { + if rcv == nil { return nil } + t := &RecAllSignalsT{} + rcv.UnPackTo(t) + return t +} + +type RecAllSignals struct { + _tab flatbuffers.Table +} + +func GetRootAsRecAllSignals(buf []byte, offset flatbuffers.UOffsetT) *RecAllSignals { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RecAllSignals{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRecAllSignals(buf []byte, offset flatbuffers.UOffsetT) *RecAllSignals { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RecAllSignals{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RecAllSignals) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RecAllSignals) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *RecAllSignals) AllSignals(obj *RecChannel, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *RecAllSignals) AllSignalsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func RecAllSignalsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func RecAllSignalsAddAllSignals(builder *flatbuffers.Builder, allSignals flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(allSignals), 0) +} +func RecAllSignalsStartAllSignalsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func RecAllSignalsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/RecChannel.go b/pkg/fbs/comm/osci/fbtypes/RecChannel.go index a3d246e..3ff5dca 100644 --- a/pkg/fbs/comm/osci/fbtypes/RecChannel.go +++ b/pkg/fbs/comm/osci/fbtypes/RecChannel.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RecChannelT struct { - Name string - Slices []*RecSliceT -} - -func (t *RecChannelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - slicesOffset := flatbuffers.UOffsetT(0) - if t.Slices != nil { - slicesLength := len(t.Slices) - slicesOffsets := make([]flatbuffers.UOffsetT, slicesLength) - for j := 0; j < slicesLength; j++ { - slicesOffsets[j] = t.Slices[j].Pack(builder) - } - RecChannelStartSlicesVector(builder, slicesLength) - for j := slicesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(slicesOffsets[j]) - } - slicesOffset = builder.EndVector(slicesLength) - } - RecChannelStart(builder) - RecChannelAddName(builder, nameOffset) - RecChannelAddSlices(builder, slicesOffset) - return RecChannelEnd(builder) -} - -func (rcv *RecChannel) UnPackTo(t *RecChannelT) { - t.Name = string(rcv.Name()) - slicesLength := rcv.SlicesLength() - t.Slices = make([]*RecSliceT, slicesLength) - for j := 0; j < slicesLength; j++ { - x := RecSlice{} - rcv.Slices(&x, j) - t.Slices[j] = x.UnPack() - } -} - -func (rcv *RecChannel) UnPack() *RecChannelT { - if rcv == nil { return nil } - t := &RecChannelT{} - rcv.UnPackTo(t) - return t -} - -type RecChannel struct { - _tab flatbuffers.Table -} - -func GetRootAsRecChannel(buf []byte, offset flatbuffers.UOffsetT) *RecChannel { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RecChannel{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRecChannel(buf []byte, offset flatbuffers.UOffsetT) *RecChannel { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RecChannel{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RecChannel) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RecChannel) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RecChannel) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *RecChannel) Slices(obj *RecSlice, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *RecChannel) SlicesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func RecChannelStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func RecChannelAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func RecChannelAddSlices(builder *flatbuffers.Builder, slices flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(slices), 0) -} -func RecChannelStartSlicesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func RecChannelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RecChannelT struct { + Name string + Slices []*RecSliceT +} + +func (t *RecChannelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + slicesOffset := flatbuffers.UOffsetT(0) + if t.Slices != nil { + slicesLength := len(t.Slices) + slicesOffsets := make([]flatbuffers.UOffsetT, slicesLength) + for j := 0; j < slicesLength; j++ { + slicesOffsets[j] = t.Slices[j].Pack(builder) + } + RecChannelStartSlicesVector(builder, slicesLength) + for j := slicesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(slicesOffsets[j]) + } + slicesOffset = builder.EndVector(slicesLength) + } + RecChannelStart(builder) + RecChannelAddName(builder, nameOffset) + RecChannelAddSlices(builder, slicesOffset) + return RecChannelEnd(builder) +} + +func (rcv *RecChannel) UnPackTo(t *RecChannelT) { + t.Name = string(rcv.Name()) + slicesLength := rcv.SlicesLength() + t.Slices = make([]*RecSliceT, slicesLength) + for j := 0; j < slicesLength; j++ { + x := RecSlice{} + rcv.Slices(&x, j) + t.Slices[j] = x.UnPack() + } +} + +func (rcv *RecChannel) UnPack() *RecChannelT { + if rcv == nil { return nil } + t := &RecChannelT{} + rcv.UnPackTo(t) + return t +} + +type RecChannel struct { + _tab flatbuffers.Table +} + +func GetRootAsRecChannel(buf []byte, offset flatbuffers.UOffsetT) *RecChannel { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RecChannel{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRecChannel(buf []byte, offset flatbuffers.UOffsetT) *RecChannel { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RecChannel{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RecChannel) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RecChannel) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *RecChannel) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *RecChannel) Slices(obj *RecSlice, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *RecChannel) SlicesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func RecChannelStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func RecChannelAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func RecChannelAddSlices(builder *flatbuffers.Builder, slices flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(slices), 0) +} +func RecChannelStartSlicesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func RecChannelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/RecSlice.go b/pkg/fbs/comm/osci/fbtypes/RecSlice.go index 8927e2a..af1d06d 100644 --- a/pkg/fbs/comm/osci/fbtypes/RecSlice.go +++ b/pkg/fbs/comm/osci/fbtypes/RecSlice.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RecSliceT struct { - Values []*RecValueT -} - -func (t *RecSliceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valuesOffset := flatbuffers.UOffsetT(0) - if t.Values != nil { - valuesLength := len(t.Values) - valuesOffsets := make([]flatbuffers.UOffsetT, valuesLength) - for j := 0; j < valuesLength; j++ { - valuesOffsets[j] = t.Values[j].Pack(builder) - } - RecSliceStartValuesVector(builder, valuesLength) - for j := valuesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(valuesOffsets[j]) - } - valuesOffset = builder.EndVector(valuesLength) - } - RecSliceStart(builder) - RecSliceAddValues(builder, valuesOffset) - return RecSliceEnd(builder) -} - -func (rcv *RecSlice) UnPackTo(t *RecSliceT) { - valuesLength := rcv.ValuesLength() - t.Values = make([]*RecValueT, valuesLength) - for j := 0; j < valuesLength; j++ { - x := RecValue{} - rcv.Values(&x, j) - t.Values[j] = x.UnPack() - } -} - -func (rcv *RecSlice) UnPack() *RecSliceT { - if rcv == nil { return nil } - t := &RecSliceT{} - rcv.UnPackTo(t) - return t -} - -type RecSlice struct { - _tab flatbuffers.Table -} - -func GetRootAsRecSlice(buf []byte, offset flatbuffers.UOffsetT) *RecSlice { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RecSlice{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRecSlice(buf []byte, offset flatbuffers.UOffsetT) *RecSlice { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RecSlice{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RecSlice) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RecSlice) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RecSlice) Values(obj *RecValue, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *RecSlice) ValuesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func RecSliceStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func RecSliceAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(values), 0) -} -func RecSliceStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func RecSliceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RecSliceT struct { + Values []*RecValueT +} + +func (t *RecSliceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valuesOffset := flatbuffers.UOffsetT(0) + if t.Values != nil { + valuesLength := len(t.Values) + valuesOffsets := make([]flatbuffers.UOffsetT, valuesLength) + for j := 0; j < valuesLength; j++ { + valuesOffsets[j] = t.Values[j].Pack(builder) + } + RecSliceStartValuesVector(builder, valuesLength) + for j := valuesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(valuesOffsets[j]) + } + valuesOffset = builder.EndVector(valuesLength) + } + RecSliceStart(builder) + RecSliceAddValues(builder, valuesOffset) + return RecSliceEnd(builder) +} + +func (rcv *RecSlice) UnPackTo(t *RecSliceT) { + valuesLength := rcv.ValuesLength() + t.Values = make([]*RecValueT, valuesLength) + for j := 0; j < valuesLength; j++ { + x := RecValue{} + rcv.Values(&x, j) + t.Values[j] = x.UnPack() + } +} + +func (rcv *RecSlice) UnPack() *RecSliceT { + if rcv == nil { return nil } + t := &RecSliceT{} + rcv.UnPackTo(t) + return t +} + +type RecSlice struct { + _tab flatbuffers.Table +} + +func GetRootAsRecSlice(buf []byte, offset flatbuffers.UOffsetT) *RecSlice { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RecSlice{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRecSlice(buf []byte, offset flatbuffers.UOffsetT) *RecSlice { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RecSlice{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RecSlice) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RecSlice) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *RecSlice) Values(obj *RecValue, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *RecSlice) ValuesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func RecSliceStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func RecSliceAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(values), 0) +} +func RecSliceStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func RecSliceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/RecValue.go b/pkg/fbs/comm/osci/fbtypes/RecValue.go index a645eca..ad8db45 100644 --- a/pkg/fbs/comm/osci/fbtypes/RecValue.go +++ b/pkg/fbs/comm/osci/fbtypes/RecValue.go @@ -1,293 +1,293 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RecValueT struct { - Time *TimeT - ValuesBool bool - ValuesByte int8 - ValuesShort int16 - ValuesInt int32 - ValuesLong int64 - ValuesUbyte byte - ValuesUshort uint16 - ValuesUint uint32 - ValuesUlong uint64 - ValuesFloat float32 - ValuesDouble float64 - ValuesString string -} - -func (t *RecValueT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - timeOffset := t.Time.Pack(builder) - valuesStringOffset := builder.CreateString(t.ValuesString) - RecValueStart(builder) - RecValueAddTime(builder, timeOffset) - RecValueAddValuesBool(builder, t.ValuesBool) - RecValueAddValuesByte(builder, t.ValuesByte) - RecValueAddValuesShort(builder, t.ValuesShort) - RecValueAddValuesInt(builder, t.ValuesInt) - RecValueAddValuesLong(builder, t.ValuesLong) - RecValueAddValuesUbyte(builder, t.ValuesUbyte) - RecValueAddValuesUshort(builder, t.ValuesUshort) - RecValueAddValuesUint(builder, t.ValuesUint) - RecValueAddValuesUlong(builder, t.ValuesUlong) - RecValueAddValuesFloat(builder, t.ValuesFloat) - RecValueAddValuesDouble(builder, t.ValuesDouble) - RecValueAddValuesString(builder, valuesStringOffset) - return RecValueEnd(builder) -} - -func (rcv *RecValue) UnPackTo(t *RecValueT) { - t.Time = rcv.Time(nil).UnPack() - t.ValuesBool = rcv.ValuesBool() - t.ValuesByte = rcv.ValuesByte() - t.ValuesShort = rcv.ValuesShort() - t.ValuesInt = rcv.ValuesInt() - t.ValuesLong = rcv.ValuesLong() - t.ValuesUbyte = rcv.ValuesUbyte() - t.ValuesUshort = rcv.ValuesUshort() - t.ValuesUint = rcv.ValuesUint() - t.ValuesUlong = rcv.ValuesUlong() - t.ValuesFloat = rcv.ValuesFloat() - t.ValuesDouble = rcv.ValuesDouble() - t.ValuesString = string(rcv.ValuesString()) -} - -func (rcv *RecValue) UnPack() *RecValueT { - if rcv == nil { return nil } - t := &RecValueT{} - rcv.UnPackTo(t) - return t -} - -type RecValue struct { - _tab flatbuffers.Table -} - -func GetRootAsRecValue(buf []byte, offset flatbuffers.UOffsetT) *RecValue { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RecValue{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRecValue(buf []byte, offset flatbuffers.UOffsetT) *RecValue { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RecValue{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RecValue) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RecValue) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RecValue) Time(obj *Time) *Time { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Time) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *RecValue) ValuesBool() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *RecValue) MutateValuesBool(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *RecValue) ValuesByte() int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesByte(n int8) bool { - return rcv._tab.MutateInt8Slot(8, n) -} - -func (rcv *RecValue) ValuesShort() int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetInt16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesShort(n int16) bool { - return rcv._tab.MutateInt16Slot(10, n) -} - -func (rcv *RecValue) ValuesInt() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesInt(n int32) bool { - return rcv._tab.MutateInt32Slot(12, n) -} - -func (rcv *RecValue) ValuesLong() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesLong(n int64) bool { - return rcv._tab.MutateInt64Slot(14, n) -} - -func (rcv *RecValue) ValuesUbyte() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesUbyte(n byte) bool { - return rcv._tab.MutateByteSlot(16, n) -} - -func (rcv *RecValue) ValuesUshort() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesUshort(n uint16) bool { - return rcv._tab.MutateUint16Slot(18, n) -} - -func (rcv *RecValue) ValuesUint() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesUint(n uint32) bool { - return rcv._tab.MutateUint32Slot(20, n) -} - -func (rcv *RecValue) ValuesUlong() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *RecValue) MutateValuesUlong(n uint64) bool { - return rcv._tab.MutateUint64Slot(22, n) -} - -func (rcv *RecValue) ValuesFloat() float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetFloat32(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *RecValue) MutateValuesFloat(n float32) bool { - return rcv._tab.MutateFloat32Slot(24, n) -} - -func (rcv *RecValue) ValuesDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *RecValue) MutateValuesDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(26, n) -} - -func (rcv *RecValue) ValuesString() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func RecValueStart(builder *flatbuffers.Builder) { - builder.StartObject(13) -} -func RecValueAddTime(builder *flatbuffers.Builder, time flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(time), 0) -} -func RecValueAddValuesBool(builder *flatbuffers.Builder, valuesBool bool) { - builder.PrependBoolSlot(1, valuesBool, false) -} -func RecValueAddValuesByte(builder *flatbuffers.Builder, valuesByte int8) { - builder.PrependInt8Slot(2, valuesByte, 0) -} -func RecValueAddValuesShort(builder *flatbuffers.Builder, valuesShort int16) { - builder.PrependInt16Slot(3, valuesShort, 0) -} -func RecValueAddValuesInt(builder *flatbuffers.Builder, valuesInt int32) { - builder.PrependInt32Slot(4, valuesInt, 0) -} -func RecValueAddValuesLong(builder *flatbuffers.Builder, valuesLong int64) { - builder.PrependInt64Slot(5, valuesLong, 0) -} -func RecValueAddValuesUbyte(builder *flatbuffers.Builder, valuesUbyte byte) { - builder.PrependByteSlot(6, valuesUbyte, 0) -} -func RecValueAddValuesUshort(builder *flatbuffers.Builder, valuesUshort uint16) { - builder.PrependUint16Slot(7, valuesUshort, 0) -} -func RecValueAddValuesUint(builder *flatbuffers.Builder, valuesUint uint32) { - builder.PrependUint32Slot(8, valuesUint, 0) -} -func RecValueAddValuesUlong(builder *flatbuffers.Builder, valuesUlong uint64) { - builder.PrependUint64Slot(9, valuesUlong, 0) -} -func RecValueAddValuesFloat(builder *flatbuffers.Builder, valuesFloat float32) { - builder.PrependFloat32Slot(10, valuesFloat, 0.0) -} -func RecValueAddValuesDouble(builder *flatbuffers.Builder, valuesDouble float64) { - builder.PrependFloat64Slot(11, valuesDouble, 0.0) -} -func RecValueAddValuesString(builder *flatbuffers.Builder, valuesString flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(12, flatbuffers.UOffsetT(valuesString), 0) -} -func RecValueEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type RecValueT struct { + Time *TimeT + ValuesBool bool + ValuesByte int8 + ValuesShort int16 + ValuesInt int32 + ValuesLong int64 + ValuesUbyte byte + ValuesUshort uint16 + ValuesUint uint32 + ValuesUlong uint64 + ValuesFloat float32 + ValuesDouble float64 + ValuesString string +} + +func (t *RecValueT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + timeOffset := t.Time.Pack(builder) + valuesStringOffset := builder.CreateString(t.ValuesString) + RecValueStart(builder) + RecValueAddTime(builder, timeOffset) + RecValueAddValuesBool(builder, t.ValuesBool) + RecValueAddValuesByte(builder, t.ValuesByte) + RecValueAddValuesShort(builder, t.ValuesShort) + RecValueAddValuesInt(builder, t.ValuesInt) + RecValueAddValuesLong(builder, t.ValuesLong) + RecValueAddValuesUbyte(builder, t.ValuesUbyte) + RecValueAddValuesUshort(builder, t.ValuesUshort) + RecValueAddValuesUint(builder, t.ValuesUint) + RecValueAddValuesUlong(builder, t.ValuesUlong) + RecValueAddValuesFloat(builder, t.ValuesFloat) + RecValueAddValuesDouble(builder, t.ValuesDouble) + RecValueAddValuesString(builder, valuesStringOffset) + return RecValueEnd(builder) +} + +func (rcv *RecValue) UnPackTo(t *RecValueT) { + t.Time = rcv.Time(nil).UnPack() + t.ValuesBool = rcv.ValuesBool() + t.ValuesByte = rcv.ValuesByte() + t.ValuesShort = rcv.ValuesShort() + t.ValuesInt = rcv.ValuesInt() + t.ValuesLong = rcv.ValuesLong() + t.ValuesUbyte = rcv.ValuesUbyte() + t.ValuesUshort = rcv.ValuesUshort() + t.ValuesUint = rcv.ValuesUint() + t.ValuesUlong = rcv.ValuesUlong() + t.ValuesFloat = rcv.ValuesFloat() + t.ValuesDouble = rcv.ValuesDouble() + t.ValuesString = string(rcv.ValuesString()) +} + +func (rcv *RecValue) UnPack() *RecValueT { + if rcv == nil { return nil } + t := &RecValueT{} + rcv.UnPackTo(t) + return t +} + +type RecValue struct { + _tab flatbuffers.Table +} + +func GetRootAsRecValue(buf []byte, offset flatbuffers.UOffsetT) *RecValue { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RecValue{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRecValue(buf []byte, offset flatbuffers.UOffsetT) *RecValue { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RecValue{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RecValue) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RecValue) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *RecValue) Time(obj *Time) *Time { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Time) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *RecValue) ValuesBool() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *RecValue) MutateValuesBool(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *RecValue) ValuesByte() int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt8(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesByte(n int8) bool { + return rcv._tab.MutateInt8Slot(8, n) +} + +func (rcv *RecValue) ValuesShort() int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetInt16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesShort(n int16) bool { + return rcv._tab.MutateInt16Slot(10, n) +} + +func (rcv *RecValue) ValuesInt() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesInt(n int32) bool { + return rcv._tab.MutateInt32Slot(12, n) +} + +func (rcv *RecValue) ValuesLong() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesLong(n int64) bool { + return rcv._tab.MutateInt64Slot(14, n) +} + +func (rcv *RecValue) ValuesUbyte() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesUbyte(n byte) bool { + return rcv._tab.MutateByteSlot(16, n) +} + +func (rcv *RecValue) ValuesUshort() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesUshort(n uint16) bool { + return rcv._tab.MutateUint16Slot(18, n) +} + +func (rcv *RecValue) ValuesUint() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesUint(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +func (rcv *RecValue) ValuesUlong() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *RecValue) MutateValuesUlong(n uint64) bool { + return rcv._tab.MutateUint64Slot(22, n) +} + +func (rcv *RecValue) ValuesFloat() float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetFloat32(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *RecValue) MutateValuesFloat(n float32) bool { + return rcv._tab.MutateFloat32Slot(24, n) +} + +func (rcv *RecValue) ValuesDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *RecValue) MutateValuesDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(26, n) +} + +func (rcv *RecValue) ValuesString() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func RecValueStart(builder *flatbuffers.Builder) { + builder.StartObject(13) +} +func RecValueAddTime(builder *flatbuffers.Builder, time flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(time), 0) +} +func RecValueAddValuesBool(builder *flatbuffers.Builder, valuesBool bool) { + builder.PrependBoolSlot(1, valuesBool, false) +} +func RecValueAddValuesByte(builder *flatbuffers.Builder, valuesByte int8) { + builder.PrependInt8Slot(2, valuesByte, 0) +} +func RecValueAddValuesShort(builder *flatbuffers.Builder, valuesShort int16) { + builder.PrependInt16Slot(3, valuesShort, 0) +} +func RecValueAddValuesInt(builder *flatbuffers.Builder, valuesInt int32) { + builder.PrependInt32Slot(4, valuesInt, 0) +} +func RecValueAddValuesLong(builder *flatbuffers.Builder, valuesLong int64) { + builder.PrependInt64Slot(5, valuesLong, 0) +} +func RecValueAddValuesUbyte(builder *flatbuffers.Builder, valuesUbyte byte) { + builder.PrependByteSlot(6, valuesUbyte, 0) +} +func RecValueAddValuesUshort(builder *flatbuffers.Builder, valuesUshort uint16) { + builder.PrependUint16Slot(7, valuesUshort, 0) +} +func RecValueAddValuesUint(builder *flatbuffers.Builder, valuesUint uint32) { + builder.PrependUint32Slot(8, valuesUint, 0) +} +func RecValueAddValuesUlong(builder *flatbuffers.Builder, valuesUlong uint64) { + builder.PrependUint64Slot(9, valuesUlong, 0) +} +func RecValueAddValuesFloat(builder *flatbuffers.Builder, valuesFloat float32) { + builder.PrependFloat32Slot(10, valuesFloat, 0.0) +} +func RecValueAddValuesDouble(builder *flatbuffers.Builder, valuesDouble float64) { + builder.PrependFloat64Slot(11, valuesDouble, 0.0) +} +func RecValueAddValuesString(builder *flatbuffers.Builder, valuesString flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(12, flatbuffers.UOffsetT(valuesString), 0) +} +func RecValueEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/Time.go b/pkg/fbs/comm/osci/fbtypes/Time.go index c1ba7c2..7cd3cd1 100644 --- a/pkg/fbs/comm/osci/fbtypes/Time.go +++ b/pkg/fbs/comm/osci/fbtypes/Time.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TimeT struct { - Value uint64 -} - -func (t *TimeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TimeStart(builder) - TimeAddValue(builder, t.Value) - return TimeEnd(builder) -} - -func (rcv *Time) UnPackTo(t *TimeT) { - t.Value = rcv.Value() -} - -func (rcv *Time) UnPack() *TimeT { - if rcv == nil { return nil } - t := &TimeT{} - rcv.UnPackTo(t) - return t -} - -type Time struct { - _tab flatbuffers.Table -} - -func GetRootAsTime(buf []byte, offset flatbuffers.UOffsetT) *Time { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Time{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTime(buf []byte, offset flatbuffers.UOffsetT) *Time { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Time{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Time) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Time) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Time) Value() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Time) MutateValue(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func TimeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func TimeAddValue(builder *flatbuffers.Builder, value uint64) { - builder.PrependUint64Slot(0, value, 0) -} -func TimeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TimeT struct { + Value uint64 +} + +func (t *TimeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TimeStart(builder) + TimeAddValue(builder, t.Value) + return TimeEnd(builder) +} + +func (rcv *Time) UnPackTo(t *TimeT) { + t.Value = rcv.Value() +} + +func (rcv *Time) UnPack() *TimeT { + if rcv == nil { return nil } + t := &TimeT{} + rcv.UnPackTo(t) + return t +} + +type Time struct { + _tab flatbuffers.Table +} + +func GetRootAsTime(buf []byte, offset flatbuffers.UOffsetT) *Time { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Time{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTime(buf []byte, offset flatbuffers.UOffsetT) *Time { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Time{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Time) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Time) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Time) Value() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Time) MutateValue(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func TimeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func TimeAddValue(builder *flatbuffers.Builder, value uint64) { + builder.PrependUint64Slot(0, value, 0) +} +func TimeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/TriggerCfg.go b/pkg/fbs/comm/osci/fbtypes/TriggerCfg.go index 353af45..c5fc8a7 100644 --- a/pkg/fbs/comm/osci/fbtypes/TriggerCfg.go +++ b/pkg/fbs/comm/osci/fbtypes/TriggerCfg.go @@ -1,129 +1,129 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TriggerCfgT struct { - TriggerType TriggerTypeEnumFb - Name string - Level float64 - PreTrigger float64 -} - -func (t *TriggerCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - TriggerCfgStart(builder) - TriggerCfgAddTriggerType(builder, t.TriggerType) - TriggerCfgAddName(builder, nameOffset) - TriggerCfgAddLevel(builder, t.Level) - TriggerCfgAddPreTrigger(builder, t.PreTrigger) - return TriggerCfgEnd(builder) -} - -func (rcv *TriggerCfg) UnPackTo(t *TriggerCfgT) { - t.TriggerType = rcv.TriggerType() - t.Name = string(rcv.Name()) - t.Level = rcv.Level() - t.PreTrigger = rcv.PreTrigger() -} - -func (rcv *TriggerCfg) UnPack() *TriggerCfgT { - if rcv == nil { return nil } - t := &TriggerCfgT{} - rcv.UnPackTo(t) - return t -} - -type TriggerCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsTriggerCfg(buf []byte, offset flatbuffers.UOffsetT) *TriggerCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TriggerCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTriggerCfg(buf []byte, offset flatbuffers.UOffsetT) *TriggerCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TriggerCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TriggerCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TriggerCfg) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TriggerCfg) TriggerType() TriggerTypeEnumFb { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return TriggerTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *TriggerCfg) MutateTriggerType(n TriggerTypeEnumFb) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *TriggerCfg) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *TriggerCfg) Level() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *TriggerCfg) MutateLevel(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *TriggerCfg) PreTrigger() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *TriggerCfg) MutatePreTrigger(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func TriggerCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func TriggerCfgAddTriggerType(builder *flatbuffers.Builder, triggerType TriggerTypeEnumFb) { - builder.PrependInt8Slot(0, int8(triggerType), 0) -} -func TriggerCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) -} -func TriggerCfgAddLevel(builder *flatbuffers.Builder, level float64) { - builder.PrependFloat64Slot(2, level, 0.0) -} -func TriggerCfgAddPreTrigger(builder *flatbuffers.Builder, preTrigger float64) { - builder.PrependFloat64Slot(3, preTrigger, 0.0) -} -func TriggerCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TriggerCfgT struct { + TriggerType TriggerTypeEnumFb + Name string + Level float64 + PreTrigger float64 +} + +func (t *TriggerCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + TriggerCfgStart(builder) + TriggerCfgAddTriggerType(builder, t.TriggerType) + TriggerCfgAddName(builder, nameOffset) + TriggerCfgAddLevel(builder, t.Level) + TriggerCfgAddPreTrigger(builder, t.PreTrigger) + return TriggerCfgEnd(builder) +} + +func (rcv *TriggerCfg) UnPackTo(t *TriggerCfgT) { + t.TriggerType = rcv.TriggerType() + t.Name = string(rcv.Name()) + t.Level = rcv.Level() + t.PreTrigger = rcv.PreTrigger() +} + +func (rcv *TriggerCfg) UnPack() *TriggerCfgT { + if rcv == nil { return nil } + t := &TriggerCfgT{} + rcv.UnPackTo(t) + return t +} + +type TriggerCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsTriggerCfg(buf []byte, offset flatbuffers.UOffsetT) *TriggerCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TriggerCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTriggerCfg(buf []byte, offset flatbuffers.UOffsetT) *TriggerCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TriggerCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TriggerCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TriggerCfg) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *TriggerCfg) TriggerType() TriggerTypeEnumFb { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return TriggerTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *TriggerCfg) MutateTriggerType(n TriggerTypeEnumFb) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func (rcv *TriggerCfg) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *TriggerCfg) Level() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *TriggerCfg) MutateLevel(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *TriggerCfg) PreTrigger() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *TriggerCfg) MutatePreTrigger(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func TriggerCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func TriggerCfgAddTriggerType(builder *flatbuffers.Builder, triggerType TriggerTypeEnumFb) { + builder.PrependInt8Slot(0, int8(triggerType), 0) +} +func TriggerCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) +} +func TriggerCfgAddLevel(builder *flatbuffers.Builder, level float64) { + builder.PrependFloat64Slot(2, level, 0.0) +} +func TriggerCfgAddPreTrigger(builder *flatbuffers.Builder, preTrigger float64) { + builder.PrependFloat64Slot(3, preTrigger, 0.0) +} +func TriggerCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/TriggerTypeEnumFb.go b/pkg/fbs/comm/osci/fbtypes/TriggerTypeEnumFb.go index 5770c82..9cefc4a 100644 --- a/pkg/fbs/comm/osci/fbtypes/TriggerTypeEnumFb.go +++ b/pkg/fbs/comm/osci/fbtypes/TriggerTypeEnumFb.go @@ -1,44 +1,44 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type TriggerTypeEnumFb int8 - -const ( - TriggerTypeEnumFbManual TriggerTypeEnumFb = 0 - TriggerTypeEnumFbRisingEdge TriggerTypeEnumFb = 1 - TriggerTypeEnumFbFallingEdge TriggerTypeEnumFb = 2 - TriggerTypeEnumFbLevel TriggerTypeEnumFb = 3 - TriggerTypeEnumFbRisingLevel TriggerTypeEnumFb = 4 - TriggerTypeEnumFbFallingLevel TriggerTypeEnumFb = 5 - TriggerTypeEnumFbRisingFalling TriggerTypeEnumFb = 6 -) - -var EnumNamesTriggerTypeEnumFb = map[TriggerTypeEnumFb]string{ - TriggerTypeEnumFbManual: "Manual", - TriggerTypeEnumFbRisingEdge: "RisingEdge", - TriggerTypeEnumFbFallingEdge: "FallingEdge", - TriggerTypeEnumFbLevel: "Level", - TriggerTypeEnumFbRisingLevel: "RisingLevel", - TriggerTypeEnumFbFallingLevel: "FallingLevel", - TriggerTypeEnumFbRisingFalling: "RisingFalling", -} - -var EnumValuesTriggerTypeEnumFb = map[string]TriggerTypeEnumFb{ - "Manual": TriggerTypeEnumFbManual, - "RisingEdge": TriggerTypeEnumFbRisingEdge, - "FallingEdge": TriggerTypeEnumFbFallingEdge, - "Level": TriggerTypeEnumFbLevel, - "RisingLevel": TriggerTypeEnumFbRisingLevel, - "FallingLevel": TriggerTypeEnumFbFallingLevel, - "RisingFalling": TriggerTypeEnumFbRisingFalling, -} - -func (v TriggerTypeEnumFb) String() string { - if s, ok := EnumNamesTriggerTypeEnumFb[v]; ok { - return s - } - return "TriggerTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type TriggerTypeEnumFb int8 + +const ( + TriggerTypeEnumFbManual TriggerTypeEnumFb = 0 + TriggerTypeEnumFbRisingEdge TriggerTypeEnumFb = 1 + TriggerTypeEnumFbFallingEdge TriggerTypeEnumFb = 2 + TriggerTypeEnumFbLevel TriggerTypeEnumFb = 3 + TriggerTypeEnumFbRisingLevel TriggerTypeEnumFb = 4 + TriggerTypeEnumFbFallingLevel TriggerTypeEnumFb = 5 + TriggerTypeEnumFbRisingFalling TriggerTypeEnumFb = 6 +) + +var EnumNamesTriggerTypeEnumFb = map[TriggerTypeEnumFb]string{ + TriggerTypeEnumFbManual: "Manual", + TriggerTypeEnumFbRisingEdge: "RisingEdge", + TriggerTypeEnumFbFallingEdge: "FallingEdge", + TriggerTypeEnumFbLevel: "Level", + TriggerTypeEnumFbRisingLevel: "RisingLevel", + TriggerTypeEnumFbFallingLevel: "FallingLevel", + TriggerTypeEnumFbRisingFalling: "RisingFalling", +} + +var EnumValuesTriggerTypeEnumFb = map[string]TriggerTypeEnumFb{ + "Manual": TriggerTypeEnumFbManual, + "RisingEdge": TriggerTypeEnumFbRisingEdge, + "FallingEdge": TriggerTypeEnumFbFallingEdge, + "Level": TriggerTypeEnumFbLevel, + "RisingLevel": TriggerTypeEnumFbRisingLevel, + "FallingLevel": TriggerTypeEnumFbFallingLevel, + "RisingFalling": TriggerTypeEnumFbRisingFalling, +} + +func (v TriggerTypeEnumFb) String() string { + if s, ok := EnumNamesTriggerTypeEnumFb[v]; ok { + return s + } + return "TriggerTypeEnumFb(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/osci/fbtypes/ViewChannel.go b/pkg/fbs/comm/osci/fbtypes/ViewChannel.go index faf5ac8..4e07eb7 100644 --- a/pkg/fbs/comm/osci/fbtypes/ViewChannel.go +++ b/pkg/fbs/comm/osci/fbtypes/ViewChannel.go @@ -1,126 +1,126 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ViewChannelT struct { - Source string - Color string - Visible bool - ConnectionType ConnectionTypeEnumFb -} - -func (t *ViewChannelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - sourceOffset := builder.CreateString(t.Source) - colorOffset := builder.CreateString(t.Color) - ViewChannelStart(builder) - ViewChannelAddSource(builder, sourceOffset) - ViewChannelAddColor(builder, colorOffset) - ViewChannelAddVisible(builder, t.Visible) - ViewChannelAddConnectionType(builder, t.ConnectionType) - return ViewChannelEnd(builder) -} - -func (rcv *ViewChannel) UnPackTo(t *ViewChannelT) { - t.Source = string(rcv.Source()) - t.Color = string(rcv.Color()) - t.Visible = rcv.Visible() - t.ConnectionType = rcv.ConnectionType() -} - -func (rcv *ViewChannel) UnPack() *ViewChannelT { - if rcv == nil { return nil } - t := &ViewChannelT{} - rcv.UnPackTo(t) - return t -} - -type ViewChannel struct { - _tab flatbuffers.Table -} - -func GetRootAsViewChannel(buf []byte, offset flatbuffers.UOffsetT) *ViewChannel { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ViewChannel{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsViewChannel(buf []byte, offset flatbuffers.UOffsetT) *ViewChannel { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ViewChannel{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ViewChannel) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ViewChannel) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ViewChannel) Source() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ViewChannel) Color() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ViewChannel) Visible() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *ViewChannel) MutateVisible(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *ViewChannel) ConnectionType() ConnectionTypeEnumFb { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return ConnectionTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *ViewChannel) MutateConnectionType(n ConnectionTypeEnumFb) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -func ViewChannelStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func ViewChannelAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(source), 0) -} -func ViewChannelAddColor(builder *flatbuffers.Builder, color flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(color), 0) -} -func ViewChannelAddVisible(builder *flatbuffers.Builder, visible bool) { - builder.PrependBoolSlot(2, visible, false) -} -func ViewChannelAddConnectionType(builder *flatbuffers.Builder, connectionType ConnectionTypeEnumFb) { - builder.PrependInt8Slot(3, int8(connectionType), 0) -} -func ViewChannelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ViewChannelT struct { + Source string + Color string + Visible bool + ConnectionType ConnectionTypeEnumFb +} + +func (t *ViewChannelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + sourceOffset := builder.CreateString(t.Source) + colorOffset := builder.CreateString(t.Color) + ViewChannelStart(builder) + ViewChannelAddSource(builder, sourceOffset) + ViewChannelAddColor(builder, colorOffset) + ViewChannelAddVisible(builder, t.Visible) + ViewChannelAddConnectionType(builder, t.ConnectionType) + return ViewChannelEnd(builder) +} + +func (rcv *ViewChannel) UnPackTo(t *ViewChannelT) { + t.Source = string(rcv.Source()) + t.Color = string(rcv.Color()) + t.Visible = rcv.Visible() + t.ConnectionType = rcv.ConnectionType() +} + +func (rcv *ViewChannel) UnPack() *ViewChannelT { + if rcv == nil { return nil } + t := &ViewChannelT{} + rcv.UnPackTo(t) + return t +} + +type ViewChannel struct { + _tab flatbuffers.Table +} + +func GetRootAsViewChannel(buf []byte, offset flatbuffers.UOffsetT) *ViewChannel { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ViewChannel{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsViewChannel(buf []byte, offset flatbuffers.UOffsetT) *ViewChannel { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ViewChannel{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ViewChannel) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ViewChannel) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ViewChannel) Source() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ViewChannel) Color() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ViewChannel) Visible() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *ViewChannel) MutateVisible(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *ViewChannel) ConnectionType() ConnectionTypeEnumFb { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return ConnectionTypeEnumFb(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ViewChannel) MutateConnectionType(n ConnectionTypeEnumFb) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +func ViewChannelStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func ViewChannelAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(source), 0) +} +func ViewChannelAddColor(builder *flatbuffers.Builder, color flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(color), 0) +} +func ViewChannelAddVisible(builder *flatbuffers.Builder, visible bool) { + builder.PrependBoolSlot(2, visible, false) +} +func ViewChannelAddConnectionType(builder *flatbuffers.Builder, connectionType ConnectionTypeEnumFb) { + builder.PrependInt8Slot(3, int8(connectionType), 0) +} +func ViewChannelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_bool.go b/pkg/fbs/comm/osci/fbtypes/type_bool.go index 6e75d36..e950de4 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_bool.go +++ b/pkg/fbs/comm/osci/fbtypes/type_bool.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_boolT struct { - Value bool -} - -func (t *type_boolT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_boolStart(builder) - type_boolAddValue(builder, t.Value) - return type_boolEnd(builder) -} - -func (rcv *type_bool) UnPackTo(t *type_boolT) { - t.Value = rcv.Value() -} - -func (rcv *type_bool) UnPack() *type_boolT { - if rcv == nil { return nil } - t := &type_boolT{} - rcv.UnPackTo(t) - return t -} - -type type_bool struct { - _tab flatbuffers.Table -} - -func GetRootAstype_bool(buf []byte, offset flatbuffers.UOffsetT) *type_bool { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_bool{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_bool(buf []byte, offset flatbuffers.UOffsetT) *type_bool { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_bool{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_bool) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_bool) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_bool) Value() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *type_bool) MutateValue(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func type_boolStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_boolAddValue(builder *flatbuffers.Builder, value bool) { - builder.PrependBoolSlot(0, value, false) -} -func type_boolEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_boolT struct { + Value bool +} + +func (t *type_boolT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_boolStart(builder) + type_boolAddValue(builder, t.Value) + return type_boolEnd(builder) +} + +func (rcv *type_bool) UnPackTo(t *type_boolT) { + t.Value = rcv.Value() +} + +func (rcv *type_bool) UnPack() *type_boolT { + if rcv == nil { return nil } + t := &type_boolT{} + rcv.UnPackTo(t) + return t +} + +type type_bool struct { + _tab flatbuffers.Table +} + +func GetRootAstype_bool(buf []byte, offset flatbuffers.UOffsetT) *type_bool { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_bool{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_bool(buf []byte, offset flatbuffers.UOffsetT) *type_bool { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_bool{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_bool) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_bool) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_bool) Value() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *type_bool) MutateValue(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func type_boolStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_boolAddValue(builder *flatbuffers.Builder, value bool) { + builder.PrependBoolSlot(0, value, false) +} +func type_boolEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_byte.go b/pkg/fbs/comm/osci/fbtypes/type_byte.go index 4e90710..2a941f7 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_byte.go +++ b/pkg/fbs/comm/osci/fbtypes/type_byte.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_byteT struct { - Value int8 -} - -func (t *type_byteT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_byteStart(builder) - type_byteAddValue(builder, t.Value) - return type_byteEnd(builder) -} - -func (rcv *type_byte) UnPackTo(t *type_byteT) { - t.Value = rcv.Value() -} - -func (rcv *type_byte) UnPack() *type_byteT { - if rcv == nil { return nil } - t := &type_byteT{} - rcv.UnPackTo(t) - return t -} - -type type_byte struct { - _tab flatbuffers.Table -} - -func GetRootAstype_byte(buf []byte, offset flatbuffers.UOffsetT) *type_byte { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_byte{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_byte(buf []byte, offset flatbuffers.UOffsetT) *type_byte { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_byte{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_byte) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_byte) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_byte) Value() int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_byte) MutateValue(n int8) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -func type_byteStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_byteAddValue(builder *flatbuffers.Builder, value int8) { - builder.PrependInt8Slot(0, value, 0) -} -func type_byteEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_byteT struct { + Value int8 +} + +func (t *type_byteT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_byteStart(builder) + type_byteAddValue(builder, t.Value) + return type_byteEnd(builder) +} + +func (rcv *type_byte) UnPackTo(t *type_byteT) { + t.Value = rcv.Value() +} + +func (rcv *type_byte) UnPack() *type_byteT { + if rcv == nil { return nil } + t := &type_byteT{} + rcv.UnPackTo(t) + return t +} + +type type_byte struct { + _tab flatbuffers.Table +} + +func GetRootAstype_byte(buf []byte, offset flatbuffers.UOffsetT) *type_byte { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_byte{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_byte(buf []byte, offset flatbuffers.UOffsetT) *type_byte { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_byte{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_byte) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_byte) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_byte) Value() int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt8(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_byte) MutateValue(n int8) bool { + return rcv._tab.MutateInt8Slot(4, n) +} + +func type_byteStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_byteAddValue(builder *flatbuffers.Builder, value int8) { + builder.PrependInt8Slot(0, value, 0) +} +func type_byteEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_double.go b/pkg/fbs/comm/osci/fbtypes/type_double.go index 50cec88..435d333 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_double.go +++ b/pkg/fbs/comm/osci/fbtypes/type_double.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_doubleT struct { - Value float64 -} - -func (t *type_doubleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_doubleStart(builder) - type_doubleAddValue(builder, t.Value) - return type_doubleEnd(builder) -} - -func (rcv *type_double) UnPackTo(t *type_doubleT) { - t.Value = rcv.Value() -} - -func (rcv *type_double) UnPack() *type_doubleT { - if rcv == nil { return nil } - t := &type_doubleT{} - rcv.UnPackTo(t) - return t -} - -type type_double struct { - _tab flatbuffers.Table -} - -func GetRootAstype_double(buf []byte, offset flatbuffers.UOffsetT) *type_double { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_double{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_double(buf []byte, offset flatbuffers.UOffsetT) *type_double { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_double{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_double) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_double) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_double) Value() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *type_double) MutateValue(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func type_doubleStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_doubleAddValue(builder *flatbuffers.Builder, value float64) { - builder.PrependFloat64Slot(0, value, 0.0) -} -func type_doubleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_doubleT struct { + Value float64 +} + +func (t *type_doubleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_doubleStart(builder) + type_doubleAddValue(builder, t.Value) + return type_doubleEnd(builder) +} + +func (rcv *type_double) UnPackTo(t *type_doubleT) { + t.Value = rcv.Value() +} + +func (rcv *type_double) UnPack() *type_doubleT { + if rcv == nil { return nil } + t := &type_doubleT{} + rcv.UnPackTo(t) + return t +} + +type type_double struct { + _tab flatbuffers.Table +} + +func GetRootAstype_double(buf []byte, offset flatbuffers.UOffsetT) *type_double { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_double{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_double(buf []byte, offset flatbuffers.UOffsetT) *type_double { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_double{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_double) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_double) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_double) Value() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *type_double) MutateValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func type_doubleStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_doubleAddValue(builder *flatbuffers.Builder, value float64) { + builder.PrependFloat64Slot(0, value, 0.0) +} +func type_doubleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_float.go b/pkg/fbs/comm/osci/fbtypes/type_float.go index ec11f55..3ce9863 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_float.go +++ b/pkg/fbs/comm/osci/fbtypes/type_float.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_floatT struct { - Value float32 -} - -func (t *type_floatT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_floatStart(builder) - type_floatAddValue(builder, t.Value) - return type_floatEnd(builder) -} - -func (rcv *type_float) UnPackTo(t *type_floatT) { - t.Value = rcv.Value() -} - -func (rcv *type_float) UnPack() *type_floatT { - if rcv == nil { return nil } - t := &type_floatT{} - rcv.UnPackTo(t) - return t -} - -type type_float struct { - _tab flatbuffers.Table -} - -func GetRootAstype_float(buf []byte, offset flatbuffers.UOffsetT) *type_float { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_float{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_float(buf []byte, offset flatbuffers.UOffsetT) *type_float { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_float{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_float) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_float) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_float) Value() float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat32(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *type_float) MutateValue(n float32) bool { - return rcv._tab.MutateFloat32Slot(4, n) -} - -func type_floatStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_floatAddValue(builder *flatbuffers.Builder, value float32) { - builder.PrependFloat32Slot(0, value, 0.0) -} -func type_floatEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_floatT struct { + Value float32 +} + +func (t *type_floatT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_floatStart(builder) + type_floatAddValue(builder, t.Value) + return type_floatEnd(builder) +} + +func (rcv *type_float) UnPackTo(t *type_floatT) { + t.Value = rcv.Value() +} + +func (rcv *type_float) UnPack() *type_floatT { + if rcv == nil { return nil } + t := &type_floatT{} + rcv.UnPackTo(t) + return t +} + +type type_float struct { + _tab flatbuffers.Table +} + +func GetRootAstype_float(buf []byte, offset flatbuffers.UOffsetT) *type_float { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_float{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_float(buf []byte, offset flatbuffers.UOffsetT) *type_float { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_float{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_float) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_float) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_float) Value() float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat32(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *type_float) MutateValue(n float32) bool { + return rcv._tab.MutateFloat32Slot(4, n) +} + +func type_floatStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_floatAddValue(builder *flatbuffers.Builder, value float32) { + builder.PrependFloat32Slot(0, value, 0.0) +} +func type_floatEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_int.go b/pkg/fbs/comm/osci/fbtypes/type_int.go index a0a02fb..4a1d57f 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_int.go +++ b/pkg/fbs/comm/osci/fbtypes/type_int.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_intT struct { - Value int32 -} - -func (t *type_intT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_intStart(builder) - type_intAddValue(builder, t.Value) - return type_intEnd(builder) -} - -func (rcv *type_int) UnPackTo(t *type_intT) { - t.Value = rcv.Value() -} - -func (rcv *type_int) UnPack() *type_intT { - if rcv == nil { return nil } - t := &type_intT{} - rcv.UnPackTo(t) - return t -} - -type type_int struct { - _tab flatbuffers.Table -} - -func GetRootAstype_int(buf []byte, offset flatbuffers.UOffsetT) *type_int { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_int{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_int(buf []byte, offset flatbuffers.UOffsetT) *type_int { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_int{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_int) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_int) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_int) Value() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_int) MutateValue(n int32) bool { - return rcv._tab.MutateInt32Slot(4, n) -} - -func type_intStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_intAddValue(builder *flatbuffers.Builder, value int32) { - builder.PrependInt32Slot(0, value, 0) -} -func type_intEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_intT struct { + Value int32 +} + +func (t *type_intT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_intStart(builder) + type_intAddValue(builder, t.Value) + return type_intEnd(builder) +} + +func (rcv *type_int) UnPackTo(t *type_intT) { + t.Value = rcv.Value() +} + +func (rcv *type_int) UnPack() *type_intT { + if rcv == nil { return nil } + t := &type_intT{} + rcv.UnPackTo(t) + return t +} + +type type_int struct { + _tab flatbuffers.Table +} + +func GetRootAstype_int(buf []byte, offset flatbuffers.UOffsetT) *type_int { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_int{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_int(buf []byte, offset flatbuffers.UOffsetT) *type_int { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_int{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_int) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_int) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_int) Value() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_int) MutateValue(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +func type_intStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_intAddValue(builder *flatbuffers.Builder, value int32) { + builder.PrependInt32Slot(0, value, 0) +} +func type_intEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_long.go b/pkg/fbs/comm/osci/fbtypes/type_long.go index 515dd73..aa1f8de 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_long.go +++ b/pkg/fbs/comm/osci/fbtypes/type_long.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_longT struct { - Value int64 -} - -func (t *type_longT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_longStart(builder) - type_longAddValue(builder, t.Value) - return type_longEnd(builder) -} - -func (rcv *type_long) UnPackTo(t *type_longT) { - t.Value = rcv.Value() -} - -func (rcv *type_long) UnPack() *type_longT { - if rcv == nil { return nil } - t := &type_longT{} - rcv.UnPackTo(t) - return t -} - -type type_long struct { - _tab flatbuffers.Table -} - -func GetRootAstype_long(buf []byte, offset flatbuffers.UOffsetT) *type_long { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_long{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_long(buf []byte, offset flatbuffers.UOffsetT) *type_long { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_long{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_long) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_long) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_long) Value() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_long) MutateValue(n int64) bool { - return rcv._tab.MutateInt64Slot(4, n) -} - -func type_longStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_longAddValue(builder *flatbuffers.Builder, value int64) { - builder.PrependInt64Slot(0, value, 0) -} -func type_longEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_longT struct { + Value int64 +} + +func (t *type_longT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_longStart(builder) + type_longAddValue(builder, t.Value) + return type_longEnd(builder) +} + +func (rcv *type_long) UnPackTo(t *type_longT) { + t.Value = rcv.Value() +} + +func (rcv *type_long) UnPack() *type_longT { + if rcv == nil { return nil } + t := &type_longT{} + rcv.UnPackTo(t) + return t +} + +type type_long struct { + _tab flatbuffers.Table +} + +func GetRootAstype_long(buf []byte, offset flatbuffers.UOffsetT) *type_long { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_long{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_long(buf []byte, offset flatbuffers.UOffsetT) *type_long { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_long{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_long) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_long) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_long) Value() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_long) MutateValue(n int64) bool { + return rcv._tab.MutateInt64Slot(4, n) +} + +func type_longStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_longAddValue(builder *flatbuffers.Builder, value int64) { + builder.PrependInt64Slot(0, value, 0) +} +func type_longEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_short.go b/pkg/fbs/comm/osci/fbtypes/type_short.go index 1eb9cbc..ee5142b 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_short.go +++ b/pkg/fbs/comm/osci/fbtypes/type_short.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_shortT struct { - Value int16 -} - -func (t *type_shortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_shortStart(builder) - type_shortAddValue(builder, t.Value) - return type_shortEnd(builder) -} - -func (rcv *type_short) UnPackTo(t *type_shortT) { - t.Value = rcv.Value() -} - -func (rcv *type_short) UnPack() *type_shortT { - if rcv == nil { return nil } - t := &type_shortT{} - rcv.UnPackTo(t) - return t -} - -type type_short struct { - _tab flatbuffers.Table -} - -func GetRootAstype_short(buf []byte, offset flatbuffers.UOffsetT) *type_short { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_short{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_short(buf []byte, offset flatbuffers.UOffsetT) *type_short { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_short{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_short) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_short) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_short) Value() int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_short) MutateValue(n int16) bool { - return rcv._tab.MutateInt16Slot(4, n) -} - -func type_shortStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_shortAddValue(builder *flatbuffers.Builder, value int16) { - builder.PrependInt16Slot(0, value, 0) -} -func type_shortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_shortT struct { + Value int16 +} + +func (t *type_shortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_shortStart(builder) + type_shortAddValue(builder, t.Value) + return type_shortEnd(builder) +} + +func (rcv *type_short) UnPackTo(t *type_shortT) { + t.Value = rcv.Value() +} + +func (rcv *type_short) UnPack() *type_shortT { + if rcv == nil { return nil } + t := &type_shortT{} + rcv.UnPackTo(t) + return t +} + +type type_short struct { + _tab flatbuffers.Table +} + +func GetRootAstype_short(buf []byte, offset flatbuffers.UOffsetT) *type_short { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_short{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_short(buf []byte, offset flatbuffers.UOffsetT) *type_short { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_short{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_short) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_short) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_short) Value() int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_short) MutateValue(n int16) bool { + return rcv._tab.MutateInt16Slot(4, n) +} + +func type_shortStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_shortAddValue(builder *flatbuffers.Builder, value int16) { + builder.PrependInt16Slot(0, value, 0) +} +func type_shortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_string.go b/pkg/fbs/comm/osci/fbtypes/type_string.go index aafb665..1a66908 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_string.go +++ b/pkg/fbs/comm/osci/fbtypes/type_string.go @@ -1,75 +1,75 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_stringT struct { - Value string -} - -func (t *type_stringT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueOffset := builder.CreateString(t.Value) - type_stringStart(builder) - type_stringAddValue(builder, valueOffset) - return type_stringEnd(builder) -} - -func (rcv *type_string) UnPackTo(t *type_stringT) { - t.Value = string(rcv.Value()) -} - -func (rcv *type_string) UnPack() *type_stringT { - if rcv == nil { return nil } - t := &type_stringT{} - rcv.UnPackTo(t) - return t -} - -type type_string struct { - _tab flatbuffers.Table -} - -func GetRootAstype_string(buf []byte, offset flatbuffers.UOffsetT) *type_string { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_string{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_string(buf []byte, offset flatbuffers.UOffsetT) *type_string { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_string{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_string) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_string) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_string) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func type_stringStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_stringAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) -} -func type_stringEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_stringT struct { + Value string +} + +func (t *type_stringT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueOffset := builder.CreateString(t.Value) + type_stringStart(builder) + type_stringAddValue(builder, valueOffset) + return type_stringEnd(builder) +} + +func (rcv *type_string) UnPackTo(t *type_stringT) { + t.Value = string(rcv.Value()) +} + +func (rcv *type_string) UnPack() *type_stringT { + if rcv == nil { return nil } + t := &type_stringT{} + rcv.UnPackTo(t) + return t +} + +type type_string struct { + _tab flatbuffers.Table +} + +func GetRootAstype_string(buf []byte, offset flatbuffers.UOffsetT) *type_string { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_string{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_string(buf []byte, offset flatbuffers.UOffsetT) *type_string { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_string{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_string) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_string) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_string) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func type_stringStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_stringAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(value), 0) +} +func type_stringEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_ubyte.go b/pkg/fbs/comm/osci/fbtypes/type_ubyte.go index 51f2165..c2c21d5 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_ubyte.go +++ b/pkg/fbs/comm/osci/fbtypes/type_ubyte.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_ubyteT struct { - Value byte -} - -func (t *type_ubyteT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_ubyteStart(builder) - type_ubyteAddValue(builder, t.Value) - return type_ubyteEnd(builder) -} - -func (rcv *type_ubyte) UnPackTo(t *type_ubyteT) { - t.Value = rcv.Value() -} - -func (rcv *type_ubyte) UnPack() *type_ubyteT { - if rcv == nil { return nil } - t := &type_ubyteT{} - rcv.UnPackTo(t) - return t -} - -type type_ubyte struct { - _tab flatbuffers.Table -} - -func GetRootAstype_ubyte(buf []byte, offset flatbuffers.UOffsetT) *type_ubyte { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_ubyte{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_ubyte(buf []byte, offset flatbuffers.UOffsetT) *type_ubyte { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_ubyte{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_ubyte) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_ubyte) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_ubyte) Value() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_ubyte) MutateValue(n byte) bool { - return rcv._tab.MutateByteSlot(4, n) -} - -func type_ubyteStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_ubyteAddValue(builder *flatbuffers.Builder, value byte) { - builder.PrependByteSlot(0, value, 0) -} -func type_ubyteEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_ubyteT struct { + Value byte +} + +func (t *type_ubyteT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_ubyteStart(builder) + type_ubyteAddValue(builder, t.Value) + return type_ubyteEnd(builder) +} + +func (rcv *type_ubyte) UnPackTo(t *type_ubyteT) { + t.Value = rcv.Value() +} + +func (rcv *type_ubyte) UnPack() *type_ubyteT { + if rcv == nil { return nil } + t := &type_ubyteT{} + rcv.UnPackTo(t) + return t +} + +type type_ubyte struct { + _tab flatbuffers.Table +} + +func GetRootAstype_ubyte(buf []byte, offset flatbuffers.UOffsetT) *type_ubyte { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_ubyte{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_ubyte(buf []byte, offset flatbuffers.UOffsetT) *type_ubyte { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_ubyte{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_ubyte) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_ubyte) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_ubyte) Value() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_ubyte) MutateValue(n byte) bool { + return rcv._tab.MutateByteSlot(4, n) +} + +func type_ubyteStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_ubyteAddValue(builder *flatbuffers.Builder, value byte) { + builder.PrependByteSlot(0, value, 0) +} +func type_ubyteEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_uint.go b/pkg/fbs/comm/osci/fbtypes/type_uint.go index 02a9de7..5319e97 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_uint.go +++ b/pkg/fbs/comm/osci/fbtypes/type_uint.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_uintT struct { - Value uint32 -} - -func (t *type_uintT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_uintStart(builder) - type_uintAddValue(builder, t.Value) - return type_uintEnd(builder) -} - -func (rcv *type_uint) UnPackTo(t *type_uintT) { - t.Value = rcv.Value() -} - -func (rcv *type_uint) UnPack() *type_uintT { - if rcv == nil { return nil } - t := &type_uintT{} - rcv.UnPackTo(t) - return t -} - -type type_uint struct { - _tab flatbuffers.Table -} - -func GetRootAstype_uint(buf []byte, offset flatbuffers.UOffsetT) *type_uint { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_uint{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_uint(buf []byte, offset flatbuffers.UOffsetT) *type_uint { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_uint{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_uint) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_uint) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_uint) Value() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_uint) MutateValue(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func type_uintStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_uintAddValue(builder *flatbuffers.Builder, value uint32) { - builder.PrependUint32Slot(0, value, 0) -} -func type_uintEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_uintT struct { + Value uint32 +} + +func (t *type_uintT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_uintStart(builder) + type_uintAddValue(builder, t.Value) + return type_uintEnd(builder) +} + +func (rcv *type_uint) UnPackTo(t *type_uintT) { + t.Value = rcv.Value() +} + +func (rcv *type_uint) UnPack() *type_uintT { + if rcv == nil { return nil } + t := &type_uintT{} + rcv.UnPackTo(t) + return t +} + +type type_uint struct { + _tab flatbuffers.Table +} + +func GetRootAstype_uint(buf []byte, offset flatbuffers.UOffsetT) *type_uint { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_uint{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_uint(buf []byte, offset flatbuffers.UOffsetT) *type_uint { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_uint{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_uint) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_uint) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_uint) Value() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_uint) MutateValue(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func type_uintStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_uintAddValue(builder *flatbuffers.Builder, value uint32) { + builder.PrependUint32Slot(0, value, 0) +} +func type_uintEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_ulong.go b/pkg/fbs/comm/osci/fbtypes/type_ulong.go index bb9babe..415504d 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_ulong.go +++ b/pkg/fbs/comm/osci/fbtypes/type_ulong.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_ulongT struct { - Value uint64 -} - -func (t *type_ulongT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_ulongStart(builder) - type_ulongAddValue(builder, t.Value) - return type_ulongEnd(builder) -} - -func (rcv *type_ulong) UnPackTo(t *type_ulongT) { - t.Value = rcv.Value() -} - -func (rcv *type_ulong) UnPack() *type_ulongT { - if rcv == nil { return nil } - t := &type_ulongT{} - rcv.UnPackTo(t) - return t -} - -type type_ulong struct { - _tab flatbuffers.Table -} - -func GetRootAstype_ulong(buf []byte, offset flatbuffers.UOffsetT) *type_ulong { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_ulong{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_ulong(buf []byte, offset flatbuffers.UOffsetT) *type_ulong { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_ulong{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_ulong) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_ulong) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_ulong) Value() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_ulong) MutateValue(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func type_ulongStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_ulongAddValue(builder *flatbuffers.Builder, value uint64) { - builder.PrependUint64Slot(0, value, 0) -} -func type_ulongEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_ulongT struct { + Value uint64 +} + +func (t *type_ulongT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_ulongStart(builder) + type_ulongAddValue(builder, t.Value) + return type_ulongEnd(builder) +} + +func (rcv *type_ulong) UnPackTo(t *type_ulongT) { + t.Value = rcv.Value() +} + +func (rcv *type_ulong) UnPack() *type_ulongT { + if rcv == nil { return nil } + t := &type_ulongT{} + rcv.UnPackTo(t) + return t +} + +type type_ulong struct { + _tab flatbuffers.Table +} + +func GetRootAstype_ulong(buf []byte, offset flatbuffers.UOffsetT) *type_ulong { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_ulong{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_ulong(buf []byte, offset flatbuffers.UOffsetT) *type_ulong { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_ulong{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_ulong) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_ulong) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_ulong) Value() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_ulong) MutateValue(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func type_ulongStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_ulongAddValue(builder *flatbuffers.Builder, value uint64) { + builder.PrependUint64Slot(0, value, 0) +} +func type_ulongEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/osci/fbtypes/type_ushort.go b/pkg/fbs/comm/osci/fbtypes/type_ushort.go index 1e5ff71..fc59fae 100644 --- a/pkg/fbs/comm/osci/fbtypes/type_ushort.go +++ b/pkg/fbs/comm/osci/fbtypes/type_ushort.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type type_ushortT struct { - Value uint16 -} - -func (t *type_ushortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - type_ushortStart(builder) - type_ushortAddValue(builder, t.Value) - return type_ushortEnd(builder) -} - -func (rcv *type_ushort) UnPackTo(t *type_ushortT) { - t.Value = rcv.Value() -} - -func (rcv *type_ushort) UnPack() *type_ushortT { - if rcv == nil { return nil } - t := &type_ushortT{} - rcv.UnPackTo(t) - return t -} - -type type_ushort struct { - _tab flatbuffers.Table -} - -func GetRootAstype_ushort(buf []byte, offset flatbuffers.UOffsetT) *type_ushort { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &type_ushort{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAstype_ushort(buf []byte, offset flatbuffers.UOffsetT) *type_ushort { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &type_ushort{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *type_ushort) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *type_ushort) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *type_ushort) Value() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *type_ushort) MutateValue(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func type_ushortStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func type_ushortAddValue(builder *flatbuffers.Builder, value uint16) { - builder.PrependUint16Slot(0, value, 0) -} -func type_ushortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type type_ushortT struct { + Value uint16 +} + +func (t *type_ushortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + type_ushortStart(builder) + type_ushortAddValue(builder, t.Value) + return type_ushortEnd(builder) +} + +func (rcv *type_ushort) UnPackTo(t *type_ushortT) { + t.Value = rcv.Value() +} + +func (rcv *type_ushort) UnPack() *type_ushortT { + if rcv == nil { return nil } + t := &type_ushortT{} + rcv.UnPackTo(t) + return t +} + +type type_ushort struct { + _tab flatbuffers.Table +} + +func GetRootAstype_ushort(buf []byte, offset flatbuffers.UOffsetT) *type_ushort { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &type_ushort{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAstype_ushort(buf []byte, offset flatbuffers.UOffsetT) *type_ushort { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &type_ushort{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *type_ushort) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *type_ushort) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *type_ushort) Value() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *type_ushort) MutateValue(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func type_ushortStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func type_ushortAddValue(builder *flatbuffers.Builder, value uint16) { + builder.PrependUint16Slot(0, value, 0) +} +func type_ushortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/Capability.go b/pkg/fbs/comm/profinet/device/fbs/Capability.go new file mode 100644 index 0000000..995f5ba --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/Capability.go @@ -0,0 +1,90 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CapabilityT struct { + Name string + Value string +} + +func (t *CapabilityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueOffset := builder.CreateString(t.Value) + CapabilityStart(builder) + CapabilityAddName(builder, nameOffset) + CapabilityAddValue(builder, valueOffset) + return CapabilityEnd(builder) +} + +func (rcv *Capability) UnPackTo(t *CapabilityT) { + t.Name = string(rcv.Name()) + t.Value = string(rcv.Value()) +} + +func (rcv *Capability) UnPack() *CapabilityT { + if rcv == nil { return nil } + t := &CapabilityT{} + rcv.UnPackTo(t) + return t +} + +type Capability struct { + _tab flatbuffers.Table +} + +func GetRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Capability{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Capability{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Capability) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Capability) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Capability) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Capability) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func CapabilityStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CapabilityAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func CapabilityAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func CapabilityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/CapableInterfaces.go b/pkg/fbs/comm/profinet/device/fbs/CapableInterfaces.go new file mode 100644 index 0000000..96eb93e --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/CapableInterfaces.go @@ -0,0 +1,108 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CapableInterfacesT struct { + InterfaceList []*InterfaceT +} + +func (t *CapableInterfacesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + interfaceListOffset := flatbuffers.UOffsetT(0) + if t.InterfaceList != nil { + interfaceListLength := len(t.InterfaceList) + interfaceListOffsets := make([]flatbuffers.UOffsetT, interfaceListLength) + for j := 0; j < interfaceListLength; j++ { + interfaceListOffsets[j] = t.InterfaceList[j].Pack(builder) + } + CapableInterfacesStartInterfaceListVector(builder, interfaceListLength) + for j := interfaceListLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(interfaceListOffsets[j]) + } + interfaceListOffset = builder.EndVector(interfaceListLength) + } + CapableInterfacesStart(builder) + CapableInterfacesAddInterfaceList(builder, interfaceListOffset) + return CapableInterfacesEnd(builder) +} + +func (rcv *CapableInterfaces) UnPackTo(t *CapableInterfacesT) { + interfaceListLength := rcv.InterfaceListLength() + t.InterfaceList = make([]*InterfaceT, interfaceListLength) + for j := 0; j < interfaceListLength; j++ { + x := Interface{} + rcv.InterfaceList(&x, j) + t.InterfaceList[j] = x.UnPack() + } +} + +func (rcv *CapableInterfaces) UnPack() *CapableInterfacesT { + if rcv == nil { return nil } + t := &CapableInterfacesT{} + rcv.UnPackTo(t) + return t +} + +type CapableInterfaces struct { + _tab flatbuffers.Table +} + +func GetRootAsCapableInterfaces(buf []byte, offset flatbuffers.UOffsetT) *CapableInterfaces { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CapableInterfaces{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCapableInterfaces(buf []byte, offset flatbuffers.UOffsetT) *CapableInterfaces { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CapableInterfaces{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CapableInterfaces) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CapableInterfaces) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CapableInterfaces) InterfaceList(obj *Interface, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *CapableInterfaces) InterfaceListLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func CapableInterfacesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CapableInterfacesAddInterfaceList(builder *flatbuffers.Builder, interfaceList flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(interfaceList), 0) +} +func CapableInterfacesStartInterfaceListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CapableInterfacesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/ConfigData.go b/pkg/fbs/comm/profinet/device/fbs/ConfigData.go new file mode 100644 index 0000000..532a0d1 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/ConfigData.go @@ -0,0 +1,138 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ConfigDataT struct { + Name string + Description string + ConfigdataVector []*ModuleDataT +} + +func (t *ConfigDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + configdataVectorOffset := flatbuffers.UOffsetT(0) + if t.ConfigdataVector != nil { + configdataVectorLength := len(t.ConfigdataVector) + configdataVectorOffsets := make([]flatbuffers.UOffsetT, configdataVectorLength) + for j := 0; j < configdataVectorLength; j++ { + configdataVectorOffsets[j] = t.ConfigdataVector[j].Pack(builder) + } + ConfigDataStartConfigdataVectorVector(builder, configdataVectorLength) + for j := configdataVectorLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(configdataVectorOffsets[j]) + } + configdataVectorOffset = builder.EndVector(configdataVectorLength) + } + ConfigDataStart(builder) + ConfigDataAddName(builder, nameOffset) + ConfigDataAddDescription(builder, descriptionOffset) + ConfigDataAddConfigdataVector(builder, configdataVectorOffset) + return ConfigDataEnd(builder) +} + +func (rcv *ConfigData) UnPackTo(t *ConfigDataT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + configdataVectorLength := rcv.ConfigdataVectorLength() + t.ConfigdataVector = make([]*ModuleDataT, configdataVectorLength) + for j := 0; j < configdataVectorLength; j++ { + x := ModuleData{} + rcv.ConfigdataVector(&x, j) + t.ConfigdataVector[j] = x.UnPack() + } +} + +func (rcv *ConfigData) UnPack() *ConfigDataT { + if rcv == nil { return nil } + t := &ConfigDataT{} + rcv.UnPackTo(t) + return t +} + +type ConfigData struct { + _tab flatbuffers.Table +} + +func GetRootAsConfigData(buf []byte, offset flatbuffers.UOffsetT) *ConfigData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ConfigData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsConfigData(buf []byte, offset flatbuffers.UOffsetT) *ConfigData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ConfigData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ConfigData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ConfigData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ConfigData) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ConfigData) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ConfigData) ConfigdataVector(obj *ModuleData, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ConfigData) ConfigdataVectorLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ConfigDataStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func ConfigDataAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func ConfigDataAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func ConfigDataAddConfigdataVector(builder *flatbuffers.Builder, configdataVector flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(configdataVector), 0) +} +func ConfigDataStartConfigdataVectorVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ConfigDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/ContainerType.go b/pkg/fbs/comm/profinet/device/fbs/ContainerType.go new file mode 100644 index 0000000..83f6b32 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/ContainerType.go @@ -0,0 +1,110 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type ContainerType uint16 + +const ( + ContainerTypeTYPE_UNDEFINED ContainerType = 0 + ContainerTypeTYPE_BYTE ContainerType = 1 + ContainerTypeTYPE_ARRAY_OF_BYTE ContainerType = 2 + ContainerTypeTYPE_WORD ContainerType = 3 + ContainerTypeTYPE_ARRAY_OF_WORD ContainerType = 4 + ContainerTypeTYPE_DWORD ContainerType = 5 + ContainerTypeTYPE_ARRAY_OF_DWORD ContainerType = 6 + ContainerTypeTYPE_LWORD ContainerType = 7 + ContainerTypeTYPE_ARRAY_OF_LWORD ContainerType = 8 + ContainerTypeTYPE_SINT ContainerType = 9 + ContainerTypeTYPE_ARRAY_OF_SINT ContainerType = 10 + ContainerTypeTYPE_USINT ContainerType = 11 + ContainerTypeTYPE_ARRAY_OF_USINT ContainerType = 12 + ContainerTypeTYPE_INT ContainerType = 13 + ContainerTypeTYPE_ARRAY_OF_INT ContainerType = 14 + ContainerTypeTYPE_UINT ContainerType = 15 + ContainerTypeTYPE_ARRAY_OF_UINT ContainerType = 16 + ContainerTypeTYPE_DINT ContainerType = 17 + ContainerTypeTYPE_ARRAY_OF_DINT ContainerType = 18 + ContainerTypeTYPE_UDINT ContainerType = 19 + ContainerTypeTYPE_ARRAY_OF_UDINT ContainerType = 20 + ContainerTypeTYPE_LINT ContainerType = 21 + ContainerTypeTYPE_ARRAY_OF_LINT ContainerType = 22 + ContainerTypeTYPE_ULINT ContainerType = 23 + ContainerTypeTYPE_ARRAY_OF_ULINT ContainerType = 24 + ContainerTypeTYPE_REAL ContainerType = 25 + ContainerTypeTYPE_ARRAY_OF_REAL ContainerType = 26 + ContainerTypeTYPE_LREAL ContainerType = 27 + ContainerTypeTYPE_ARRAY_OF_LREAL ContainerType = 28 +) + +var EnumNamesContainerType = map[ContainerType]string{ + ContainerTypeTYPE_UNDEFINED: "TYPE_UNDEFINED", + ContainerTypeTYPE_BYTE: "TYPE_BYTE", + ContainerTypeTYPE_ARRAY_OF_BYTE: "TYPE_ARRAY_OF_BYTE", + ContainerTypeTYPE_WORD: "TYPE_WORD", + ContainerTypeTYPE_ARRAY_OF_WORD: "TYPE_ARRAY_OF_WORD", + ContainerTypeTYPE_DWORD: "TYPE_DWORD", + ContainerTypeTYPE_ARRAY_OF_DWORD: "TYPE_ARRAY_OF_DWORD", + ContainerTypeTYPE_LWORD: "TYPE_LWORD", + ContainerTypeTYPE_ARRAY_OF_LWORD: "TYPE_ARRAY_OF_LWORD", + ContainerTypeTYPE_SINT: "TYPE_SINT", + ContainerTypeTYPE_ARRAY_OF_SINT: "TYPE_ARRAY_OF_SINT", + ContainerTypeTYPE_USINT: "TYPE_USINT", + ContainerTypeTYPE_ARRAY_OF_USINT: "TYPE_ARRAY_OF_USINT", + ContainerTypeTYPE_INT: "TYPE_INT", + ContainerTypeTYPE_ARRAY_OF_INT: "TYPE_ARRAY_OF_INT", + ContainerTypeTYPE_UINT: "TYPE_UINT", + ContainerTypeTYPE_ARRAY_OF_UINT: "TYPE_ARRAY_OF_UINT", + ContainerTypeTYPE_DINT: "TYPE_DINT", + ContainerTypeTYPE_ARRAY_OF_DINT: "TYPE_ARRAY_OF_DINT", + ContainerTypeTYPE_UDINT: "TYPE_UDINT", + ContainerTypeTYPE_ARRAY_OF_UDINT: "TYPE_ARRAY_OF_UDINT", + ContainerTypeTYPE_LINT: "TYPE_LINT", + ContainerTypeTYPE_ARRAY_OF_LINT: "TYPE_ARRAY_OF_LINT", + ContainerTypeTYPE_ULINT: "TYPE_ULINT", + ContainerTypeTYPE_ARRAY_OF_ULINT: "TYPE_ARRAY_OF_ULINT", + ContainerTypeTYPE_REAL: "TYPE_REAL", + ContainerTypeTYPE_ARRAY_OF_REAL: "TYPE_ARRAY_OF_REAL", + ContainerTypeTYPE_LREAL: "TYPE_LREAL", + ContainerTypeTYPE_ARRAY_OF_LREAL: "TYPE_ARRAY_OF_LREAL", +} + +var EnumValuesContainerType = map[string]ContainerType{ + "TYPE_UNDEFINED": ContainerTypeTYPE_UNDEFINED, + "TYPE_BYTE": ContainerTypeTYPE_BYTE, + "TYPE_ARRAY_OF_BYTE": ContainerTypeTYPE_ARRAY_OF_BYTE, + "TYPE_WORD": ContainerTypeTYPE_WORD, + "TYPE_ARRAY_OF_WORD": ContainerTypeTYPE_ARRAY_OF_WORD, + "TYPE_DWORD": ContainerTypeTYPE_DWORD, + "TYPE_ARRAY_OF_DWORD": ContainerTypeTYPE_ARRAY_OF_DWORD, + "TYPE_LWORD": ContainerTypeTYPE_LWORD, + "TYPE_ARRAY_OF_LWORD": ContainerTypeTYPE_ARRAY_OF_LWORD, + "TYPE_SINT": ContainerTypeTYPE_SINT, + "TYPE_ARRAY_OF_SINT": ContainerTypeTYPE_ARRAY_OF_SINT, + "TYPE_USINT": ContainerTypeTYPE_USINT, + "TYPE_ARRAY_OF_USINT": ContainerTypeTYPE_ARRAY_OF_USINT, + "TYPE_INT": ContainerTypeTYPE_INT, + "TYPE_ARRAY_OF_INT": ContainerTypeTYPE_ARRAY_OF_INT, + "TYPE_UINT": ContainerTypeTYPE_UINT, + "TYPE_ARRAY_OF_UINT": ContainerTypeTYPE_ARRAY_OF_UINT, + "TYPE_DINT": ContainerTypeTYPE_DINT, + "TYPE_ARRAY_OF_DINT": ContainerTypeTYPE_ARRAY_OF_DINT, + "TYPE_UDINT": ContainerTypeTYPE_UDINT, + "TYPE_ARRAY_OF_UDINT": ContainerTypeTYPE_ARRAY_OF_UDINT, + "TYPE_LINT": ContainerTypeTYPE_LINT, + "TYPE_ARRAY_OF_LINT": ContainerTypeTYPE_ARRAY_OF_LINT, + "TYPE_ULINT": ContainerTypeTYPE_ULINT, + "TYPE_ARRAY_OF_ULINT": ContainerTypeTYPE_ARRAY_OF_ULINT, + "TYPE_REAL": ContainerTypeTYPE_REAL, + "TYPE_ARRAY_OF_REAL": ContainerTypeTYPE_ARRAY_OF_REAL, + "TYPE_LREAL": ContainerTypeTYPE_LREAL, + "TYPE_ARRAY_OF_LREAL": ContainerTypeTYPE_ARRAY_OF_LREAL, +} + +func (v ContainerType) String() string { + if s, ok := EnumNamesContainerType[v]; ok { + return s + } + return "ContainerType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceConfig.go b/pkg/fbs/comm/profinet/device/fbs/DeviceConfig.go new file mode 100644 index 0000000..165139d --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceConfig.go @@ -0,0 +1,90 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceConfigT struct { + Name string + Description string +} + +func (t *DeviceConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + DeviceConfigStart(builder) + DeviceConfigAddName(builder, nameOffset) + DeviceConfigAddDescription(builder, descriptionOffset) + return DeviceConfigEnd(builder) +} + +func (rcv *DeviceConfig) UnPackTo(t *DeviceConfigT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) +} + +func (rcv *DeviceConfig) UnPack() *DeviceConfigT { + if rcv == nil { return nil } + t := &DeviceConfigT{} + rcv.UnPackTo(t) + return t +} + +type DeviceConfig struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceConfig(buf []byte, offset flatbuffers.UOffsetT) *DeviceConfig { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceConfig{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceConfig(buf []byte, offset flatbuffers.UOffsetT) *DeviceConfig { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceConfig{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceConfig) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceConfig) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceConfig) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DeviceConfig) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func DeviceConfigStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DeviceConfigAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func DeviceConfigAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func DeviceConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceConfigRequest.go b/pkg/fbs/comm/profinet/device/fbs/DeviceConfigRequest.go new file mode 100644 index 0000000..1e0b7ed --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceConfigRequest.go @@ -0,0 +1,122 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceConfigRequestT struct { + Name string + Configuration []byte +} + +func (t *DeviceConfigRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + configurationOffset := flatbuffers.UOffsetT(0) + if t.Configuration != nil { + configurationOffset = builder.CreateByteString(t.Configuration) + } + DeviceConfigRequestStart(builder) + DeviceConfigRequestAddName(builder, nameOffset) + DeviceConfigRequestAddConfiguration(builder, configurationOffset) + return DeviceConfigRequestEnd(builder) +} + +func (rcv *DeviceConfigRequest) UnPackTo(t *DeviceConfigRequestT) { + t.Name = string(rcv.Name()) + t.Configuration = rcv.ConfigurationBytes() +} + +func (rcv *DeviceConfigRequest) UnPack() *DeviceConfigRequestT { + if rcv == nil { return nil } + t := &DeviceConfigRequestT{} + rcv.UnPackTo(t) + return t +} + +type DeviceConfigRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceConfigRequest(buf []byte, offset flatbuffers.UOffsetT) *DeviceConfigRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceConfigRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceConfigRequest(buf []byte, offset flatbuffers.UOffsetT) *DeviceConfigRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceConfigRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceConfigRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceConfigRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceConfigRequest) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DeviceConfigRequest) Configuration(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *DeviceConfigRequest) ConfigurationLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *DeviceConfigRequest) ConfigurationBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DeviceConfigRequest) MutateConfiguration(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func DeviceConfigRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DeviceConfigRequestAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func DeviceConfigRequestAddConfiguration(builder *flatbuffers.Builder, configuration flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(configuration), 0) +} +func DeviceConfigRequestStartConfigurationVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func DeviceConfigRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceConfigResponse.go b/pkg/fbs/comm/profinet/device/fbs/DeviceConfigResponse.go new file mode 100644 index 0000000..13c420c --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceConfigResponse.go @@ -0,0 +1,90 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceConfigResponseT struct { + Name string + Description string +} + +func (t *DeviceConfigResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + DeviceConfigResponseStart(builder) + DeviceConfigResponseAddName(builder, nameOffset) + DeviceConfigResponseAddDescription(builder, descriptionOffset) + return DeviceConfigResponseEnd(builder) +} + +func (rcv *DeviceConfigResponse) UnPackTo(t *DeviceConfigResponseT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) +} + +func (rcv *DeviceConfigResponse) UnPack() *DeviceConfigResponseT { + if rcv == nil { return nil } + t := &DeviceConfigResponseT{} + rcv.UnPackTo(t) + return t +} + +type DeviceConfigResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceConfigResponse(buf []byte, offset flatbuffers.UOffsetT) *DeviceConfigResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceConfigResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceConfigResponse(buf []byte, offset flatbuffers.UOffsetT) *DeviceConfigResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceConfigResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceConfigResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceConfigResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceConfigResponse) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DeviceConfigResponse) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func DeviceConfigResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DeviceConfigResponseAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func DeviceConfigResponseAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func DeviceConfigResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceState.go b/pkg/fbs/comm/profinet/device/fbs/DeviceState.go new file mode 100644 index 0000000..5f3be68 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceState.go @@ -0,0 +1,100 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceStateT struct { + Request *DeviceStateRequestT + Response *DeviceStateResponseT +} + +func (t *DeviceStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + DeviceStateStart(builder) + DeviceStateAddRequest(builder, requestOffset) + DeviceStateAddResponse(builder, responseOffset) + return DeviceStateEnd(builder) +} + +func (rcv *DeviceState) UnPackTo(t *DeviceStateT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *DeviceState) UnPack() *DeviceStateT { + if rcv == nil { return nil } + t := &DeviceStateT{} + rcv.UnPackTo(t) + return t +} + +type DeviceState struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceState(buf []byte, offset flatbuffers.UOffsetT) *DeviceState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceState(buf []byte, offset flatbuffers.UOffsetT) *DeviceState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceState) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceState) Request(obj *DeviceStateRequest) *DeviceStateRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DeviceStateRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *DeviceState) Response(obj *DeviceStateResponse) *DeviceStateResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DeviceStateResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func DeviceStateStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DeviceStateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func DeviceStateAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func DeviceStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceStateRequest.go b/pkg/fbs/comm/profinet/device/fbs/DeviceStateRequest.go new file mode 100644 index 0000000..e3ab50e --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceStateRequest.go @@ -0,0 +1,78 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceStateRequestT struct { + NewState ProfinetState +} + +func (t *DeviceStateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DeviceStateRequestStart(builder) + DeviceStateRequestAddNewState(builder, t.NewState) + return DeviceStateRequestEnd(builder) +} + +func (rcv *DeviceStateRequest) UnPackTo(t *DeviceStateRequestT) { + t.NewState = rcv.NewState() +} + +func (rcv *DeviceStateRequest) UnPack() *DeviceStateRequestT { + if rcv == nil { return nil } + t := &DeviceStateRequestT{} + rcv.UnPackTo(t) + return t +} + +type DeviceStateRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceStateRequest(buf []byte, offset flatbuffers.UOffsetT) *DeviceStateRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceStateRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceStateRequest(buf []byte, offset flatbuffers.UOffsetT) *DeviceStateRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceStateRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceStateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceStateRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceStateRequest) NewState() ProfinetState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ProfinetState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *DeviceStateRequest) MutateNewState(n ProfinetState) bool { + return rcv._tab.MutateUint16Slot(4, uint16(n)) +} + +func DeviceStateRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DeviceStateRequestAddNewState(builder *flatbuffers.Builder, newState ProfinetState) { + builder.PrependUint16Slot(0, uint16(newState), 0) +} +func DeviceStateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceStateResponse.go b/pkg/fbs/comm/profinet/device/fbs/DeviceStateResponse.go new file mode 100644 index 0000000..968d1a8 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceStateResponse.go @@ -0,0 +1,96 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceStateResponseT struct { + CurrentState ProfinetState + RequestedState ProfinetState +} + +func (t *DeviceStateResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DeviceStateResponseStart(builder) + DeviceStateResponseAddCurrentState(builder, t.CurrentState) + DeviceStateResponseAddRequestedState(builder, t.RequestedState) + return DeviceStateResponseEnd(builder) +} + +func (rcv *DeviceStateResponse) UnPackTo(t *DeviceStateResponseT) { + t.CurrentState = rcv.CurrentState() + t.RequestedState = rcv.RequestedState() +} + +func (rcv *DeviceStateResponse) UnPack() *DeviceStateResponseT { + if rcv == nil { return nil } + t := &DeviceStateResponseT{} + rcv.UnPackTo(t) + return t +} + +type DeviceStateResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceStateResponse(buf []byte, offset flatbuffers.UOffsetT) *DeviceStateResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceStateResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceStateResponse(buf []byte, offset flatbuffers.UOffsetT) *DeviceStateResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceStateResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceStateResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceStateResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceStateResponse) CurrentState() ProfinetState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ProfinetState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *DeviceStateResponse) MutateCurrentState(n ProfinetState) bool { + return rcv._tab.MutateUint16Slot(4, uint16(n)) +} + +func (rcv *DeviceStateResponse) RequestedState() ProfinetState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return ProfinetState(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *DeviceStateResponse) MutateRequestedState(n ProfinetState) bool { + return rcv._tab.MutateUint16Slot(6, uint16(n)) +} + +func DeviceStateResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DeviceStateResponseAddCurrentState(builder *flatbuffers.Builder, currentState ProfinetState) { + builder.PrependUint16Slot(0, uint16(currentState), 0) +} +func DeviceStateResponseAddRequestedState(builder *flatbuffers.Builder, requestedState ProfinetState) { + builder.PrependUint16Slot(1, uint16(requestedState), 0) +} +func DeviceStateResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceStatus.go b/pkg/fbs/comm/profinet/device/fbs/DeviceStatus.go new file mode 100644 index 0000000..5223675 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceStatus.go @@ -0,0 +1,80 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceStatusT struct { + Response *DeviceStatusResponseT +} + +func (t *DeviceStatusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + responseOffset := t.Response.Pack(builder) + DeviceStatusStart(builder) + DeviceStatusAddResponse(builder, responseOffset) + return DeviceStatusEnd(builder) +} + +func (rcv *DeviceStatus) UnPackTo(t *DeviceStatusT) { + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *DeviceStatus) UnPack() *DeviceStatusT { + if rcv == nil { return nil } + t := &DeviceStatusT{} + rcv.UnPackTo(t) + return t +} + +type DeviceStatus struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceStatus(buf []byte, offset flatbuffers.UOffsetT) *DeviceStatus { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceStatus{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceStatus(buf []byte, offset flatbuffers.UOffsetT) *DeviceStatus { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceStatus{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceStatus) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceStatus) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceStatus) Response(obj *DeviceStatusResponse) *DeviceStatusResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DeviceStatusResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func DeviceStatusStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DeviceStatusAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(response), 0) +} +func DeviceStatusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/DeviceStatusResponse.go b/pkg/fbs/comm/profinet/device/fbs/DeviceStatusResponse.go new file mode 100644 index 0000000..0fa776e --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/DeviceStatusResponse.go @@ -0,0 +1,78 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DeviceStatusResponseT struct { + Status uint32 +} + +func (t *DeviceStatusResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DeviceStatusResponseStart(builder) + DeviceStatusResponseAddStatus(builder, t.Status) + return DeviceStatusResponseEnd(builder) +} + +func (rcv *DeviceStatusResponse) UnPackTo(t *DeviceStatusResponseT) { + t.Status = rcv.Status() +} + +func (rcv *DeviceStatusResponse) UnPack() *DeviceStatusResponseT { + if rcv == nil { return nil } + t := &DeviceStatusResponseT{} + rcv.UnPackTo(t) + return t +} + +type DeviceStatusResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsDeviceStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *DeviceStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DeviceStatusResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDeviceStatusResponse(buf []byte, offset flatbuffers.UOffsetT) *DeviceStatusResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DeviceStatusResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DeviceStatusResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DeviceStatusResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DeviceStatusResponse) Status() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DeviceStatusResponse) MutateStatus(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func DeviceStatusResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DeviceStatusResponseAddStatus(builder *flatbuffers.Builder, status uint32) { + builder.PrependUint32Slot(0, status, 0) +} +func DeviceStatusResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/InstancesCreate.go b/pkg/fbs/comm/profinet/device/fbs/InstancesCreate.go new file mode 100644 index 0000000..cf44d0e --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/InstancesCreate.go @@ -0,0 +1,80 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InstancesCreateT struct { + Request *InstancesCreateRequestT +} + +func (t *InstancesCreateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + InstancesCreateStart(builder) + InstancesCreateAddRequest(builder, requestOffset) + return InstancesCreateEnd(builder) +} + +func (rcv *InstancesCreate) UnPackTo(t *InstancesCreateT) { + t.Request = rcv.Request(nil).UnPack() +} + +func (rcv *InstancesCreate) UnPack() *InstancesCreateT { + if rcv == nil { return nil } + t := &InstancesCreateT{} + rcv.UnPackTo(t) + return t +} + +type InstancesCreate struct { + _tab flatbuffers.Table +} + +func GetRootAsInstancesCreate(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreate { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &InstancesCreate{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInstancesCreate(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreate { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &InstancesCreate{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *InstancesCreate) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *InstancesCreate) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *InstancesCreate) Request(obj *InstancesCreateRequest) *InstancesCreateRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(InstancesCreateRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func InstancesCreateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func InstancesCreateAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func InstancesCreateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/InstancesCreateRequest.go b/pkg/fbs/comm/profinet/device/fbs/InstancesCreateRequest.go new file mode 100644 index 0000000..dc24f79 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/InstancesCreateRequest.go @@ -0,0 +1,120 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InstancesCreateRequestT struct { + InstanceName string + Port string + LinkLayer string + Arguments string +} + +func (t *InstancesCreateRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + instanceNameOffset := builder.CreateString(t.InstanceName) + portOffset := builder.CreateString(t.Port) + linkLayerOffset := builder.CreateString(t.LinkLayer) + argumentsOffset := builder.CreateString(t.Arguments) + InstancesCreateRequestStart(builder) + InstancesCreateRequestAddInstanceName(builder, instanceNameOffset) + InstancesCreateRequestAddPort(builder, portOffset) + InstancesCreateRequestAddLinkLayer(builder, linkLayerOffset) + InstancesCreateRequestAddArguments(builder, argumentsOffset) + return InstancesCreateRequestEnd(builder) +} + +func (rcv *InstancesCreateRequest) UnPackTo(t *InstancesCreateRequestT) { + t.InstanceName = string(rcv.InstanceName()) + t.Port = string(rcv.Port()) + t.LinkLayer = string(rcv.LinkLayer()) + t.Arguments = string(rcv.Arguments()) +} + +func (rcv *InstancesCreateRequest) UnPack() *InstancesCreateRequestT { + if rcv == nil { return nil } + t := &InstancesCreateRequestT{} + rcv.UnPackTo(t) + return t +} + +type InstancesCreateRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsInstancesCreateRequest(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreateRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &InstancesCreateRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInstancesCreateRequest(buf []byte, offset flatbuffers.UOffsetT) *InstancesCreateRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &InstancesCreateRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *InstancesCreateRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *InstancesCreateRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *InstancesCreateRequest) InstanceName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *InstancesCreateRequest) Port() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *InstancesCreateRequest) LinkLayer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *InstancesCreateRequest) Arguments() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func InstancesCreateRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func InstancesCreateRequestAddInstanceName(builder *flatbuffers.Builder, instanceName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(instanceName), 0) +} +func InstancesCreateRequestAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(port), 0) +} +func InstancesCreateRequestAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(linkLayer), 0) +} +func InstancesCreateRequestAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(arguments), 0) +} +func InstancesCreateRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/Interface.go b/pkg/fbs/comm/profinet/device/fbs/Interface.go new file mode 100644 index 0000000..31de45d --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/Interface.go @@ -0,0 +1,153 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type InterfaceT struct { + Port string + Device string + LinkLayer string + CapabilityList []*CapabilityT +} + +func (t *InterfaceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + portOffset := builder.CreateString(t.Port) + deviceOffset := builder.CreateString(t.Device) + linkLayerOffset := builder.CreateString(t.LinkLayer) + capabilityListOffset := flatbuffers.UOffsetT(0) + if t.CapabilityList != nil { + capabilityListLength := len(t.CapabilityList) + capabilityListOffsets := make([]flatbuffers.UOffsetT, capabilityListLength) + for j := 0; j < capabilityListLength; j++ { + capabilityListOffsets[j] = t.CapabilityList[j].Pack(builder) + } + InterfaceStartCapabilityListVector(builder, capabilityListLength) + for j := capabilityListLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(capabilityListOffsets[j]) + } + capabilityListOffset = builder.EndVector(capabilityListLength) + } + InterfaceStart(builder) + InterfaceAddPort(builder, portOffset) + InterfaceAddDevice(builder, deviceOffset) + InterfaceAddLinkLayer(builder, linkLayerOffset) + InterfaceAddCapabilityList(builder, capabilityListOffset) + return InterfaceEnd(builder) +} + +func (rcv *Interface) UnPackTo(t *InterfaceT) { + t.Port = string(rcv.Port()) + t.Device = string(rcv.Device()) + t.LinkLayer = string(rcv.LinkLayer()) + capabilityListLength := rcv.CapabilityListLength() + t.CapabilityList = make([]*CapabilityT, capabilityListLength) + for j := 0; j < capabilityListLength; j++ { + x := Capability{} + rcv.CapabilityList(&x, j) + t.CapabilityList[j] = x.UnPack() + } +} + +func (rcv *Interface) UnPack() *InterfaceT { + if rcv == nil { return nil } + t := &InterfaceT{} + rcv.UnPackTo(t) + return t +} + +type Interface struct { + _tab flatbuffers.Table +} + +func GetRootAsInterface(buf []byte, offset flatbuffers.UOffsetT) *Interface { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Interface{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInterface(buf []byte, offset flatbuffers.UOffsetT) *Interface { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Interface{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Interface) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Interface) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Interface) Port() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface) Device() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface) LinkLayer() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Interface) CapabilityList(obj *Capability, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Interface) CapabilityListLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func InterfaceStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func InterfaceAddPort(builder *flatbuffers.Builder, port flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(port), 0) +} +func InterfaceAddDevice(builder *flatbuffers.Builder, device flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(device), 0) +} +func InterfaceAddLinkLayer(builder *flatbuffers.Builder, linkLayer flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(linkLayer), 0) +} +func InterfaceAddCapabilityList(builder *flatbuffers.Builder, capabilityList flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(capabilityList), 0) +} +func InterfaceStartCapabilityListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func InterfaceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/ModuleData.go b/pkg/fbs/comm/profinet/device/fbs/ModuleData.go new file mode 100644 index 0000000..ed86a3d --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/ModuleData.go @@ -0,0 +1,132 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ModuleDataT struct { + ModuleType ModuleType + ModuleIndex uint16 + ContainerType ContainerType + NumberElements uint16 +} + +func (t *ModuleDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ModuleDataStart(builder) + ModuleDataAddModuleType(builder, t.ModuleType) + ModuleDataAddModuleIndex(builder, t.ModuleIndex) + ModuleDataAddContainerType(builder, t.ContainerType) + ModuleDataAddNumberElements(builder, t.NumberElements) + return ModuleDataEnd(builder) +} + +func (rcv *ModuleData) UnPackTo(t *ModuleDataT) { + t.ModuleType = rcv.ModuleType() + t.ModuleIndex = rcv.ModuleIndex() + t.ContainerType = rcv.ContainerType() + t.NumberElements = rcv.NumberElements() +} + +func (rcv *ModuleData) UnPack() *ModuleDataT { + if rcv == nil { return nil } + t := &ModuleDataT{} + rcv.UnPackTo(t) + return t +} + +type ModuleData struct { + _tab flatbuffers.Table +} + +func GetRootAsModuleData(buf []byte, offset flatbuffers.UOffsetT) *ModuleData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ModuleData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsModuleData(buf []byte, offset flatbuffers.UOffsetT) *ModuleData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ModuleData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ModuleData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ModuleData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ModuleData) ModuleType() ModuleType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ModuleType(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ModuleData) MutateModuleType(n ModuleType) bool { + return rcv._tab.MutateUint16Slot(4, uint16(n)) +} + +func (rcv *ModuleData) ModuleIndex() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ModuleData) MutateModuleIndex(n uint16) bool { + return rcv._tab.MutateUint16Slot(6, n) +} + +func (rcv *ModuleData) ContainerType() ContainerType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return ContainerType(rcv._tab.GetUint16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *ModuleData) MutateContainerType(n ContainerType) bool { + return rcv._tab.MutateUint16Slot(8, uint16(n)) +} + +func (rcv *ModuleData) NumberElements() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ModuleData) MutateNumberElements(n uint16) bool { + return rcv._tab.MutateUint16Slot(10, n) +} + +func ModuleDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func ModuleDataAddModuleType(builder *flatbuffers.Builder, moduleType ModuleType) { + builder.PrependUint16Slot(0, uint16(moduleType), 0) +} +func ModuleDataAddModuleIndex(builder *flatbuffers.Builder, moduleIndex uint16) { + builder.PrependUint16Slot(1, moduleIndex, 0) +} +func ModuleDataAddContainerType(builder *flatbuffers.Builder, containerType ContainerType) { + builder.PrependUint16Slot(2, uint16(containerType), 0) +} +func ModuleDataAddNumberElements(builder *flatbuffers.Builder, numberElements uint16) { + builder.PrependUint16Slot(3, numberElements, 0) +} +func ModuleDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/ModuleType.go b/pkg/fbs/comm/profinet/device/fbs/ModuleType.go new file mode 100644 index 0000000..86eae62 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/ModuleType.go @@ -0,0 +1,32 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type ModuleType uint16 + +const ( + ModuleTypeUNASSIGNED ModuleType = 0 + ModuleTypeINPUTS ModuleType = 1 + ModuleTypeOUTPUTS ModuleType = 2 +) + +var EnumNamesModuleType = map[ModuleType]string{ + ModuleTypeUNASSIGNED: "UNASSIGNED", + ModuleTypeINPUTS: "INPUTS", + ModuleTypeOUTPUTS: "OUTPUTS", +} + +var EnumValuesModuleType = map[string]ModuleType{ + "UNASSIGNED": ModuleTypeUNASSIGNED, + "INPUTS": ModuleTypeINPUTS, + "OUTPUTS": ModuleTypeOUTPUTS, +} + +func (v ModuleType) String() string { + if s, ok := EnumNamesModuleType[v]; ok { + return s + } + return "ModuleType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/profinet/device/fbs/Parameter.go b/pkg/fbs/comm/profinet/device/fbs/Parameter.go new file mode 100644 index 0000000..2b619f4 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/Parameter.go @@ -0,0 +1,100 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ParameterT struct { + Request *ParameterRequestT + Response *ParameterResponseT +} + +func (t *ParameterT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + requestOffset := t.Request.Pack(builder) + responseOffset := t.Response.Pack(builder) + ParameterStart(builder) + ParameterAddRequest(builder, requestOffset) + ParameterAddResponse(builder, responseOffset) + return ParameterEnd(builder) +} + +func (rcv *Parameter) UnPackTo(t *ParameterT) { + t.Request = rcv.Request(nil).UnPack() + t.Response = rcv.Response(nil).UnPack() +} + +func (rcv *Parameter) UnPack() *ParameterT { + if rcv == nil { return nil } + t := &ParameterT{} + rcv.UnPackTo(t) + return t +} + +type Parameter struct { + _tab flatbuffers.Table +} + +func GetRootAsParameter(buf []byte, offset flatbuffers.UOffsetT) *Parameter { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Parameter{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsParameter(buf []byte, offset flatbuffers.UOffsetT) *Parameter { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Parameter{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Parameter) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Parameter) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Parameter) Request(obj *ParameterRequest) *ParameterRequest { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ParameterRequest) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Parameter) Response(obj *ParameterResponse) *ParameterResponse { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ParameterResponse) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func ParameterStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ParameterAddRequest(builder *flatbuffers.Builder, request flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(request), 0) +} +func ParameterAddResponse(builder *flatbuffers.Builder, response flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(response), 0) +} +func ParameterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/ParameterRequest.go b/pkg/fbs/comm/profinet/device/fbs/ParameterRequest.go new file mode 100644 index 0000000..fdbb7ad --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/ParameterRequest.go @@ -0,0 +1,125 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ParameterRequestT struct { + Eidn uint32 + Data []byte +} + +func (t *ParameterRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + ParameterRequestStart(builder) + ParameterRequestAddEidn(builder, t.Eidn) + ParameterRequestAddData(builder, dataOffset) + return ParameterRequestEnd(builder) +} + +func (rcv *ParameterRequest) UnPackTo(t *ParameterRequestT) { + t.Eidn = rcv.Eidn() + t.Data = rcv.DataBytes() +} + +func (rcv *ParameterRequest) UnPack() *ParameterRequestT { + if rcv == nil { return nil } + t := &ParameterRequestT{} + rcv.UnPackTo(t) + return t +} + +type ParameterRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsParameterRequest(buf []byte, offset flatbuffers.UOffsetT) *ParameterRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ParameterRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsParameterRequest(buf []byte, offset flatbuffers.UOffsetT) *ParameterRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ParameterRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ParameterRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ParameterRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ParameterRequest) Eidn() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ParameterRequest) MutateEidn(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *ParameterRequest) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ParameterRequest) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ParameterRequest) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ParameterRequest) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ParameterRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ParameterRequestAddEidn(builder *flatbuffers.Builder, eidn uint32) { + builder.PrependUint32Slot(0, eidn, 0) +} +func ParameterRequestAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(data), 0) +} +func ParameterRequestStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ParameterRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/ParameterResponse.go b/pkg/fbs/comm/profinet/device/fbs/ParameterResponse.go new file mode 100644 index 0000000..1a06f39 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/ParameterResponse.go @@ -0,0 +1,107 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ParameterResponseT struct { + Data []byte +} + +func (t *ParameterResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + ParameterResponseStart(builder) + ParameterResponseAddData(builder, dataOffset) + return ParameterResponseEnd(builder) +} + +func (rcv *ParameterResponse) UnPackTo(t *ParameterResponseT) { + t.Data = rcv.DataBytes() +} + +func (rcv *ParameterResponse) UnPack() *ParameterResponseT { + if rcv == nil { return nil } + t := &ParameterResponseT{} + rcv.UnPackTo(t) + return t +} + +type ParameterResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsParameterResponse(buf []byte, offset flatbuffers.UOffsetT) *ParameterResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ParameterResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsParameterResponse(buf []byte, offset flatbuffers.UOffsetT) *ParameterResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ParameterResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ParameterResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ParameterResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ParameterResponse) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ParameterResponse) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ParameterResponse) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ParameterResponse) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ParameterResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ParameterResponseAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ParameterResponseStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ParameterResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/comm/profinet/device/fbs/ProfinetState.go b/pkg/fbs/comm/profinet/device/fbs/ProfinetState.go new file mode 100644 index 0000000..3636ea1 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/ProfinetState.go @@ -0,0 +1,44 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type ProfinetState uint16 + +const ( + ProfinetStateunknown ProfinetState = 0 + ProfinetStateinit ProfinetState = 1 + ProfinetStatepreop ProfinetState = 2 + ProfinetStatesafeop ProfinetState = 4 + ProfinetStateop ProfinetState = 8 + ProfinetStatefw_update_necessary ProfinetState = 17 + ProfinetStatefw_update ProfinetState = 18 +) + +var EnumNamesProfinetState = map[ProfinetState]string{ + ProfinetStateunknown: "unknown", + ProfinetStateinit: "init", + ProfinetStatepreop: "preop", + ProfinetStatesafeop: "safeop", + ProfinetStateop: "op", + ProfinetStatefw_update_necessary: "fw_update_necessary", + ProfinetStatefw_update: "fw_update", +} + +var EnumValuesProfinetState = map[string]ProfinetState{ + "unknown": ProfinetStateunknown, + "init": ProfinetStateinit, + "preop": ProfinetStatepreop, + "safeop": ProfinetStatesafeop, + "op": ProfinetStateop, + "fw_update_necessary": ProfinetStatefw_update_necessary, + "fw_update": ProfinetStatefw_update, +} + +func (v ProfinetState) String() string { + if s, ok := EnumNamesProfinetState[v]; ok { + return s + } + return "ProfinetState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/comm/profinet/device/fbs/SelectableDeviceConfigs.go b/pkg/fbs/comm/profinet/device/fbs/SelectableDeviceConfigs.go new file mode 100644 index 0000000..f64de36 --- /dev/null +++ b/pkg/fbs/comm/profinet/device/fbs/SelectableDeviceConfigs.go @@ -0,0 +1,108 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SelectableDeviceConfigsT struct { + DeviceConfigsList []*DeviceConfigT +} + +func (t *SelectableDeviceConfigsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + deviceConfigsListOffset := flatbuffers.UOffsetT(0) + if t.DeviceConfigsList != nil { + deviceConfigsListLength := len(t.DeviceConfigsList) + deviceConfigsListOffsets := make([]flatbuffers.UOffsetT, deviceConfigsListLength) + for j := 0; j < deviceConfigsListLength; j++ { + deviceConfigsListOffsets[j] = t.DeviceConfigsList[j].Pack(builder) + } + SelectableDeviceConfigsStartDeviceConfigsListVector(builder, deviceConfigsListLength) + for j := deviceConfigsListLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(deviceConfigsListOffsets[j]) + } + deviceConfigsListOffset = builder.EndVector(deviceConfigsListLength) + } + SelectableDeviceConfigsStart(builder) + SelectableDeviceConfigsAddDeviceConfigsList(builder, deviceConfigsListOffset) + return SelectableDeviceConfigsEnd(builder) +} + +func (rcv *SelectableDeviceConfigs) UnPackTo(t *SelectableDeviceConfigsT) { + deviceConfigsListLength := rcv.DeviceConfigsListLength() + t.DeviceConfigsList = make([]*DeviceConfigT, deviceConfigsListLength) + for j := 0; j < deviceConfigsListLength; j++ { + x := DeviceConfig{} + rcv.DeviceConfigsList(&x, j) + t.DeviceConfigsList[j] = x.UnPack() + } +} + +func (rcv *SelectableDeviceConfigs) UnPack() *SelectableDeviceConfigsT { + if rcv == nil { return nil } + t := &SelectableDeviceConfigsT{} + rcv.UnPackTo(t) + return t +} + +type SelectableDeviceConfigs struct { + _tab flatbuffers.Table +} + +func GetRootAsSelectableDeviceConfigs(buf []byte, offset flatbuffers.UOffsetT) *SelectableDeviceConfigs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SelectableDeviceConfigs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSelectableDeviceConfigs(buf []byte, offset flatbuffers.UOffsetT) *SelectableDeviceConfigs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SelectableDeviceConfigs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SelectableDeviceConfigs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SelectableDeviceConfigs) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *SelectableDeviceConfigs) DeviceConfigsList(obj *DeviceConfig, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SelectableDeviceConfigs) DeviceConfigsListLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func SelectableDeviceConfigsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SelectableDeviceConfigsAddDeviceConfigsList(builder *flatbuffers.Builder, deviceConfigsList flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(deviceConfigsList), 0) +} +func SelectableDeviceConfigsStartDeviceConfigsListVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SelectableDeviceConfigsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/Class.go b/pkg/fbs/common/log/diagnosis/fbs/Class.go index fc1a4a5..f091767 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/Class.go +++ b/pkg/fbs/common/log/diagnosis/fbs/Class.go @@ -1,32 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type Class int8 - -const ( - ClassMESSAGE Class = 0 - ClassWARNING Class = 1 - ClassERROR Class = 2 -) - -var EnumNamesClass = map[Class]string{ - ClassMESSAGE: "MESSAGE", - ClassWARNING: "WARNING", - ClassERROR: "ERROR", -} - -var EnumValuesClass = map[string]Class{ - "MESSAGE": ClassMESSAGE, - "WARNING": ClassWARNING, - "ERROR": ClassERROR, -} - -func (v Class) String() string { - if s, ok := EnumNamesClass[v]; ok { - return s - } - return "Class(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Existing log classes/priorities. +/// Log class ERROR means that only errors are selcted. +/// Log class WARNING means that warnings and errors are selected. +/// Log class MESSAGE means that messages, warnings and errors are selected. +type Class int8 + +const ( + ClassMESSAGE Class = 0 + ClassWARNING Class = 1 + ClassERROR Class = 2 +) + +var EnumNamesClass = map[Class]string{ + ClassMESSAGE: "MESSAGE", + ClassWARNING: "WARNING", + ClassERROR: "ERROR", +} + +var EnumValuesClass = map[string]Class{ + "MESSAGE": ClassMESSAGE, + "WARNING": ClassWARNING, + "ERROR": ClassERROR, +} + +func (v Class) String() string { + if s, ok := EnumNamesClass[v]; ok { + return s + } + return "Class(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/ClassConfig.go b/pkg/fbs/common/log/diagnosis/fbs/ClassConfig.go index 27858c3..ef98a56 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/ClassConfig.go +++ b/pkg/fbs/common/log/diagnosis/fbs/ClassConfig.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ClassConfigT struct { - ClassConfig Class -} - -func (t *ClassConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ClassConfigStart(builder) - ClassConfigAddClassConfig(builder, t.ClassConfig) - return ClassConfigEnd(builder) -} - -func (rcv *ClassConfig) UnPackTo(t *ClassConfigT) { - t.ClassConfig = rcv.ClassConfig() -} - -func (rcv *ClassConfig) UnPack() *ClassConfigT { - if rcv == nil { return nil } - t := &ClassConfigT{} - rcv.UnPackTo(t) - return t -} - -type ClassConfig struct { - _tab flatbuffers.Table -} - -func GetRootAsClassConfig(buf []byte, offset flatbuffers.UOffsetT) *ClassConfig { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ClassConfig{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsClassConfig(buf []byte, offset flatbuffers.UOffsetT) *ClassConfig { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ClassConfig{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ClassConfig) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ClassConfig) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ClassConfig) ClassConfig() Class { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Class(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -func (rcv *ClassConfig) MutateClassConfig(n Class) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func ClassConfigStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ClassConfigAddClassConfig(builder *flatbuffers.Builder, classConfig Class) { - builder.PrependInt8Slot(0, int8(classConfig), 2) -} -func ClassConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines which log class is selected. +type ClassConfigT struct { + ClassConfig Class +} + +func (t *ClassConfigT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ClassConfigStart(builder) + ClassConfigAddClassConfig(builder, t.ClassConfig) + return ClassConfigEnd(builder) +} + +func (rcv *ClassConfig) UnPackTo(t *ClassConfigT) { + t.ClassConfig = rcv.ClassConfig() +} + +func (rcv *ClassConfig) UnPack() *ClassConfigT { + if rcv == nil { return nil } + t := &ClassConfigT{} + rcv.UnPackTo(t) + return t +} + +type ClassConfig struct { + _tab flatbuffers.Table +} + +func GetRootAsClassConfig(buf []byte, offset flatbuffers.UOffsetT) *ClassConfig { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ClassConfig{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsClassConfig(buf []byte, offset flatbuffers.UOffsetT) *ClassConfig { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ClassConfig{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ClassConfig) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ClassConfig) Table() flatbuffers.Table { + return rcv._tab +} + +/// Selection of log class. +func (rcv *ClassConfig) ClassConfig() Class { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Class(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// Selection of log class. +func (rcv *ClassConfig) MutateClassConfig(n Class) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func ClassConfigStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ClassConfigAddClassConfig(builder *flatbuffers.Builder, classConfig Class) { + builder.PrependInt8Slot(0, int8(classConfig), 2) +} +func ClassConfigEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/DetailedDiagnostic.go b/pkg/fbs/common/log/diagnosis/fbs/DetailedDiagnostic.go index de23f6c..5d64239 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/DetailedDiagnostic.go +++ b/pkg/fbs/common/log/diagnosis/fbs/DetailedDiagnostic.go @@ -1,108 +1,115 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DetailedDiagnosticT struct { - Number string - Version uint32 - Text string -} - -func (t *DetailedDiagnosticT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - numberOffset := builder.CreateString(t.Number) - textOffset := builder.CreateString(t.Text) - DetailedDiagnosticStart(builder) - DetailedDiagnosticAddNumber(builder, numberOffset) - DetailedDiagnosticAddVersion(builder, t.Version) - DetailedDiagnosticAddText(builder, textOffset) - return DetailedDiagnosticEnd(builder) -} - -func (rcv *DetailedDiagnostic) UnPackTo(t *DetailedDiagnosticT) { - t.Number = string(rcv.Number()) - t.Version = rcv.Version() - t.Text = string(rcv.Text()) -} - -func (rcv *DetailedDiagnostic) UnPack() *DetailedDiagnosticT { - if rcv == nil { return nil } - t := &DetailedDiagnosticT{} - rcv.UnPackTo(t) - return t -} - -type DetailedDiagnostic struct { - _tab flatbuffers.Table -} - -func GetRootAsDetailedDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *DetailedDiagnostic { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DetailedDiagnostic{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDetailedDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *DetailedDiagnostic { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DetailedDiagnostic{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DetailedDiagnostic) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DetailedDiagnostic) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DetailedDiagnostic) Number() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DetailedDiagnostic) Version() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 1 -} - -func (rcv *DetailedDiagnostic) MutateVersion(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *DetailedDiagnostic) Text() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DetailedDiagnosticStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func DetailedDiagnosticAddNumber(builder *flatbuffers.Builder, number flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(number), 0) -} -func DetailedDiagnosticAddVersion(builder *flatbuffers.Builder, version uint32) { - builder.PrependUint32Slot(1, version, 1) -} -func DetailedDiagnosticAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(text), 0) -} -func DetailedDiagnosticEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the elements of one detailed diagnostics that should be registered. +type DetailedDiagnosticT struct { + Number string + Version uint32 + Text string +} + +func (t *DetailedDiagnosticT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + numberOffset := builder.CreateString(t.Number) + textOffset := builder.CreateString(t.Text) + DetailedDiagnosticStart(builder) + DetailedDiagnosticAddNumber(builder, numberOffset) + DetailedDiagnosticAddVersion(builder, t.Version) + DetailedDiagnosticAddText(builder, textOffset) + return DetailedDiagnosticEnd(builder) +} + +func (rcv *DetailedDiagnostic) UnPackTo(t *DetailedDiagnosticT) { + t.Number = string(rcv.Number()) + t.Version = rcv.Version() + t.Text = string(rcv.Text()) +} + +func (rcv *DetailedDiagnostic) UnPack() *DetailedDiagnosticT { + if rcv == nil { return nil } + t := &DetailedDiagnosticT{} + rcv.UnPackTo(t) + return t +} + +type DetailedDiagnostic struct { + _tab flatbuffers.Table +} + +func GetRootAsDetailedDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *DetailedDiagnostic { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DetailedDiagnostic{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDetailedDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *DetailedDiagnostic { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DetailedDiagnostic{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DetailedDiagnostic) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DetailedDiagnostic) Table() flatbuffers.Table { + return rcv._tab +} + +/// Detailed diagnostic number. +func (rcv *DetailedDiagnostic) Number() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Detailed diagnostic number. +/// Version of the detailed diagnostics starting with 1. +func (rcv *DetailedDiagnostic) Version() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 1 +} + +/// Version of the detailed diagnostics starting with 1. +func (rcv *DetailedDiagnostic) MutateVersion(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// Default text of the detailed diagnostics. +func (rcv *DetailedDiagnostic) Text() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Default text of the detailed diagnostics. +func DetailedDiagnosticStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func DetailedDiagnosticAddNumber(builder *flatbuffers.Builder, number flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(number), 0) +} +func DetailedDiagnosticAddVersion(builder *flatbuffers.Builder, version uint32) { + builder.PrependUint32Slot(1, version, 1) +} +func DetailedDiagnosticAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(text), 0) +} +func DetailedDiagnosticEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElement.go b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElement.go index d6ac5f4..ef48218 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElement.go +++ b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElement.go @@ -1,111 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagnosisElementT struct { - DiagnosisNumber uint32 - Version byte - TextEnglish string -} - -func (t *DiagnosisElementT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - textEnglishOffset := builder.CreateString(t.TextEnglish) - DiagnosisElementStart(builder) - DiagnosisElementAddDiagnosisNumber(builder, t.DiagnosisNumber) - DiagnosisElementAddVersion(builder, t.Version) - DiagnosisElementAddTextEnglish(builder, textEnglishOffset) - return DiagnosisElementEnd(builder) -} - -func (rcv *DiagnosisElement) UnPackTo(t *DiagnosisElementT) { - t.DiagnosisNumber = rcv.DiagnosisNumber() - t.Version = rcv.Version() - t.TextEnglish = string(rcv.TextEnglish()) -} - -func (rcv *DiagnosisElement) UnPack() *DiagnosisElementT { - if rcv == nil { return nil } - t := &DiagnosisElementT{} - rcv.UnPackTo(t) - return t -} - -type DiagnosisElement struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagnosisElement(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElement { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagnosisElement{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagnosisElement(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElement { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagnosisElement{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagnosisElement) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagnosisElement) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DiagnosisElement) DiagnosisNumber() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DiagnosisElement) MutateDiagnosisNumber(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *DiagnosisElement) Version() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DiagnosisElement) MutateVersion(n byte) bool { - return rcv._tab.MutateByteSlot(6, n) -} - -func (rcv *DiagnosisElement) TextEnglish() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DiagnosisElementStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func DiagnosisElementAddDiagnosisNumber(builder *flatbuffers.Builder, diagnosisNumber uint32) { - builder.PrependUint32Slot(0, diagnosisNumber, 0) -} -func DiagnosisElementAddVersion(builder *flatbuffers.Builder, version byte) { - builder.PrependByteSlot(1, version, 0) -} -func DiagnosisElementAddTextEnglish(builder *flatbuffers.Builder, textEnglish flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(textEnglish), 0) -} -func DiagnosisElementEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the elements of a main or detailed diagnostics that should be registered. +type DiagnosisElementT struct { + DiagnosisNumber uint32 + Version byte + TextEnglish string +} + +func (t *DiagnosisElementT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + textEnglishOffset := builder.CreateString(t.TextEnglish) + DiagnosisElementStart(builder) + DiagnosisElementAddDiagnosisNumber(builder, t.DiagnosisNumber) + DiagnosisElementAddVersion(builder, t.Version) + DiagnosisElementAddTextEnglish(builder, textEnglishOffset) + return DiagnosisElementEnd(builder) +} + +func (rcv *DiagnosisElement) UnPackTo(t *DiagnosisElementT) { + t.DiagnosisNumber = rcv.DiagnosisNumber() + t.Version = rcv.Version() + t.TextEnglish = string(rcv.TextEnglish()) +} + +func (rcv *DiagnosisElement) UnPack() *DiagnosisElementT { + if rcv == nil { return nil } + t := &DiagnosisElementT{} + rcv.UnPackTo(t) + return t +} + +type DiagnosisElement struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagnosisElement(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElement { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagnosisElement{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagnosisElement(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElement { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagnosisElement{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagnosisElement) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagnosisElement) Table() flatbuffers.Table { + return rcv._tab +} + +/// Main or detailed diagnostic number. +func (rcv *DiagnosisElement) DiagnosisNumber() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Main or detailed diagnostic number. +func (rcv *DiagnosisElement) MutateDiagnosisNumber(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// Version of the diagnostics starting with 1. +func (rcv *DiagnosisElement) Version() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +/// Version of the diagnostics starting with 1. +func (rcv *DiagnosisElement) MutateVersion(n byte) bool { + return rcv._tab.MutateByteSlot(6, n) +} + +/// English text of the diagnostics. +func (rcv *DiagnosisElement) TextEnglish() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// English text of the diagnostics. +func DiagnosisElementStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func DiagnosisElementAddDiagnosisNumber(builder *flatbuffers.Builder, diagnosisNumber uint32) { + builder.PrependUint32Slot(0, diagnosisNumber, 0) +} +func DiagnosisElementAddVersion(builder *flatbuffers.Builder, version byte) { + builder.PrependByteSlot(1, version, 0) +} +func DiagnosisElementAddTextEnglish(builder *flatbuffers.Builder, textEnglish flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(textEnglish), 0) +} +func DiagnosisElementEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElements.go b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElements.go index 740765f..7529956 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElements.go +++ b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisElements.go @@ -1,108 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagnosisElementsT struct { - DiagnosisElements []*DiagnosisElementT -} - -func (t *DiagnosisElementsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - diagnosisElementsOffset := flatbuffers.UOffsetT(0) - if t.DiagnosisElements != nil { - diagnosisElementsLength := len(t.DiagnosisElements) - diagnosisElementsOffsets := make([]flatbuffers.UOffsetT, diagnosisElementsLength) - for j := 0; j < diagnosisElementsLength; j++ { - diagnosisElementsOffsets[j] = t.DiagnosisElements[j].Pack(builder) - } - DiagnosisElementsStartDiagnosisElementsVector(builder, diagnosisElementsLength) - for j := diagnosisElementsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(diagnosisElementsOffsets[j]) - } - diagnosisElementsOffset = builder.EndVector(diagnosisElementsLength) - } - DiagnosisElementsStart(builder) - DiagnosisElementsAddDiagnosisElements(builder, diagnosisElementsOffset) - return DiagnosisElementsEnd(builder) -} - -func (rcv *DiagnosisElements) UnPackTo(t *DiagnosisElementsT) { - diagnosisElementsLength := rcv.DiagnosisElementsLength() - t.DiagnosisElements = make([]*DiagnosisElementT, diagnosisElementsLength) - for j := 0; j < diagnosisElementsLength; j++ { - x := DiagnosisElement{} - rcv.DiagnosisElements(&x, j) - t.DiagnosisElements[j] = x.UnPack() - } -} - -func (rcv *DiagnosisElements) UnPack() *DiagnosisElementsT { - if rcv == nil { return nil } - t := &DiagnosisElementsT{} - rcv.UnPackTo(t) - return t -} - -type DiagnosisElements struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagnosisElements(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElements { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagnosisElements{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagnosisElements(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElements { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagnosisElements{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagnosisElements) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagnosisElements) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DiagnosisElements) DiagnosisElements(obj *DiagnosisElement, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *DiagnosisElements) DiagnosisElementsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func DiagnosisElementsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func DiagnosisElementsAddDiagnosisElements(builder *flatbuffers.Builder, diagnosisElements flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(diagnosisElements), 0) -} -func DiagnosisElementsStartDiagnosisElementsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func DiagnosisElementsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines a list of main or detailed diagnostics that should be registered. +type DiagnosisElementsT struct { + DiagnosisElements []*DiagnosisElementT +} + +func (t *DiagnosisElementsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + diagnosisElementsOffset := flatbuffers.UOffsetT(0) + if t.DiagnosisElements != nil { + diagnosisElementsLength := len(t.DiagnosisElements) + diagnosisElementsOffsets := make([]flatbuffers.UOffsetT, diagnosisElementsLength) + for j := 0; j < diagnosisElementsLength; j++ { + diagnosisElementsOffsets[j] = t.DiagnosisElements[j].Pack(builder) + } + DiagnosisElementsStartDiagnosisElementsVector(builder, diagnosisElementsLength) + for j := diagnosisElementsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(diagnosisElementsOffsets[j]) + } + diagnosisElementsOffset = builder.EndVector(diagnosisElementsLength) + } + DiagnosisElementsStart(builder) + DiagnosisElementsAddDiagnosisElements(builder, diagnosisElementsOffset) + return DiagnosisElementsEnd(builder) +} + +func (rcv *DiagnosisElements) UnPackTo(t *DiagnosisElementsT) { + diagnosisElementsLength := rcv.DiagnosisElementsLength() + t.DiagnosisElements = make([]*DiagnosisElementT, diagnosisElementsLength) + for j := 0; j < diagnosisElementsLength; j++ { + x := DiagnosisElement{} + rcv.DiagnosisElements(&x, j) + t.DiagnosisElements[j] = x.UnPack() + } +} + +func (rcv *DiagnosisElements) UnPack() *DiagnosisElementsT { + if rcv == nil { return nil } + t := &DiagnosisElementsT{} + rcv.UnPackTo(t) + return t +} + +type DiagnosisElements struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagnosisElements(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElements { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagnosisElements{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagnosisElements(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisElements { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagnosisElements{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagnosisElements) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagnosisElements) Table() flatbuffers.Table { + return rcv._tab +} + +/// List of main or detailed diagnostics. +func (rcv *DiagnosisElements) DiagnosisElements(obj *DiagnosisElement, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *DiagnosisElements) DiagnosisElementsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of main or detailed diagnostics. +func DiagnosisElementsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DiagnosisElementsAddDiagnosisElements(builder *flatbuffers.Builder, diagnosisElements flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(diagnosisElements), 0) +} +func DiagnosisElementsStartDiagnosisElementsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func DiagnosisElementsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentification.go b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentification.go index e621204..e70ecc5 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentification.go +++ b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentification.go @@ -1,105 +1,112 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagnosisIdentificationT struct { - MainDiagnosisNumber string - DetailedDiagnosisNumber string - Entity string -} - -func (t *DiagnosisIdentificationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - mainDiagnosisNumberOffset := builder.CreateString(t.MainDiagnosisNumber) - detailedDiagnosisNumberOffset := builder.CreateString(t.DetailedDiagnosisNumber) - entityOffset := builder.CreateString(t.Entity) - DiagnosisIdentificationStart(builder) - DiagnosisIdentificationAddMainDiagnosisNumber(builder, mainDiagnosisNumberOffset) - DiagnosisIdentificationAddDetailedDiagnosisNumber(builder, detailedDiagnosisNumberOffset) - DiagnosisIdentificationAddEntity(builder, entityOffset) - return DiagnosisIdentificationEnd(builder) -} - -func (rcv *DiagnosisIdentification) UnPackTo(t *DiagnosisIdentificationT) { - t.MainDiagnosisNumber = string(rcv.MainDiagnosisNumber()) - t.DetailedDiagnosisNumber = string(rcv.DetailedDiagnosisNumber()) - t.Entity = string(rcv.Entity()) -} - -func (rcv *DiagnosisIdentification) UnPack() *DiagnosisIdentificationT { - if rcv == nil { return nil } - t := &DiagnosisIdentificationT{} - rcv.UnPackTo(t) - return t -} - -type DiagnosisIdentification struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagnosisIdentification(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentification { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagnosisIdentification{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagnosisIdentification(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentification { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagnosisIdentification{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagnosisIdentification) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagnosisIdentification) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DiagnosisIdentification) MainDiagnosisNumber() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DiagnosisIdentification) DetailedDiagnosisNumber() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DiagnosisIdentification) Entity() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DiagnosisIdentificationStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func DiagnosisIdentificationAddMainDiagnosisNumber(builder *flatbuffers.Builder, mainDiagnosisNumber flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainDiagnosisNumber), 0) -} -func DiagnosisIdentificationAddDetailedDiagnosisNumber(builder *flatbuffers.Builder, detailedDiagnosisNumber flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(detailedDiagnosisNumber), 0) -} -func DiagnosisIdentificationAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(entity), 0) -} -func DiagnosisIdentificationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines all diagnostic elements that are required to uniquely identify a diagnostic log. +type DiagnosisIdentificationT struct { + MainDiagnosisNumber string + DetailedDiagnosisNumber string + Entity string +} + +func (t *DiagnosisIdentificationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + mainDiagnosisNumberOffset := builder.CreateString(t.MainDiagnosisNumber) + detailedDiagnosisNumberOffset := builder.CreateString(t.DetailedDiagnosisNumber) + entityOffset := builder.CreateString(t.Entity) + DiagnosisIdentificationStart(builder) + DiagnosisIdentificationAddMainDiagnosisNumber(builder, mainDiagnosisNumberOffset) + DiagnosisIdentificationAddDetailedDiagnosisNumber(builder, detailedDiagnosisNumberOffset) + DiagnosisIdentificationAddEntity(builder, entityOffset) + return DiagnosisIdentificationEnd(builder) +} + +func (rcv *DiagnosisIdentification) UnPackTo(t *DiagnosisIdentificationT) { + t.MainDiagnosisNumber = string(rcv.MainDiagnosisNumber()) + t.DetailedDiagnosisNumber = string(rcv.DetailedDiagnosisNumber()) + t.Entity = string(rcv.Entity()) +} + +func (rcv *DiagnosisIdentification) UnPack() *DiagnosisIdentificationT { + if rcv == nil { return nil } + t := &DiagnosisIdentificationT{} + rcv.UnPackTo(t) + return t +} + +type DiagnosisIdentification struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagnosisIdentification(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentification { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagnosisIdentification{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagnosisIdentification(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentification { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagnosisIdentification{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagnosisIdentification) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagnosisIdentification) Table() flatbuffers.Table { + return rcv._tab +} + +/// Main diagnostic number. +func (rcv *DiagnosisIdentification) MainDiagnosisNumber() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Main diagnostic number. +/// Detailed diagnostic number. +func (rcv *DiagnosisIdentification) DetailedDiagnosisNumber() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Detailed diagnostic number. +/// Entity/resource that is affected. +func (rcv *DiagnosisIdentification) Entity() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Entity/resource that is affected. +func DiagnosisIdentificationStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func DiagnosisIdentificationAddMainDiagnosisNumber(builder *flatbuffers.Builder, mainDiagnosisNumber flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainDiagnosisNumber), 0) +} +func DiagnosisIdentificationAddDetailedDiagnosisNumber(builder *flatbuffers.Builder, detailedDiagnosisNumber flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(detailedDiagnosisNumber), 0) +} +func DiagnosisIdentificationAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(entity), 0) +} +func DiagnosisIdentificationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentificationWithTimestamp.go b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentificationWithTimestamp.go index 5aaf12c..e8c89cc 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentificationWithTimestamp.go +++ b/pkg/fbs/common/log/diagnosis/fbs/DiagnosisIdentificationWithTimestamp.go @@ -1,95 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagnosisIdentificationWithTimestampT struct { - DiagnosisIdentification *DiagnosisIdentificationT - Timestamp string -} - -func (t *DiagnosisIdentificationWithTimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - diagnosisIdentificationOffset := t.DiagnosisIdentification.Pack(builder) - timestampOffset := builder.CreateString(t.Timestamp) - DiagnosisIdentificationWithTimestampStart(builder) - DiagnosisIdentificationWithTimestampAddDiagnosisIdentification(builder, diagnosisIdentificationOffset) - DiagnosisIdentificationWithTimestampAddTimestamp(builder, timestampOffset) - return DiagnosisIdentificationWithTimestampEnd(builder) -} - -func (rcv *DiagnosisIdentificationWithTimestamp) UnPackTo(t *DiagnosisIdentificationWithTimestampT) { - t.DiagnosisIdentification = rcv.DiagnosisIdentification(nil).UnPack() - t.Timestamp = string(rcv.Timestamp()) -} - -func (rcv *DiagnosisIdentificationWithTimestamp) UnPack() *DiagnosisIdentificationWithTimestampT { - if rcv == nil { return nil } - t := &DiagnosisIdentificationWithTimestampT{} - rcv.UnPackTo(t) - return t -} - -type DiagnosisIdentificationWithTimestamp struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentificationWithTimestamp { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagnosisIdentificationWithTimestamp{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentificationWithTimestamp { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagnosisIdentificationWithTimestamp{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagnosisIdentificationWithTimestamp) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagnosisIdentificationWithTimestamp) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DiagnosisIdentificationWithTimestamp) DiagnosisIdentification(obj *DiagnosisIdentification) *DiagnosisIdentification { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DiagnosisIdentification) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *DiagnosisIdentificationWithTimestamp) Timestamp() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DiagnosisIdentificationWithTimestampStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func DiagnosisIdentificationWithTimestampAddDiagnosisIdentification(builder *flatbuffers.Builder, diagnosisIdentification flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(diagnosisIdentification), 0) -} -func DiagnosisIdentificationWithTimestampAddTimestamp(builder *flatbuffers.Builder, timestamp flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(timestamp), 0) -} -func DiagnosisIdentificationWithTimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the unique identification of a diagnostic log in combination with the timestamp of the log. +type DiagnosisIdentificationWithTimestampT struct { + DiagnosisIdentification *DiagnosisIdentificationT + Timestamp string +} + +func (t *DiagnosisIdentificationWithTimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + diagnosisIdentificationOffset := t.DiagnosisIdentification.Pack(builder) + timestampOffset := builder.CreateString(t.Timestamp) + DiagnosisIdentificationWithTimestampStart(builder) + DiagnosisIdentificationWithTimestampAddDiagnosisIdentification(builder, diagnosisIdentificationOffset) + DiagnosisIdentificationWithTimestampAddTimestamp(builder, timestampOffset) + return DiagnosisIdentificationWithTimestampEnd(builder) +} + +func (rcv *DiagnosisIdentificationWithTimestamp) UnPackTo(t *DiagnosisIdentificationWithTimestampT) { + t.DiagnosisIdentification = rcv.DiagnosisIdentification(nil).UnPack() + t.Timestamp = string(rcv.Timestamp()) +} + +func (rcv *DiagnosisIdentificationWithTimestamp) UnPack() *DiagnosisIdentificationWithTimestampT { + if rcv == nil { return nil } + t := &DiagnosisIdentificationWithTimestampT{} + rcv.UnPackTo(t) + return t +} + +type DiagnosisIdentificationWithTimestamp struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentificationWithTimestamp { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagnosisIdentificationWithTimestamp{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *DiagnosisIdentificationWithTimestamp { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagnosisIdentificationWithTimestamp{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagnosisIdentificationWithTimestamp) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagnosisIdentificationWithTimestamp) Table() flatbuffers.Table { + return rcv._tab +} + +/// Unique identification of the diagnostic log. +func (rcv *DiagnosisIdentificationWithTimestamp) DiagnosisIdentification(obj *DiagnosisIdentification) *DiagnosisIdentification { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DiagnosisIdentification) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Unique identification of the diagnostic log. +/// Timestamp of the diagnostic log. +func (rcv *DiagnosisIdentificationWithTimestamp) Timestamp() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Timestamp of the diagnostic log. +func DiagnosisIdentificationWithTimestampStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DiagnosisIdentificationWithTimestampAddDiagnosisIdentification(builder *flatbuffers.Builder, diagnosisIdentification flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(diagnosisIdentification), 0) +} +func DiagnosisIdentificationWithTimestampAddTimestamp(builder *flatbuffers.Builder, timestamp flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(timestamp), 0) +} +func DiagnosisIdentificationWithTimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/EventType1.go b/pkg/fbs/common/log/diagnosis/fbs/EventType1.go index e15f51e..6e71a72 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/EventType1.go +++ b/pkg/fbs/common/log/diagnosis/fbs/EventType1.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EventType1T struct { - EventCounter uint64 -} - -func (t *EventType1T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - EventType1Start(builder) - EventType1AddEventCounter(builder, t.EventCounter) - return EventType1End(builder) -} - -func (rcv *EventType1) UnPackTo(t *EventType1T) { - t.EventCounter = rcv.EventCounter() -} - -func (rcv *EventType1) UnPack() *EventType1T { - if rcv == nil { return nil } - t := &EventType1T{} - rcv.UnPackTo(t) - return t -} - -type EventType1 struct { - _tab flatbuffers.Table -} - -func GetRootAsEventType1(buf []byte, offset flatbuffers.UOffsetT) *EventType1 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EventType1{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEventType1(buf []byte, offset flatbuffers.UOffsetT) *EventType1 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EventType1{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EventType1) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EventType1) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EventType1) EventCounter() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *EventType1) MutateEventCounter(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func EventType1Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func EventType1AddEventCounter(builder *flatbuffers.Builder, eventCounter uint64) { - builder.PrependUint64Slot(0, eventCounter, 0) -} -func EventType1End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the generic event type 1 that is used to evaluate specific diagnostic events. +type EventType1T struct { + EventCounter uint64 +} + +func (t *EventType1T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + EventType1Start(builder) + EventType1AddEventCounter(builder, t.EventCounter) + return EventType1End(builder) +} + +func (rcv *EventType1) UnPackTo(t *EventType1T) { + t.EventCounter = rcv.EventCounter() +} + +func (rcv *EventType1) UnPack() *EventType1T { + if rcv == nil { return nil } + t := &EventType1T{} + rcv.UnPackTo(t) + return t +} + +type EventType1 struct { + _tab flatbuffers.Table +} + +func GetRootAsEventType1(buf []byte, offset flatbuffers.UOffsetT) *EventType1 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EventType1{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEventType1(buf []byte, offset flatbuffers.UOffsetT) *EventType1 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EventType1{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EventType1) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EventType1) Table() flatbuffers.Table { + return rcv._tab +} + +/// Event counter that is incremented if the selected event occurs. +func (rcv *EventType1) EventCounter() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Event counter that is incremented if the selected event occurs. +func (rcv *EventType1) MutateEventCounter(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func EventType1Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func EventType1AddEventCounter(builder *flatbuffers.Builder, eventCounter uint64) { + builder.PrependUint64Slot(0, eventCounter, 0) +} +func EventType1End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/EventType2.go b/pkg/fbs/common/log/diagnosis/fbs/EventType2.go index e2928a8..c7a2883 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/EventType2.go +++ b/pkg/fbs/common/log/diagnosis/fbs/EventType2.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EventType2T struct { - EventCounter uint64 -} - -func (t *EventType2T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - EventType2Start(builder) - EventType2AddEventCounter(builder, t.EventCounter) - return EventType2End(builder) -} - -func (rcv *EventType2) UnPackTo(t *EventType2T) { - t.EventCounter = rcv.EventCounter() -} - -func (rcv *EventType2) UnPack() *EventType2T { - if rcv == nil { return nil } - t := &EventType2T{} - rcv.UnPackTo(t) - return t -} - -type EventType2 struct { - _tab flatbuffers.Table -} - -func GetRootAsEventType2(buf []byte, offset flatbuffers.UOffsetT) *EventType2 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EventType2{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEventType2(buf []byte, offset flatbuffers.UOffsetT) *EventType2 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EventType2{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EventType2) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EventType2) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EventType2) EventCounter() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *EventType2) MutateEventCounter(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func EventType2Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func EventType2AddEventCounter(builder *flatbuffers.Builder, eventCounter uint64) { - builder.PrependUint64Slot(0, eventCounter, 0) -} -func EventType2End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the generic event type 2 that is used to evaluate specific diagnostic events. +type EventType2T struct { + EventCounter uint64 +} + +func (t *EventType2T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + EventType2Start(builder) + EventType2AddEventCounter(builder, t.EventCounter) + return EventType2End(builder) +} + +func (rcv *EventType2) UnPackTo(t *EventType2T) { + t.EventCounter = rcv.EventCounter() +} + +func (rcv *EventType2) UnPack() *EventType2T { + if rcv == nil { return nil } + t := &EventType2T{} + rcv.UnPackTo(t) + return t +} + +type EventType2 struct { + _tab flatbuffers.Table +} + +func GetRootAsEventType2(buf []byte, offset flatbuffers.UOffsetT) *EventType2 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EventType2{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEventType2(buf []byte, offset flatbuffers.UOffsetT) *EventType2 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EventType2{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EventType2) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EventType2) Table() flatbuffers.Table { + return rcv._tab +} + +/// Event counter that is incremented if the selected event occurs. +func (rcv *EventType2) EventCounter() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Event counter that is incremented if the selected event occurs. +func (rcv *EventType2) MutateEventCounter(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func EventType2Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func EventType2AddEventCounter(builder *flatbuffers.Builder, eventCounter uint64) { + builder.PrependUint64Slot(0, eventCounter, 0) +} +func EventType2End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/GetDetailedDiagnosisText.go b/pkg/fbs/common/log/diagnosis/fbs/GetDetailedDiagnosisText.go index c200f49..476ab01 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/GetDetailedDiagnosisText.go +++ b/pkg/fbs/common/log/diagnosis/fbs/GetDetailedDiagnosisText.go @@ -1,90 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type GetDetailedDiagnosisTextT struct { - DetailedDiagnosisNumber string - RelatedMainDiagnosisNumber string -} - -func (t *GetDetailedDiagnosisTextT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - detailedDiagnosisNumberOffset := builder.CreateString(t.DetailedDiagnosisNumber) - relatedMainDiagnosisNumberOffset := builder.CreateString(t.RelatedMainDiagnosisNumber) - GetDetailedDiagnosisTextStart(builder) - GetDetailedDiagnosisTextAddDetailedDiagnosisNumber(builder, detailedDiagnosisNumberOffset) - GetDetailedDiagnosisTextAddRelatedMainDiagnosisNumber(builder, relatedMainDiagnosisNumberOffset) - return GetDetailedDiagnosisTextEnd(builder) -} - -func (rcv *GetDetailedDiagnosisText) UnPackTo(t *GetDetailedDiagnosisTextT) { - t.DetailedDiagnosisNumber = string(rcv.DetailedDiagnosisNumber()) - t.RelatedMainDiagnosisNumber = string(rcv.RelatedMainDiagnosisNumber()) -} - -func (rcv *GetDetailedDiagnosisText) UnPack() *GetDetailedDiagnosisTextT { - if rcv == nil { return nil } - t := &GetDetailedDiagnosisTextT{} - rcv.UnPackTo(t) - return t -} - -type GetDetailedDiagnosisText struct { - _tab flatbuffers.Table -} - -func GetRootAsGetDetailedDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetDetailedDiagnosisText { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &GetDetailedDiagnosisText{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsGetDetailedDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetDetailedDiagnosisText { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &GetDetailedDiagnosisText{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *GetDetailedDiagnosisText) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *GetDetailedDiagnosisText) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *GetDetailedDiagnosisText) DetailedDiagnosisNumber() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *GetDetailedDiagnosisText) RelatedMainDiagnosisNumber() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func GetDetailedDiagnosisTextStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func GetDetailedDiagnosisTextAddDetailedDiagnosisNumber(builder *flatbuffers.Builder, detailedDiagnosisNumber flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(detailedDiagnosisNumber), 0) -} -func GetDetailedDiagnosisTextAddRelatedMainDiagnosisNumber(builder *flatbuffers.Builder, relatedMainDiagnosisNumber flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(relatedMainDiagnosisNumber), 0) -} -func GetDetailedDiagnosisTextEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the required elements to request the diagnostic text of a diagnostic log. +type GetDetailedDiagnosisTextT struct { + DetailedDiagnosisNumber string + RelatedMainDiagnosisNumber string +} + +func (t *GetDetailedDiagnosisTextT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + detailedDiagnosisNumberOffset := builder.CreateString(t.DetailedDiagnosisNumber) + relatedMainDiagnosisNumberOffset := builder.CreateString(t.RelatedMainDiagnosisNumber) + GetDetailedDiagnosisTextStart(builder) + GetDetailedDiagnosisTextAddDetailedDiagnosisNumber(builder, detailedDiagnosisNumberOffset) + GetDetailedDiagnosisTextAddRelatedMainDiagnosisNumber(builder, relatedMainDiagnosisNumberOffset) + return GetDetailedDiagnosisTextEnd(builder) +} + +func (rcv *GetDetailedDiagnosisText) UnPackTo(t *GetDetailedDiagnosisTextT) { + t.DetailedDiagnosisNumber = string(rcv.DetailedDiagnosisNumber()) + t.RelatedMainDiagnosisNumber = string(rcv.RelatedMainDiagnosisNumber()) +} + +func (rcv *GetDetailedDiagnosisText) UnPack() *GetDetailedDiagnosisTextT { + if rcv == nil { return nil } + t := &GetDetailedDiagnosisTextT{} + rcv.UnPackTo(t) + return t +} + +type GetDetailedDiagnosisText struct { + _tab flatbuffers.Table +} + +func GetRootAsGetDetailedDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetDetailedDiagnosisText { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &GetDetailedDiagnosisText{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsGetDetailedDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetDetailedDiagnosisText { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &GetDetailedDiagnosisText{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *GetDetailedDiagnosisText) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *GetDetailedDiagnosisText) Table() flatbuffers.Table { + return rcv._tab +} + +/// Detailed diagnostic number of the diagnostic log. +func (rcv *GetDetailedDiagnosisText) DetailedDiagnosisNumber() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Detailed diagnostic number of the diagnostic log. +/// Related main diagnostic number of the diagnostic log. +func (rcv *GetDetailedDiagnosisText) RelatedMainDiagnosisNumber() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Related main diagnostic number of the diagnostic log. +func GetDetailedDiagnosisTextStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func GetDetailedDiagnosisTextAddDetailedDiagnosisNumber(builder *flatbuffers.Builder, detailedDiagnosisNumber flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(detailedDiagnosisNumber), 0) +} +func GetDetailedDiagnosisTextAddRelatedMainDiagnosisNumber(builder *flatbuffers.Builder, relatedMainDiagnosisNumber flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(relatedMainDiagnosisNumber), 0) +} +func GetDetailedDiagnosisTextEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/GetMainDiagnosisText.go b/pkg/fbs/common/log/diagnosis/fbs/GetMainDiagnosisText.go index b8b148b..4114598 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/GetMainDiagnosisText.go +++ b/pkg/fbs/common/log/diagnosis/fbs/GetMainDiagnosisText.go @@ -1,75 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type GetMainDiagnosisTextT struct { - MainDiagnosisNumber string -} - -func (t *GetMainDiagnosisTextT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - mainDiagnosisNumberOffset := builder.CreateString(t.MainDiagnosisNumber) - GetMainDiagnosisTextStart(builder) - GetMainDiagnosisTextAddMainDiagnosisNumber(builder, mainDiagnosisNumberOffset) - return GetMainDiagnosisTextEnd(builder) -} - -func (rcv *GetMainDiagnosisText) UnPackTo(t *GetMainDiagnosisTextT) { - t.MainDiagnosisNumber = string(rcv.MainDiagnosisNumber()) -} - -func (rcv *GetMainDiagnosisText) UnPack() *GetMainDiagnosisTextT { - if rcv == nil { return nil } - t := &GetMainDiagnosisTextT{} - rcv.UnPackTo(t) - return t -} - -type GetMainDiagnosisText struct { - _tab flatbuffers.Table -} - -func GetRootAsGetMainDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetMainDiagnosisText { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &GetMainDiagnosisText{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsGetMainDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetMainDiagnosisText { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &GetMainDiagnosisText{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *GetMainDiagnosisText) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *GetMainDiagnosisText) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *GetMainDiagnosisText) MainDiagnosisNumber() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func GetMainDiagnosisTextStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func GetMainDiagnosisTextAddMainDiagnosisNumber(builder *flatbuffers.Builder, mainDiagnosisNumber flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainDiagnosisNumber), 0) -} -func GetMainDiagnosisTextEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the required element to request the main diagnostic text of a diagnostic log. +type GetMainDiagnosisTextT struct { + MainDiagnosisNumber string +} + +func (t *GetMainDiagnosisTextT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + mainDiagnosisNumberOffset := builder.CreateString(t.MainDiagnosisNumber) + GetMainDiagnosisTextStart(builder) + GetMainDiagnosisTextAddMainDiagnosisNumber(builder, mainDiagnosisNumberOffset) + return GetMainDiagnosisTextEnd(builder) +} + +func (rcv *GetMainDiagnosisText) UnPackTo(t *GetMainDiagnosisTextT) { + t.MainDiagnosisNumber = string(rcv.MainDiagnosisNumber()) +} + +func (rcv *GetMainDiagnosisText) UnPack() *GetMainDiagnosisTextT { + if rcv == nil { return nil } + t := &GetMainDiagnosisTextT{} + rcv.UnPackTo(t) + return t +} + +type GetMainDiagnosisText struct { + _tab flatbuffers.Table +} + +func GetRootAsGetMainDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetMainDiagnosisText { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &GetMainDiagnosisText{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsGetMainDiagnosisText(buf []byte, offset flatbuffers.UOffsetT) *GetMainDiagnosisText { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &GetMainDiagnosisText{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *GetMainDiagnosisText) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *GetMainDiagnosisText) Table() flatbuffers.Table { + return rcv._tab +} + +/// Main diagnostic number. +func (rcv *GetMainDiagnosisText) MainDiagnosisNumber() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Main diagnostic number. +func GetMainDiagnosisTextStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func GetMainDiagnosisTextAddMainDiagnosisNumber(builder *flatbuffers.Builder, mainDiagnosisNumber flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainDiagnosisNumber), 0) +} +func GetMainDiagnosisTextEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/ListDiagnosisIdentificationWithTimestamp.go b/pkg/fbs/common/log/diagnosis/fbs/ListDiagnosisIdentificationWithTimestamp.go index 92cfa2f..f0aab3e 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/ListDiagnosisIdentificationWithTimestamp.go +++ b/pkg/fbs/common/log/diagnosis/fbs/ListDiagnosisIdentificationWithTimestamp.go @@ -1,108 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ListDiagnosisIdentificationWithTimestampT struct { - ListDiagnosisIdentificationWithTimestamp []*DiagnosisIdentificationWithTimestampT -} - -func (t *ListDiagnosisIdentificationWithTimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - listDiagnosisIdentificationWithTimestampOffset := flatbuffers.UOffsetT(0) - if t.ListDiagnosisIdentificationWithTimestamp != nil { - listDiagnosisIdentificationWithTimestampLength := len(t.ListDiagnosisIdentificationWithTimestamp) - listDiagnosisIdentificationWithTimestampOffsets := make([]flatbuffers.UOffsetT, listDiagnosisIdentificationWithTimestampLength) - for j := 0; j < listDiagnosisIdentificationWithTimestampLength; j++ { - listDiagnosisIdentificationWithTimestampOffsets[j] = t.ListDiagnosisIdentificationWithTimestamp[j].Pack(builder) - } - ListDiagnosisIdentificationWithTimestampStartListDiagnosisIdentificationWithTimestampVector(builder, listDiagnosisIdentificationWithTimestampLength) - for j := listDiagnosisIdentificationWithTimestampLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(listDiagnosisIdentificationWithTimestampOffsets[j]) - } - listDiagnosisIdentificationWithTimestampOffset = builder.EndVector(listDiagnosisIdentificationWithTimestampLength) - } - ListDiagnosisIdentificationWithTimestampStart(builder) - ListDiagnosisIdentificationWithTimestampAddListDiagnosisIdentificationWithTimestamp(builder, listDiagnosisIdentificationWithTimestampOffset) - return ListDiagnosisIdentificationWithTimestampEnd(builder) -} - -func (rcv *ListDiagnosisIdentificationWithTimestamp) UnPackTo(t *ListDiagnosisIdentificationWithTimestampT) { - listDiagnosisIdentificationWithTimestampLength := rcv.ListDiagnosisIdentificationWithTimestampLength() - t.ListDiagnosisIdentificationWithTimestamp = make([]*DiagnosisIdentificationWithTimestampT, listDiagnosisIdentificationWithTimestampLength) - for j := 0; j < listDiagnosisIdentificationWithTimestampLength; j++ { - x := DiagnosisIdentificationWithTimestamp{} - rcv.ListDiagnosisIdentificationWithTimestamp(&x, j) - t.ListDiagnosisIdentificationWithTimestamp[j] = x.UnPack() - } -} - -func (rcv *ListDiagnosisIdentificationWithTimestamp) UnPack() *ListDiagnosisIdentificationWithTimestampT { - if rcv == nil { return nil } - t := &ListDiagnosisIdentificationWithTimestampT{} - rcv.UnPackTo(t) - return t -} - -type ListDiagnosisIdentificationWithTimestamp struct { - _tab flatbuffers.Table -} - -func GetRootAsListDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ListDiagnosisIdentificationWithTimestamp { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ListDiagnosisIdentificationWithTimestamp{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsListDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ListDiagnosisIdentificationWithTimestamp { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ListDiagnosisIdentificationWithTimestamp{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ListDiagnosisIdentificationWithTimestamp) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ListDiagnosisIdentificationWithTimestamp) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ListDiagnosisIdentificationWithTimestamp) ListDiagnosisIdentificationWithTimestamp(obj *DiagnosisIdentificationWithTimestamp, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *ListDiagnosisIdentificationWithTimestamp) ListDiagnosisIdentificationWithTimestampLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ListDiagnosisIdentificationWithTimestampStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ListDiagnosisIdentificationWithTimestampAddListDiagnosisIdentificationWithTimestamp(builder *flatbuffers.Builder, listDiagnosisIdentificationWithTimestamp flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(listDiagnosisIdentificationWithTimestamp), 0) -} -func ListDiagnosisIdentificationWithTimestampStartListDiagnosisIdentificationWithTimestampVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ListDiagnosisIdentificationWithTimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines a list of uniquely identifiable diagnostic logs with the related timestamp (e.g. it is used for the pending diagnostics). +type ListDiagnosisIdentificationWithTimestampT struct { + ListDiagnosisIdentificationWithTimestamp []*DiagnosisIdentificationWithTimestampT +} + +func (t *ListDiagnosisIdentificationWithTimestampT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + listDiagnosisIdentificationWithTimestampOffset := flatbuffers.UOffsetT(0) + if t.ListDiagnosisIdentificationWithTimestamp != nil { + listDiagnosisIdentificationWithTimestampLength := len(t.ListDiagnosisIdentificationWithTimestamp) + listDiagnosisIdentificationWithTimestampOffsets := make([]flatbuffers.UOffsetT, listDiagnosisIdentificationWithTimestampLength) + for j := 0; j < listDiagnosisIdentificationWithTimestampLength; j++ { + listDiagnosisIdentificationWithTimestampOffsets[j] = t.ListDiagnosisIdentificationWithTimestamp[j].Pack(builder) + } + ListDiagnosisIdentificationWithTimestampStartListDiagnosisIdentificationWithTimestampVector(builder, listDiagnosisIdentificationWithTimestampLength) + for j := listDiagnosisIdentificationWithTimestampLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(listDiagnosisIdentificationWithTimestampOffsets[j]) + } + listDiagnosisIdentificationWithTimestampOffset = builder.EndVector(listDiagnosisIdentificationWithTimestampLength) + } + ListDiagnosisIdentificationWithTimestampStart(builder) + ListDiagnosisIdentificationWithTimestampAddListDiagnosisIdentificationWithTimestamp(builder, listDiagnosisIdentificationWithTimestampOffset) + return ListDiagnosisIdentificationWithTimestampEnd(builder) +} + +func (rcv *ListDiagnosisIdentificationWithTimestamp) UnPackTo(t *ListDiagnosisIdentificationWithTimestampT) { + listDiagnosisIdentificationWithTimestampLength := rcv.ListDiagnosisIdentificationWithTimestampLength() + t.ListDiagnosisIdentificationWithTimestamp = make([]*DiagnosisIdentificationWithTimestampT, listDiagnosisIdentificationWithTimestampLength) + for j := 0; j < listDiagnosisIdentificationWithTimestampLength; j++ { + x := DiagnosisIdentificationWithTimestamp{} + rcv.ListDiagnosisIdentificationWithTimestamp(&x, j) + t.ListDiagnosisIdentificationWithTimestamp[j] = x.UnPack() + } +} + +func (rcv *ListDiagnosisIdentificationWithTimestamp) UnPack() *ListDiagnosisIdentificationWithTimestampT { + if rcv == nil { return nil } + t := &ListDiagnosisIdentificationWithTimestampT{} + rcv.UnPackTo(t) + return t +} + +type ListDiagnosisIdentificationWithTimestamp struct { + _tab flatbuffers.Table +} + +func GetRootAsListDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ListDiagnosisIdentificationWithTimestamp { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ListDiagnosisIdentificationWithTimestamp{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsListDiagnosisIdentificationWithTimestamp(buf []byte, offset flatbuffers.UOffsetT) *ListDiagnosisIdentificationWithTimestamp { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ListDiagnosisIdentificationWithTimestamp{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ListDiagnosisIdentificationWithTimestamp) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ListDiagnosisIdentificationWithTimestamp) Table() flatbuffers.Table { + return rcv._tab +} + +/// List of uniquely identifiable diagnostic logs with the related timestamp. +func (rcv *ListDiagnosisIdentificationWithTimestamp) ListDiagnosisIdentificationWithTimestamp(obj *DiagnosisIdentificationWithTimestamp, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *ListDiagnosisIdentificationWithTimestamp) ListDiagnosisIdentificationWithTimestampLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of uniquely identifiable diagnostic logs with the related timestamp. +func ListDiagnosisIdentificationWithTimestampStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ListDiagnosisIdentificationWithTimestampAddListDiagnosisIdentificationWithTimestamp(builder *flatbuffers.Builder, listDiagnosisIdentificationWithTimestamp flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(listDiagnosisIdentificationWithTimestamp), 0) +} +func ListDiagnosisIdentificationWithTimestampStartListDiagnosisIdentificationWithTimestampVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ListDiagnosisIdentificationWithTimestampEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/LogParameters.go b/pkg/fbs/common/log/diagnosis/fbs/LogParameters.go index decbac0..07fa7c9 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/LogParameters.go +++ b/pkg/fbs/common/log/diagnosis/fbs/LogParameters.go @@ -1,213 +1,235 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LogParametersT struct { - MainDiagnosisCode string - DetailedDiagnosisCode string - UserId string - Entity string - Origin string - UnitName string - FileName string - FunctionName string - LineNumber uint32 - DynamicDescription string -} - -func (t *LogParametersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - mainDiagnosisCodeOffset := builder.CreateString(t.MainDiagnosisCode) - detailedDiagnosisCodeOffset := builder.CreateString(t.DetailedDiagnosisCode) - userIdOffset := builder.CreateString(t.UserId) - entityOffset := builder.CreateString(t.Entity) - originOffset := builder.CreateString(t.Origin) - unitNameOffset := builder.CreateString(t.UnitName) - fileNameOffset := builder.CreateString(t.FileName) - functionNameOffset := builder.CreateString(t.FunctionName) - dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) - LogParametersStart(builder) - LogParametersAddMainDiagnosisCode(builder, mainDiagnosisCodeOffset) - LogParametersAddDetailedDiagnosisCode(builder, detailedDiagnosisCodeOffset) - LogParametersAddUserId(builder, userIdOffset) - LogParametersAddEntity(builder, entityOffset) - LogParametersAddOrigin(builder, originOffset) - LogParametersAddUnitName(builder, unitNameOffset) - LogParametersAddFileName(builder, fileNameOffset) - LogParametersAddFunctionName(builder, functionNameOffset) - LogParametersAddLineNumber(builder, t.LineNumber) - LogParametersAddDynamicDescription(builder, dynamicDescriptionOffset) - return LogParametersEnd(builder) -} - -func (rcv *LogParameters) UnPackTo(t *LogParametersT) { - t.MainDiagnosisCode = string(rcv.MainDiagnosisCode()) - t.DetailedDiagnosisCode = string(rcv.DetailedDiagnosisCode()) - t.UserId = string(rcv.UserId()) - t.Entity = string(rcv.Entity()) - t.Origin = string(rcv.Origin()) - t.UnitName = string(rcv.UnitName()) - t.FileName = string(rcv.FileName()) - t.FunctionName = string(rcv.FunctionName()) - t.LineNumber = rcv.LineNumber() - t.DynamicDescription = string(rcv.DynamicDescription()) -} - -func (rcv *LogParameters) UnPack() *LogParametersT { - if rcv == nil { return nil } - t := &LogParametersT{} - rcv.UnPackTo(t) - return t -} - -type LogParameters struct { - _tab flatbuffers.Table -} - -func GetRootAsLogParameters(buf []byte, offset flatbuffers.UOffsetT) *LogParameters { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LogParameters{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLogParameters(buf []byte, offset flatbuffers.UOffsetT) *LogParameters { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LogParameters{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LogParameters) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LogParameters) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LogParameters) MainDiagnosisCode() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) DetailedDiagnosisCode() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) UserId() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) Entity() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) Origin() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) UnitName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) FileName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) FunctionName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LogParameters) LineNumber() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *LogParameters) MutateLineNumber(n uint32) bool { - return rcv._tab.MutateUint32Slot(20, n) -} - -func (rcv *LogParameters) DynamicDescription() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func LogParametersStart(builder *flatbuffers.Builder) { - builder.StartObject(10) -} -func LogParametersAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainDiagnosisCode), 0) -} -func LogParametersAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(detailedDiagnosisCode), 0) -} -func LogParametersAddUserId(builder *flatbuffers.Builder, userId flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(userId), 0) -} -func LogParametersAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(entity), 0) -} -func LogParametersAddOrigin(builder *flatbuffers.Builder, origin flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(origin), 0) -} -func LogParametersAddUnitName(builder *flatbuffers.Builder, unitName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(unitName), 0) -} -func LogParametersAddFileName(builder *flatbuffers.Builder, fileName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(fileName), 0) -} -func LogParametersAddFunctionName(builder *flatbuffers.Builder, functionName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(functionName), 0) -} -func LogParametersAddLineNumber(builder *flatbuffers.Builder, lineNumber uint32) { - builder.PrependUint32Slot(8, lineNumber, 0) -} -func LogParametersAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(dynamicDescription), 0) -} -func LogParametersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines all elements that can be used to set a diagnostic log. +/// It is used for diagnostic messages, warnings and errors. +type LogParametersT struct { + MainDiagnosisCode string + DetailedDiagnosisCode string + UserId string + Entity string + Origin string + UnitName string + FileName string + FunctionName string + LineNumber uint32 + DynamicDescription string +} + +func (t *LogParametersT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + mainDiagnosisCodeOffset := builder.CreateString(t.MainDiagnosisCode) + detailedDiagnosisCodeOffset := builder.CreateString(t.DetailedDiagnosisCode) + userIdOffset := builder.CreateString(t.UserId) + entityOffset := builder.CreateString(t.Entity) + originOffset := builder.CreateString(t.Origin) + unitNameOffset := builder.CreateString(t.UnitName) + fileNameOffset := builder.CreateString(t.FileName) + functionNameOffset := builder.CreateString(t.FunctionName) + dynamicDescriptionOffset := builder.CreateString(t.DynamicDescription) + LogParametersStart(builder) + LogParametersAddMainDiagnosisCode(builder, mainDiagnosisCodeOffset) + LogParametersAddDetailedDiagnosisCode(builder, detailedDiagnosisCodeOffset) + LogParametersAddUserId(builder, userIdOffset) + LogParametersAddEntity(builder, entityOffset) + LogParametersAddOrigin(builder, originOffset) + LogParametersAddUnitName(builder, unitNameOffset) + LogParametersAddFileName(builder, fileNameOffset) + LogParametersAddFunctionName(builder, functionNameOffset) + LogParametersAddLineNumber(builder, t.LineNumber) + LogParametersAddDynamicDescription(builder, dynamicDescriptionOffset) + return LogParametersEnd(builder) +} + +func (rcv *LogParameters) UnPackTo(t *LogParametersT) { + t.MainDiagnosisCode = string(rcv.MainDiagnosisCode()) + t.DetailedDiagnosisCode = string(rcv.DetailedDiagnosisCode()) + t.UserId = string(rcv.UserId()) + t.Entity = string(rcv.Entity()) + t.Origin = string(rcv.Origin()) + t.UnitName = string(rcv.UnitName()) + t.FileName = string(rcv.FileName()) + t.FunctionName = string(rcv.FunctionName()) + t.LineNumber = rcv.LineNumber() + t.DynamicDescription = string(rcv.DynamicDescription()) +} + +func (rcv *LogParameters) UnPack() *LogParametersT { + if rcv == nil { return nil } + t := &LogParametersT{} + rcv.UnPackTo(t) + return t +} + +type LogParameters struct { + _tab flatbuffers.Table +} + +func GetRootAsLogParameters(buf []byte, offset flatbuffers.UOffsetT) *LogParameters { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LogParameters{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLogParameters(buf []byte, offset flatbuffers.UOffsetT) *LogParameters { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LogParameters{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LogParameters) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LogParameters) Table() flatbuffers.Table { + return rcv._tab +} + +/// Main diagnostic number. +func (rcv *LogParameters) MainDiagnosisCode() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Main diagnostic number. +/// Detailed diagnostic number. +func (rcv *LogParameters) DetailedDiagnosisCode() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Detailed diagnostic number. +/// User id of the user who sends the log. +func (rcv *LogParameters) UserId() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// User id of the user who sends the log. +/// Object/resource that notifies the log (e.g. motion/axs/axisY). +func (rcv *LogParameters) Entity() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Object/resource that notifies the log (e.g. motion/axs/axisY). +/// Application that notifies the log (e.g. rexroth-automationcore). +func (rcv *LogParameters) Origin() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Application that notifies the log (e.g. rexroth-automationcore). +/// Unit name of the component that notifies the log (e.g. comm.datalayer). +func (rcv *LogParameters) UnitName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Unit name of the component that notifies the log (e.g. comm.datalayer). +/// Name of the file from where the log is set. +func (rcv *LogParameters) FileName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the file from where the log is set. +/// Name of the function from where the log is set. +func (rcv *LogParameters) FunctionName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the function from where the log is set. +/// Line number from where the log is set. +func (rcv *LogParameters) LineNumber() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Line number from where the log is set. +func (rcv *LogParameters) MutateLineNumber(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +/// Dynamic description to set additional dynamic elements. +func (rcv *LogParameters) DynamicDescription() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Dynamic description to set additional dynamic elements. +func LogParametersStart(builder *flatbuffers.Builder) { + builder.StartObject(10) +} +func LogParametersAddMainDiagnosisCode(builder *flatbuffers.Builder, mainDiagnosisCode flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainDiagnosisCode), 0) +} +func LogParametersAddDetailedDiagnosisCode(builder *flatbuffers.Builder, detailedDiagnosisCode flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(detailedDiagnosisCode), 0) +} +func LogParametersAddUserId(builder *flatbuffers.Builder, userId flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(userId), 0) +} +func LogParametersAddEntity(builder *flatbuffers.Builder, entity flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(entity), 0) +} +func LogParametersAddOrigin(builder *flatbuffers.Builder, origin flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(origin), 0) +} +func LogParametersAddUnitName(builder *flatbuffers.Builder, unitName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(unitName), 0) +} +func LogParametersAddFileName(builder *flatbuffers.Builder, fileName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(fileName), 0) +} +func LogParametersAddFunctionName(builder *flatbuffers.Builder, functionName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(functionName), 0) +} +func LogParametersAddLineNumber(builder *flatbuffers.Builder, lineNumber uint32) { + builder.PrependUint32Slot(8, lineNumber, 0) +} +func LogParametersAddDynamicDescription(builder *flatbuffers.Builder, dynamicDescription flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(dynamicDescription), 0) +} +func LogParametersEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/MainDiagnostic.go b/pkg/fbs/common/log/diagnosis/fbs/MainDiagnostic.go index afe69fe..eb461e7 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/MainDiagnostic.go +++ b/pkg/fbs/common/log/diagnosis/fbs/MainDiagnostic.go @@ -1,156 +1,165 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type MainDiagnosticT struct { - Number string - Version uint32 - Text string - DetailedDiagnostics []*DetailedDiagnosticT -} - -func (t *MainDiagnosticT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - numberOffset := builder.CreateString(t.Number) - textOffset := builder.CreateString(t.Text) - detailedDiagnosticsOffset := flatbuffers.UOffsetT(0) - if t.DetailedDiagnostics != nil { - detailedDiagnosticsLength := len(t.DetailedDiagnostics) - detailedDiagnosticsOffsets := make([]flatbuffers.UOffsetT, detailedDiagnosticsLength) - for j := 0; j < detailedDiagnosticsLength; j++ { - detailedDiagnosticsOffsets[j] = t.DetailedDiagnostics[j].Pack(builder) - } - MainDiagnosticStartDetailedDiagnosticsVector(builder, detailedDiagnosticsLength) - for j := detailedDiagnosticsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(detailedDiagnosticsOffsets[j]) - } - detailedDiagnosticsOffset = builder.EndVector(detailedDiagnosticsLength) - } - MainDiagnosticStart(builder) - MainDiagnosticAddNumber(builder, numberOffset) - MainDiagnosticAddVersion(builder, t.Version) - MainDiagnosticAddText(builder, textOffset) - MainDiagnosticAddDetailedDiagnostics(builder, detailedDiagnosticsOffset) - return MainDiagnosticEnd(builder) -} - -func (rcv *MainDiagnostic) UnPackTo(t *MainDiagnosticT) { - t.Number = string(rcv.Number()) - t.Version = rcv.Version() - t.Text = string(rcv.Text()) - detailedDiagnosticsLength := rcv.DetailedDiagnosticsLength() - t.DetailedDiagnostics = make([]*DetailedDiagnosticT, detailedDiagnosticsLength) - for j := 0; j < detailedDiagnosticsLength; j++ { - x := DetailedDiagnostic{} - rcv.DetailedDiagnostics(&x, j) - t.DetailedDiagnostics[j] = x.UnPack() - } -} - -func (rcv *MainDiagnostic) UnPack() *MainDiagnosticT { - if rcv == nil { return nil } - t := &MainDiagnosticT{} - rcv.UnPackTo(t) - return t -} - -type MainDiagnostic struct { - _tab flatbuffers.Table -} - -func GetRootAsMainDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *MainDiagnostic { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MainDiagnostic{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMainDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *MainDiagnostic { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MainDiagnostic{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MainDiagnostic) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MainDiagnostic) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MainDiagnostic) Number() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *MainDiagnostic) Version() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 1 -} - -func (rcv *MainDiagnostic) MutateVersion(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *MainDiagnostic) Text() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *MainDiagnostic) DetailedDiagnostics(obj *DetailedDiagnostic, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *MainDiagnostic) DetailedDiagnosticsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func MainDiagnosticStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func MainDiagnosticAddNumber(builder *flatbuffers.Builder, number flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(number), 0) -} -func MainDiagnosticAddVersion(builder *flatbuffers.Builder, version uint32) { - builder.PrependUint32Slot(1, version, 1) -} -func MainDiagnosticAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(text), 0) -} -func MainDiagnosticAddDetailedDiagnostics(builder *flatbuffers.Builder, detailedDiagnostics flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(detailedDiagnostics), 0) -} -func MainDiagnosticStartDetailedDiagnosticsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MainDiagnosticEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the elements of one main diagnostics that should be registered. +type MainDiagnosticT struct { + Number string + Version uint32 + Text string + DetailedDiagnostics []*DetailedDiagnosticT +} + +func (t *MainDiagnosticT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + numberOffset := builder.CreateString(t.Number) + textOffset := builder.CreateString(t.Text) + detailedDiagnosticsOffset := flatbuffers.UOffsetT(0) + if t.DetailedDiagnostics != nil { + detailedDiagnosticsLength := len(t.DetailedDiagnostics) + detailedDiagnosticsOffsets := make([]flatbuffers.UOffsetT, detailedDiagnosticsLength) + for j := 0; j < detailedDiagnosticsLength; j++ { + detailedDiagnosticsOffsets[j] = t.DetailedDiagnostics[j].Pack(builder) + } + MainDiagnosticStartDetailedDiagnosticsVector(builder, detailedDiagnosticsLength) + for j := detailedDiagnosticsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(detailedDiagnosticsOffsets[j]) + } + detailedDiagnosticsOffset = builder.EndVector(detailedDiagnosticsLength) + } + MainDiagnosticStart(builder) + MainDiagnosticAddNumber(builder, numberOffset) + MainDiagnosticAddVersion(builder, t.Version) + MainDiagnosticAddText(builder, textOffset) + MainDiagnosticAddDetailedDiagnostics(builder, detailedDiagnosticsOffset) + return MainDiagnosticEnd(builder) +} + +func (rcv *MainDiagnostic) UnPackTo(t *MainDiagnosticT) { + t.Number = string(rcv.Number()) + t.Version = rcv.Version() + t.Text = string(rcv.Text()) + detailedDiagnosticsLength := rcv.DetailedDiagnosticsLength() + t.DetailedDiagnostics = make([]*DetailedDiagnosticT, detailedDiagnosticsLength) + for j := 0; j < detailedDiagnosticsLength; j++ { + x := DetailedDiagnostic{} + rcv.DetailedDiagnostics(&x, j) + t.DetailedDiagnostics[j] = x.UnPack() + } +} + +func (rcv *MainDiagnostic) UnPack() *MainDiagnosticT { + if rcv == nil { return nil } + t := &MainDiagnosticT{} + rcv.UnPackTo(t) + return t +} + +type MainDiagnostic struct { + _tab flatbuffers.Table +} + +func GetRootAsMainDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *MainDiagnostic { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MainDiagnostic{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMainDiagnostic(buf []byte, offset flatbuffers.UOffsetT) *MainDiagnostic { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MainDiagnostic{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MainDiagnostic) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MainDiagnostic) Table() flatbuffers.Table { + return rcv._tab +} + +/// Main diagnostic number. +func (rcv *MainDiagnostic) Number() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Main diagnostic number. +/// Version of the main diagnostics starting with 1. +func (rcv *MainDiagnostic) Version() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 1 +} + +/// Version of the main diagnostics starting with 1. +func (rcv *MainDiagnostic) MutateVersion(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// Default text of the main diagnostics. +func (rcv *MainDiagnostic) Text() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Default text of the main diagnostics. +/// All detailed diagnostics that belong to this main diagnostics. +func (rcv *MainDiagnostic) DetailedDiagnostics(obj *DetailedDiagnostic, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *MainDiagnostic) DetailedDiagnosticsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// All detailed diagnostics that belong to this main diagnostics. +func MainDiagnosticStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func MainDiagnosticAddNumber(builder *flatbuffers.Builder, number flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(number), 0) +} +func MainDiagnosticAddVersion(builder *flatbuffers.Builder, version uint32) { + builder.PrependUint32Slot(1, version, 1) +} +func MainDiagnosticAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(text), 0) +} +func MainDiagnosticAddDetailedDiagnostics(builder *flatbuffers.Builder, detailedDiagnostics flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(detailedDiagnostics), 0) +} +func MainDiagnosticStartDetailedDiagnosticsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MainDiagnosticEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/PendingDiagnosticState.go b/pkg/fbs/common/log/diagnosis/fbs/PendingDiagnosticState.go index e3dd1e3..f6e05e7 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/PendingDiagnosticState.go +++ b/pkg/fbs/common/log/diagnosis/fbs/PendingDiagnosticState.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type PendingDiagnosticStateT struct { - PendingDiagnosticState State -} - -func (t *PendingDiagnosticStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - PendingDiagnosticStateStart(builder) - PendingDiagnosticStateAddPendingDiagnosticState(builder, t.PendingDiagnosticState) - return PendingDiagnosticStateEnd(builder) -} - -func (rcv *PendingDiagnosticState) UnPackTo(t *PendingDiagnosticStateT) { - t.PendingDiagnosticState = rcv.PendingDiagnosticState() -} - -func (rcv *PendingDiagnosticState) UnPack() *PendingDiagnosticStateT { - if rcv == nil { return nil } - t := &PendingDiagnosticStateT{} - rcv.UnPackTo(t) - return t -} - -type PendingDiagnosticState struct { - _tab flatbuffers.Table -} - -func GetRootAsPendingDiagnosticState(buf []byte, offset flatbuffers.UOffsetT) *PendingDiagnosticState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &PendingDiagnosticState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsPendingDiagnosticState(buf []byte, offset flatbuffers.UOffsetT) *PendingDiagnosticState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &PendingDiagnosticState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *PendingDiagnosticState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *PendingDiagnosticState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *PendingDiagnosticState) PendingDiagnosticState() State { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return State(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *PendingDiagnosticState) MutatePendingDiagnosticState(n State) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func PendingDiagnosticStateStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func PendingDiagnosticStateAddPendingDiagnosticState(builder *flatbuffers.Builder, pendingDiagnosticState State) { - builder.PrependInt8Slot(0, int8(pendingDiagnosticState), 0) -} -func PendingDiagnosticStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the state of one diagnostic log in the pending diagnostics. +type PendingDiagnosticStateT struct { + PendingDiagnosticState State +} + +func (t *PendingDiagnosticStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + PendingDiagnosticStateStart(builder) + PendingDiagnosticStateAddPendingDiagnosticState(builder, t.PendingDiagnosticState) + return PendingDiagnosticStateEnd(builder) +} + +func (rcv *PendingDiagnosticState) UnPackTo(t *PendingDiagnosticStateT) { + t.PendingDiagnosticState = rcv.PendingDiagnosticState() +} + +func (rcv *PendingDiagnosticState) UnPack() *PendingDiagnosticStateT { + if rcv == nil { return nil } + t := &PendingDiagnosticStateT{} + rcv.UnPackTo(t) + return t +} + +type PendingDiagnosticState struct { + _tab flatbuffers.Table +} + +func GetRootAsPendingDiagnosticState(buf []byte, offset flatbuffers.UOffsetT) *PendingDiagnosticState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &PendingDiagnosticState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsPendingDiagnosticState(buf []byte, offset flatbuffers.UOffsetT) *PendingDiagnosticState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &PendingDiagnosticState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *PendingDiagnosticState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *PendingDiagnosticState) Table() flatbuffers.Table { + return rcv._tab +} + +/// State of one diagnostic log in the pending diagnostics. +func (rcv *PendingDiagnosticState) PendingDiagnosticState() State { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return State(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// State of one diagnostic log in the pending diagnostics. +func (rcv *PendingDiagnosticState) MutatePendingDiagnosticState(n State) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func PendingDiagnosticStateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func PendingDiagnosticStateAddPendingDiagnosticState(builder *flatbuffers.Builder, pendingDiagnosticState State) { + builder.PrependInt8Slot(0, int8(pendingDiagnosticState), 0) +} +func PendingDiagnosticStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/RegistrationFile.go b/pkg/fbs/common/log/diagnosis/fbs/RegistrationFile.go index 1feccaf..ae57449 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/RegistrationFile.go +++ b/pkg/fbs/common/log/diagnosis/fbs/RegistrationFile.go @@ -1,153 +1,162 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type RegistrationFileT struct { - Language string - Product string - Component string - MainDiagnostics []*MainDiagnosticT -} - -func (t *RegistrationFileT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - languageOffset := builder.CreateString(t.Language) - productOffset := builder.CreateString(t.Product) - componentOffset := builder.CreateString(t.Component) - mainDiagnosticsOffset := flatbuffers.UOffsetT(0) - if t.MainDiagnostics != nil { - mainDiagnosticsLength := len(t.MainDiagnostics) - mainDiagnosticsOffsets := make([]flatbuffers.UOffsetT, mainDiagnosticsLength) - for j := 0; j < mainDiagnosticsLength; j++ { - mainDiagnosticsOffsets[j] = t.MainDiagnostics[j].Pack(builder) - } - RegistrationFileStartMainDiagnosticsVector(builder, mainDiagnosticsLength) - for j := mainDiagnosticsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(mainDiagnosticsOffsets[j]) - } - mainDiagnosticsOffset = builder.EndVector(mainDiagnosticsLength) - } - RegistrationFileStart(builder) - RegistrationFileAddLanguage(builder, languageOffset) - RegistrationFileAddProduct(builder, productOffset) - RegistrationFileAddComponent(builder, componentOffset) - RegistrationFileAddMainDiagnostics(builder, mainDiagnosticsOffset) - return RegistrationFileEnd(builder) -} - -func (rcv *RegistrationFile) UnPackTo(t *RegistrationFileT) { - t.Language = string(rcv.Language()) - t.Product = string(rcv.Product()) - t.Component = string(rcv.Component()) - mainDiagnosticsLength := rcv.MainDiagnosticsLength() - t.MainDiagnostics = make([]*MainDiagnosticT, mainDiagnosticsLength) - for j := 0; j < mainDiagnosticsLength; j++ { - x := MainDiagnostic{} - rcv.MainDiagnostics(&x, j) - t.MainDiagnostics[j] = x.UnPack() - } -} - -func (rcv *RegistrationFile) UnPack() *RegistrationFileT { - if rcv == nil { return nil } - t := &RegistrationFileT{} - rcv.UnPackTo(t) - return t -} - -type RegistrationFile struct { - _tab flatbuffers.Table -} - -func GetRootAsRegistrationFile(buf []byte, offset flatbuffers.UOffsetT) *RegistrationFile { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RegistrationFile{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRegistrationFile(buf []byte, offset flatbuffers.UOffsetT) *RegistrationFile { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RegistrationFile{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RegistrationFile) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RegistrationFile) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *RegistrationFile) Language() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *RegistrationFile) Product() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *RegistrationFile) Component() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *RegistrationFile) MainDiagnostics(obj *MainDiagnostic, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *RegistrationFile) MainDiagnosticsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func RegistrationFileStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func RegistrationFileAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(language), 0) -} -func RegistrationFileAddProduct(builder *flatbuffers.Builder, product flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(product), 0) -} -func RegistrationFileAddComponent(builder *flatbuffers.Builder, component flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(component), 0) -} -func RegistrationFileAddMainDiagnostics(builder *flatbuffers.Builder, mainDiagnostics flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(mainDiagnostics), 0) -} -func RegistrationFileStartMainDiagnosticsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func RegistrationFileEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the structure of the registration json file that is needed to register diagnostics. +type RegistrationFileT struct { + Language string + Product string + Component string + MainDiagnostics []*MainDiagnosticT +} + +func (t *RegistrationFileT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + languageOffset := builder.CreateString(t.Language) + productOffset := builder.CreateString(t.Product) + componentOffset := builder.CreateString(t.Component) + mainDiagnosticsOffset := flatbuffers.UOffsetT(0) + if t.MainDiagnostics != nil { + mainDiagnosticsLength := len(t.MainDiagnostics) + mainDiagnosticsOffsets := make([]flatbuffers.UOffsetT, mainDiagnosticsLength) + for j := 0; j < mainDiagnosticsLength; j++ { + mainDiagnosticsOffsets[j] = t.MainDiagnostics[j].Pack(builder) + } + RegistrationFileStartMainDiagnosticsVector(builder, mainDiagnosticsLength) + for j := mainDiagnosticsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(mainDiagnosticsOffsets[j]) + } + mainDiagnosticsOffset = builder.EndVector(mainDiagnosticsLength) + } + RegistrationFileStart(builder) + RegistrationFileAddLanguage(builder, languageOffset) + RegistrationFileAddProduct(builder, productOffset) + RegistrationFileAddComponent(builder, componentOffset) + RegistrationFileAddMainDiagnostics(builder, mainDiagnosticsOffset) + return RegistrationFileEnd(builder) +} + +func (rcv *RegistrationFile) UnPackTo(t *RegistrationFileT) { + t.Language = string(rcv.Language()) + t.Product = string(rcv.Product()) + t.Component = string(rcv.Component()) + mainDiagnosticsLength := rcv.MainDiagnosticsLength() + t.MainDiagnostics = make([]*MainDiagnosticT, mainDiagnosticsLength) + for j := 0; j < mainDiagnosticsLength; j++ { + x := MainDiagnostic{} + rcv.MainDiagnostics(&x, j) + t.MainDiagnostics[j] = x.UnPack() + } +} + +func (rcv *RegistrationFile) UnPack() *RegistrationFileT { + if rcv == nil { return nil } + t := &RegistrationFileT{} + rcv.UnPackTo(t) + return t +} + +type RegistrationFile struct { + _tab flatbuffers.Table +} + +func GetRootAsRegistrationFile(buf []byte, offset flatbuffers.UOffsetT) *RegistrationFile { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RegistrationFile{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRegistrationFile(buf []byte, offset flatbuffers.UOffsetT) *RegistrationFile { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RegistrationFile{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RegistrationFile) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RegistrationFile) Table() flatbuffers.Table { + return rcv._tab +} + +/// Language of the default texts (optional). +func (rcv *RegistrationFile) Language() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Language of the default texts (optional). +/// Product associated to the diagnostics (optional). +func (rcv *RegistrationFile) Product() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Product associated to the diagnostics (optional). +/// Component associated to the diagnostics (optional). +func (rcv *RegistrationFile) Component() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Component associated to the diagnostics (optional). +/// All main diagnostics (including their related detailed diagnostics) that should be registered. +func (rcv *RegistrationFile) MainDiagnostics(obj *MainDiagnostic, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *RegistrationFile) MainDiagnosticsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// All main diagnostics (including their related detailed diagnostics) that should be registered. +func RegistrationFileStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func RegistrationFileAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(language), 0) +} +func RegistrationFileAddProduct(builder *flatbuffers.Builder, product flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(product), 0) +} +func RegistrationFileAddComponent(builder *flatbuffers.Builder, component flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(component), 0) +} +func RegistrationFileAddMainDiagnostics(builder *flatbuffers.Builder, mainDiagnostics flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(mainDiagnostics), 0) +} +func RegistrationFileStartMainDiagnosticsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func RegistrationFileEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/diagnosis/fbs/State.go b/pkg/fbs/common/log/diagnosis/fbs/State.go index 042982b..d2963ba 100644 --- a/pkg/fbs/common/log/diagnosis/fbs/State.go +++ b/pkg/fbs/common/log/diagnosis/fbs/State.go @@ -1,32 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type State int8 - -const ( - StateACTIVE State = 0 - StateRESET State = 1 - StateNOT_CONTAINED State = 2 -) - -var EnumNamesState = map[State]string{ - StateACTIVE: "ACTIVE", - StateRESET: "RESET", - StateNOT_CONTAINED: "NOT_CONTAINED", -} - -var EnumValuesState = map[string]State{ - "ACTIVE": StateACTIVE, - "RESET": StateRESET, - "NOT_CONTAINED": StateNOT_CONTAINED, -} - -func (v State) String() string { - if s, ok := EnumNamesState[v]; ok { - return s - } - return "State(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Possible states for a specific diagnostic log in the pending diagnostics. +/// The state ACTIVE means a diagnostic error or warning is part of the pending diagnostics and is in state active. Solving the cause of the error or warning is necessary. +/// The state RESET means a diagnostic error is part of the pending diagnostics and is in state reset. An clearing (acknowldgement) of the error is necessary. +type State int8 + +const ( + StateACTIVE State = 0 + StateRESET State = 1 + StateNOT_CONTAINED State = 2 +) + +var EnumNamesState = map[State]string{ + StateACTIVE: "ACTIVE", + StateRESET: "RESET", + StateNOT_CONTAINED: "NOT_CONTAINED", +} + +var EnumValuesState = map[string]State{ + "ACTIVE": StateACTIVE, + "RESET": StateRESET, + "NOT_CONTAINED": StateNOT_CONTAINED, +} + +func (v State) String() string { + if s, ok := EnumNamesState[v]; ok { + return s + } + return "State(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/log/trace/fbs/EnablingState.go b/pkg/fbs/common/log/trace/fbs/EnablingState.go index 4e29154..87d85c9 100644 --- a/pkg/fbs/common/log/trace/fbs/EnablingState.go +++ b/pkg/fbs/common/log/trace/fbs/EnablingState.go @@ -1,129 +1,138 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EnablingStateT struct { - UnitName string - Messages bool - Warnings bool - Errors bool -} - -func (t *EnablingStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - unitNameOffset := builder.CreateString(t.UnitName) - EnablingStateStart(builder) - EnablingStateAddUnitName(builder, unitNameOffset) - EnablingStateAddMessages(builder, t.Messages) - EnablingStateAddWarnings(builder, t.Warnings) - EnablingStateAddErrors(builder, t.Errors) - return EnablingStateEnd(builder) -} - -func (rcv *EnablingState) UnPackTo(t *EnablingStateT) { - t.UnitName = string(rcv.UnitName()) - t.Messages = rcv.Messages() - t.Warnings = rcv.Warnings() - t.Errors = rcv.Errors() -} - -func (rcv *EnablingState) UnPack() *EnablingStateT { - if rcv == nil { return nil } - t := &EnablingStateT{} - rcv.UnPackTo(t) - return t -} - -type EnablingState struct { - _tab flatbuffers.Table -} - -func GetRootAsEnablingState(buf []byte, offset flatbuffers.UOffsetT) *EnablingState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EnablingState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEnablingState(buf []byte, offset flatbuffers.UOffsetT) *EnablingState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EnablingState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EnablingState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EnablingState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EnablingState) UnitName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *EnablingState) Messages() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *EnablingState) MutateMessages(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *EnablingState) Warnings() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *EnablingState) MutateWarnings(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *EnablingState) Errors() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *EnablingState) MutateErrors(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func EnablingStateStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func EnablingStateAddUnitName(builder *flatbuffers.Builder, unitName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(unitName), 0) -} -func EnablingStateAddMessages(builder *flatbuffers.Builder, messages bool) { - builder.PrependBoolSlot(1, messages, false) -} -func EnablingStateAddWarnings(builder *flatbuffers.Builder, warnings bool) { - builder.PrependBoolSlot(2, warnings, false) -} -func EnablingStateAddErrors(builder *flatbuffers.Builder, errors bool) { - builder.PrependBoolSlot(3, errors, false) -} -func EnablingStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table holds the enabling state of messages, warnings and errors of one trace unit. +type EnablingStateT struct { + UnitName string + Messages bool + Warnings bool + Errors bool +} + +func (t *EnablingStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + unitNameOffset := builder.CreateString(t.UnitName) + EnablingStateStart(builder) + EnablingStateAddUnitName(builder, unitNameOffset) + EnablingStateAddMessages(builder, t.Messages) + EnablingStateAddWarnings(builder, t.Warnings) + EnablingStateAddErrors(builder, t.Errors) + return EnablingStateEnd(builder) +} + +func (rcv *EnablingState) UnPackTo(t *EnablingStateT) { + t.UnitName = string(rcv.UnitName()) + t.Messages = rcv.Messages() + t.Warnings = rcv.Warnings() + t.Errors = rcv.Errors() +} + +func (rcv *EnablingState) UnPack() *EnablingStateT { + if rcv == nil { return nil } + t := &EnablingStateT{} + rcv.UnPackTo(t) + return t +} + +type EnablingState struct { + _tab flatbuffers.Table +} + +func GetRootAsEnablingState(buf []byte, offset flatbuffers.UOffsetT) *EnablingState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EnablingState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEnablingState(buf []byte, offset flatbuffers.UOffsetT) *EnablingState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EnablingState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EnablingState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EnablingState) Table() flatbuffers.Table { + return rcv._tab +} + +/// Unit name of the registered trace unit. +func (rcv *EnablingState) UnitName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Unit name of the registered trace unit. +/// Enabling state of messages. +func (rcv *EnablingState) Messages() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Enabling state of messages. +func (rcv *EnablingState) MutateMessages(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// Enabling state of warnings. +func (rcv *EnablingState) Warnings() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Enabling state of warnings. +func (rcv *EnablingState) MutateWarnings(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +/// Enabling state of errors. +func (rcv *EnablingState) Errors() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Enabling state of errors. +func (rcv *EnablingState) MutateErrors(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func EnablingStateStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func EnablingStateAddUnitName(builder *flatbuffers.Builder, unitName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(unitName), 0) +} +func EnablingStateAddMessages(builder *flatbuffers.Builder, messages bool) { + builder.PrependBoolSlot(1, messages, false) +} +func EnablingStateAddWarnings(builder *flatbuffers.Builder, warnings bool) { + builder.PrependBoolSlot(2, warnings, false) +} +func EnablingStateAddErrors(builder *flatbuffers.Builder, errors bool) { + builder.PrependBoolSlot(3, errors, false) +} +func EnablingStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/log/trace/fbs/EnablingStates.go b/pkg/fbs/common/log/trace/fbs/EnablingStates.go index 360d80b..00365f7 100644 --- a/pkg/fbs/common/log/trace/fbs/EnablingStates.go +++ b/pkg/fbs/common/log/trace/fbs/EnablingStates.go @@ -1,123 +1,128 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type EnablingStatesT struct { - EnablingStates []*EnablingStateT - MachineIdentification string -} - -func (t *EnablingStatesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - enablingStatesOffset := flatbuffers.UOffsetT(0) - if t.EnablingStates != nil { - enablingStatesLength := len(t.EnablingStates) - enablingStatesOffsets := make([]flatbuffers.UOffsetT, enablingStatesLength) - for j := 0; j < enablingStatesLength; j++ { - enablingStatesOffsets[j] = t.EnablingStates[j].Pack(builder) - } - EnablingStatesStartEnablingStatesVector(builder, enablingStatesLength) - for j := enablingStatesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(enablingStatesOffsets[j]) - } - enablingStatesOffset = builder.EndVector(enablingStatesLength) - } - machineIdentificationOffset := builder.CreateString(t.MachineIdentification) - EnablingStatesStart(builder) - EnablingStatesAddEnablingStates(builder, enablingStatesOffset) - EnablingStatesAddMachineIdentification(builder, machineIdentificationOffset) - return EnablingStatesEnd(builder) -} - -func (rcv *EnablingStates) UnPackTo(t *EnablingStatesT) { - enablingStatesLength := rcv.EnablingStatesLength() - t.EnablingStates = make([]*EnablingStateT, enablingStatesLength) - for j := 0; j < enablingStatesLength; j++ { - x := EnablingState{} - rcv.EnablingStates(&x, j) - t.EnablingStates[j] = x.UnPack() - } - t.MachineIdentification = string(rcv.MachineIdentification()) -} - -func (rcv *EnablingStates) UnPack() *EnablingStatesT { - if rcv == nil { return nil } - t := &EnablingStatesT{} - rcv.UnPackTo(t) - return t -} - -type EnablingStates struct { - _tab flatbuffers.Table -} - -func GetRootAsEnablingStates(buf []byte, offset flatbuffers.UOffsetT) *EnablingStates { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &EnablingStates{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsEnablingStates(buf []byte, offset flatbuffers.UOffsetT) *EnablingStates { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &EnablingStates{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *EnablingStates) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *EnablingStates) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *EnablingStates) EnablingStates(obj *EnablingState, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *EnablingStates) EnablingStatesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *EnablingStates) MachineIdentification() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func EnablingStatesStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func EnablingStatesAddEnablingStates(builder *flatbuffers.Builder, enablingStates flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(enablingStates), 0) -} -func EnablingStatesStartEnablingStatesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func EnablingStatesAddMachineIdentification(builder *flatbuffers.Builder, machineIdentification flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(machineIdentification), 0) -} -func EnablingStatesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// This table defines the enabling states of all trace units for a specific device. +type EnablingStatesT struct { + EnablingStates []*EnablingStateT + MachineIdentification string +} + +func (t *EnablingStatesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + enablingStatesOffset := flatbuffers.UOffsetT(0) + if t.EnablingStates != nil { + enablingStatesLength := len(t.EnablingStates) + enablingStatesOffsets := make([]flatbuffers.UOffsetT, enablingStatesLength) + for j := 0; j < enablingStatesLength; j++ { + enablingStatesOffsets[j] = t.EnablingStates[j].Pack(builder) + } + EnablingStatesStartEnablingStatesVector(builder, enablingStatesLength) + for j := enablingStatesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(enablingStatesOffsets[j]) + } + enablingStatesOffset = builder.EndVector(enablingStatesLength) + } + machineIdentificationOffset := builder.CreateString(t.MachineIdentification) + EnablingStatesStart(builder) + EnablingStatesAddEnablingStates(builder, enablingStatesOffset) + EnablingStatesAddMachineIdentification(builder, machineIdentificationOffset) + return EnablingStatesEnd(builder) +} + +func (rcv *EnablingStates) UnPackTo(t *EnablingStatesT) { + enablingStatesLength := rcv.EnablingStatesLength() + t.EnablingStates = make([]*EnablingStateT, enablingStatesLength) + for j := 0; j < enablingStatesLength; j++ { + x := EnablingState{} + rcv.EnablingStates(&x, j) + t.EnablingStates[j] = x.UnPack() + } + t.MachineIdentification = string(rcv.MachineIdentification()) +} + +func (rcv *EnablingStates) UnPack() *EnablingStatesT { + if rcv == nil { return nil } + t := &EnablingStatesT{} + rcv.UnPackTo(t) + return t +} + +type EnablingStates struct { + _tab flatbuffers.Table +} + +func GetRootAsEnablingStates(buf []byte, offset flatbuffers.UOffsetT) *EnablingStates { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &EnablingStates{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsEnablingStates(buf []byte, offset flatbuffers.UOffsetT) *EnablingStates { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &EnablingStates{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *EnablingStates) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *EnablingStates) Table() flatbuffers.Table { + return rcv._tab +} + +/// All enabling states. +func (rcv *EnablingStates) EnablingStates(obj *EnablingState, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *EnablingStates) EnablingStatesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// All enabling states. +/// Machine identification to identify a specific device. +func (rcv *EnablingStates) MachineIdentification() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Machine identification to identify a specific device. +func EnablingStatesStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func EnablingStatesAddEnablingStates(builder *flatbuffers.Builder, enablingStates flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(enablingStates), 0) +} +func EnablingStatesStartEnablingStatesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func EnablingStatesAddMachineIdentification(builder *flatbuffers.Builder, machineIdentification flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(machineIdentification), 0) +} +func EnablingStatesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/OblivionCurrent.go b/pkg/fbs/common/oblivion/OblivionCurrent.go index 1a54d84..35816c9 100644 --- a/pkg/fbs/common/oblivion/OblivionCurrent.go +++ b/pkg/fbs/common/oblivion/OblivionCurrent.go @@ -1,114 +1,114 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OblivionCurrentT struct { - Count uint32 - Bytes uint32 - Unobserved uint32 -} - -func (t *OblivionCurrentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - OblivionCurrentStart(builder) - OblivionCurrentAddCount(builder, t.Count) - OblivionCurrentAddBytes(builder, t.Bytes) - OblivionCurrentAddUnobserved(builder, t.Unobserved) - return OblivionCurrentEnd(builder) -} - -func (rcv *OblivionCurrent) UnPackTo(t *OblivionCurrentT) { - t.Count = rcv.Count() - t.Bytes = rcv.Bytes() - t.Unobserved = rcv.Unobserved() -} - -func (rcv *OblivionCurrent) UnPack() *OblivionCurrentT { - if rcv == nil { return nil } - t := &OblivionCurrentT{} - rcv.UnPackTo(t) - return t -} - -type OblivionCurrent struct { - _tab flatbuffers.Table -} - -func GetRootAsOblivionCurrent(buf []byte, offset flatbuffers.UOffsetT) *OblivionCurrent { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OblivionCurrent{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOblivionCurrent(buf []byte, offset flatbuffers.UOffsetT) *OblivionCurrent { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OblivionCurrent{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OblivionCurrent) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OblivionCurrent) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OblivionCurrent) Count() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionCurrent) MutateCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *OblivionCurrent) Bytes() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionCurrent) MutateBytes(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *OblivionCurrent) Unobserved() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionCurrent) MutateUnobserved(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func OblivionCurrentStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func OblivionCurrentAddCount(builder *flatbuffers.Builder, count uint32) { - builder.PrependUint32Slot(0, count, 0) -} -func OblivionCurrentAddBytes(builder *flatbuffers.Builder, bytes uint32) { - builder.PrependUint32Slot(1, bytes, 0) -} -func OblivionCurrentAddUnobserved(builder *flatbuffers.Builder, unobserved uint32) { - builder.PrependUint32Slot(2, unobserved, 0) -} -func OblivionCurrentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OblivionCurrentT struct { + Count uint32 + Bytes uint32 + Unobserved uint32 +} + +func (t *OblivionCurrentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + OblivionCurrentStart(builder) + OblivionCurrentAddCount(builder, t.Count) + OblivionCurrentAddBytes(builder, t.Bytes) + OblivionCurrentAddUnobserved(builder, t.Unobserved) + return OblivionCurrentEnd(builder) +} + +func (rcv *OblivionCurrent) UnPackTo(t *OblivionCurrentT) { + t.Count = rcv.Count() + t.Bytes = rcv.Bytes() + t.Unobserved = rcv.Unobserved() +} + +func (rcv *OblivionCurrent) UnPack() *OblivionCurrentT { + if rcv == nil { return nil } + t := &OblivionCurrentT{} + rcv.UnPackTo(t) + return t +} + +type OblivionCurrent struct { + _tab flatbuffers.Table +} + +func GetRootAsOblivionCurrent(buf []byte, offset flatbuffers.UOffsetT) *OblivionCurrent { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OblivionCurrent{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOblivionCurrent(buf []byte, offset flatbuffers.UOffsetT) *OblivionCurrent { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OblivionCurrent{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OblivionCurrent) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OblivionCurrent) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OblivionCurrent) Count() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionCurrent) MutateCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *OblivionCurrent) Bytes() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionCurrent) MutateBytes(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *OblivionCurrent) Unobserved() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionCurrent) MutateUnobserved(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func OblivionCurrentStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func OblivionCurrentAddCount(builder *flatbuffers.Builder, count uint32) { + builder.PrependUint32Slot(0, count, 0) +} +func OblivionCurrentAddBytes(builder *flatbuffers.Builder, bytes uint32) { + builder.PrependUint32Slot(1, bytes, 0) +} +func OblivionCurrentAddUnobserved(builder *flatbuffers.Builder, unobserved uint32) { + builder.PrependUint32Slot(2, unobserved, 0) +} +func OblivionCurrentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/OblivionOverview.go b/pkg/fbs/common/oblivion/OblivionOverview.go index 1bfd4d4..42c500f 100644 --- a/pkg/fbs/common/oblivion/OblivionOverview.go +++ b/pkg/fbs/common/oblivion/OblivionOverview.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OblivionOverviewT struct { - Active bool - Current *OblivionCurrentT - Total *OblivionTotalT -} - -func (t *OblivionOverviewT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - currentOffset := t.Current.Pack(builder) - totalOffset := t.Total.Pack(builder) - OblivionOverviewStart(builder) - OblivionOverviewAddActive(builder, t.Active) - OblivionOverviewAddCurrent(builder, currentOffset) - OblivionOverviewAddTotal(builder, totalOffset) - return OblivionOverviewEnd(builder) -} - -func (rcv *OblivionOverview) UnPackTo(t *OblivionOverviewT) { - t.Active = rcv.Active() - t.Current = rcv.Current(nil).UnPack() - t.Total = rcv.Total(nil).UnPack() -} - -func (rcv *OblivionOverview) UnPack() *OblivionOverviewT { - if rcv == nil { return nil } - t := &OblivionOverviewT{} - rcv.UnPackTo(t) - return t -} - -type OblivionOverview struct { - _tab flatbuffers.Table -} - -func GetRootAsOblivionOverview(buf []byte, offset flatbuffers.UOffsetT) *OblivionOverview { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OblivionOverview{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOblivionOverview(buf []byte, offset flatbuffers.UOffsetT) *OblivionOverview { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OblivionOverview{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OblivionOverview) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OblivionOverview) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OblivionOverview) Active() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *OblivionOverview) MutateActive(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *OblivionOverview) Current(obj *OblivionCurrent) *OblivionCurrent { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(OblivionCurrent) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *OblivionOverview) Total(obj *OblivionTotal) *OblivionTotal { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(OblivionTotal) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func OblivionOverviewStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func OblivionOverviewAddActive(builder *flatbuffers.Builder, active bool) { - builder.PrependBoolSlot(0, active, false) -} -func OblivionOverviewAddCurrent(builder *flatbuffers.Builder, current flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(current), 0) -} -func OblivionOverviewAddTotal(builder *flatbuffers.Builder, total flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(total), 0) -} -func OblivionOverviewEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OblivionOverviewT struct { + Active bool + Current *OblivionCurrentT + Total *OblivionTotalT +} + +func (t *OblivionOverviewT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + currentOffset := t.Current.Pack(builder) + totalOffset := t.Total.Pack(builder) + OblivionOverviewStart(builder) + OblivionOverviewAddActive(builder, t.Active) + OblivionOverviewAddCurrent(builder, currentOffset) + OblivionOverviewAddTotal(builder, totalOffset) + return OblivionOverviewEnd(builder) +} + +func (rcv *OblivionOverview) UnPackTo(t *OblivionOverviewT) { + t.Active = rcv.Active() + t.Current = rcv.Current(nil).UnPack() + t.Total = rcv.Total(nil).UnPack() +} + +func (rcv *OblivionOverview) UnPack() *OblivionOverviewT { + if rcv == nil { return nil } + t := &OblivionOverviewT{} + rcv.UnPackTo(t) + return t +} + +type OblivionOverview struct { + _tab flatbuffers.Table +} + +func GetRootAsOblivionOverview(buf []byte, offset flatbuffers.UOffsetT) *OblivionOverview { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OblivionOverview{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOblivionOverview(buf []byte, offset flatbuffers.UOffsetT) *OblivionOverview { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OblivionOverview{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OblivionOverview) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OblivionOverview) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OblivionOverview) Active() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *OblivionOverview) MutateActive(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *OblivionOverview) Current(obj *OblivionCurrent) *OblivionCurrent { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(OblivionCurrent) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *OblivionOverview) Total(obj *OblivionTotal) *OblivionTotal { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(OblivionTotal) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func OblivionOverviewStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func OblivionOverviewAddActive(builder *flatbuffers.Builder, active bool) { + builder.PrependBoolSlot(0, active, false) +} +func OblivionOverviewAddCurrent(builder *flatbuffers.Builder, current flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(current), 0) +} +func OblivionOverviewAddTotal(builder *flatbuffers.Builder, total flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(total), 0) +} +func OblivionOverviewEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/OblivionResult.go b/pkg/fbs/common/oblivion/OblivionResult.go index 0888b1f..b3ed8ee 100644 --- a/pkg/fbs/common/oblivion/OblivionResult.go +++ b/pkg/fbs/common/oblivion/OblivionResult.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OblivionResultT struct { - Unfreed []*OblivionResultItemT -} - -func (t *OblivionResultT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - unfreedOffset := flatbuffers.UOffsetT(0) - if t.Unfreed != nil { - unfreedLength := len(t.Unfreed) - unfreedOffsets := make([]flatbuffers.UOffsetT, unfreedLength) - for j := 0; j < unfreedLength; j++ { - unfreedOffsets[j] = t.Unfreed[j].Pack(builder) - } - OblivionResultStartUnfreedVector(builder, unfreedLength) - for j := unfreedLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(unfreedOffsets[j]) - } - unfreedOffset = builder.EndVector(unfreedLength) - } - OblivionResultStart(builder) - OblivionResultAddUnfreed(builder, unfreedOffset) - return OblivionResultEnd(builder) -} - -func (rcv *OblivionResult) UnPackTo(t *OblivionResultT) { - unfreedLength := rcv.UnfreedLength() - t.Unfreed = make([]*OblivionResultItemT, unfreedLength) - for j := 0; j < unfreedLength; j++ { - x := OblivionResultItem{} - rcv.Unfreed(&x, j) - t.Unfreed[j] = x.UnPack() - } -} - -func (rcv *OblivionResult) UnPack() *OblivionResultT { - if rcv == nil { return nil } - t := &OblivionResultT{} - rcv.UnPackTo(t) - return t -} - -type OblivionResult struct { - _tab flatbuffers.Table -} - -func GetRootAsOblivionResult(buf []byte, offset flatbuffers.UOffsetT) *OblivionResult { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OblivionResult{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOblivionResult(buf []byte, offset flatbuffers.UOffsetT) *OblivionResult { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OblivionResult{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OblivionResult) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OblivionResult) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OblivionResult) Unfreed(obj *OblivionResultItem, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *OblivionResult) UnfreedLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func OblivionResultStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func OblivionResultAddUnfreed(builder *flatbuffers.Builder, unfreed flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(unfreed), 0) -} -func OblivionResultStartUnfreedVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func OblivionResultEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OblivionResultT struct { + Unfreed []*OblivionResultItemT +} + +func (t *OblivionResultT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + unfreedOffset := flatbuffers.UOffsetT(0) + if t.Unfreed != nil { + unfreedLength := len(t.Unfreed) + unfreedOffsets := make([]flatbuffers.UOffsetT, unfreedLength) + for j := 0; j < unfreedLength; j++ { + unfreedOffsets[j] = t.Unfreed[j].Pack(builder) + } + OblivionResultStartUnfreedVector(builder, unfreedLength) + for j := unfreedLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(unfreedOffsets[j]) + } + unfreedOffset = builder.EndVector(unfreedLength) + } + OblivionResultStart(builder) + OblivionResultAddUnfreed(builder, unfreedOffset) + return OblivionResultEnd(builder) +} + +func (rcv *OblivionResult) UnPackTo(t *OblivionResultT) { + unfreedLength := rcv.UnfreedLength() + t.Unfreed = make([]*OblivionResultItemT, unfreedLength) + for j := 0; j < unfreedLength; j++ { + x := OblivionResultItem{} + rcv.Unfreed(&x, j) + t.Unfreed[j] = x.UnPack() + } +} + +func (rcv *OblivionResult) UnPack() *OblivionResultT { + if rcv == nil { return nil } + t := &OblivionResultT{} + rcv.UnPackTo(t) + return t +} + +type OblivionResult struct { + _tab flatbuffers.Table +} + +func GetRootAsOblivionResult(buf []byte, offset flatbuffers.UOffsetT) *OblivionResult { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OblivionResult{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOblivionResult(buf []byte, offset flatbuffers.UOffsetT) *OblivionResult { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OblivionResult{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OblivionResult) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OblivionResult) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OblivionResult) Unfreed(obj *OblivionResultItem, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *OblivionResult) UnfreedLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func OblivionResultStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func OblivionResultAddUnfreed(builder *flatbuffers.Builder, unfreed flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(unfreed), 0) +} +func OblivionResultStartUnfreedVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func OblivionResultEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/OblivionResultItem.go b/pkg/fbs/common/oblivion/OblivionResultItem.go index 136c8d7..78afa3f 100644 --- a/pkg/fbs/common/oblivion/OblivionResultItem.go +++ b/pkg/fbs/common/oblivion/OblivionResultItem.go @@ -1,172 +1,172 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OblivionResultItemT struct { - Count uint32 - Bytes uint32 - StackTrace []string - ThreadName string - TaskID uint64 -} - -func (t *OblivionResultItemT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - stackTraceOffset := flatbuffers.UOffsetT(0) - if t.StackTrace != nil { - stackTraceLength := len(t.StackTrace) - stackTraceOffsets := make([]flatbuffers.UOffsetT, stackTraceLength) - for j := 0; j < stackTraceLength; j++ { - stackTraceOffsets[j] = builder.CreateString(t.StackTrace[j]) - } - OblivionResultItemStartStackTraceVector(builder, stackTraceLength) - for j := stackTraceLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(stackTraceOffsets[j]) - } - stackTraceOffset = builder.EndVector(stackTraceLength) - } - threadNameOffset := builder.CreateString(t.ThreadName) - OblivionResultItemStart(builder) - OblivionResultItemAddCount(builder, t.Count) - OblivionResultItemAddBytes(builder, t.Bytes) - OblivionResultItemAddStackTrace(builder, stackTraceOffset) - OblivionResultItemAddThreadName(builder, threadNameOffset) - OblivionResultItemAddTaskID(builder, t.TaskID) - return OblivionResultItemEnd(builder) -} - -func (rcv *OblivionResultItem) UnPackTo(t *OblivionResultItemT) { - t.Count = rcv.Count() - t.Bytes = rcv.Bytes() - stackTraceLength := rcv.StackTraceLength() - t.StackTrace = make([]string, stackTraceLength) - for j := 0; j < stackTraceLength; j++ { - t.StackTrace[j] = string(rcv.StackTrace(j)) - } - t.ThreadName = string(rcv.ThreadName()) - t.TaskID = rcv.TaskID() -} - -func (rcv *OblivionResultItem) UnPack() *OblivionResultItemT { - if rcv == nil { return nil } - t := &OblivionResultItemT{} - rcv.UnPackTo(t) - return t -} - -type OblivionResultItem struct { - _tab flatbuffers.Table -} - -func GetRootAsOblivionResultItem(buf []byte, offset flatbuffers.UOffsetT) *OblivionResultItem { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OblivionResultItem{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOblivionResultItem(buf []byte, offset flatbuffers.UOffsetT) *OblivionResultItem { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OblivionResultItem{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OblivionResultItem) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OblivionResultItem) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OblivionResultItem) Count() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionResultItem) MutateCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *OblivionResultItem) Bytes() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionResultItem) MutateBytes(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *OblivionResultItem) StackTrace(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *OblivionResultItem) StackTraceLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *OblivionResultItem) ThreadName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *OblivionResultItem) TaskID() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionResultItem) MutateTaskID(n uint64) bool { - return rcv._tab.MutateUint64Slot(12, n) -} - -func OblivionResultItemStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func OblivionResultItemAddCount(builder *flatbuffers.Builder, count uint32) { - builder.PrependUint32Slot(0, count, 0) -} -func OblivionResultItemAddBytes(builder *flatbuffers.Builder, bytes uint32) { - builder.PrependUint32Slot(1, bytes, 0) -} -func OblivionResultItemAddStackTrace(builder *flatbuffers.Builder, stackTrace flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(stackTrace), 0) -} -func OblivionResultItemStartStackTraceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func OblivionResultItemAddThreadName(builder *flatbuffers.Builder, threadName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(threadName), 0) -} -func OblivionResultItemAddTaskID(builder *flatbuffers.Builder, taskID uint64) { - builder.PrependUint64Slot(4, taskID, 0) -} -func OblivionResultItemEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OblivionResultItemT struct { + Count uint32 + Bytes uint32 + StackTrace []string + ThreadName string + TaskID uint64 +} + +func (t *OblivionResultItemT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + stackTraceOffset := flatbuffers.UOffsetT(0) + if t.StackTrace != nil { + stackTraceLength := len(t.StackTrace) + stackTraceOffsets := make([]flatbuffers.UOffsetT, stackTraceLength) + for j := 0; j < stackTraceLength; j++ { + stackTraceOffsets[j] = builder.CreateString(t.StackTrace[j]) + } + OblivionResultItemStartStackTraceVector(builder, stackTraceLength) + for j := stackTraceLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(stackTraceOffsets[j]) + } + stackTraceOffset = builder.EndVector(stackTraceLength) + } + threadNameOffset := builder.CreateString(t.ThreadName) + OblivionResultItemStart(builder) + OblivionResultItemAddCount(builder, t.Count) + OblivionResultItemAddBytes(builder, t.Bytes) + OblivionResultItemAddStackTrace(builder, stackTraceOffset) + OblivionResultItemAddThreadName(builder, threadNameOffset) + OblivionResultItemAddTaskID(builder, t.TaskID) + return OblivionResultItemEnd(builder) +} + +func (rcv *OblivionResultItem) UnPackTo(t *OblivionResultItemT) { + t.Count = rcv.Count() + t.Bytes = rcv.Bytes() + stackTraceLength := rcv.StackTraceLength() + t.StackTrace = make([]string, stackTraceLength) + for j := 0; j < stackTraceLength; j++ { + t.StackTrace[j] = string(rcv.StackTrace(j)) + } + t.ThreadName = string(rcv.ThreadName()) + t.TaskID = rcv.TaskID() +} + +func (rcv *OblivionResultItem) UnPack() *OblivionResultItemT { + if rcv == nil { return nil } + t := &OblivionResultItemT{} + rcv.UnPackTo(t) + return t +} + +type OblivionResultItem struct { + _tab flatbuffers.Table +} + +func GetRootAsOblivionResultItem(buf []byte, offset flatbuffers.UOffsetT) *OblivionResultItem { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OblivionResultItem{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOblivionResultItem(buf []byte, offset flatbuffers.UOffsetT) *OblivionResultItem { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OblivionResultItem{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OblivionResultItem) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OblivionResultItem) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OblivionResultItem) Count() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionResultItem) MutateCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *OblivionResultItem) Bytes() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionResultItem) MutateBytes(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *OblivionResultItem) StackTrace(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *OblivionResultItem) StackTraceLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *OblivionResultItem) ThreadName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *OblivionResultItem) TaskID() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionResultItem) MutateTaskID(n uint64) bool { + return rcv._tab.MutateUint64Slot(12, n) +} + +func OblivionResultItemStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func OblivionResultItemAddCount(builder *flatbuffers.Builder, count uint32) { + builder.PrependUint32Slot(0, count, 0) +} +func OblivionResultItemAddBytes(builder *flatbuffers.Builder, bytes uint32) { + builder.PrependUint32Slot(1, bytes, 0) +} +func OblivionResultItemAddStackTrace(builder *flatbuffers.Builder, stackTrace flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(stackTrace), 0) +} +func OblivionResultItemStartStackTraceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func OblivionResultItemAddThreadName(builder *flatbuffers.Builder, threadName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(threadName), 0) +} +func OblivionResultItemAddTaskID(builder *flatbuffers.Builder, taskID uint64) { + builder.PrependUint64Slot(4, taskID, 0) +} +func OblivionResultItemEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/OblivionSettings.go b/pkg/fbs/common/oblivion/OblivionSettings.go index 446c41a..caf6429 100644 --- a/pkg/fbs/common/oblivion/OblivionSettings.go +++ b/pkg/fbs/common/oblivion/OblivionSettings.go @@ -1,168 +1,168 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OblivionSettingsT struct { - HashSize uint32 - Ignore uint32 - StackDepth uint32 - RecordType RecordType - ObserveThread uint64 - StackUsage bool -} - -func (t *OblivionSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - OblivionSettingsStart(builder) - OblivionSettingsAddHashSize(builder, t.HashSize) - OblivionSettingsAddIgnore(builder, t.Ignore) - OblivionSettingsAddStackDepth(builder, t.StackDepth) - OblivionSettingsAddRecordType(builder, t.RecordType) - OblivionSettingsAddObserveThread(builder, t.ObserveThread) - OblivionSettingsAddStackUsage(builder, t.StackUsage) - return OblivionSettingsEnd(builder) -} - -func (rcv *OblivionSettings) UnPackTo(t *OblivionSettingsT) { - t.HashSize = rcv.HashSize() - t.Ignore = rcv.Ignore() - t.StackDepth = rcv.StackDepth() - t.RecordType = rcv.RecordType() - t.ObserveThread = rcv.ObserveThread() - t.StackUsage = rcv.StackUsage() -} - -func (rcv *OblivionSettings) UnPack() *OblivionSettingsT { - if rcv == nil { return nil } - t := &OblivionSettingsT{} - rcv.UnPackTo(t) - return t -} - -type OblivionSettings struct { - _tab flatbuffers.Table -} - -func GetRootAsOblivionSettings(buf []byte, offset flatbuffers.UOffsetT) *OblivionSettings { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OblivionSettings{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOblivionSettings(buf []byte, offset flatbuffers.UOffsetT) *OblivionSettings { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OblivionSettings{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OblivionSettings) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OblivionSettings) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OblivionSettings) HashSize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 4999 -} - -func (rcv *OblivionSettings) MutateHashSize(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *OblivionSettings) Ignore() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 20 -} - -func (rcv *OblivionSettings) MutateIgnore(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *OblivionSettings) StackDepth() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 8 -} - -func (rcv *OblivionSettings) MutateStackDepth(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *OblivionSettings) RecordType() RecordType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return RecordType(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *OblivionSettings) MutateRecordType(n RecordType) bool { - return rcv._tab.MutateUint32Slot(10, uint32(n)) -} - -func (rcv *OblivionSettings) ObserveThread() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionSettings) MutateObserveThread(n uint64) bool { - return rcv._tab.MutateUint64Slot(12, n) -} - -func (rcv *OblivionSettings) StackUsage() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -func (rcv *OblivionSettings) MutateStackUsage(n bool) bool { - return rcv._tab.MutateBoolSlot(14, n) -} - -func OblivionSettingsStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func OblivionSettingsAddHashSize(builder *flatbuffers.Builder, hashSize uint32) { - builder.PrependUint32Slot(0, hashSize, 4999) -} -func OblivionSettingsAddIgnore(builder *flatbuffers.Builder, ignore uint32) { - builder.PrependUint32Slot(1, ignore, 20) -} -func OblivionSettingsAddStackDepth(builder *flatbuffers.Builder, stackDepth uint32) { - builder.PrependUint32Slot(2, stackDepth, 8) -} -func OblivionSettingsAddRecordType(builder *flatbuffers.Builder, recordType RecordType) { - builder.PrependUint32Slot(3, uint32(recordType), 1) -} -func OblivionSettingsAddObserveThread(builder *flatbuffers.Builder, observeThread uint64) { - builder.PrependUint64Slot(4, observeThread, 0) -} -func OblivionSettingsAddStackUsage(builder *flatbuffers.Builder, stackUsage bool) { - builder.PrependBoolSlot(5, stackUsage, true) -} -func OblivionSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OblivionSettingsT struct { + HashSize uint32 + Ignore uint32 + StackDepth uint32 + RecordType RecordType + ObserveThread uint64 + StackUsage bool +} + +func (t *OblivionSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + OblivionSettingsStart(builder) + OblivionSettingsAddHashSize(builder, t.HashSize) + OblivionSettingsAddIgnore(builder, t.Ignore) + OblivionSettingsAddStackDepth(builder, t.StackDepth) + OblivionSettingsAddRecordType(builder, t.RecordType) + OblivionSettingsAddObserveThread(builder, t.ObserveThread) + OblivionSettingsAddStackUsage(builder, t.StackUsage) + return OblivionSettingsEnd(builder) +} + +func (rcv *OblivionSettings) UnPackTo(t *OblivionSettingsT) { + t.HashSize = rcv.HashSize() + t.Ignore = rcv.Ignore() + t.StackDepth = rcv.StackDepth() + t.RecordType = rcv.RecordType() + t.ObserveThread = rcv.ObserveThread() + t.StackUsage = rcv.StackUsage() +} + +func (rcv *OblivionSettings) UnPack() *OblivionSettingsT { + if rcv == nil { return nil } + t := &OblivionSettingsT{} + rcv.UnPackTo(t) + return t +} + +type OblivionSettings struct { + _tab flatbuffers.Table +} + +func GetRootAsOblivionSettings(buf []byte, offset flatbuffers.UOffsetT) *OblivionSettings { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OblivionSettings{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOblivionSettings(buf []byte, offset flatbuffers.UOffsetT) *OblivionSettings { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OblivionSettings{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OblivionSettings) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OblivionSettings) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OblivionSettings) HashSize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 4999 +} + +func (rcv *OblivionSettings) MutateHashSize(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *OblivionSettings) Ignore() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 20 +} + +func (rcv *OblivionSettings) MutateIgnore(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *OblivionSettings) StackDepth() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 8 +} + +func (rcv *OblivionSettings) MutateStackDepth(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func (rcv *OblivionSettings) RecordType() RecordType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return RecordType(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 1 +} + +func (rcv *OblivionSettings) MutateRecordType(n RecordType) bool { + return rcv._tab.MutateUint32Slot(10, uint32(n)) +} + +func (rcv *OblivionSettings) ObserveThread() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionSettings) MutateObserveThread(n uint64) bool { + return rcv._tab.MutateUint64Slot(12, n) +} + +func (rcv *OblivionSettings) StackUsage() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +func (rcv *OblivionSettings) MutateStackUsage(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func OblivionSettingsStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func OblivionSettingsAddHashSize(builder *flatbuffers.Builder, hashSize uint32) { + builder.PrependUint32Slot(0, hashSize, 4999) +} +func OblivionSettingsAddIgnore(builder *flatbuffers.Builder, ignore uint32) { + builder.PrependUint32Slot(1, ignore, 20) +} +func OblivionSettingsAddStackDepth(builder *flatbuffers.Builder, stackDepth uint32) { + builder.PrependUint32Slot(2, stackDepth, 8) +} +func OblivionSettingsAddRecordType(builder *flatbuffers.Builder, recordType RecordType) { + builder.PrependUint32Slot(3, uint32(recordType), 1) +} +func OblivionSettingsAddObserveThread(builder *flatbuffers.Builder, observeThread uint64) { + builder.PrependUint64Slot(4, observeThread, 0) +} +func OblivionSettingsAddStackUsage(builder *flatbuffers.Builder, stackUsage bool) { + builder.PrependBoolSlot(5, stackUsage, true) +} +func OblivionSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/OblivionTotal.go b/pkg/fbs/common/oblivion/OblivionTotal.go index 9d7a270..c85a2c9 100644 --- a/pkg/fbs/common/oblivion/OblivionTotal.go +++ b/pkg/fbs/common/oblivion/OblivionTotal.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type OblivionTotalT struct { - Overhead uint32 - Unobserved uint32 -} - -func (t *OblivionTotalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - OblivionTotalStart(builder) - OblivionTotalAddOverhead(builder, t.Overhead) - OblivionTotalAddUnobserved(builder, t.Unobserved) - return OblivionTotalEnd(builder) -} - -func (rcv *OblivionTotal) UnPackTo(t *OblivionTotalT) { - t.Overhead = rcv.Overhead() - t.Unobserved = rcv.Unobserved() -} - -func (rcv *OblivionTotal) UnPack() *OblivionTotalT { - if rcv == nil { return nil } - t := &OblivionTotalT{} - rcv.UnPackTo(t) - return t -} - -type OblivionTotal struct { - _tab flatbuffers.Table -} - -func GetRootAsOblivionTotal(buf []byte, offset flatbuffers.UOffsetT) *OblivionTotal { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &OblivionTotal{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsOblivionTotal(buf []byte, offset flatbuffers.UOffsetT) *OblivionTotal { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &OblivionTotal{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *OblivionTotal) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *OblivionTotal) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *OblivionTotal) Overhead() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionTotal) MutateOverhead(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *OblivionTotal) Unobserved() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *OblivionTotal) MutateUnobserved(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func OblivionTotalStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func OblivionTotalAddOverhead(builder *flatbuffers.Builder, overhead uint32) { - builder.PrependUint32Slot(0, overhead, 0) -} -func OblivionTotalAddUnobserved(builder *flatbuffers.Builder, unobserved uint32) { - builder.PrependUint32Slot(1, unobserved, 0) -} -func OblivionTotalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type OblivionTotalT struct { + Overhead uint32 + Unobserved uint32 +} + +func (t *OblivionTotalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + OblivionTotalStart(builder) + OblivionTotalAddOverhead(builder, t.Overhead) + OblivionTotalAddUnobserved(builder, t.Unobserved) + return OblivionTotalEnd(builder) +} + +func (rcv *OblivionTotal) UnPackTo(t *OblivionTotalT) { + t.Overhead = rcv.Overhead() + t.Unobserved = rcv.Unobserved() +} + +func (rcv *OblivionTotal) UnPack() *OblivionTotalT { + if rcv == nil { return nil } + t := &OblivionTotalT{} + rcv.UnPackTo(t) + return t +} + +type OblivionTotal struct { + _tab flatbuffers.Table +} + +func GetRootAsOblivionTotal(buf []byte, offset flatbuffers.UOffsetT) *OblivionTotal { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &OblivionTotal{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsOblivionTotal(buf []byte, offset flatbuffers.UOffsetT) *OblivionTotal { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &OblivionTotal{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *OblivionTotal) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *OblivionTotal) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *OblivionTotal) Overhead() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionTotal) MutateOverhead(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *OblivionTotal) Unobserved() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *OblivionTotal) MutateUnobserved(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func OblivionTotalStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func OblivionTotalAddOverhead(builder *flatbuffers.Builder, overhead uint32) { + builder.PrependUint32Slot(0, overhead, 0) +} +func OblivionTotalAddUnobserved(builder *flatbuffers.Builder, unobserved uint32) { + builder.PrependUint32Slot(1, unobserved, 0) +} +func OblivionTotalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/RecordType.go b/pkg/fbs/common/oblivion/RecordType.go index 587a71e..10ad977 100644 --- a/pkg/fbs/common/oblivion/RecordType.go +++ b/pkg/fbs/common/oblivion/RecordType.go @@ -1,29 +1,29 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import "strconv" - -type RecordType uint32 - -const ( - RecordTypeStack RecordType = 0 - RecordTypeThread RecordType = 1 -) - -var EnumNamesRecordType = map[RecordType]string{ - RecordTypeStack: "Stack", - RecordTypeThread: "Thread", -} - -var EnumValuesRecordType = map[string]RecordType{ - "Stack": RecordTypeStack, - "Thread": RecordTypeThread, -} - -func (v RecordType) String() string { - if s, ok := EnumNamesRecordType[v]; ok { - return s - } - return "RecordType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import "strconv" + +type RecordType uint32 + +const ( + RecordTypeStack RecordType = 0 + RecordTypeThread RecordType = 1 +) + +var EnumNamesRecordType = map[RecordType]string{ + RecordTypeStack: "Stack", + RecordTypeThread: "Thread", +} + +var EnumValuesRecordType = map[string]RecordType{ + "Stack": RecordTypeStack, + "Thread": RecordTypeThread, +} + +func (v RecordType) String() string { + if s, ok := EnumNamesRecordType[v]; ok { + return s + } + return "RecordType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/oblivion/StackInfo.go b/pkg/fbs/common/oblivion/StackInfo.go index d4e80fe..aa8e7fa 100644 --- a/pkg/fbs/common/oblivion/StackInfo.go +++ b/pkg/fbs/common/oblivion/StackInfo.go @@ -1,165 +1,165 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StackInfoT struct { - Id uint32 - State State - Name string - Size uint32 - Used uint32 - Percent uint32 -} - -func (t *StackInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - StackInfoStart(builder) - StackInfoAddId(builder, t.Id) - StackInfoAddState(builder, t.State) - StackInfoAddName(builder, nameOffset) - StackInfoAddSize(builder, t.Size) - StackInfoAddUsed(builder, t.Used) - StackInfoAddPercent(builder, t.Percent) - return StackInfoEnd(builder) -} - -func (rcv *StackInfo) UnPackTo(t *StackInfoT) { - t.Id = rcv.Id() - t.State = rcv.State() - t.Name = string(rcv.Name()) - t.Size = rcv.Size() - t.Used = rcv.Used() - t.Percent = rcv.Percent() -} - -func (rcv *StackInfo) UnPack() *StackInfoT { - if rcv == nil { return nil } - t := &StackInfoT{} - rcv.UnPackTo(t) - return t -} - -type StackInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsStackInfo(buf []byte, offset flatbuffers.UOffsetT) *StackInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StackInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStackInfo(buf []byte, offset flatbuffers.UOffsetT) *StackInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StackInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StackInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StackInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StackInfo) Id() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StackInfo) MutateId(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *StackInfo) State() State { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return State(rcv._tab.GetInt16(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *StackInfo) MutateState(n State) bool { - return rcv._tab.MutateInt16Slot(6, int16(n)) -} - -func (rcv *StackInfo) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *StackInfo) Size() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StackInfo) MutateSize(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *StackInfo) Used() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StackInfo) MutateUsed(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *StackInfo) Percent() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StackInfo) MutatePercent(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func StackInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func StackInfoAddId(builder *flatbuffers.Builder, id uint32) { - builder.PrependUint32Slot(0, id, 0) -} -func StackInfoAddState(builder *flatbuffers.Builder, state State) { - builder.PrependInt16Slot(1, int16(state), 0) -} -func StackInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(name), 0) -} -func StackInfoAddSize(builder *flatbuffers.Builder, size uint32) { - builder.PrependUint32Slot(3, size, 0) -} -func StackInfoAddUsed(builder *flatbuffers.Builder, used uint32) { - builder.PrependUint32Slot(4, used, 0) -} -func StackInfoAddPercent(builder *flatbuffers.Builder, percent uint32) { - builder.PrependUint32Slot(5, percent, 0) -} -func StackInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StackInfoT struct { + Id uint32 + State State + Name string + Size uint32 + Used uint32 + Percent uint32 +} + +func (t *StackInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + StackInfoStart(builder) + StackInfoAddId(builder, t.Id) + StackInfoAddState(builder, t.State) + StackInfoAddName(builder, nameOffset) + StackInfoAddSize(builder, t.Size) + StackInfoAddUsed(builder, t.Used) + StackInfoAddPercent(builder, t.Percent) + return StackInfoEnd(builder) +} + +func (rcv *StackInfo) UnPackTo(t *StackInfoT) { + t.Id = rcv.Id() + t.State = rcv.State() + t.Name = string(rcv.Name()) + t.Size = rcv.Size() + t.Used = rcv.Used() + t.Percent = rcv.Percent() +} + +func (rcv *StackInfo) UnPack() *StackInfoT { + if rcv == nil { return nil } + t := &StackInfoT{} + rcv.UnPackTo(t) + return t +} + +type StackInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsStackInfo(buf []byte, offset flatbuffers.UOffsetT) *StackInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StackInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStackInfo(buf []byte, offset flatbuffers.UOffsetT) *StackInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StackInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StackInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StackInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *StackInfo) Id() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StackInfo) MutateId(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *StackInfo) State() State { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return State(rcv._tab.GetInt16(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *StackInfo) MutateState(n State) bool { + return rcv._tab.MutateInt16Slot(6, int16(n)) +} + +func (rcv *StackInfo) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *StackInfo) Size() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StackInfo) MutateSize(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func (rcv *StackInfo) Used() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StackInfo) MutateUsed(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *StackInfo) Percent() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StackInfo) MutatePercent(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func StackInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func StackInfoAddId(builder *flatbuffers.Builder, id uint32) { + builder.PrependUint32Slot(0, id, 0) +} +func StackInfoAddState(builder *flatbuffers.Builder, state State) { + builder.PrependInt16Slot(1, int16(state), 0) +} +func StackInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(name), 0) +} +func StackInfoAddSize(builder *flatbuffers.Builder, size uint32) { + builder.PrependUint32Slot(3, size, 0) +} +func StackInfoAddUsed(builder *flatbuffers.Builder, used uint32) { + builder.PrependUint32Slot(4, used, 0) +} +func StackInfoAddPercent(builder *flatbuffers.Builder, percent uint32) { + builder.PrependUint32Slot(5, percent, 0) +} +func StackInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/StackUsage.go b/pkg/fbs/common/oblivion/StackUsage.go index 2e6ee6a..57cc2f4 100644 --- a/pkg/fbs/common/oblivion/StackUsage.go +++ b/pkg/fbs/common/oblivion/StackUsage.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StackUsageT struct { - Stacks []*StackInfoT -} - -func (t *StackUsageT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - stacksOffset := flatbuffers.UOffsetT(0) - if t.Stacks != nil { - stacksLength := len(t.Stacks) - stacksOffsets := make([]flatbuffers.UOffsetT, stacksLength) - for j := 0; j < stacksLength; j++ { - stacksOffsets[j] = t.Stacks[j].Pack(builder) - } - StackUsageStartStacksVector(builder, stacksLength) - for j := stacksLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(stacksOffsets[j]) - } - stacksOffset = builder.EndVector(stacksLength) - } - StackUsageStart(builder) - StackUsageAddStacks(builder, stacksOffset) - return StackUsageEnd(builder) -} - -func (rcv *StackUsage) UnPackTo(t *StackUsageT) { - stacksLength := rcv.StacksLength() - t.Stacks = make([]*StackInfoT, stacksLength) - for j := 0; j < stacksLength; j++ { - x := StackInfo{} - rcv.Stacks(&x, j) - t.Stacks[j] = x.UnPack() - } -} - -func (rcv *StackUsage) UnPack() *StackUsageT { - if rcv == nil { return nil } - t := &StackUsageT{} - rcv.UnPackTo(t) - return t -} - -type StackUsage struct { - _tab flatbuffers.Table -} - -func GetRootAsStackUsage(buf []byte, offset flatbuffers.UOffsetT) *StackUsage { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StackUsage{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStackUsage(buf []byte, offset flatbuffers.UOffsetT) *StackUsage { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StackUsage{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StackUsage) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StackUsage) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StackUsage) Stacks(obj *StackInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *StackUsage) StacksLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func StackUsageStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StackUsageAddStacks(builder *flatbuffers.Builder, stacks flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(stacks), 0) -} -func StackUsageStartStacksVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func StackUsageEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StackUsageT struct { + Stacks []*StackInfoT +} + +func (t *StackUsageT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + stacksOffset := flatbuffers.UOffsetT(0) + if t.Stacks != nil { + stacksLength := len(t.Stacks) + stacksOffsets := make([]flatbuffers.UOffsetT, stacksLength) + for j := 0; j < stacksLength; j++ { + stacksOffsets[j] = t.Stacks[j].Pack(builder) + } + StackUsageStartStacksVector(builder, stacksLength) + for j := stacksLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(stacksOffsets[j]) + } + stacksOffset = builder.EndVector(stacksLength) + } + StackUsageStart(builder) + StackUsageAddStacks(builder, stacksOffset) + return StackUsageEnd(builder) +} + +func (rcv *StackUsage) UnPackTo(t *StackUsageT) { + stacksLength := rcv.StacksLength() + t.Stacks = make([]*StackInfoT, stacksLength) + for j := 0; j < stacksLength; j++ { + x := StackInfo{} + rcv.Stacks(&x, j) + t.Stacks[j] = x.UnPack() + } +} + +func (rcv *StackUsage) UnPack() *StackUsageT { + if rcv == nil { return nil } + t := &StackUsageT{} + rcv.UnPackTo(t) + return t +} + +type StackUsage struct { + _tab flatbuffers.Table +} + +func GetRootAsStackUsage(buf []byte, offset flatbuffers.UOffsetT) *StackUsage { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StackUsage{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStackUsage(buf []byte, offset flatbuffers.UOffsetT) *StackUsage { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StackUsage{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StackUsage) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StackUsage) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *StackUsage) Stacks(obj *StackInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *StackUsage) StacksLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func StackUsageStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StackUsageAddStacks(builder *flatbuffers.Builder, stacks flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(stacks), 0) +} +func StackUsageStartStacksVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func StackUsageEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/oblivion/State.go b/pkg/fbs/common/oblivion/State.go index b7b8390..da34cc5 100644 --- a/pkg/fbs/common/oblivion/State.go +++ b/pkg/fbs/common/oblivion/State.go @@ -1,29 +1,29 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package oblivion - -import "strconv" - -type State int16 - -const ( - StateRunning State = 0 - StateFinished State = 1 -) - -var EnumNamesState = map[State]string{ - StateRunning: "Running", - StateFinished: "Finished", -} - -var EnumValuesState = map[string]State{ - "Running": StateRunning, - "Finished": StateFinished, -} - -func (v State) String() string { - if s, ok := EnumNamesState[v]; ok { - return s - } - return "State(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package oblivion + +import "strconv" + +type State int16 + +const ( + StateRunning State = 0 + StateFinished State = 1 +) + +var EnumNamesState = map[State]string{ + StateRunning: "Running", + StateFinished: "Finished", +} + +var EnumValuesState = map[string]State{ + "Running": StateRunning, + "Finished": StateFinished, +} + +func (v State) String() string { + if s, ok := EnumNamesState[v]; ok { + return s + } + return "State(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/controls/fbs/AdminControls.go b/pkg/fbs/common/scheduler/controls/fbs/AdminControls.go index b160d19..6d1c6e0 100644 --- a/pkg/fbs/common/scheduler/controls/fbs/AdminControls.go +++ b/pkg/fbs/common/scheduler/controls/fbs/AdminControls.go @@ -1,98 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AdminControlsT struct { - Control *ControlsT -} - -func (t *AdminControlsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - controlOffset := t.Control.Pack(builder) - - AdminControlsStart(builder) - if t.Control != nil { - AdminControlsAddControlType(builder, t.Control.Type) - } - AdminControlsAddControl(builder, controlOffset) - return AdminControlsEnd(builder) -} - -func (rcv *AdminControls) UnPackTo(t *AdminControlsT) { - controlTable := flatbuffers.Table{} - if rcv.Control(&controlTable) { - t.Control = rcv.ControlType().UnPack(controlTable) - } -} - -func (rcv *AdminControls) UnPack() *AdminControlsT { - if rcv == nil { return nil } - t := &AdminControlsT{} - rcv.UnPackTo(t) - return t -} - -type AdminControls struct { - _tab flatbuffers.Table -} - -func GetRootAsAdminControls(buf []byte, offset flatbuffers.UOffsetT) *AdminControls { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AdminControls{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAdminControls(buf []byte, offset flatbuffers.UOffsetT) *AdminControls { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AdminControls{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AdminControls) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AdminControls) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AdminControls) ControlType() Controls { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Controls(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AdminControls) MutateControlType(n Controls) bool { - return rcv._tab.MutateByteSlot(4, byte(n)) -} - -func (rcv *AdminControls) Control(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -func AdminControlsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AdminControlsAddControlType(builder *flatbuffers.Builder, controlType Controls) { - builder.PrependByteSlot(0, byte(controlType), 0) -} -func AdminControlsAddControl(builder *flatbuffers.Builder, control flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(control), 0) -} -func AdminControlsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Special extensions to modify Scheduler and system behavior e.g. activation of DEBUG mode +type AdminControlsT struct { + Control *ControlsT +} + +func (t *AdminControlsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + controlOffset := t.Control.Pack(builder) + + AdminControlsStart(builder) + if t.Control != nil { + AdminControlsAddControlType(builder, t.Control.Type) + } + AdminControlsAddControl(builder, controlOffset) + return AdminControlsEnd(builder) +} + +func (rcv *AdminControls) UnPackTo(t *AdminControlsT) { + controlTable := flatbuffers.Table{} + if rcv.Control(&controlTable) { + t.Control = rcv.ControlType().UnPack(controlTable) + } +} + +func (rcv *AdminControls) UnPack() *AdminControlsT { + if rcv == nil { return nil } + t := &AdminControlsT{} + rcv.UnPackTo(t) + return t +} + +type AdminControls struct { + _tab flatbuffers.Table +} + +func GetRootAsAdminControls(buf []byte, offset flatbuffers.UOffsetT) *AdminControls { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AdminControls{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAdminControls(buf []byte, offset flatbuffers.UOffsetT) *AdminControls { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AdminControls{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AdminControls) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AdminControls) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AdminControls) ControlType() Controls { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Controls(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AdminControls) MutateControlType(n Controls) bool { + return rcv._tab.MutateByteSlot(4, byte(n)) +} + +/// Special extensions to modify Scheduler and system behavior e.g. activation of DEBUG mode +func (rcv *AdminControls) Control(obj *flatbuffers.Table) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + rcv._tab.Union(obj, o) + return true + } + return false +} + +/// Special extensions to modify Scheduler and system behavior e.g. activation of DEBUG mode +func AdminControlsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AdminControlsAddControlType(builder *flatbuffers.Builder, controlType Controls) { + builder.PrependByteSlot(0, byte(controlType), 0) +} +func AdminControlsAddControl(builder *flatbuffers.Builder, control flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(control), 0) +} +func AdminControlsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/controls/fbs/Controls.go b/pkg/fbs/common/scheduler/controls/fbs/Controls.go index fd54792..894a480 100644 --- a/pkg/fbs/common/scheduler/controls/fbs/Controls.go +++ b/pkg/fbs/common/scheduler/controls/fbs/Controls.go @@ -1,58 +1,60 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - "strconv" - - flatbuffers "github.com/google/flatbuffers/go" -) - -type Controls byte - -const ( - ControlsNONE Controls = 0 - ControlsDebug Controls = 1 -) - -var EnumNamesControls = map[Controls]string{ - ControlsNONE: "NONE", - ControlsDebug: "Debug", -} - -var EnumValuesControls = map[string]Controls{ - "NONE": ControlsNONE, - "Debug": ControlsDebug, -} - -func (v Controls) String() string { - if s, ok := EnumNamesControls[v]; ok { - return s - } - return "Controls(" + strconv.FormatInt(int64(v), 10) + ")" -} - -type ControlsT struct { - Type Controls - Value interface{} -} - -func (t *ControlsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { - return 0 - } - switch t.Type { - case ControlsDebug: - return t.Value.(*DebugT).Pack(builder) - } - return 0 -} - -func (rcv Controls) UnPack(table flatbuffers.Table) *ControlsT { - switch rcv { - case ControlsDebug: - x := Debug{_tab: table} - return &ControlsT{ Type: ControlsDebug, Value: x.UnPack() } - } - return nil -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + "strconv" + + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Special extensions to modify Scheduler and system behavior e.g. activation of DEBUG mode +type Controls byte + +const ( + ControlsNONE Controls = 0 + /// Deactivation of hardware watchdog and task watchdogs to enabling debugging of machine + ControlsDebug Controls = 1 +) + +var EnumNamesControls = map[Controls]string{ + ControlsNONE: "NONE", + ControlsDebug: "Debug", +} + +var EnumValuesControls = map[string]Controls{ + "NONE": ControlsNONE, + "Debug": ControlsDebug, +} + +func (v Controls) String() string { + if s, ok := EnumNamesControls[v]; ok { + return s + } + return "Controls(" + strconv.FormatInt(int64(v), 10) + ")" +} + +type ControlsT struct { + Type Controls + Value interface{} +} + +func (t *ControlsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { + return 0 + } + switch t.Type { + case ControlsDebug: + return t.Value.(*DebugT).Pack(builder) + } + return 0 +} + +func (rcv Controls) UnPack(table flatbuffers.Table) *ControlsT { + switch rcv { + case ControlsDebug: + x := Debug{_tab: table} + return &ControlsT{ Type: ControlsDebug, Value: x.UnPack() } + } + return nil +} diff --git a/pkg/fbs/common/scheduler/controls/fbs/Debug.go b/pkg/fbs/common/scheduler/controls/fbs/Debug.go index b90a5a8..297aa07 100644 --- a/pkg/fbs/common/scheduler/controls/fbs/Debug.go +++ b/pkg/fbs/common/scheduler/controls/fbs/Debug.go @@ -1,75 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DebugT struct { - Machine string -} - -func (t *DebugT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - machineOffset := builder.CreateString(t.Machine) - DebugStart(builder) - DebugAddMachine(builder, machineOffset) - return DebugEnd(builder) -} - -func (rcv *Debug) UnPackTo(t *DebugT) { - t.Machine = string(rcv.Machine()) -} - -func (rcv *Debug) UnPack() *DebugT { - if rcv == nil { return nil } - t := &DebugT{} - rcv.UnPackTo(t) - return t -} - -type Debug struct { - _tab flatbuffers.Table -} - -func GetRootAsDebug(buf []byte, offset flatbuffers.UOffsetT) *Debug { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Debug{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDebug(buf []byte, offset flatbuffers.UOffsetT) *Debug { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Debug{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Debug) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Debug) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Debug) Machine() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func DebugStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func DebugAddMachine(builder *flatbuffers.Builder, machine flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(machine), 0) -} -func DebugEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Machine ID to use the DEBUG configuration only on the intended machine +type DebugT struct { + Machine string +} + +func (t *DebugT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + machineOffset := builder.CreateString(t.Machine) + DebugStart(builder) + DebugAddMachine(builder, machineOffset) + return DebugEnd(builder) +} + +func (rcv *Debug) UnPackTo(t *DebugT) { + t.Machine = string(rcv.Machine()) +} + +func (rcv *Debug) UnPack() *DebugT { + if rcv == nil { return nil } + t := &DebugT{} + rcv.UnPackTo(t) + return t +} + +type Debug struct { + _tab flatbuffers.Table +} + +func GetRootAsDebug(buf []byte, offset flatbuffers.UOffsetT) *Debug { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Debug{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDebug(buf []byte, offset flatbuffers.UOffsetT) *Debug { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Debug{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Debug) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Debug) Table() flatbuffers.Table { + return rcv._tab +} + +/// Machine ID to use the DEBUG configuration only on the intended machine +func (rcv *Debug) Machine() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Machine ID to use the DEBUG configuration only on the intended machine +func DebugStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DebugAddMachine(builder *flatbuffers.Builder, machine flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(machine), 0) +} +func DebugEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Admin.go b/pkg/fbs/common/scheduler/fbs/Admin.go index d38abef..3b717eb 100644 --- a/pkg/fbs/common/scheduler/fbs/Admin.go +++ b/pkg/fbs/common/scheduler/fbs/Admin.go @@ -1,192 +1,192 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - common__scheduler__controls__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/controls/fbs" -) - -type AdminT struct { - StartupState CurrentState - StartupTimeout uint32 - StartupErrorReaction CurrentErrorReaction - TriggerSource CurrentTrigger - ControlDebug *common__scheduler__controls__fbs.ControlsT - CpuInfo *CpuInfoT -} - -func (t *AdminT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - controlDebugOffset := t.ControlDebug.Pack(builder) - - cpuInfoOffset := t.CpuInfo.Pack(builder) - AdminStart(builder) - AdminAddStartupState(builder, t.StartupState) - AdminAddStartupTimeout(builder, t.StartupTimeout) - AdminAddStartupErrorReaction(builder, t.StartupErrorReaction) - AdminAddTriggerSource(builder, t.TriggerSource) - if t.ControlDebug != nil { - AdminAddControlDebugType(builder, t.ControlDebug.Type) - } - AdminAddControlDebug(builder, controlDebugOffset) - AdminAddCpuInfo(builder, cpuInfoOffset) - return AdminEnd(builder) -} - -func (rcv *Admin) UnPackTo(t *AdminT) { - t.StartupState = rcv.StartupState() - t.StartupTimeout = rcv.StartupTimeout() - t.StartupErrorReaction = rcv.StartupErrorReaction() - t.TriggerSource = rcv.TriggerSource() - controlDebugTable := flatbuffers.Table{} - if rcv.ControlDebug(&controlDebugTable) { - t.ControlDebug = rcv.ControlDebugType().UnPack(controlDebugTable) - } - t.CpuInfo = rcv.CpuInfo(nil).UnPack() -} - -func (rcv *Admin) UnPack() *AdminT { - if rcv == nil { return nil } - t := &AdminT{} - rcv.UnPackTo(t) - return t -} - -type Admin struct { - _tab flatbuffers.Table -} - -func GetRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Admin{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Admin{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Admin) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Admin) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Admin) StartupState() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Admin) MutateStartupState(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *Admin) StartupTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 5 -} - -func (rcv *Admin) MutateStartupTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Admin) StartupErrorReaction() CurrentErrorReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return CurrentErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Admin) MutateStartupErrorReaction(n CurrentErrorReaction) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func (rcv *Admin) TriggerSource() CurrentTrigger { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return CurrentTrigger(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *Admin) MutateTriggerSource(n CurrentTrigger) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -func (rcv *Admin) ControlDebugType() common__scheduler__controls__fbs.Controls { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return common__scheduler__controls__fbs.Controls(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Admin) MutateControlDebugType(n common__scheduler__controls__fbs.Controls) bool { - return rcv._tab.MutateByteSlot(12, byte(n)) -} - -func (rcv *Admin) ControlDebug(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -func (rcv *Admin) CpuInfo(obj *CpuInfo) *CpuInfo { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CpuInfo) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func AdminStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func AdminAddStartupState(builder *flatbuffers.Builder, startupState CurrentState) { - builder.PrependInt8Slot(0, int8(startupState), 0) -} -func AdminAddStartupTimeout(builder *flatbuffers.Builder, startupTimeout uint32) { - builder.PrependUint32Slot(1, startupTimeout, 5) -} -func AdminAddStartupErrorReaction(builder *flatbuffers.Builder, startupErrorReaction CurrentErrorReaction) { - builder.PrependInt8Slot(2, int8(startupErrorReaction), 0) -} -func AdminAddTriggerSource(builder *flatbuffers.Builder, triggerSource CurrentTrigger) { - builder.PrependInt8Slot(3, int8(triggerSource), 1) -} -func AdminAddControlDebugType(builder *flatbuffers.Builder, controlDebugType common__scheduler__controls__fbs.Controls) { - builder.PrependByteSlot(4, byte(controlDebugType), 0) -} -func AdminAddControlDebug(builder *flatbuffers.Builder, controlDebug flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(controlDebug), 0) -} -func AdminAddCpuInfo(builder *flatbuffers.Builder, cpuInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(cpuInfo), 0) -} -func AdminEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + common__scheduler__controls__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/controls/fbs" +) + +type AdminT struct { + StartupState CurrentState + StartupTimeout uint32 + StartupErrorReaction CurrentErrorReaction + TriggerSource CurrentTrigger + ControlDebug *common__scheduler__controls__fbs.ControlsT + CpuInfo *CpuInfoT +} + +func (t *AdminT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + controlDebugOffset := t.ControlDebug.Pack(builder) + + cpuInfoOffset := t.CpuInfo.Pack(builder) + AdminStart(builder) + AdminAddStartupState(builder, t.StartupState) + AdminAddStartupTimeout(builder, t.StartupTimeout) + AdminAddStartupErrorReaction(builder, t.StartupErrorReaction) + AdminAddTriggerSource(builder, t.TriggerSource) + if t.ControlDebug != nil { + AdminAddControlDebugType(builder, t.ControlDebug.Type) + } + AdminAddControlDebug(builder, controlDebugOffset) + AdminAddCpuInfo(builder, cpuInfoOffset) + return AdminEnd(builder) +} + +func (rcv *Admin) UnPackTo(t *AdminT) { + t.StartupState = rcv.StartupState() + t.StartupTimeout = rcv.StartupTimeout() + t.StartupErrorReaction = rcv.StartupErrorReaction() + t.TriggerSource = rcv.TriggerSource() + controlDebugTable := flatbuffers.Table{} + if rcv.ControlDebug(&controlDebugTable) { + t.ControlDebug = rcv.ControlDebugType().UnPack(controlDebugTable) + } + t.CpuInfo = rcv.CpuInfo(nil).UnPack() +} + +func (rcv *Admin) UnPack() *AdminT { + if rcv == nil { return nil } + t := &AdminT{} + rcv.UnPackTo(t) + return t +} + +type Admin struct { + _tab flatbuffers.Table +} + +func GetRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Admin{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Admin{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Admin) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Admin) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Admin) StartupState() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Admin) MutateStartupState(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func (rcv *Admin) StartupTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 5 +} + +func (rcv *Admin) MutateStartupTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *Admin) StartupErrorReaction() CurrentErrorReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return CurrentErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Admin) MutateStartupErrorReaction(n CurrentErrorReaction) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func (rcv *Admin) TriggerSource() CurrentTrigger { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return CurrentTrigger(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +func (rcv *Admin) MutateTriggerSource(n CurrentTrigger) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +func (rcv *Admin) ControlDebugType() common__scheduler__controls__fbs.Controls { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return common__scheduler__controls__fbs.Controls(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Admin) MutateControlDebugType(n common__scheduler__controls__fbs.Controls) bool { + return rcv._tab.MutateByteSlot(12, byte(n)) +} + +func (rcv *Admin) ControlDebug(obj *flatbuffers.Table) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + rcv._tab.Union(obj, o) + return true + } + return false +} + +func (rcv *Admin) CpuInfo(obj *CpuInfo) *CpuInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CpuInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func AdminStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func AdminAddStartupState(builder *flatbuffers.Builder, startupState CurrentState) { + builder.PrependInt8Slot(0, int8(startupState), 0) +} +func AdminAddStartupTimeout(builder *flatbuffers.Builder, startupTimeout uint32) { + builder.PrependUint32Slot(1, startupTimeout, 5) +} +func AdminAddStartupErrorReaction(builder *flatbuffers.Builder, startupErrorReaction CurrentErrorReaction) { + builder.PrependInt8Slot(2, int8(startupErrorReaction), 0) +} +func AdminAddTriggerSource(builder *flatbuffers.Builder, triggerSource CurrentTrigger) { + builder.PrependInt8Slot(3, int8(triggerSource), 1) +} +func AdminAddControlDebugType(builder *flatbuffers.Builder, controlDebugType common__scheduler__controls__fbs.Controls) { + builder.PrependByteSlot(4, byte(controlDebugType), 0) +} +func AdminAddControlDebug(builder *flatbuffers.Builder, controlDebug flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(controlDebug), 0) +} +func AdminAddCpuInfo(builder *flatbuffers.Builder, cpuInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(cpuInfo), 0) +} +func AdminEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Callable.go b/pkg/fbs/common/scheduler/fbs/Callable.go index a7fb1c8..574c28d 100644 --- a/pkg/fbs/common/scheduler/fbs/Callable.go +++ b/pkg/fbs/common/scheduler/fbs/Callable.go @@ -1,218 +1,235 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CallableT struct { - Name string - Index uint32 - Arguments []string - Id string - Alias string - Sync *SyncPointsT - Watchdog CallableWdgConfig -} - -func (t *CallableT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - argumentsOffset := flatbuffers.UOffsetT(0) - if t.Arguments != nil { - argumentsLength := len(t.Arguments) - argumentsOffsets := make([]flatbuffers.UOffsetT, argumentsLength) - for j := 0; j < argumentsLength; j++ { - argumentsOffsets[j] = builder.CreateString(t.Arguments[j]) - } - CallableStartArgumentsVector(builder, argumentsLength) - for j := argumentsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(argumentsOffsets[j]) - } - argumentsOffset = builder.EndVector(argumentsLength) - } - idOffset := builder.CreateString(t.Id) - aliasOffset := builder.CreateString(t.Alias) - syncOffset := t.Sync.Pack(builder) - CallableStart(builder) - CallableAddName(builder, nameOffset) - CallableAddIndex(builder, t.Index) - CallableAddArguments(builder, argumentsOffset) - CallableAddId(builder, idOffset) - CallableAddAlias(builder, aliasOffset) - CallableAddSync(builder, syncOffset) - CallableAddWatchdog(builder, t.Watchdog) - return CallableEnd(builder) -} - -func (rcv *Callable) UnPackTo(t *CallableT) { - t.Name = string(rcv.Name()) - t.Index = rcv.Index() - argumentsLength := rcv.ArgumentsLength() - t.Arguments = make([]string, argumentsLength) - for j := 0; j < argumentsLength; j++ { - t.Arguments[j] = string(rcv.Arguments(j)) - } - t.Id = string(rcv.Id()) - t.Alias = string(rcv.Alias()) - t.Sync = rcv.Sync(nil).UnPack() - t.Watchdog = rcv.Watchdog() -} - -func (rcv *Callable) UnPack() *CallableT { - if rcv == nil { return nil } - t := &CallableT{} - rcv.UnPackTo(t) - return t -} - -type Callable struct { - _tab flatbuffers.Table -} - -func GetRootAsCallable(buf []byte, offset flatbuffers.UOffsetT) *Callable { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Callable{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCallable(buf []byte, offset flatbuffers.UOffsetT) *Callable { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Callable{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Callable) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Callable) Table() flatbuffers.Table { - return rcv._tab -} - -/// singleton (callable factory name) -func (rcv *Callable) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// singleton (callable factory name) -/// call index 1 (highest) to maximum type range (default: 0 = lowest) -func (rcv *Callable) Index() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// call index 1 (highest) to maximum type range (default: 0 = lowest) -func (rcv *Callable) MutateIndex(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -/// values to initialize the callable -func (rcv *Callable) Arguments(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Callable) ArgumentsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// values to initialize the callable -/// desired callable ID (digits only, if unused - recommented - ID will set by system) -func (rcv *Callable) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// desired callable ID (digits only, if unused - recommented - ID will set by system) -/// alias, human readable callable ID -func (rcv *Callable) Alias() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// alias, human readable callable ID -/// sync points to get callables in order -func (rcv *Callable) Sync(obj *SyncPoints) *SyncPoints { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SyncPoints) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// sync points to get callables in order -/// influence task and hardware watchdog handling -func (rcv *Callable) Watchdog() CallableWdgConfig { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return CallableWdgConfig(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 3 -} - -/// influence task and hardware watchdog handling -func (rcv *Callable) MutateWatchdog(n CallableWdgConfig) bool { - return rcv._tab.MutateInt8Slot(16, int8(n)) -} - -func CallableStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func CallableAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func CallableAddIndex(builder *flatbuffers.Builder, index uint32) { - builder.PrependUint32Slot(1, index, 0) -} -func CallableAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) -} -func CallableStartArgumentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CallableAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(id), 0) -} -func CallableAddAlias(builder *flatbuffers.Builder, alias flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(alias), 0) -} -func CallableAddSync(builder *flatbuffers.Builder, sync flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(sync), 0) -} -func CallableAddWatchdog(builder *flatbuffers.Builder, watchdog CallableWdgConfig) { - builder.PrependInt8Slot(6, int8(watchdog), 3) -} -func CallableEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Callable, executes a job defined by regarding app +type CallableT struct { + Name string + Index uint32 + Arguments []string + Id string + Alias string + Sync *SyncPointsT + Watchdog CallableWdgConfig +} + +func (t *CallableT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + argumentsOffset := flatbuffers.UOffsetT(0) + if t.Arguments != nil { + argumentsLength := len(t.Arguments) + argumentsOffsets := make([]flatbuffers.UOffsetT, argumentsLength) + for j := 0; j < argumentsLength; j++ { + argumentsOffsets[j] = builder.CreateString(t.Arguments[j]) + } + CallableStartArgumentsVector(builder, argumentsLength) + for j := argumentsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(argumentsOffsets[j]) + } + argumentsOffset = builder.EndVector(argumentsLength) + } + idOffset := builder.CreateString(t.Id) + aliasOffset := builder.CreateString(t.Alias) + syncOffset := t.Sync.Pack(builder) + CallableStart(builder) + CallableAddName(builder, nameOffset) + CallableAddIndex(builder, t.Index) + CallableAddArguments(builder, argumentsOffset) + CallableAddId(builder, idOffset) + CallableAddAlias(builder, aliasOffset) + CallableAddSync(builder, syncOffset) + CallableAddWatchdog(builder, t.Watchdog) + return CallableEnd(builder) +} + +func (rcv *Callable) UnPackTo(t *CallableT) { + t.Name = string(rcv.Name()) + t.Index = rcv.Index() + argumentsLength := rcv.ArgumentsLength() + t.Arguments = make([]string, argumentsLength) + for j := 0; j < argumentsLength; j++ { + t.Arguments[j] = string(rcv.Arguments(j)) + } + t.Id = string(rcv.Id()) + t.Alias = string(rcv.Alias()) + t.Sync = rcv.Sync(nil).UnPack() + t.Watchdog = rcv.Watchdog() +} + +func (rcv *Callable) UnPack() *CallableT { + if rcv == nil { return nil } + t := &CallableT{} + rcv.UnPackTo(t) + return t +} + +type Callable struct { + _tab flatbuffers.Table +} + +func GetRootAsCallable(buf []byte, offset flatbuffers.UOffsetT) *Callable { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Callable{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCallable(buf []byte, offset flatbuffers.UOffsetT) *Callable { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Callable{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Callable) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Callable) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of callable factory provided by an installed app +func (rcv *Callable) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of callable factory provided by an installed app +/// Run index to specify the call sequence, alternatively to the use of synchronization points +/// Notes: +/// - The run index ranges from 1 (high) to maximum of data type (low) +/// - Using of run index cause disabling of synchronization points of this callable +/// - Using no synchronization points and run index value '0' cause that this callable run together with other, same configured callables, unordered at the end of the task +func (rcv *Callable) Index() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Run index to specify the call sequence, alternatively to the use of synchronization points +/// Notes: +/// - The run index ranges from 1 (high) to maximum of data type (low) +/// - Using of run index cause disabling of synchronization points of this callable +/// - Using no synchronization points and run index value '0' cause that this callable run together with other, same configured callables, unordered at the end of the task +func (rcv *Callable) MutateIndex(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// List of arguments to create the callable, for further information see application description of the callable factory +func (rcv *Callable) Arguments(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Callable) ArgumentsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of arguments to create the callable, for further information see application description of the callable factory +/// Callable ID, used as reference, which is assigned automatically by the Scheduler [0-9]+ +func (rcv *Callable) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Callable ID, used as reference, which is assigned automatically by the Scheduler [0-9]+ +/// Alias of callable, human readable replacement of callable ID +/// The alias have match to the Data Layer compliance guide lines meaning any alphanumeric character are allowed [a-zA-Z_][a-zA-Z0-9-._]+ +func (rcv *Callable) Alias() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Alias of callable, human readable replacement of callable ID +/// The alias have match to the Data Layer compliance guide lines meaning any alphanumeric character are allowed [a-zA-Z_][a-zA-Z0-9-._]+ +/// Synchronization points to specify the call sequence, alternatively to the use of run index +/// Notes: +/// - Using of run index cause disabling of synchronization points of this callable +/// - Using no synchronization points and run index value '0' cause that this callable run together with other, same configured callables, unordered at the end of the task +func (rcv *Callable) Sync(obj *SyncPoints) *SyncPoints { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SyncPoints) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Synchronization points to specify the call sequence, alternatively to the use of run index +/// Notes: +/// - Using of run index cause disabling of synchronization points of this callable +/// - Using no synchronization points and run index value '0' cause that this callable run together with other, same configured callables, unordered at the end of the task +/// Requirement of the callable that a watchdog is present +func (rcv *Callable) Watchdog() CallableWdgConfig { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return CallableWdgConfig(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 3 +} + +/// Requirement of the callable that a watchdog is present +func (rcv *Callable) MutateWatchdog(n CallableWdgConfig) bool { + return rcv._tab.MutateInt8Slot(16, int8(n)) +} + +func CallableStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func CallableAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func CallableAddIndex(builder *flatbuffers.Builder, index uint32) { + builder.PrependUint32Slot(1, index, 0) +} +func CallableAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) +} +func CallableStartArgumentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CallableAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(id), 0) +} +func CallableAddAlias(builder *flatbuffers.Builder, alias flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(alias), 0) +} +func CallableAddSync(builder *flatbuffers.Builder, sync flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(sync), 0) +} +func CallableAddWatchdog(builder *flatbuffers.Builder, watchdog CallableWdgConfig) { + builder.PrependInt8Slot(6, int8(watchdog), 3) +} +func CallableEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/CallableConfiguration.go b/pkg/fbs/common/scheduler/fbs/CallableConfiguration.go index 00dde46..fa62513 100644 --- a/pkg/fbs/common/scheduler/fbs/CallableConfiguration.go +++ b/pkg/fbs/common/scheduler/fbs/CallableConfiguration.go @@ -1,186 +1,187 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CallableConfigurationT struct { - Alias string - Sync *SyncPointsT - Arguments []string - Watchdog CallableWdgConfig - Task *TaskSpecsT -} - -func (t *CallableConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - aliasOffset := builder.CreateString(t.Alias) - syncOffset := t.Sync.Pack(builder) - argumentsOffset := flatbuffers.UOffsetT(0) - if t.Arguments != nil { - argumentsLength := len(t.Arguments) - argumentsOffsets := make([]flatbuffers.UOffsetT, argumentsLength) - for j := 0; j < argumentsLength; j++ { - argumentsOffsets[j] = builder.CreateString(t.Arguments[j]) - } - CallableConfigurationStartArgumentsVector(builder, argumentsLength) - for j := argumentsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(argumentsOffsets[j]) - } - argumentsOffset = builder.EndVector(argumentsLength) - } - taskOffset := t.Task.Pack(builder) - CallableConfigurationStart(builder) - CallableConfigurationAddAlias(builder, aliasOffset) - CallableConfigurationAddSync(builder, syncOffset) - CallableConfigurationAddArguments(builder, argumentsOffset) - CallableConfigurationAddWatchdog(builder, t.Watchdog) - CallableConfigurationAddTask(builder, taskOffset) - return CallableConfigurationEnd(builder) -} - -func (rcv *CallableConfiguration) UnPackTo(t *CallableConfigurationT) { - t.Alias = string(rcv.Alias()) - t.Sync = rcv.Sync(nil).UnPack() - argumentsLength := rcv.ArgumentsLength() - t.Arguments = make([]string, argumentsLength) - for j := 0; j < argumentsLength; j++ { - t.Arguments[j] = string(rcv.Arguments(j)) - } - t.Watchdog = rcv.Watchdog() - t.Task = rcv.Task(nil).UnPack() -} - -func (rcv *CallableConfiguration) UnPack() *CallableConfigurationT { - if rcv == nil { return nil } - t := &CallableConfigurationT{} - rcv.UnPackTo(t) - return t -} - -type CallableConfiguration struct { - _tab flatbuffers.Table -} - -func GetRootAsCallableConfiguration(buf []byte, offset flatbuffers.UOffsetT) *CallableConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CallableConfiguration{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCallableConfiguration(buf []byte, offset flatbuffers.UOffsetT) *CallableConfiguration { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CallableConfiguration{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CallableConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CallableConfiguration) Table() flatbuffers.Table { - return rcv._tab -} - -/// user defined name of callable to label it human readable, must be unique for these factory -func (rcv *CallableConfiguration) Alias() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// user defined name of callable to label it human readable, must be unique for these factory -/// sync points to get callables in order -func (rcv *CallableConfiguration) Sync(obj *SyncPoints) *SyncPoints { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SyncPoints) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// sync points to get callables in order -/// values to initialize the callable -func (rcv *CallableConfiguration) Arguments(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *CallableConfiguration) ArgumentsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// values to initialize the callable -/// influence task and hardware watchdog handling -func (rcv *CallableConfiguration) Watchdog() CallableWdgConfig { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return CallableWdgConfig(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 3 -} - -/// influence task and hardware watchdog handling -func (rcv *CallableConfiguration) MutateWatchdog(n CallableWdgConfig) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -/// task specifications to defined callable environment, used as defaults -func (rcv *CallableConfiguration) Task(obj *TaskSpecs) *TaskSpecs { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(TaskSpecs) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// task specifications to defined callable environment, used as defaults -func CallableConfigurationStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func CallableConfigurationAddAlias(builder *flatbuffers.Builder, alias flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(alias), 0) -} -func CallableConfigurationAddSync(builder *flatbuffers.Builder, sync flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(sync), 0) -} -func CallableConfigurationAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) -} -func CallableConfigurationStartArgumentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CallableConfigurationAddWatchdog(builder *flatbuffers.Builder, watchdog CallableWdgConfig) { - builder.PrependInt8Slot(3, int8(watchdog), 3) -} -func CallableConfigurationAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(task), 0) -} -func CallableConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Callable configurations of a callable factory +type CallableConfigurationT struct { + Alias string + Sync *SyncPointsT + Arguments []string + Watchdog CallableWdgConfig + Task *TaskSpecsT +} + +func (t *CallableConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + aliasOffset := builder.CreateString(t.Alias) + syncOffset := t.Sync.Pack(builder) + argumentsOffset := flatbuffers.UOffsetT(0) + if t.Arguments != nil { + argumentsLength := len(t.Arguments) + argumentsOffsets := make([]flatbuffers.UOffsetT, argumentsLength) + for j := 0; j < argumentsLength; j++ { + argumentsOffsets[j] = builder.CreateString(t.Arguments[j]) + } + CallableConfigurationStartArgumentsVector(builder, argumentsLength) + for j := argumentsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(argumentsOffsets[j]) + } + argumentsOffset = builder.EndVector(argumentsLength) + } + taskOffset := t.Task.Pack(builder) + CallableConfigurationStart(builder) + CallableConfigurationAddAlias(builder, aliasOffset) + CallableConfigurationAddSync(builder, syncOffset) + CallableConfigurationAddArguments(builder, argumentsOffset) + CallableConfigurationAddWatchdog(builder, t.Watchdog) + CallableConfigurationAddTask(builder, taskOffset) + return CallableConfigurationEnd(builder) +} + +func (rcv *CallableConfiguration) UnPackTo(t *CallableConfigurationT) { + t.Alias = string(rcv.Alias()) + t.Sync = rcv.Sync(nil).UnPack() + argumentsLength := rcv.ArgumentsLength() + t.Arguments = make([]string, argumentsLength) + for j := 0; j < argumentsLength; j++ { + t.Arguments[j] = string(rcv.Arguments(j)) + } + t.Watchdog = rcv.Watchdog() + t.Task = rcv.Task(nil).UnPack() +} + +func (rcv *CallableConfiguration) UnPack() *CallableConfigurationT { + if rcv == nil { return nil } + t := &CallableConfigurationT{} + rcv.UnPackTo(t) + return t +} + +type CallableConfiguration struct { + _tab flatbuffers.Table +} + +func GetRootAsCallableConfiguration(buf []byte, offset flatbuffers.UOffsetT) *CallableConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CallableConfiguration{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCallableConfiguration(buf []byte, offset flatbuffers.UOffsetT) *CallableConfiguration { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CallableConfiguration{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CallableConfiguration) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CallableConfiguration) Table() flatbuffers.Table { + return rcv._tab +} + +/// Alias of callable, human readable replacement of callable ID, any alphanumeric character [a-zA-Z_][a-zA-Z0-9-._]+ +func (rcv *CallableConfiguration) Alias() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Alias of callable, human readable replacement of callable ID, any alphanumeric character [a-zA-Z_][a-zA-Z0-9-._]+ +/// Synchronization points to specify the call sequence +func (rcv *CallableConfiguration) Sync(obj *SyncPoints) *SyncPoints { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SyncPoints) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Synchronization points to specify the call sequence +/// List of arguments to create the callable, for further information see application description of the callable factory +func (rcv *CallableConfiguration) Arguments(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *CallableConfiguration) ArgumentsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// List of arguments to create the callable, for further information see application description of the callable factory +/// Requirement of the callable that a watchdog is present +func (rcv *CallableConfiguration) Watchdog() CallableWdgConfig { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return CallableWdgConfig(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 3 +} + +/// Requirement of the callable that a watchdog is present +func (rcv *CallableConfiguration) MutateWatchdog(n CallableWdgConfig) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +/// Task specifications to defined callable environment +func (rcv *CallableConfiguration) Task(obj *TaskSpecs) *TaskSpecs { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(TaskSpecs) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Task specifications to defined callable environment +func CallableConfigurationStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func CallableConfigurationAddAlias(builder *flatbuffers.Builder, alias flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(alias), 0) +} +func CallableConfigurationAddSync(builder *flatbuffers.Builder, sync flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(sync), 0) +} +func CallableConfigurationAddArguments(builder *flatbuffers.Builder, arguments flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(arguments), 0) +} +func CallableConfigurationStartArgumentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CallableConfigurationAddWatchdog(builder *flatbuffers.Builder, watchdog CallableWdgConfig) { + builder.PrependInt8Slot(3, int8(watchdog), 3) +} +func CallableConfigurationAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(task), 0) +} +func CallableConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/CallableConfigurations.go b/pkg/fbs/common/scheduler/fbs/CallableConfigurations.go index bea72f1..2a8de42 100644 --- a/pkg/fbs/common/scheduler/fbs/CallableConfigurations.go +++ b/pkg/fbs/common/scheduler/fbs/CallableConfigurations.go @@ -1,110 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CallableConfigurationsT struct { - Configurations []*CallableConfigurationT -} - -func (t *CallableConfigurationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - configurationsOffset := flatbuffers.UOffsetT(0) - if t.Configurations != nil { - configurationsLength := len(t.Configurations) - configurationsOffsets := make([]flatbuffers.UOffsetT, configurationsLength) - for j := 0; j < configurationsLength; j++ { - configurationsOffsets[j] = t.Configurations[j].Pack(builder) - } - CallableConfigurationsStartConfigurationsVector(builder, configurationsLength) - for j := configurationsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(configurationsOffsets[j]) - } - configurationsOffset = builder.EndVector(configurationsLength) - } - CallableConfigurationsStart(builder) - CallableConfigurationsAddConfigurations(builder, configurationsOffset) - return CallableConfigurationsEnd(builder) -} - -func (rcv *CallableConfigurations) UnPackTo(t *CallableConfigurationsT) { - configurationsLength := rcv.ConfigurationsLength() - t.Configurations = make([]*CallableConfigurationT, configurationsLength) - for j := 0; j < configurationsLength; j++ { - x := CallableConfiguration{} - rcv.Configurations(&x, j) - t.Configurations[j] = x.UnPack() - } -} - -func (rcv *CallableConfigurations) UnPack() *CallableConfigurationsT { - if rcv == nil { return nil } - t := &CallableConfigurationsT{} - rcv.UnPackTo(t) - return t -} - -type CallableConfigurations struct { - _tab flatbuffers.Table -} - -func GetRootAsCallableConfigurations(buf []byte, offset flatbuffers.UOffsetT) *CallableConfigurations { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CallableConfigurations{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCallableConfigurations(buf []byte, offset flatbuffers.UOffsetT) *CallableConfigurations { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CallableConfigurations{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CallableConfigurations) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CallableConfigurations) Table() flatbuffers.Table { - return rcv._tab -} - -/// callable configurations of a factory -func (rcv *CallableConfigurations) Configurations(obj *CallableConfiguration, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *CallableConfigurations) ConfigurationsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// callable configurations of a factory -func CallableConfigurationsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CallableConfigurationsAddConfigurations(builder *flatbuffers.Builder, configurations flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(configurations), 0) -} -func CallableConfigurationsStartConfigurationsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CallableConfigurationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Callable configurations of a callable factory +type CallableConfigurationsT struct { + Configurations []*CallableConfigurationT +} + +func (t *CallableConfigurationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + configurationsOffset := flatbuffers.UOffsetT(0) + if t.Configurations != nil { + configurationsLength := len(t.Configurations) + configurationsOffsets := make([]flatbuffers.UOffsetT, configurationsLength) + for j := 0; j < configurationsLength; j++ { + configurationsOffsets[j] = t.Configurations[j].Pack(builder) + } + CallableConfigurationsStartConfigurationsVector(builder, configurationsLength) + for j := configurationsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(configurationsOffsets[j]) + } + configurationsOffset = builder.EndVector(configurationsLength) + } + CallableConfigurationsStart(builder) + CallableConfigurationsAddConfigurations(builder, configurationsOffset) + return CallableConfigurationsEnd(builder) +} + +func (rcv *CallableConfigurations) UnPackTo(t *CallableConfigurationsT) { + configurationsLength := rcv.ConfigurationsLength() + t.Configurations = make([]*CallableConfigurationT, configurationsLength) + for j := 0; j < configurationsLength; j++ { + x := CallableConfiguration{} + rcv.Configurations(&x, j) + t.Configurations[j] = x.UnPack() + } +} + +func (rcv *CallableConfigurations) UnPack() *CallableConfigurationsT { + if rcv == nil { return nil } + t := &CallableConfigurationsT{} + rcv.UnPackTo(t) + return t +} + +type CallableConfigurations struct { + _tab flatbuffers.Table +} + +func GetRootAsCallableConfigurations(buf []byte, offset flatbuffers.UOffsetT) *CallableConfigurations { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CallableConfigurations{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCallableConfigurations(buf []byte, offset flatbuffers.UOffsetT) *CallableConfigurations { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CallableConfigurations{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CallableConfigurations) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CallableConfigurations) Table() flatbuffers.Table { + return rcv._tab +} + +/// Callable configurations of a callable factory +func (rcv *CallableConfigurations) Configurations(obj *CallableConfiguration, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *CallableConfigurations) ConfigurationsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Callable configurations of a callable factory +func CallableConfigurationsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CallableConfigurationsAddConfigurations(builder *flatbuffers.Builder, configurations flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(configurations), 0) +} +func CallableConfigurationsStartConfigurationsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CallableConfigurationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/CallableWdgConfig.go b/pkg/fbs/common/scheduler/fbs/CallableWdgConfig.go index fb36a16..6c20999 100644 --- a/pkg/fbs/common/scheduler/fbs/CallableWdgConfig.go +++ b/pkg/fbs/common/scheduler/fbs/CallableWdgConfig.go @@ -1,39 +1,40 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -/// WDG_HW_TASK = task and hardware watchdog activated (default) -/// WDG_HW = hardware watchdog acivated; don't care about task watchdog -/// WDG_NONE = neither task or hardware watchdog is needed -/// WDG_DEFAULT = don't care about neither task or hardware watchdog, use of default value -type CallableWdgConfig int8 - -const ( - CallableWdgConfigWDG_HW_TASK CallableWdgConfig = 0 - CallableWdgConfigWDG_HW CallableWdgConfig = 1 - CallableWdgConfigWDG_NONE CallableWdgConfig = 2 - CallableWdgConfigWDG_DEFAULT CallableWdgConfig = 3 -) - -var EnumNamesCallableWdgConfig = map[CallableWdgConfig]string{ - CallableWdgConfigWDG_HW_TASK: "WDG_HW_TASK", - CallableWdgConfigWDG_HW: "WDG_HW", - CallableWdgConfigWDG_NONE: "WDG_NONE", - CallableWdgConfigWDG_DEFAULT: "WDG_DEFAULT", -} - -var EnumValuesCallableWdgConfig = map[string]CallableWdgConfig{ - "WDG_HW_TASK": CallableWdgConfigWDG_HW_TASK, - "WDG_HW": CallableWdgConfigWDG_HW, - "WDG_NONE": CallableWdgConfigWDG_NONE, - "WDG_DEFAULT": CallableWdgConfigWDG_DEFAULT, -} - -func (v CallableWdgConfig) String() string { - if s, ok := EnumNamesCallableWdgConfig[v]; ok { - return s - } - return "CallableWdgConfig(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Requirement of the callable that a watchdog is present +type CallableWdgConfig int8 + +const ( + /// Task and hardware watchdog activated + CallableWdgConfigWDG_HW_TASK CallableWdgConfig = 0 + /// Hardware watchdog activated; don't care about task watchdog + CallableWdgConfigWDG_HW CallableWdgConfig = 1 + /// Neither task or hardware watchdog is needed + CallableWdgConfigWDG_NONE CallableWdgConfig = 2 + /// Don't care about neither task or hardware watchdog, use of default value + CallableWdgConfigWDG_DEFAULT CallableWdgConfig = 3 +) + +var EnumNamesCallableWdgConfig = map[CallableWdgConfig]string{ + CallableWdgConfigWDG_HW_TASK: "WDG_HW_TASK", + CallableWdgConfigWDG_HW: "WDG_HW", + CallableWdgConfigWDG_NONE: "WDG_NONE", + CallableWdgConfigWDG_DEFAULT: "WDG_DEFAULT", +} + +var EnumValuesCallableWdgConfig = map[string]CallableWdgConfig{ + "WDG_HW_TASK": CallableWdgConfigWDG_HW_TASK, + "WDG_HW": CallableWdgConfigWDG_HW, + "WDG_NONE": CallableWdgConfigWDG_NONE, + "WDG_DEFAULT": CallableWdgConfigWDG_DEFAULT, +} + +func (v CallableWdgConfig) String() string { + if s, ok := EnumNamesCallableWdgConfig[v]; ok { + return s + } + return "CallableWdgConfig(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/fbs/CpuInfo.go b/pkg/fbs/common/scheduler/fbs/CpuInfo.go index 90500b0..7ec1bfa 100644 --- a/pkg/fbs/common/scheduler/fbs/CpuInfo.go +++ b/pkg/fbs/common/scheduler/fbs/CpuInfo.go @@ -1,447 +1,447 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CpuInfoT struct { - CpuCoresTotal []uint32 - CpuCoresActive []uint32 - CpuCoresRealtime []uint32 - CpuCoresNonRealtime []uint32 - CpuCoreRealtimeMax int32 - CpuCoreRealtimeMin int32 - CpuCoreRealtimeDefault int32 - CpuCoreNonRealtimeMax int32 - CpuCoreNonRealtimeMin int32 - CpuCoreNonRealtimeDefault int32 - VariationId string - CpuCoreHwWdg uint32 - CpuCorePtpTimer uint32 - CpuCoreScheduler uint32 - CpuCoreAutomation uint32 -} - -func (t *CpuInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cpuCoresTotalOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresTotal != nil { - cpuCoresTotalLength := len(t.CpuCoresTotal) - CpuInfoStartCpuCoresTotalVector(builder, cpuCoresTotalLength) - for j := cpuCoresTotalLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresTotal[j]) - } - cpuCoresTotalOffset = builder.EndVector(cpuCoresTotalLength) - } - cpuCoresActiveOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresActive != nil { - cpuCoresActiveLength := len(t.CpuCoresActive) - CpuInfoStartCpuCoresActiveVector(builder, cpuCoresActiveLength) - for j := cpuCoresActiveLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresActive[j]) - } - cpuCoresActiveOffset = builder.EndVector(cpuCoresActiveLength) - } - cpuCoresRealtimeOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresRealtime != nil { - cpuCoresRealtimeLength := len(t.CpuCoresRealtime) - CpuInfoStartCpuCoresRealtimeVector(builder, cpuCoresRealtimeLength) - for j := cpuCoresRealtimeLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresRealtime[j]) - } - cpuCoresRealtimeOffset = builder.EndVector(cpuCoresRealtimeLength) - } - cpuCoresNonRealtimeOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresNonRealtime != nil { - cpuCoresNonRealtimeLength := len(t.CpuCoresNonRealtime) - CpuInfoStartCpuCoresNonRealtimeVector(builder, cpuCoresNonRealtimeLength) - for j := cpuCoresNonRealtimeLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresNonRealtime[j]) - } - cpuCoresNonRealtimeOffset = builder.EndVector(cpuCoresNonRealtimeLength) - } - variationIdOffset := builder.CreateString(t.VariationId) - CpuInfoStart(builder) - CpuInfoAddCpuCoresTotal(builder, cpuCoresTotalOffset) - CpuInfoAddCpuCoresActive(builder, cpuCoresActiveOffset) - CpuInfoAddCpuCoresRealtime(builder, cpuCoresRealtimeOffset) - CpuInfoAddCpuCoresNonRealtime(builder, cpuCoresNonRealtimeOffset) - CpuInfoAddCpuCoreRealtimeMax(builder, t.CpuCoreRealtimeMax) - CpuInfoAddCpuCoreRealtimeMin(builder, t.CpuCoreRealtimeMin) - CpuInfoAddCpuCoreRealtimeDefault(builder, t.CpuCoreRealtimeDefault) - CpuInfoAddCpuCoreNonRealtimeMax(builder, t.CpuCoreNonRealtimeMax) - CpuInfoAddCpuCoreNonRealtimeMin(builder, t.CpuCoreNonRealtimeMin) - CpuInfoAddCpuCoreNonRealtimeDefault(builder, t.CpuCoreNonRealtimeDefault) - CpuInfoAddVariationId(builder, variationIdOffset) - CpuInfoAddCpuCoreHwWdg(builder, t.CpuCoreHwWdg) - CpuInfoAddCpuCorePtpTimer(builder, t.CpuCorePtpTimer) - CpuInfoAddCpuCoreScheduler(builder, t.CpuCoreScheduler) - CpuInfoAddCpuCoreAutomation(builder, t.CpuCoreAutomation) - return CpuInfoEnd(builder) -} - -func (rcv *CpuInfo) UnPackTo(t *CpuInfoT) { - cpuCoresTotalLength := rcv.CpuCoresTotalLength() - t.CpuCoresTotal = make([]uint32, cpuCoresTotalLength) - for j := 0; j < cpuCoresTotalLength; j++ { - t.CpuCoresTotal[j] = rcv.CpuCoresTotal(j) - } - cpuCoresActiveLength := rcv.CpuCoresActiveLength() - t.CpuCoresActive = make([]uint32, cpuCoresActiveLength) - for j := 0; j < cpuCoresActiveLength; j++ { - t.CpuCoresActive[j] = rcv.CpuCoresActive(j) - } - cpuCoresRealtimeLength := rcv.CpuCoresRealtimeLength() - t.CpuCoresRealtime = make([]uint32, cpuCoresRealtimeLength) - for j := 0; j < cpuCoresRealtimeLength; j++ { - t.CpuCoresRealtime[j] = rcv.CpuCoresRealtime(j) - } - cpuCoresNonRealtimeLength := rcv.CpuCoresNonRealtimeLength() - t.CpuCoresNonRealtime = make([]uint32, cpuCoresNonRealtimeLength) - for j := 0; j < cpuCoresNonRealtimeLength; j++ { - t.CpuCoresNonRealtime[j] = rcv.CpuCoresNonRealtime(j) - } - t.CpuCoreRealtimeMax = rcv.CpuCoreRealtimeMax() - t.CpuCoreRealtimeMin = rcv.CpuCoreRealtimeMin() - t.CpuCoreRealtimeDefault = rcv.CpuCoreRealtimeDefault() - t.CpuCoreNonRealtimeMax = rcv.CpuCoreNonRealtimeMax() - t.CpuCoreNonRealtimeMin = rcv.CpuCoreNonRealtimeMin() - t.CpuCoreNonRealtimeDefault = rcv.CpuCoreNonRealtimeDefault() - t.VariationId = string(rcv.VariationId()) - t.CpuCoreHwWdg = rcv.CpuCoreHwWdg() - t.CpuCorePtpTimer = rcv.CpuCorePtpTimer() - t.CpuCoreScheduler = rcv.CpuCoreScheduler() - t.CpuCoreAutomation = rcv.CpuCoreAutomation() -} - -func (rcv *CpuInfo) UnPack() *CpuInfoT { - if rcv == nil { return nil } - t := &CpuInfoT{} - rcv.UnPackTo(t) - return t -} - -type CpuInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CpuInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CpuInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CpuInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CpuInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CpuInfo) CpuCoresTotal(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresTotalLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresTotal(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoresActive(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresActiveLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresActive(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoresRealtime(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresRealtimeLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresRealtime(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoresNonRealtime(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresNonRealtimeLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresNonRealtime(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoreRealtimeMax() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreRealtimeMax(n int32) bool { - return rcv._tab.MutateInt32Slot(12, n) -} - -func (rcv *CpuInfo) CpuCoreRealtimeMin() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreRealtimeMin(n int32) bool { - return rcv._tab.MutateInt32Slot(14, n) -} - -func (rcv *CpuInfo) CpuCoreRealtimeDefault() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreRealtimeDefault(n int32) bool { - return rcv._tab.MutateInt32Slot(16, n) -} - -func (rcv *CpuInfo) CpuCoreNonRealtimeMax() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMax(n int32) bool { - return rcv._tab.MutateInt32Slot(18, n) -} - -func (rcv *CpuInfo) CpuCoreNonRealtimeMin() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMin(n int32) bool { - return rcv._tab.MutateInt32Slot(20, n) -} - -func (rcv *CpuInfo) CpuCoreNonRealtimeDefault() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreNonRealtimeDefault(n int32) bool { - return rcv._tab.MutateInt32Slot(22, n) -} - -func (rcv *CpuInfo) VariationId() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CpuInfo) CpuCoreHwWdg() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoreHwWdg(n uint32) bool { - return rcv._tab.MutateUint32Slot(26, n) -} - -func (rcv *CpuInfo) CpuCorePtpTimer() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCorePtpTimer(n uint32) bool { - return rcv._tab.MutateUint32Slot(28, n) -} - -func (rcv *CpuInfo) CpuCoreScheduler() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoreScheduler(n uint32) bool { - return rcv._tab.MutateUint32Slot(30, n) -} - -func (rcv *CpuInfo) CpuCoreAutomation() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoreAutomation(n uint32) bool { - return rcv._tab.MutateUint32Slot(32, n) -} - -func CpuInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(15) -} -func CpuInfoAddCpuCoresTotal(builder *flatbuffers.Builder, cpuCoresTotal flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cpuCoresTotal), 0) -} -func CpuInfoStartCpuCoresTotalVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoresActive(builder *flatbuffers.Builder, cpuCoresActive flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(cpuCoresActive), 0) -} -func CpuInfoStartCpuCoresActiveVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoresRealtime(builder *flatbuffers.Builder, cpuCoresRealtime flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(cpuCoresRealtime), 0) -} -func CpuInfoStartCpuCoresRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoresNonRealtime(builder *flatbuffers.Builder, cpuCoresNonRealtime flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(cpuCoresNonRealtime), 0) -} -func CpuInfoStartCpuCoresNonRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoreRealtimeMax(builder *flatbuffers.Builder, cpuCoreRealtimeMax int32) { - builder.PrependInt32Slot(4, cpuCoreRealtimeMax, -1) -} -func CpuInfoAddCpuCoreRealtimeMin(builder *flatbuffers.Builder, cpuCoreRealtimeMin int32) { - builder.PrependInt32Slot(5, cpuCoreRealtimeMin, -1) -} -func CpuInfoAddCpuCoreRealtimeDefault(builder *flatbuffers.Builder, cpuCoreRealtimeDefault int32) { - builder.PrependInt32Slot(6, cpuCoreRealtimeDefault, -1) -} -func CpuInfoAddCpuCoreNonRealtimeMax(builder *flatbuffers.Builder, cpuCoreNonRealtimeMax int32) { - builder.PrependInt32Slot(7, cpuCoreNonRealtimeMax, -1) -} -func CpuInfoAddCpuCoreNonRealtimeMin(builder *flatbuffers.Builder, cpuCoreNonRealtimeMin int32) { - builder.PrependInt32Slot(8, cpuCoreNonRealtimeMin, -1) -} -func CpuInfoAddCpuCoreNonRealtimeDefault(builder *flatbuffers.Builder, cpuCoreNonRealtimeDefault int32) { - builder.PrependInt32Slot(9, cpuCoreNonRealtimeDefault, -1) -} -func CpuInfoAddVariationId(builder *flatbuffers.Builder, variationId flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(variationId), 0) -} -func CpuInfoAddCpuCoreHwWdg(builder *flatbuffers.Builder, cpuCoreHwWdg uint32) { - builder.PrependUint32Slot(11, cpuCoreHwWdg, 0) -} -func CpuInfoAddCpuCorePtpTimer(builder *flatbuffers.Builder, cpuCorePtpTimer uint32) { - builder.PrependUint32Slot(12, cpuCorePtpTimer, 0) -} -func CpuInfoAddCpuCoreScheduler(builder *flatbuffers.Builder, cpuCoreScheduler uint32) { - builder.PrependUint32Slot(13, cpuCoreScheduler, 0) -} -func CpuInfoAddCpuCoreAutomation(builder *flatbuffers.Builder, cpuCoreAutomation uint32) { - builder.PrependUint32Slot(14, cpuCoreAutomation, 0) -} -func CpuInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CpuInfoT struct { + CpuCoresTotal []uint32 + CpuCoresActive []uint32 + CpuCoresRealtime []uint32 + CpuCoresNonRealtime []uint32 + CpuCoreRealtimeMax int32 + CpuCoreRealtimeMin int32 + CpuCoreRealtimeDefault int32 + CpuCoreNonRealtimeMax int32 + CpuCoreNonRealtimeMin int32 + CpuCoreNonRealtimeDefault int32 + VariationId string + CpuCoreHwWdg uint32 + CpuCorePtpTimer uint32 + CpuCoreScheduler uint32 + CpuCoreAutomation uint32 +} + +func (t *CpuInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cpuCoresTotalOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresTotal != nil { + cpuCoresTotalLength := len(t.CpuCoresTotal) + CpuInfoStartCpuCoresTotalVector(builder, cpuCoresTotalLength) + for j := cpuCoresTotalLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresTotal[j]) + } + cpuCoresTotalOffset = builder.EndVector(cpuCoresTotalLength) + } + cpuCoresActiveOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresActive != nil { + cpuCoresActiveLength := len(t.CpuCoresActive) + CpuInfoStartCpuCoresActiveVector(builder, cpuCoresActiveLength) + for j := cpuCoresActiveLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresActive[j]) + } + cpuCoresActiveOffset = builder.EndVector(cpuCoresActiveLength) + } + cpuCoresRealtimeOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresRealtime != nil { + cpuCoresRealtimeLength := len(t.CpuCoresRealtime) + CpuInfoStartCpuCoresRealtimeVector(builder, cpuCoresRealtimeLength) + for j := cpuCoresRealtimeLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresRealtime[j]) + } + cpuCoresRealtimeOffset = builder.EndVector(cpuCoresRealtimeLength) + } + cpuCoresNonRealtimeOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresNonRealtime != nil { + cpuCoresNonRealtimeLength := len(t.CpuCoresNonRealtime) + CpuInfoStartCpuCoresNonRealtimeVector(builder, cpuCoresNonRealtimeLength) + for j := cpuCoresNonRealtimeLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresNonRealtime[j]) + } + cpuCoresNonRealtimeOffset = builder.EndVector(cpuCoresNonRealtimeLength) + } + variationIdOffset := builder.CreateString(t.VariationId) + CpuInfoStart(builder) + CpuInfoAddCpuCoresTotal(builder, cpuCoresTotalOffset) + CpuInfoAddCpuCoresActive(builder, cpuCoresActiveOffset) + CpuInfoAddCpuCoresRealtime(builder, cpuCoresRealtimeOffset) + CpuInfoAddCpuCoresNonRealtime(builder, cpuCoresNonRealtimeOffset) + CpuInfoAddCpuCoreRealtimeMax(builder, t.CpuCoreRealtimeMax) + CpuInfoAddCpuCoreRealtimeMin(builder, t.CpuCoreRealtimeMin) + CpuInfoAddCpuCoreRealtimeDefault(builder, t.CpuCoreRealtimeDefault) + CpuInfoAddCpuCoreNonRealtimeMax(builder, t.CpuCoreNonRealtimeMax) + CpuInfoAddCpuCoreNonRealtimeMin(builder, t.CpuCoreNonRealtimeMin) + CpuInfoAddCpuCoreNonRealtimeDefault(builder, t.CpuCoreNonRealtimeDefault) + CpuInfoAddVariationId(builder, variationIdOffset) + CpuInfoAddCpuCoreHwWdg(builder, t.CpuCoreHwWdg) + CpuInfoAddCpuCorePtpTimer(builder, t.CpuCorePtpTimer) + CpuInfoAddCpuCoreScheduler(builder, t.CpuCoreScheduler) + CpuInfoAddCpuCoreAutomation(builder, t.CpuCoreAutomation) + return CpuInfoEnd(builder) +} + +func (rcv *CpuInfo) UnPackTo(t *CpuInfoT) { + cpuCoresTotalLength := rcv.CpuCoresTotalLength() + t.CpuCoresTotal = make([]uint32, cpuCoresTotalLength) + for j := 0; j < cpuCoresTotalLength; j++ { + t.CpuCoresTotal[j] = rcv.CpuCoresTotal(j) + } + cpuCoresActiveLength := rcv.CpuCoresActiveLength() + t.CpuCoresActive = make([]uint32, cpuCoresActiveLength) + for j := 0; j < cpuCoresActiveLength; j++ { + t.CpuCoresActive[j] = rcv.CpuCoresActive(j) + } + cpuCoresRealtimeLength := rcv.CpuCoresRealtimeLength() + t.CpuCoresRealtime = make([]uint32, cpuCoresRealtimeLength) + for j := 0; j < cpuCoresRealtimeLength; j++ { + t.CpuCoresRealtime[j] = rcv.CpuCoresRealtime(j) + } + cpuCoresNonRealtimeLength := rcv.CpuCoresNonRealtimeLength() + t.CpuCoresNonRealtime = make([]uint32, cpuCoresNonRealtimeLength) + for j := 0; j < cpuCoresNonRealtimeLength; j++ { + t.CpuCoresNonRealtime[j] = rcv.CpuCoresNonRealtime(j) + } + t.CpuCoreRealtimeMax = rcv.CpuCoreRealtimeMax() + t.CpuCoreRealtimeMin = rcv.CpuCoreRealtimeMin() + t.CpuCoreRealtimeDefault = rcv.CpuCoreRealtimeDefault() + t.CpuCoreNonRealtimeMax = rcv.CpuCoreNonRealtimeMax() + t.CpuCoreNonRealtimeMin = rcv.CpuCoreNonRealtimeMin() + t.CpuCoreNonRealtimeDefault = rcv.CpuCoreNonRealtimeDefault() + t.VariationId = string(rcv.VariationId()) + t.CpuCoreHwWdg = rcv.CpuCoreHwWdg() + t.CpuCorePtpTimer = rcv.CpuCorePtpTimer() + t.CpuCoreScheduler = rcv.CpuCoreScheduler() + t.CpuCoreAutomation = rcv.CpuCoreAutomation() +} + +func (rcv *CpuInfo) UnPack() *CpuInfoT { + if rcv == nil { return nil } + t := &CpuInfoT{} + rcv.UnPackTo(t) + return t +} + +type CpuInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CpuInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CpuInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CpuInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CpuInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CpuInfo) CpuCoresTotal(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresTotalLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCoresTotal(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *CpuInfo) CpuCoresActive(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresActiveLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCoresActive(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *CpuInfo) CpuCoresRealtime(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresRealtimeLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCoresRealtime(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *CpuInfo) CpuCoresNonRealtime(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresNonRealtimeLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCoresNonRealtime(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func (rcv *CpuInfo) CpuCoreRealtimeMax() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +func (rcv *CpuInfo) MutateCpuCoreRealtimeMax(n int32) bool { + return rcv._tab.MutateInt32Slot(12, n) +} + +func (rcv *CpuInfo) CpuCoreRealtimeMin() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +func (rcv *CpuInfo) MutateCpuCoreRealtimeMin(n int32) bool { + return rcv._tab.MutateInt32Slot(14, n) +} + +func (rcv *CpuInfo) CpuCoreRealtimeDefault() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +func (rcv *CpuInfo) MutateCpuCoreRealtimeDefault(n int32) bool { + return rcv._tab.MutateInt32Slot(16, n) +} + +func (rcv *CpuInfo) CpuCoreNonRealtimeMax() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMax(n int32) bool { + return rcv._tab.MutateInt32Slot(18, n) +} + +func (rcv *CpuInfo) CpuCoreNonRealtimeMin() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMin(n int32) bool { + return rcv._tab.MutateInt32Slot(20, n) +} + +func (rcv *CpuInfo) CpuCoreNonRealtimeDefault() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +func (rcv *CpuInfo) MutateCpuCoreNonRealtimeDefault(n int32) bool { + return rcv._tab.MutateInt32Slot(22, n) +} + +func (rcv *CpuInfo) VariationId() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CpuInfo) CpuCoreHwWdg() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCoreHwWdg(n uint32) bool { + return rcv._tab.MutateUint32Slot(26, n) +} + +func (rcv *CpuInfo) CpuCorePtpTimer() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCorePtpTimer(n uint32) bool { + return rcv._tab.MutateUint32Slot(28, n) +} + +func (rcv *CpuInfo) CpuCoreScheduler() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCoreScheduler(n uint32) bool { + return rcv._tab.MutateUint32Slot(30, n) +} + +func (rcv *CpuInfo) CpuCoreAutomation() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *CpuInfo) MutateCpuCoreAutomation(n uint32) bool { + return rcv._tab.MutateUint32Slot(32, n) +} + +func CpuInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(15) +} +func CpuInfoAddCpuCoresTotal(builder *flatbuffers.Builder, cpuCoresTotal flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cpuCoresTotal), 0) +} +func CpuInfoStartCpuCoresTotalVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoresActive(builder *flatbuffers.Builder, cpuCoresActive flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(cpuCoresActive), 0) +} +func CpuInfoStartCpuCoresActiveVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoresRealtime(builder *flatbuffers.Builder, cpuCoresRealtime flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(cpuCoresRealtime), 0) +} +func CpuInfoStartCpuCoresRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoresNonRealtime(builder *flatbuffers.Builder, cpuCoresNonRealtime flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(cpuCoresNonRealtime), 0) +} +func CpuInfoStartCpuCoresNonRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoreRealtimeMax(builder *flatbuffers.Builder, cpuCoreRealtimeMax int32) { + builder.PrependInt32Slot(4, cpuCoreRealtimeMax, -1) +} +func CpuInfoAddCpuCoreRealtimeMin(builder *flatbuffers.Builder, cpuCoreRealtimeMin int32) { + builder.PrependInt32Slot(5, cpuCoreRealtimeMin, -1) +} +func CpuInfoAddCpuCoreRealtimeDefault(builder *flatbuffers.Builder, cpuCoreRealtimeDefault int32) { + builder.PrependInt32Slot(6, cpuCoreRealtimeDefault, -1) +} +func CpuInfoAddCpuCoreNonRealtimeMax(builder *flatbuffers.Builder, cpuCoreNonRealtimeMax int32) { + builder.PrependInt32Slot(7, cpuCoreNonRealtimeMax, -1) +} +func CpuInfoAddCpuCoreNonRealtimeMin(builder *flatbuffers.Builder, cpuCoreNonRealtimeMin int32) { + builder.PrependInt32Slot(8, cpuCoreNonRealtimeMin, -1) +} +func CpuInfoAddCpuCoreNonRealtimeDefault(builder *flatbuffers.Builder, cpuCoreNonRealtimeDefault int32) { + builder.PrependInt32Slot(9, cpuCoreNonRealtimeDefault, -1) +} +func CpuInfoAddVariationId(builder *flatbuffers.Builder, variationId flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(variationId), 0) +} +func CpuInfoAddCpuCoreHwWdg(builder *flatbuffers.Builder, cpuCoreHwWdg uint32) { + builder.PrependUint32Slot(11, cpuCoreHwWdg, 0) +} +func CpuInfoAddCpuCorePtpTimer(builder *flatbuffers.Builder, cpuCorePtpTimer uint32) { + builder.PrependUint32Slot(12, cpuCorePtpTimer, 0) +} +func CpuInfoAddCpuCoreScheduler(builder *flatbuffers.Builder, cpuCoreScheduler uint32) { + builder.PrependUint32Slot(13, cpuCoreScheduler, 0) +} +func CpuInfoAddCpuCoreAutomation(builder *flatbuffers.Builder, cpuCoreAutomation uint32) { + builder.PrependUint32Slot(14, cpuCoreAutomation, 0) +} +func CpuInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/CurrentErrorReaction.go b/pkg/fbs/common/scheduler/fbs/CurrentErrorReaction.go index 4bedc3a..68c1326 100644 --- a/pkg/fbs/common/scheduler/fbs/CurrentErrorReaction.go +++ b/pkg/fbs/common/scheduler/fbs/CurrentErrorReaction.go @@ -1,29 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CurrentErrorReaction int8 - -const ( - CurrentErrorReactionSTOP CurrentErrorReaction = 0 - CurrentErrorReactionCONTINUE CurrentErrorReaction = 1 -) - -var EnumNamesCurrentErrorReaction = map[CurrentErrorReaction]string{ - CurrentErrorReactionSTOP: "STOP", - CurrentErrorReactionCONTINUE: "CONTINUE", -} - -var EnumValuesCurrentErrorReaction = map[string]CurrentErrorReaction{ - "STOP": CurrentErrorReactionSTOP, - "CONTINUE": CurrentErrorReactionCONTINUE, -} - -func (v CurrentErrorReaction) String() string { - if s, ok := EnumNamesCurrentErrorReaction[v]; ok { - return s - } - return "CurrentErrorReaction(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Error reaction in case of not all configured components are available on startup +type CurrentErrorReaction int8 + +const ( + /// The Scheduler aborts further startup + CurrentErrorReactionSTOP CurrentErrorReaction = 0 + /// The Scheduler continues the startup without the missing components + CurrentErrorReactionCONTINUE CurrentErrorReaction = 1 +) + +var EnumNamesCurrentErrorReaction = map[CurrentErrorReaction]string{ + CurrentErrorReactionSTOP: "STOP", + CurrentErrorReactionCONTINUE: "CONTINUE", +} + +var EnumValuesCurrentErrorReaction = map[string]CurrentErrorReaction{ + "STOP": CurrentErrorReactionSTOP, + "CONTINUE": CurrentErrorReactionCONTINUE, +} + +func (v CurrentErrorReaction) String() string { + if s, ok := EnumNamesCurrentErrorReaction[v]; ok { + return s + } + return "CurrentErrorReaction(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/fbs/CurrentState.go b/pkg/fbs/common/scheduler/fbs/CurrentState.go index c9689c0..e421915 100644 --- a/pkg/fbs/common/scheduler/fbs/CurrentState.go +++ b/pkg/fbs/common/scheduler/fbs/CurrentState.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CurrentState int8 - -const ( - CurrentStateRUN CurrentState = 0 - CurrentStateCONFIG CurrentState = 1 - CurrentStateINIT CurrentState = 2 - CurrentStateEXIT CurrentState = 3 -) - -var EnumNamesCurrentState = map[CurrentState]string{ - CurrentStateRUN: "RUN", - CurrentStateCONFIG: "CONFIG", - CurrentStateINIT: "INIT", - CurrentStateEXIT: "EXIT", -} - -var EnumValuesCurrentState = map[string]CurrentState{ - "RUN": CurrentStateRUN, - "CONFIG": CurrentStateCONFIG, - "INIT": CurrentStateINIT, - "EXIT": CurrentStateEXIT, -} - -func (v CurrentState) String() string { - if s, ok := EnumNamesCurrentState[v]; ok { - return s - } - return "CurrentState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type CurrentState int8 + +const ( + CurrentStateRUN CurrentState = 0 + CurrentStateCONFIG CurrentState = 1 + CurrentStateINIT CurrentState = 2 + CurrentStateEXIT CurrentState = 3 +) + +var EnumNamesCurrentState = map[CurrentState]string{ + CurrentStateRUN: "RUN", + CurrentStateCONFIG: "CONFIG", + CurrentStateINIT: "INIT", + CurrentStateEXIT: "EXIT", +} + +var EnumValuesCurrentState = map[string]CurrentState{ + "RUN": CurrentStateRUN, + "CONFIG": CurrentStateCONFIG, + "INIT": CurrentStateINIT, + "EXIT": CurrentStateEXIT, +} + +func (v CurrentState) String() string { + if s, ok := EnumNamesCurrentState[v]; ok { + return s + } + return "CurrentState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/fbs/CurrentTrigger.go b/pkg/fbs/common/scheduler/fbs/CurrentTrigger.go index 3bf5f33..7401383 100644 --- a/pkg/fbs/common/scheduler/fbs/CurrentTrigger.go +++ b/pkg/fbs/common/scheduler/fbs/CurrentTrigger.go @@ -1,29 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CurrentTrigger int8 - -const ( - CurrentTriggerTIMER CurrentTrigger = 0 - CurrentTriggerINTERRUPT CurrentTrigger = 1 -) - -var EnumNamesCurrentTrigger = map[CurrentTrigger]string{ - CurrentTriggerTIMER: "TIMER", - CurrentTriggerINTERRUPT: "INTERRUPT", -} - -var EnumValuesCurrentTrigger = map[string]CurrentTrigger{ - "TIMER": CurrentTriggerTIMER, - "INTERRUPT": CurrentTriggerINTERRUPT, -} - -func (v CurrentTrigger) String() string { - if s, ok := EnumNamesCurrentTrigger[v]; ok { - return s - } - return "CurrentTrigger(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Types of trigger sources of Scheduler +type CurrentTrigger int8 + +const ( + /// Trigger of Scheduler is cause by a timer interrupt + CurrentTriggerTIMER CurrentTrigger = 0 + /// Trigger of Scheduler is cause by a FPGA interrupt + CurrentTriggerINTERRUPT CurrentTrigger = 1 +) + +var EnumNamesCurrentTrigger = map[CurrentTrigger]string{ + CurrentTriggerTIMER: "TIMER", + CurrentTriggerINTERRUPT: "INTERRUPT", +} + +var EnumValuesCurrentTrigger = map[string]CurrentTrigger{ + "TIMER": CurrentTriggerTIMER, + "INTERRUPT": CurrentTriggerINTERRUPT, +} + +func (v CurrentTrigger) String() string { + if s, ok := EnumNamesCurrentTrigger[v]; ok { + return s + } + return "CurrentTrigger(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/fbs/DataRt.go b/pkg/fbs/common/scheduler/fbs/DataRt.go index bdcd95c..a3045db 100644 --- a/pkg/fbs/common/scheduler/fbs/DataRt.go +++ b/pkg/fbs/common/scheduler/fbs/DataRt.go @@ -1,96 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DataRtT struct { - StartTime uint64 - Counter uint64 -} - -func (t *DataRtT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DataRtStart(builder) - DataRtAddStartTime(builder, t.StartTime) - DataRtAddCounter(builder, t.Counter) - return DataRtEnd(builder) -} - -func (rcv *DataRt) UnPackTo(t *DataRtT) { - t.StartTime = rcv.StartTime() - t.Counter = rcv.Counter() -} - -func (rcv *DataRt) UnPack() *DataRtT { - if rcv == nil { return nil } - t := &DataRtT{} - rcv.UnPackTo(t) - return t -} - -type DataRt struct { - _tab flatbuffers.Table -} - -func GetRootAsDataRt(buf []byte, offset flatbuffers.UOffsetT) *DataRt { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DataRt{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDataRt(buf []byte, offset flatbuffers.UOffsetT) *DataRt { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DataRt{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DataRt) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DataRt) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DataRt) StartTime() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DataRt) MutateStartTime(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func (rcv *DataRt) Counter() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DataRt) MutateCounter(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func DataRtStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func DataRtAddStartTime(builder *flatbuffers.Builder, startTime uint64) { - builder.PrependUint64Slot(0, startTime, 0) -} -func DataRtAddCounter(builder *flatbuffers.Builder, counter uint64) { - builder.PrependUint64Slot(1, counter, 0) -} -func DataRtEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Information about the current cycle of the task (related to real-time usage) +type DataRtT struct { + StartTime uint64 + Counter uint64 +} + +func (t *DataRtT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DataRtStart(builder) + DataRtAddStartTime(builder, t.StartTime) + DataRtAddCounter(builder, t.Counter) + return DataRtEnd(builder) +} + +func (rcv *DataRt) UnPackTo(t *DataRtT) { + t.StartTime = rcv.StartTime() + t.Counter = rcv.Counter() +} + +func (rcv *DataRt) UnPack() *DataRtT { + if rcv == nil { return nil } + t := &DataRtT{} + rcv.UnPackTo(t) + return t +} + +type DataRt struct { + _tab flatbuffers.Table +} + +func GetRootAsDataRt(buf []byte, offset flatbuffers.UOffsetT) *DataRt { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DataRt{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDataRt(buf []byte, offset flatbuffers.UOffsetT) *DataRt { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DataRt{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DataRt) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DataRt) Table() flatbuffers.Table { + return rcv._tab +} + +/// Start time of the task in [µs] +func (rcv *DataRt) StartTime() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Start time of the task in [µs] +func (rcv *DataRt) MutateStartTime(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +/// Count of execution of the task +func (rcv *DataRt) Counter() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Count of execution of the task +func (rcv *DataRt) MutateCounter(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +func DataRtStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DataRtAddStartTime(builder *flatbuffers.Builder, startTime uint64) { + builder.PrependUint64Slot(0, startTime, 0) +} +func DataRtAddCounter(builder *flatbuffers.Builder, counter uint64) { + builder.PrependUint64Slot(1, counter, 0) +} +func DataRtEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Duration.go b/pkg/fbs/common/scheduler/fbs/Duration.go index 0fee711..29c64fa 100644 --- a/pkg/fbs/common/scheduler/fbs/Duration.go +++ b/pkg/fbs/common/scheduler/fbs/Duration.go @@ -1,132 +1,141 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DurationT struct { - Minimum uint64 - Maximum uint64 - Average uint64 - Active bool -} - -func (t *DurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DurationStart(builder) - DurationAddMinimum(builder, t.Minimum) - DurationAddMaximum(builder, t.Maximum) - DurationAddAverage(builder, t.Average) - DurationAddActive(builder, t.Active) - return DurationEnd(builder) -} - -func (rcv *Duration) UnPackTo(t *DurationT) { - t.Minimum = rcv.Minimum() - t.Maximum = rcv.Maximum() - t.Average = rcv.Average() - t.Active = rcv.Active() -} - -func (rcv *Duration) UnPack() *DurationT { - if rcv == nil { return nil } - t := &DurationT{} - rcv.UnPackTo(t) - return t -} - -type Duration struct { - _tab flatbuffers.Table -} - -func GetRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Duration{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Duration{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Duration) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Duration) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Duration) Minimum() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Duration) MutateMinimum(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func (rcv *Duration) Maximum() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Duration) MutateMaximum(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func (rcv *Duration) Average() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Duration) MutateAverage(n uint64) bool { - return rcv._tab.MutateUint64Slot(8, n) -} - -func (rcv *Duration) Active() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Duration) MutateActive(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func DurationStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func DurationAddMinimum(builder *flatbuffers.Builder, minimum uint64) { - builder.PrependUint64Slot(0, minimum, 0) -} -func DurationAddMaximum(builder *flatbuffers.Builder, maximum uint64) { - builder.PrependUint64Slot(1, maximum, 0) -} -func DurationAddAverage(builder *flatbuffers.Builder, average uint64) { - builder.PrependUint64Slot(2, average, 0) -} -func DurationAddActive(builder *flatbuffers.Builder, active bool) { - builder.PrependBoolSlot(3, active, false) -} -func DurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Duration measurement of execution of a task +type DurationT struct { + Minimum uint64 + Maximum uint64 + Average uint64 + Active bool +} + +func (t *DurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DurationStart(builder) + DurationAddMinimum(builder, t.Minimum) + DurationAddMaximum(builder, t.Maximum) + DurationAddAverage(builder, t.Average) + DurationAddActive(builder, t.Active) + return DurationEnd(builder) +} + +func (rcv *Duration) UnPackTo(t *DurationT) { + t.Minimum = rcv.Minimum() + t.Maximum = rcv.Maximum() + t.Average = rcv.Average() + t.Active = rcv.Active() +} + +func (rcv *Duration) UnPack() *DurationT { + if rcv == nil { return nil } + t := &DurationT{} + rcv.UnPackTo(t) + return t +} + +type Duration struct { + _tab flatbuffers.Table +} + +func GetRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Duration{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Duration{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Duration) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Duration) Table() flatbuffers.Table { + return rcv._tab +} + +/// Minimum value of duration measurement in [µs] +func (rcv *Duration) Minimum() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Minimum value of duration measurement in [µs] +func (rcv *Duration) MutateMinimum(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +/// Maximum value of duration measurement in [µs] +func (rcv *Duration) Maximum() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Maximum value of duration measurement in [µs] +func (rcv *Duration) MutateMaximum(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +/// Average of values of duration measurement in [µs] +func (rcv *Duration) Average() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Average of values of duration measurement in [µs] +func (rcv *Duration) MutateAverage(n uint64) bool { + return rcv._tab.MutateUint64Slot(8, n) +} + +/// Indication whether the duration measurement of execution is active (true) or not (false) +func (rcv *Duration) Active() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Indication whether the duration measurement of execution is active (true) or not (false) +func (rcv *Duration) MutateActive(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func DurationStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func DurationAddMinimum(builder *flatbuffers.Builder, minimum uint64) { + builder.PrependUint64Slot(0, minimum, 0) +} +func DurationAddMaximum(builder *flatbuffers.Builder, maximum uint64) { + builder.PrependUint64Slot(1, maximum, 0) +} +func DurationAddAverage(builder *flatbuffers.Builder, average uint64) { + builder.PrependUint64Slot(2, average, 0) +} +func DurationAddActive(builder *flatbuffers.Builder, active bool) { + builder.PrependBoolSlot(3, active, false) +} +func DurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/DurationRt.go b/pkg/fbs/common/scheduler/fbs/DurationRt.go index 4551ec9..c5c6995 100644 --- a/pkg/fbs/common/scheduler/fbs/DurationRt.go +++ b/pkg/fbs/common/scheduler/fbs/DurationRt.go @@ -1,204 +1,221 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DurationRtT struct { - Total uint64 - Task uint64 - Other uint64 - Equidistance uint64 - Deviation uint64 - Counter uint64 - Samplerate uint64 - Remaining uint64 -} - -func (t *DurationRtT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DurationRtStart(builder) - DurationRtAddTotal(builder, t.Total) - DurationRtAddTask(builder, t.Task) - DurationRtAddOther(builder, t.Other) - DurationRtAddEquidistance(builder, t.Equidistance) - DurationRtAddDeviation(builder, t.Deviation) - DurationRtAddCounter(builder, t.Counter) - DurationRtAddSamplerate(builder, t.Samplerate) - DurationRtAddRemaining(builder, t.Remaining) - return DurationRtEnd(builder) -} - -func (rcv *DurationRt) UnPackTo(t *DurationRtT) { - t.Total = rcv.Total() - t.Task = rcv.Task() - t.Other = rcv.Other() - t.Equidistance = rcv.Equidistance() - t.Deviation = rcv.Deviation() - t.Counter = rcv.Counter() - t.Samplerate = rcv.Samplerate() - t.Remaining = rcv.Remaining() -} - -func (rcv *DurationRt) UnPack() *DurationRtT { - if rcv == nil { return nil } - t := &DurationRtT{} - rcv.UnPackTo(t) - return t -} - -type DurationRt struct { - _tab flatbuffers.Table -} - -func GetRootAsDurationRt(buf []byte, offset flatbuffers.UOffsetT) *DurationRt { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DurationRt{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDurationRt(buf []byte, offset flatbuffers.UOffsetT) *DurationRt { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DurationRt{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DurationRt) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DurationRt) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DurationRt) Total() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateTotal(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func (rcv *DurationRt) Task() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateTask(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func (rcv *DurationRt) Other() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateOther(n uint64) bool { - return rcv._tab.MutateUint64Slot(8, n) -} - -func (rcv *DurationRt) Equidistance() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateEquidistance(n uint64) bool { - return rcv._tab.MutateUint64Slot(10, n) -} - -func (rcv *DurationRt) Deviation() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateDeviation(n uint64) bool { - return rcv._tab.MutateUint64Slot(12, n) -} - -func (rcv *DurationRt) Counter() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateCounter(n uint64) bool { - return rcv._tab.MutateUint64Slot(14, n) -} - -func (rcv *DurationRt) Samplerate() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateSamplerate(n uint64) bool { - return rcv._tab.MutateUint64Slot(16, n) -} - -func (rcv *DurationRt) Remaining() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DurationRt) MutateRemaining(n uint64) bool { - return rcv._tab.MutateUint64Slot(18, n) -} - -func DurationRtStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func DurationRtAddTotal(builder *flatbuffers.Builder, total uint64) { - builder.PrependUint64Slot(0, total, 0) -} -func DurationRtAddTask(builder *flatbuffers.Builder, task uint64) { - builder.PrependUint64Slot(1, task, 0) -} -func DurationRtAddOther(builder *flatbuffers.Builder, other uint64) { - builder.PrependUint64Slot(2, other, 0) -} -func DurationRtAddEquidistance(builder *flatbuffers.Builder, equidistance uint64) { - builder.PrependUint64Slot(3, equidistance, 0) -} -func DurationRtAddDeviation(builder *flatbuffers.Builder, deviation uint64) { - builder.PrependUint64Slot(4, deviation, 0) -} -func DurationRtAddCounter(builder *flatbuffers.Builder, counter uint64) { - builder.PrependUint64Slot(5, counter, 0) -} -func DurationRtAddSamplerate(builder *flatbuffers.Builder, samplerate uint64) { - builder.PrependUint64Slot(6, samplerate, 0) -} -func DurationRtAddRemaining(builder *flatbuffers.Builder, remaining uint64) { - builder.PrependUint64Slot(7, remaining, 0) -} -func DurationRtEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Duration measurement of execution of the task (related to real-time usage) +type DurationRtT struct { + Total uint64 + Task uint64 + Other uint64 + Equidistance uint64 + Deviation uint64 + Counter uint64 + Samplerate uint64 + Remaining uint64 +} + +func (t *DurationRtT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DurationRtStart(builder) + DurationRtAddTotal(builder, t.Total) + DurationRtAddTask(builder, t.Task) + DurationRtAddOther(builder, t.Other) + DurationRtAddEquidistance(builder, t.Equidistance) + DurationRtAddDeviation(builder, t.Deviation) + DurationRtAddCounter(builder, t.Counter) + DurationRtAddSamplerate(builder, t.Samplerate) + DurationRtAddRemaining(builder, t.Remaining) + return DurationRtEnd(builder) +} + +func (rcv *DurationRt) UnPackTo(t *DurationRtT) { + t.Total = rcv.Total() + t.Task = rcv.Task() + t.Other = rcv.Other() + t.Equidistance = rcv.Equidistance() + t.Deviation = rcv.Deviation() + t.Counter = rcv.Counter() + t.Samplerate = rcv.Samplerate() + t.Remaining = rcv.Remaining() +} + +func (rcv *DurationRt) UnPack() *DurationRtT { + if rcv == nil { return nil } + t := &DurationRtT{} + rcv.UnPackTo(t) + return t +} + +type DurationRt struct { + _tab flatbuffers.Table +} + +func GetRootAsDurationRt(buf []byte, offset flatbuffers.UOffsetT) *DurationRt { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DurationRt{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDurationRt(buf []byte, offset flatbuffers.UOffsetT) *DurationRt { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DurationRt{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DurationRt) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DurationRt) Table() flatbuffers.Table { + return rcv._tab +} + +/// Total duration of the task including interruptions by other tasks in [µs] +func (rcv *DurationRt) Total() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Total duration of the task including interruptions by other tasks in [µs] +func (rcv *DurationRt) MutateTotal(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +/// Task duration of the task without interruptions by other tasks in [µs] +func (rcv *DurationRt) Task() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Task duration of the task without interruptions by other tasks in [µs] +func (rcv *DurationRt) MutateTask(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +/// Duration of interruptions of the task by other tasks in [µs] +func (rcv *DurationRt) Other() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Duration of interruptions of the task by other tasks in [µs] +func (rcv *DurationRt) MutateOther(n uint64) bool { + return rcv._tab.MutateUint64Slot(8, n) +} + +/// Equidistance of the task from one cycle to an other in [µs] +func (rcv *DurationRt) Equidistance() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Equidistance of the task from one cycle to an other in [µs] +func (rcv *DurationRt) MutateEquidistance(n uint64) bool { + return rcv._tab.MutateUint64Slot(10, n) +} + +/// Deviation of the task to the expected start time in [µs] +func (rcv *DurationRt) Deviation() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Deviation of the task to the expected start time in [µs] +func (rcv *DurationRt) MutateDeviation(n uint64) bool { + return rcv._tab.MutateUint64Slot(12, n) +} + +/// Count of execution of the task +func (rcv *DurationRt) Counter() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Count of execution of the task +func (rcv *DurationRt) MutateCounter(n uint64) bool { + return rcv._tab.MutateUint64Slot(14, n) +} + +/// Sample rate resp. cycle time of the task in [µs] +func (rcv *DurationRt) Samplerate() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Sample rate resp. cycle time of the task in [µs] +func (rcv *DurationRt) MutateSamplerate(n uint64) bool { + return rcv._tab.MutateUint64Slot(16, n) +} + +/// Remaining time from the end of the task to the begin of the next cycle of it in [µs] +func (rcv *DurationRt) Remaining() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Remaining time from the end of the task to the begin of the next cycle of it in [µs] +func (rcv *DurationRt) MutateRemaining(n uint64) bool { + return rcv._tab.MutateUint64Slot(18, n) +} + +func DurationRtStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func DurationRtAddTotal(builder *flatbuffers.Builder, total uint64) { + builder.PrependUint64Slot(0, total, 0) +} +func DurationRtAddTask(builder *flatbuffers.Builder, task uint64) { + builder.PrependUint64Slot(1, task, 0) +} +func DurationRtAddOther(builder *flatbuffers.Builder, other uint64) { + builder.PrependUint64Slot(2, other, 0) +} +func DurationRtAddEquidistance(builder *flatbuffers.Builder, equidistance uint64) { + builder.PrependUint64Slot(3, equidistance, 0) +} +func DurationRtAddDeviation(builder *flatbuffers.Builder, deviation uint64) { + builder.PrependUint64Slot(4, deviation, 0) +} +func DurationRtAddCounter(builder *flatbuffers.Builder, counter uint64) { + builder.PrependUint64Slot(5, counter, 0) +} +func DurationRtAddSamplerate(builder *flatbuffers.Builder, samplerate uint64) { + builder.PrependUint64Slot(6, samplerate, 0) +} +func DurationRtAddRemaining(builder *flatbuffers.Builder, remaining uint64) { + builder.PrependUint64Slot(7, remaining, 0) +} +func DurationRtEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/DurationTimer.go b/pkg/fbs/common/scheduler/fbs/DurationTimer.go index 85e34da..a50ba62 100644 --- a/pkg/fbs/common/scheduler/fbs/DurationTimer.go +++ b/pkg/fbs/common/scheduler/fbs/DurationTimer.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DurationTimerT struct { - Timer Timer -} - -func (t *DurationTimerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DurationTimerStart(builder) - DurationTimerAddTimer(builder, t.Timer) - return DurationTimerEnd(builder) -} - -func (rcv *DurationTimer) UnPackTo(t *DurationTimerT) { - t.Timer = rcv.Timer() -} - -func (rcv *DurationTimer) UnPack() *DurationTimerT { - if rcv == nil { return nil } - t := &DurationTimerT{} - rcv.UnPackTo(t) - return t -} - -type DurationTimer struct { - _tab flatbuffers.Table -} - -func GetRootAsDurationTimer(buf []byte, offset flatbuffers.UOffsetT) *DurationTimer { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DurationTimer{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDurationTimer(buf []byte, offset flatbuffers.UOffsetT) *DurationTimer { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DurationTimer{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DurationTimer) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DurationTimer) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DurationTimer) Timer() Timer { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Timer(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 4 -} - -func (rcv *DurationTimer) MutateTimer(n Timer) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func DurationTimerStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func DurationTimerAddTimer(builder *flatbuffers.Builder, timer Timer) { - builder.PrependInt8Slot(0, int8(timer), 4) -} -func DurationTimerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Type selector of duration measurement +type DurationTimerT struct { + Timer Timer +} + +func (t *DurationTimerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DurationTimerStart(builder) + DurationTimerAddTimer(builder, t.Timer) + return DurationTimerEnd(builder) +} + +func (rcv *DurationTimer) UnPackTo(t *DurationTimerT) { + t.Timer = rcv.Timer() +} + +func (rcv *DurationTimer) UnPack() *DurationTimerT { + if rcv == nil { return nil } + t := &DurationTimerT{} + rcv.UnPackTo(t) + return t +} + +type DurationTimer struct { + _tab flatbuffers.Table +} + +func GetRootAsDurationTimer(buf []byte, offset flatbuffers.UOffsetT) *DurationTimer { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DurationTimer{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDurationTimer(buf []byte, offset flatbuffers.UOffsetT) *DurationTimer { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DurationTimer{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DurationTimer) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DurationTimer) Table() flatbuffers.Table { + return rcv._tab +} + +/// Type selector of duration measurement +func (rcv *DurationTimer) Timer() Timer { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Timer(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 4 +} + +/// Type selector of duration measurement +func (rcv *DurationTimer) MutateTimer(n Timer) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func DurationTimerStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func DurationTimerAddTimer(builder *flatbuffers.Builder, timer Timer) { + builder.PrependInt8Slot(0, int8(timer), 4) +} +func DurationTimerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Histogram.go b/pkg/fbs/common/scheduler/fbs/Histogram.go index dd15878..17dfa34 100644 --- a/pkg/fbs/common/scheduler/fbs/Histogram.go +++ b/pkg/fbs/common/scheduler/fbs/Histogram.go @@ -1,126 +1,131 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type HistogramT struct { - Scale uint64 - Values []uint64 -} - -func (t *HistogramT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valuesOffset := flatbuffers.UOffsetT(0) - if t.Values != nil { - valuesLength := len(t.Values) - HistogramStartValuesVector(builder, valuesLength) - for j := valuesLength - 1; j >= 0; j-- { - builder.PrependUint64(t.Values[j]) - } - valuesOffset = builder.EndVector(valuesLength) - } - HistogramStart(builder) - HistogramAddScale(builder, t.Scale) - HistogramAddValues(builder, valuesOffset) - return HistogramEnd(builder) -} - -func (rcv *Histogram) UnPackTo(t *HistogramT) { - t.Scale = rcv.Scale() - valuesLength := rcv.ValuesLength() - t.Values = make([]uint64, valuesLength) - for j := 0; j < valuesLength; j++ { - t.Values[j] = rcv.Values(j) - } -} - -func (rcv *Histogram) UnPack() *HistogramT { - if rcv == nil { return nil } - t := &HistogramT{} - rcv.UnPackTo(t) - return t -} - -type Histogram struct { - _tab flatbuffers.Table -} - -func GetRootAsHistogram(buf []byte, offset flatbuffers.UOffsetT) *Histogram { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Histogram{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsHistogram(buf []byte, offset flatbuffers.UOffsetT) *Histogram { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Histogram{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Histogram) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Histogram) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Histogram) Scale() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Histogram) MutateScale(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func (rcv *Histogram) Values(j int) uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *Histogram) ValuesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Histogram) MutateValues(j int, n uint64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func HistogramStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func HistogramAddScale(builder *flatbuffers.Builder, scale uint64) { - builder.PrependUint64Slot(0, scale, 0) -} -func HistogramAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(values), 0) -} -func HistogramStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func HistogramEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Timing histogram +type HistogramT struct { + Scale uint64 + Values []uint64 +} + +func (t *HistogramT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valuesOffset := flatbuffers.UOffsetT(0) + if t.Values != nil { + valuesLength := len(t.Values) + HistogramStartValuesVector(builder, valuesLength) + for j := valuesLength - 1; j >= 0; j-- { + builder.PrependUint64(t.Values[j]) + } + valuesOffset = builder.EndVector(valuesLength) + } + HistogramStart(builder) + HistogramAddScale(builder, t.Scale) + HistogramAddValues(builder, valuesOffset) + return HistogramEnd(builder) +} + +func (rcv *Histogram) UnPackTo(t *HistogramT) { + t.Scale = rcv.Scale() + valuesLength := rcv.ValuesLength() + t.Values = make([]uint64, valuesLength) + for j := 0; j < valuesLength; j++ { + t.Values[j] = rcv.Values(j) + } +} + +func (rcv *Histogram) UnPack() *HistogramT { + if rcv == nil { return nil } + t := &HistogramT{} + rcv.UnPackTo(t) + return t +} + +type Histogram struct { + _tab flatbuffers.Table +} + +func GetRootAsHistogram(buf []byte, offset flatbuffers.UOffsetT) *Histogram { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Histogram{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsHistogram(buf []byte, offset flatbuffers.UOffsetT) *Histogram { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Histogram{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Histogram) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Histogram) Table() flatbuffers.Table { + return rcv._tab +} + +/// Scale of one element of timing histogram in [µs] +func (rcv *Histogram) Scale() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// Scale of one element of timing histogram in [µs] +func (rcv *Histogram) MutateScale(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +/// Count of hits within the ranges of the scale elements of the timing values +func (rcv *Histogram) Values(j int) uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *Histogram) ValuesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Count of hits within the ranges of the scale elements of the timing values +func (rcv *Histogram) MutateValues(j int, n uint64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func HistogramStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func HistogramAddScale(builder *flatbuffers.Builder, scale uint64) { + builder.PrependUint64Slot(0, scale, 0) +} +func HistogramAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(values), 0) +} +func HistogramStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func HistogramEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Program.go b/pkg/fbs/common/scheduler/fbs/Program.go index 65faeef..f904fb1 100644 --- a/pkg/fbs/common/scheduler/fbs/Program.go +++ b/pkg/fbs/common/scheduler/fbs/Program.go @@ -1,150 +1,150 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - common__scheduler__watchdog__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/watchdog/fbs" -) - -type ProgramT struct { - Task *TaskT - Callables []*CallableT - Watchdog *common__scheduler__watchdog__fbs.WatchdogT -} - -func (t *ProgramT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - taskOffset := t.Task.Pack(builder) - callablesOffset := flatbuffers.UOffsetT(0) - if t.Callables != nil { - callablesLength := len(t.Callables) - callablesOffsets := make([]flatbuffers.UOffsetT, callablesLength) - for j := 0; j < callablesLength; j++ { - callablesOffsets[j] = t.Callables[j].Pack(builder) - } - ProgramStartCallablesVector(builder, callablesLength) - for j := callablesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(callablesOffsets[j]) - } - callablesOffset = builder.EndVector(callablesLength) - } - watchdogOffset := t.Watchdog.Pack(builder) - ProgramStart(builder) - ProgramAddTask(builder, taskOffset) - ProgramAddCallables(builder, callablesOffset) - ProgramAddWatchdog(builder, watchdogOffset) - return ProgramEnd(builder) -} - -func (rcv *Program) UnPackTo(t *ProgramT) { - t.Task = rcv.Task(nil).UnPack() - callablesLength := rcv.CallablesLength() - t.Callables = make([]*CallableT, callablesLength) - for j := 0; j < callablesLength; j++ { - x := Callable{} - rcv.Callables(&x, j) - t.Callables[j] = x.UnPack() - } - t.Watchdog = rcv.Watchdog(nil).UnPack() -} - -func (rcv *Program) UnPack() *ProgramT { - if rcv == nil { return nil } - t := &ProgramT{} - rcv.UnPackTo(t) - return t -} - -type Program struct { - _tab flatbuffers.Table -} - -func GetRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Program{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Program{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Program) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Program) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Program) Task(obj *Task) *Task { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Task) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Program) Callables(obj *Callable, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Program) CallablesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Program) Watchdog(obj *common__scheduler__watchdog__fbs.Watchdog) *common__scheduler__watchdog__fbs.Watchdog { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(common__scheduler__watchdog__fbs.Watchdog) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func ProgramStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func ProgramAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(task), 0) -} -func ProgramAddCallables(builder *flatbuffers.Builder, callables flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(callables), 0) -} -func ProgramStartCallablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProgramAddWatchdog(builder *flatbuffers.Builder, watchdog flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(watchdog), 0) -} -func ProgramEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + common__scheduler__watchdog__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/watchdog/fbs" +) + +type ProgramT struct { + Task *TaskT + Callables []*CallableT + Watchdog *common__scheduler__watchdog__fbs.WatchdogT +} + +func (t *ProgramT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + taskOffset := t.Task.Pack(builder) + callablesOffset := flatbuffers.UOffsetT(0) + if t.Callables != nil { + callablesLength := len(t.Callables) + callablesOffsets := make([]flatbuffers.UOffsetT, callablesLength) + for j := 0; j < callablesLength; j++ { + callablesOffsets[j] = t.Callables[j].Pack(builder) + } + ProgramStartCallablesVector(builder, callablesLength) + for j := callablesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(callablesOffsets[j]) + } + callablesOffset = builder.EndVector(callablesLength) + } + watchdogOffset := t.Watchdog.Pack(builder) + ProgramStart(builder) + ProgramAddTask(builder, taskOffset) + ProgramAddCallables(builder, callablesOffset) + ProgramAddWatchdog(builder, watchdogOffset) + return ProgramEnd(builder) +} + +func (rcv *Program) UnPackTo(t *ProgramT) { + t.Task = rcv.Task(nil).UnPack() + callablesLength := rcv.CallablesLength() + t.Callables = make([]*CallableT, callablesLength) + for j := 0; j < callablesLength; j++ { + x := Callable{} + rcv.Callables(&x, j) + t.Callables[j] = x.UnPack() + } + t.Watchdog = rcv.Watchdog(nil).UnPack() +} + +func (rcv *Program) UnPack() *ProgramT { + if rcv == nil { return nil } + t := &ProgramT{} + rcv.UnPackTo(t) + return t +} + +type Program struct { + _tab flatbuffers.Table +} + +func GetRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Program{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Program{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Program) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Program) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Program) Task(obj *Task) *Task { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Task) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Program) Callables(obj *Callable, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Program) CallablesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Program) Watchdog(obj *common__scheduler__watchdog__fbs.Watchdog) *common__scheduler__watchdog__fbs.Watchdog { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(common__scheduler__watchdog__fbs.Watchdog) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func ProgramStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func ProgramAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(task), 0) +} +func ProgramAddCallables(builder *flatbuffers.Builder, callables flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(callables), 0) +} +func ProgramStartCallablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProgramAddWatchdog(builder *flatbuffers.Builder, watchdog flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(watchdog), 0) +} +func ProgramEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Programs.go b/pkg/fbs/common/scheduler/fbs/Programs.go index 7a44bc4..f05a0f5 100644 --- a/pkg/fbs/common/scheduler/fbs/Programs.go +++ b/pkg/fbs/common/scheduler/fbs/Programs.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProgramsT struct { - Programs []*ProgramT -} - -func (t *ProgramsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - programsOffset := flatbuffers.UOffsetT(0) - if t.Programs != nil { - programsLength := len(t.Programs) - programsOffsets := make([]flatbuffers.UOffsetT, programsLength) - for j := 0; j < programsLength; j++ { - programsOffsets[j] = t.Programs[j].Pack(builder) - } - ProgramsStartProgramsVector(builder, programsLength) - for j := programsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(programsOffsets[j]) - } - programsOffset = builder.EndVector(programsLength) - } - ProgramsStart(builder) - ProgramsAddPrograms(builder, programsOffset) - return ProgramsEnd(builder) -} - -func (rcv *Programs) UnPackTo(t *ProgramsT) { - programsLength := rcv.ProgramsLength() - t.Programs = make([]*ProgramT, programsLength) - for j := 0; j < programsLength; j++ { - x := Program{} - rcv.Programs(&x, j) - t.Programs[j] = x.UnPack() - } -} - -func (rcv *Programs) UnPack() *ProgramsT { - if rcv == nil { return nil } - t := &ProgramsT{} - rcv.UnPackTo(t) - return t -} - -type Programs struct { - _tab flatbuffers.Table -} - -func GetRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Programs{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Programs{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Programs) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Programs) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Programs) Programs(obj *Program, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Programs) ProgramsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ProgramsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ProgramsAddPrograms(builder *flatbuffers.Builder, programs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(programs), 0) -} -func ProgramsStartProgramsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProgramsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ProgramsT struct { + Programs []*ProgramT +} + +func (t *ProgramsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + programsOffset := flatbuffers.UOffsetT(0) + if t.Programs != nil { + programsLength := len(t.Programs) + programsOffsets := make([]flatbuffers.UOffsetT, programsLength) + for j := 0; j < programsLength; j++ { + programsOffsets[j] = t.Programs[j].Pack(builder) + } + ProgramsStartProgramsVector(builder, programsLength) + for j := programsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(programsOffsets[j]) + } + programsOffset = builder.EndVector(programsLength) + } + ProgramsStart(builder) + ProgramsAddPrograms(builder, programsOffset) + return ProgramsEnd(builder) +} + +func (rcv *Programs) UnPackTo(t *ProgramsT) { + programsLength := rcv.ProgramsLength() + t.Programs = make([]*ProgramT, programsLength) + for j := 0; j < programsLength; j++ { + x := Program{} + rcv.Programs(&x, j) + t.Programs[j] = x.UnPack() + } +} + +func (rcv *Programs) UnPack() *ProgramsT { + if rcv == nil { return nil } + t := &ProgramsT{} + rcv.UnPackTo(t) + return t +} + +type Programs struct { + _tab flatbuffers.Table +} + +func GetRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Programs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Programs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Programs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Programs) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Programs) Programs(obj *Program, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Programs) ProgramsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func ProgramsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ProgramsAddPrograms(builder *flatbuffers.Builder, programs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(programs), 0) +} +func ProgramsStartProgramsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProgramsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/StartupErrorReaction.go b/pkg/fbs/common/scheduler/fbs/StartupErrorReaction.go index 1a8806e..ba31a4a 100644 --- a/pkg/fbs/common/scheduler/fbs/StartupErrorReaction.go +++ b/pkg/fbs/common/scheduler/fbs/StartupErrorReaction.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StartupErrorReactionT struct { - ErrorReaction CurrentErrorReaction -} - -func (t *StartupErrorReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StartupErrorReactionStart(builder) - StartupErrorReactionAddErrorReaction(builder, t.ErrorReaction) - return StartupErrorReactionEnd(builder) -} - -func (rcv *StartupErrorReaction) UnPackTo(t *StartupErrorReactionT) { - t.ErrorReaction = rcv.ErrorReaction() -} - -func (rcv *StartupErrorReaction) UnPack() *StartupErrorReactionT { - if rcv == nil { return nil } - t := &StartupErrorReactionT{} - rcv.UnPackTo(t) - return t -} - -type StartupErrorReaction struct { - _tab flatbuffers.Table -} - -func GetRootAsStartupErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *StartupErrorReaction { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StartupErrorReaction{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStartupErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *StartupErrorReaction { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StartupErrorReaction{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StartupErrorReaction) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StartupErrorReaction) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StartupErrorReaction) ErrorReaction() CurrentErrorReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *StartupErrorReaction) MutateErrorReaction(n CurrentErrorReaction) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func StartupErrorReactionStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StartupErrorReactionAddErrorReaction(builder *flatbuffers.Builder, errorReaction CurrentErrorReaction) { - builder.PrependInt8Slot(0, int8(errorReaction), 0) -} -func StartupErrorReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Error reaction in case of not all configured components are available on startup +type StartupErrorReactionT struct { + ErrorReaction CurrentErrorReaction +} + +func (t *StartupErrorReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StartupErrorReactionStart(builder) + StartupErrorReactionAddErrorReaction(builder, t.ErrorReaction) + return StartupErrorReactionEnd(builder) +} + +func (rcv *StartupErrorReaction) UnPackTo(t *StartupErrorReactionT) { + t.ErrorReaction = rcv.ErrorReaction() +} + +func (rcv *StartupErrorReaction) UnPack() *StartupErrorReactionT { + if rcv == nil { return nil } + t := &StartupErrorReactionT{} + rcv.UnPackTo(t) + return t +} + +type StartupErrorReaction struct { + _tab flatbuffers.Table +} + +func GetRootAsStartupErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *StartupErrorReaction { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StartupErrorReaction{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStartupErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *StartupErrorReaction { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StartupErrorReaction{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StartupErrorReaction) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StartupErrorReaction) Table() flatbuffers.Table { + return rcv._tab +} + +/// Error reaction in case of not all configured components are available on startup +func (rcv *StartupErrorReaction) ErrorReaction() CurrentErrorReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Error reaction in case of not all configured components are available on startup +func (rcv *StartupErrorReaction) MutateErrorReaction(n CurrentErrorReaction) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func StartupErrorReactionStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StartupErrorReactionAddErrorReaction(builder *flatbuffers.Builder, errorReaction CurrentErrorReaction) { + builder.PrependInt8Slot(0, int8(errorReaction), 0) +} +func StartupErrorReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/State.go b/pkg/fbs/common/scheduler/fbs/State.go index 1ff8487..c5aa5d0 100644 --- a/pkg/fbs/common/scheduler/fbs/State.go +++ b/pkg/fbs/common/scheduler/fbs/State.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StateT struct { - State CurrentState -} - -func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StateStart(builder) - StateAddState(builder, t.State) - return StateEnd(builder) -} - -func (rcv *State) UnPackTo(t *StateT) { - t.State = rcv.State() -} - -func (rcv *State) UnPack() *StateT { - if rcv == nil { return nil } - t := &StateT{} - rcv.UnPackTo(t) - return t -} - -type State struct { - _tab flatbuffers.Table -} - -func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State) State() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *State) MutateState(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func StateStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StateAddState(builder *flatbuffers.Builder, state CurrentState) { - builder.PrependInt8Slot(0, int8(state), 1) -} -func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StateT struct { + State CurrentState +} + +func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StateStart(builder) + StateAddState(builder, t.State) + return StateEnd(builder) +} + +func (rcv *State) UnPackTo(t *StateT) { + t.State = rcv.State() +} + +func (rcv *State) UnPack() *StateT { + if rcv == nil { return nil } + t := &StateT{} + rcv.UnPackTo(t) + return t +} + +type State struct { + _tab flatbuffers.Table +} + +func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State) State() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +func (rcv *State) MutateState(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func StateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StateAddState(builder *flatbuffers.Builder, state CurrentState) { + builder.PrependInt8Slot(0, int8(state), 1) +} +func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/SyncPoints.go b/pkg/fbs/common/scheduler/fbs/SyncPoints.go index 0dd2fc8..f394cd5 100644 --- a/pkg/fbs/common/scheduler/fbs/SyncPoints.go +++ b/pkg/fbs/common/scheduler/fbs/SyncPoints.go @@ -1,152 +1,155 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// The names of the syncronization points of a callabale have to be unique. -/// To ensure that other callable can run after or before this callable it's recommended to set at least one syncronization point in each list. -type SyncPointsT struct { - After []string - Before []string -} - -func (t *SyncPointsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - afterOffset := flatbuffers.UOffsetT(0) - if t.After != nil { - afterLength := len(t.After) - afterOffsets := make([]flatbuffers.UOffsetT, afterLength) - for j := 0; j < afterLength; j++ { - afterOffsets[j] = builder.CreateString(t.After[j]) - } - SyncPointsStartAfterVector(builder, afterLength) - for j := afterLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(afterOffsets[j]) - } - afterOffset = builder.EndVector(afterLength) - } - beforeOffset := flatbuffers.UOffsetT(0) - if t.Before != nil { - beforeLength := len(t.Before) - beforeOffsets := make([]flatbuffers.UOffsetT, beforeLength) - for j := 0; j < beforeLength; j++ { - beforeOffsets[j] = builder.CreateString(t.Before[j]) - } - SyncPointsStartBeforeVector(builder, beforeLength) - for j := beforeLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(beforeOffsets[j]) - } - beforeOffset = builder.EndVector(beforeLength) - } - SyncPointsStart(builder) - SyncPointsAddAfter(builder, afterOffset) - SyncPointsAddBefore(builder, beforeOffset) - return SyncPointsEnd(builder) -} - -func (rcv *SyncPoints) UnPackTo(t *SyncPointsT) { - afterLength := rcv.AfterLength() - t.After = make([]string, afterLength) - for j := 0; j < afterLength; j++ { - t.After[j] = string(rcv.After(j)) - } - beforeLength := rcv.BeforeLength() - t.Before = make([]string, beforeLength) - for j := 0; j < beforeLength; j++ { - t.Before[j] = string(rcv.Before(j)) - } -} - -func (rcv *SyncPoints) UnPack() *SyncPointsT { - if rcv == nil { return nil } - t := &SyncPointsT{} - rcv.UnPackTo(t) - return t -} - -type SyncPoints struct { - _tab flatbuffers.Table -} - -func GetRootAsSyncPoints(buf []byte, offset flatbuffers.UOffsetT) *SyncPoints { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SyncPoints{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSyncPoints(buf []byte, offset flatbuffers.UOffsetT) *SyncPoints { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SyncPoints{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SyncPoints) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SyncPoints) Table() flatbuffers.Table { - return rcv._tab -} - -/// user defined syncronization points, execute callable in order after these points -func (rcv *SyncPoints) After(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SyncPoints) AfterLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// user defined syncronization points, execute callable in order after these points -/// user defined syncronization points, execute callable in order before these points -func (rcv *SyncPoints) Before(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SyncPoints) BeforeLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// user defined syncronization points, execute callable in order before these points -func SyncPointsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SyncPointsAddAfter(builder *flatbuffers.Builder, after flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(after), 0) -} -func SyncPointsStartAfterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SyncPointsAddBefore(builder *flatbuffers.Builder, before flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(before), 0) -} -func SyncPointsStartBeforeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SyncPointsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Synchronization points to specify the call sequence, alternatively to the use of run index +/// Notes: +/// - The names of the synchronization points of a callables have to be unique +/// - The names of the synchronization points of a callables have match to the Data Layer compliance guide lines meaning any alphanumeric character are allowed [a-zA-Z_][a-zA-Z0-9-._]+ +/// - To ensure that other callable can run after or before this callable it's recommended to set at least one synchronization point in each list +type SyncPointsT struct { + After []string + Before []string +} + +func (t *SyncPointsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + afterOffset := flatbuffers.UOffsetT(0) + if t.After != nil { + afterLength := len(t.After) + afterOffsets := make([]flatbuffers.UOffsetT, afterLength) + for j := 0; j < afterLength; j++ { + afterOffsets[j] = builder.CreateString(t.After[j]) + } + SyncPointsStartAfterVector(builder, afterLength) + for j := afterLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(afterOffsets[j]) + } + afterOffset = builder.EndVector(afterLength) + } + beforeOffset := flatbuffers.UOffsetT(0) + if t.Before != nil { + beforeLength := len(t.Before) + beforeOffsets := make([]flatbuffers.UOffsetT, beforeLength) + for j := 0; j < beforeLength; j++ { + beforeOffsets[j] = builder.CreateString(t.Before[j]) + } + SyncPointsStartBeforeVector(builder, beforeLength) + for j := beforeLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(beforeOffsets[j]) + } + beforeOffset = builder.EndVector(beforeLength) + } + SyncPointsStart(builder) + SyncPointsAddAfter(builder, afterOffset) + SyncPointsAddBefore(builder, beforeOffset) + return SyncPointsEnd(builder) +} + +func (rcv *SyncPoints) UnPackTo(t *SyncPointsT) { + afterLength := rcv.AfterLength() + t.After = make([]string, afterLength) + for j := 0; j < afterLength; j++ { + t.After[j] = string(rcv.After(j)) + } + beforeLength := rcv.BeforeLength() + t.Before = make([]string, beforeLength) + for j := 0; j < beforeLength; j++ { + t.Before[j] = string(rcv.Before(j)) + } +} + +func (rcv *SyncPoints) UnPack() *SyncPointsT { + if rcv == nil { return nil } + t := &SyncPointsT{} + rcv.UnPackTo(t) + return t +} + +type SyncPoints struct { + _tab flatbuffers.Table +} + +func GetRootAsSyncPoints(buf []byte, offset flatbuffers.UOffsetT) *SyncPoints { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SyncPoints{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSyncPoints(buf []byte, offset flatbuffers.UOffsetT) *SyncPoints { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SyncPoints{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SyncPoints) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SyncPoints) Table() flatbuffers.Table { + return rcv._tab +} + +/// User defined synchronization points, execute callable in order after these points, +func (rcv *SyncPoints) After(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SyncPoints) AfterLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// User defined synchronization points, execute callable in order after these points, +/// User defined synchronization points, execute callable in order before these points, any alphanumeric character +func (rcv *SyncPoints) Before(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SyncPoints) BeforeLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// User defined synchronization points, execute callable in order before these points, any alphanumeric character +func SyncPointsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SyncPointsAddAfter(builder *flatbuffers.Builder, after flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(after), 0) +} +func SyncPointsStartAfterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SyncPointsAddBefore(builder *flatbuffers.Builder, before flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(before), 0) +} +func SyncPointsStartBeforeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SyncPointsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Task.go b/pkg/fbs/common/scheduler/fbs/Task.go index fc3eb32..e65e8cf 100644 --- a/pkg/fbs/common/scheduler/fbs/Task.go +++ b/pkg/fbs/common/scheduler/fbs/Task.go @@ -1,162 +1,207 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TaskT struct { - Name string - Priority uint32 - Affinity uint32 - Stacksize uint32 - Event string - Cycletime uint32 -} - -func (t *TaskT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - eventOffset := builder.CreateString(t.Event) - TaskStart(builder) - TaskAddName(builder, nameOffset) - TaskAddPriority(builder, t.Priority) - TaskAddAffinity(builder, t.Affinity) - TaskAddStacksize(builder, t.Stacksize) - TaskAddEvent(builder, eventOffset) - TaskAddCycletime(builder, t.Cycletime) - return TaskEnd(builder) -} - -func (rcv *Task) UnPackTo(t *TaskT) { - t.Name = string(rcv.Name()) - t.Priority = rcv.Priority() - t.Affinity = rcv.Affinity() - t.Stacksize = rcv.Stacksize() - t.Event = string(rcv.Event()) - t.Cycletime = rcv.Cycletime() -} - -func (rcv *Task) UnPack() *TaskT { - if rcv == nil { return nil } - t := &TaskT{} - rcv.UnPackTo(t) - return t -} - -type Task struct { - _tab flatbuffers.Table -} - -func GetRootAsTask(buf []byte, offset flatbuffers.UOffsetT) *Task { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Task{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTask(buf []byte, offset flatbuffers.UOffsetT) *Task { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Task{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Task) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Task) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Task) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Task) Priority() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 119 -} - -func (rcv *Task) MutatePriority(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Task) Affinity() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Task) MutateAffinity(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func (rcv *Task) Stacksize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 131072 -} - -func (rcv *Task) MutateStacksize(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *Task) Event() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Task) Cycletime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 20000 -} - -func (rcv *Task) MutateCycletime(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func TaskStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func TaskAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func TaskAddPriority(builder *flatbuffers.Builder, priority uint32) { - builder.PrependUint32Slot(1, priority, 119) -} -func TaskAddAffinity(builder *flatbuffers.Builder, affinity uint32) { - builder.PrependUint32Slot(2, affinity, 0) -} -func TaskAddStacksize(builder *flatbuffers.Builder, stacksize uint32) { - builder.PrependUint32Slot(3, stacksize, 131072) -} -func TaskAddEvent(builder *flatbuffers.Builder, event flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(event), 0) -} -func TaskAddCycletime(builder *flatbuffers.Builder, cycletime uint32) { - builder.PrependUint32Slot(5, cycletime, 20000) -} -func TaskEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Properties of a task +type TaskT struct { + Name string + Priority uint32 + Affinity uint32 + Stacksize uint32 + Event string + Cycletime uint32 +} + +func (t *TaskT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + eventOffset := builder.CreateString(t.Event) + TaskStart(builder) + TaskAddName(builder, nameOffset) + TaskAddPriority(builder, t.Priority) + TaskAddAffinity(builder, t.Affinity) + TaskAddStacksize(builder, t.Stacksize) + TaskAddEvent(builder, eventOffset) + TaskAddCycletime(builder, t.Cycletime) + return TaskEnd(builder) +} + +func (rcv *Task) UnPackTo(t *TaskT) { + t.Name = string(rcv.Name()) + t.Priority = rcv.Priority() + t.Affinity = rcv.Affinity() + t.Stacksize = rcv.Stacksize() + t.Event = string(rcv.Event()) + t.Cycletime = rcv.Cycletime() +} + +func (rcv *Task) UnPack() *TaskT { + if rcv == nil { return nil } + t := &TaskT{} + rcv.UnPackTo(t) + return t +} + +type Task struct { + _tab flatbuffers.Table +} + +func GetRootAsTask(buf []byte, offset flatbuffers.UOffsetT) *Task { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Task{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTask(buf []byte, offset flatbuffers.UOffsetT) *Task { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Task{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Task) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Task) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of the task [unique] +/// Allowed characters: +/// Any alphanumeric character, beginning with a letter and a maximum length of 15 characters [a-zA-Z][a-zA-Z0-9]{1,15} +func (rcv *Task) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the task [unique] +/// Allowed characters: +/// Any alphanumeric character, beginning with a letter and a maximum length of 15 characters [a-zA-Z][a-zA-Z0-9]{1,15} +/// Priority of the task +/// Priority ranges: +/// 0 .. 10 : reserved for the system +/// 11 .. 99 : available for real-time user tasks +/// 100 .. 139 : available for non real-time user tasks +/// Priority agreements: +/// 10 : reserved for Scheduler tick task 'schedMain' +/// 11 : highest prior real-time task, use of the policy FIFO policy +/// 23 : high prior real-time task, use of the policy FIFO policy +/// 29 : mid prior real-time task, use of the policy FIFO policy +/// 37 : low prior real-time task, use of the policy FIFO policy +/// 99 : lowest prior real-time task, use of the policy round-robin policy +/// 100 : highest prior non real-time task, use of the nice value of '-20' +/// 120 : common used non real-time task, use of the nice value of '0' +/// 139 : lowest prior non real-time task, use of the nice value of '19' +func (rcv *Task) Priority() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 120 +} + +/// Priority of the task +/// Priority ranges: +/// 0 .. 10 : reserved for the system +/// 11 .. 99 : available for real-time user tasks +/// 100 .. 139 : available for non real-time user tasks +/// Priority agreements: +/// 10 : reserved for Scheduler tick task 'schedMain' +/// 11 : highest prior real-time task, use of the policy FIFO policy +/// 23 : high prior real-time task, use of the policy FIFO policy +/// 29 : mid prior real-time task, use of the policy FIFO policy +/// 37 : low prior real-time task, use of the policy FIFO policy +/// 99 : lowest prior real-time task, use of the policy round-robin policy +/// 100 : highest prior non real-time task, use of the nice value of '-20' +/// 120 : common used non real-time task, use of the nice value of '0' +/// 139 : lowest prior non real-time task, use of the nice value of '19' +func (rcv *Task) MutatePriority(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// CPU core affinity of the task, defining on which CPU core it is executed, available cores see 'scheduler/admin/info/cpu-cores' +func (rcv *Task) Affinity() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// CPU core affinity of the task, defining on which CPU core it is executed, available cores see 'scheduler/admin/info/cpu-cores' +func (rcv *Task) MutateAffinity(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// Stack size of the task in [byte] +func (rcv *Task) Stacksize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 131072 +} + +/// Stack size of the task in [byte] +func (rcv *Task) MutateStacksize(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +/// Execution event of the task ["cyclic"] +func (rcv *Task) Event() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Execution event of the task ["cyclic"] +/// Cycle time of the task in [µs] +func (rcv *Task) Cycletime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 20000 +} + +/// Cycle time of the task in [µs] +func (rcv *Task) MutateCycletime(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func TaskStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func TaskAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func TaskAddPriority(builder *flatbuffers.Builder, priority uint32) { + builder.PrependUint32Slot(1, priority, 120) +} +func TaskAddAffinity(builder *flatbuffers.Builder, affinity uint32) { + builder.PrependUint32Slot(2, affinity, 0) +} +func TaskAddStacksize(builder *flatbuffers.Builder, stacksize uint32) { + builder.PrependUint32Slot(3, stacksize, 131072) +} +func TaskAddEvent(builder *flatbuffers.Builder, event flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(event), 0) +} +func TaskAddCycletime(builder *flatbuffers.Builder, cycletime uint32) { + builder.PrependUint32Slot(5, cycletime, 20000) +} +func TaskEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/TaskSpecs.go b/pkg/fbs/common/scheduler/fbs/TaskSpecs.go index 86a770b..247ad9f 100644 --- a/pkg/fbs/common/scheduler/fbs/TaskSpecs.go +++ b/pkg/fbs/common/scheduler/fbs/TaskSpecs.go @@ -1,111 +1,162 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TaskSpecsT struct { - Name string - Priority string - Type string -} - -func (t *TaskSpecsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - priorityOffset := builder.CreateString(t.Priority) - typeOffset := builder.CreateString(t.Type) - TaskSpecsStart(builder) - TaskSpecsAddName(builder, nameOffset) - TaskSpecsAddPriority(builder, priorityOffset) - TaskSpecsAddType(builder, typeOffset) - return TaskSpecsEnd(builder) -} - -func (rcv *TaskSpecs) UnPackTo(t *TaskSpecsT) { - t.Name = string(rcv.Name()) - t.Priority = string(rcv.Priority()) - t.Type = string(rcv.Type()) -} - -func (rcv *TaskSpecs) UnPack() *TaskSpecsT { - if rcv == nil { return nil } - t := &TaskSpecsT{} - rcv.UnPackTo(t) - return t -} - -type TaskSpecs struct { - _tab flatbuffers.Table -} - -func GetRootAsTaskSpecs(buf []byte, offset flatbuffers.UOffsetT) *TaskSpecs { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TaskSpecs{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTaskSpecs(buf []byte, offset flatbuffers.UOffsetT) *TaskSpecs { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TaskSpecs{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TaskSpecs) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TaskSpecs) Table() flatbuffers.Table { - return rcv._tab -} - -/// task name to link callables together within a task, e.g. "ctrlXAutomation" or "gppServices" -func (rcv *TaskSpecs) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// task name to link callables together within a task, e.g. "ctrlXAutomation" or "gppServices" -/// task priority as well defined digit or range, e.g. "40" or "mid" to runs with medium priority -func (rcv *TaskSpecs) Priority() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// task priority as well defined digit or range, e.g. "40" or "mid" to runs with medium priority -/// describes required task properties, e.g. "cyclic/ms/10" to runs cyclic every 10 millisecons -func (rcv *TaskSpecs) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// describes required task properties, e.g. "cyclic/ms/10" to runs cyclic every 10 millisecons -func TaskSpecsStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func TaskSpecsAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func TaskSpecsAddPriority(builder *flatbuffers.Builder, priority flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(priority), 0) -} -func TaskSpecsAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(type_), 0) -} -func TaskSpecsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Task specifications to defined callable environment +type TaskSpecsT struct { + Name string + Priority string + Type string +} + +func (t *TaskSpecsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + priorityOffset := builder.CreateString(t.Priority) + typeOffset := builder.CreateString(t.Type) + TaskSpecsStart(builder) + TaskSpecsAddName(builder, nameOffset) + TaskSpecsAddPriority(builder, priorityOffset) + TaskSpecsAddType(builder, typeOffset) + return TaskSpecsEnd(builder) +} + +func (rcv *TaskSpecs) UnPackTo(t *TaskSpecsT) { + t.Name = string(rcv.Name()) + t.Priority = string(rcv.Priority()) + t.Type = string(rcv.Type()) +} + +func (rcv *TaskSpecs) UnPack() *TaskSpecsT { + if rcv == nil { return nil } + t := &TaskSpecsT{} + rcv.UnPackTo(t) + return t +} + +type TaskSpecs struct { + _tab flatbuffers.Table +} + +func GetRootAsTaskSpecs(buf []byte, offset flatbuffers.UOffsetT) *TaskSpecs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TaskSpecs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTaskSpecs(buf []byte, offset flatbuffers.UOffsetT) *TaskSpecs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TaskSpecs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TaskSpecs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TaskSpecs) Table() flatbuffers.Table { + return rcv._tab +} + +/// Task name to link callables together within a task, e.g. "ctrlXAutomation" or "schedBackground" +/// Allowed characters: +/// Any alphanumeric character, beginning with a letter and a maximum length of 15 characters [a-zA-Z][a-zA-Z0-9]{1,15} +func (rcv *TaskSpecs) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Task name to link callables together within a task, e.g. "ctrlXAutomation" or "schedBackground" +/// Allowed characters: +/// Any alphanumeric character, beginning with a letter and a maximum length of 15 characters [a-zA-Z][a-zA-Z0-9]{1,15} +/// Task priority as well defined digit or range, e.g. "29" or "mid" to runs with medium priority +/// Priority ranges: +/// 0 .. 10 : reserved for the system +/// 11 .. 99 : available for real-time user tasks +/// 100 .. 139 : available for non real-time user tasks +/// Priority agreements: +/// 10 : reserved for Scheduler tick task 'schedMain' +/// 11 : highest prior real-time task, use of the policy FIFO policy +/// 23 : high prior real-time task, use of the policy FIFO policy +/// 29 : mid prior real-time task, use of the policy FIFO policy +/// 37 : low prior real-time task, use of the policy FIFO policy +/// 99 : lowest prior real-time task, use of the policy round-robin policy +/// 100 : highest prior non real-time task, use of the nice value of '-20' +/// 120 : common used non real-time task, use of the nice value of '0' +/// 139 : lowest prior non real-time task, use of the nice value of '19' +/// high : see (23), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "high+1" results (24) +/// mid : see (29), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "mid-2" results (27) +/// low : see (37), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "low+3" results (40) +/// nrt : see (120), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "nrt-10" results a nice value of (-10) +func (rcv *TaskSpecs) Priority() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Task priority as well defined digit or range, e.g. "29" or "mid" to runs with medium priority +/// Priority ranges: +/// 0 .. 10 : reserved for the system +/// 11 .. 99 : available for real-time user tasks +/// 100 .. 139 : available for non real-time user tasks +/// Priority agreements: +/// 10 : reserved for Scheduler tick task 'schedMain' +/// 11 : highest prior real-time task, use of the policy FIFO policy +/// 23 : high prior real-time task, use of the policy FIFO policy +/// 29 : mid prior real-time task, use of the policy FIFO policy +/// 37 : low prior real-time task, use of the policy FIFO policy +/// 99 : lowest prior real-time task, use of the policy round-robin policy +/// 100 : highest prior non real-time task, use of the nice value of '-20' +/// 120 : common used non real-time task, use of the nice value of '0' +/// 139 : lowest prior non real-time task, use of the nice value of '19' +/// high : see (23), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "high+1" results (24) +/// mid : see (29), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "mid-2" results (27) +/// low : see (37), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "low+3" results (40) +/// nrt : see (120), can be extended by operator '+' resp. '-' and in additional any digit offset, e.g. "nrt-10" results a nice value of (-10) +/// Description of required task properties, e.g. "cyclic/ms/10" to runs cyclic every 10 millisecond +/// The notation of the task properties depends on supported task types. +/// Notation of cyclic tasks, separated by '/' +/// event : Execution event of the task ["cyclic"] +/// cycle time unit : Supported units are millisecond ["ms"] and microsecond ["µs"] +/// digit : Any digit [0-9]+ +func (rcv *TaskSpecs) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Description of required task properties, e.g. "cyclic/ms/10" to runs cyclic every 10 millisecond +/// The notation of the task properties depends on supported task types. +/// Notation of cyclic tasks, separated by '/' +/// event : Execution event of the task ["cyclic"] +/// cycle time unit : Supported units are millisecond ["ms"] and microsecond ["µs"] +/// digit : Any digit [0-9]+ +func TaskSpecsStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func TaskSpecsAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func TaskSpecsAddPriority(builder *flatbuffers.Builder, priority flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(priority), 0) +} +func TaskSpecsAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(type_), 0) +} +func TaskSpecsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs/Timer.go b/pkg/fbs/common/scheduler/fbs/Timer.go index d1b1c81..322aa31 100644 --- a/pkg/fbs/common/scheduler/fbs/Timer.go +++ b/pkg/fbs/common/scheduler/fbs/Timer.go @@ -1,44 +1,52 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type Timer int8 - -const ( - TimerALL Timer = 0 - TimerTOTAL Timer = 1 - TimerTASK Timer = 2 - TimerOTHER Timer = 3 - TimerEQUIDISTANCE Timer = 4 - TimerDEVIATION Timer = 5 - TimerREMAINING Timer = 6 -) - -var EnumNamesTimer = map[Timer]string{ - TimerALL: "ALL", - TimerTOTAL: "TOTAL", - TimerTASK: "TASK", - TimerOTHER: "OTHER", - TimerEQUIDISTANCE: "EQUIDISTANCE", - TimerDEVIATION: "DEVIATION", - TimerREMAINING: "REMAINING", -} - -var EnumValuesTimer = map[string]Timer{ - "ALL": TimerALL, - "TOTAL": TimerTOTAL, - "TASK": TimerTASK, - "OTHER": TimerOTHER, - "EQUIDISTANCE": TimerEQUIDISTANCE, - "DEVIATION": TimerDEVIATION, - "REMAINING": TimerREMAINING, -} - -func (v Timer) String() string { - if s, ok := EnumNamesTimer[v]; ok { - return s - } - return "Timer(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Types of duration measurements +type Timer int8 + +const ( + /// Start, stop or reset all available types of duration measurements + TimerALL Timer = 0 + /// Start, stop or reset duration measurement of the task including interruptions by other tasks + TimerTOTAL Timer = 1 + /// Start, stop or reset duration measurement of the task without interruptions by other tasks + TimerTASK Timer = 2 + /// Start, stop or reset duration measurement of the interruptions of the task by other tasks + TimerOTHER Timer = 3 + /// Start, stop or reset duration measurement of equidistance of the task from one cycle to an other + TimerEQUIDISTANCE Timer = 4 + /// Start, stop or reset duration measurement of deviation of the task to the expected start time + TimerDEVIATION Timer = 5 + /// Start, stop or reset duration measurement of remaining time from the end of the task to the begin of the next cycle of it + TimerREMAINING Timer = 6 +) + +var EnumNamesTimer = map[Timer]string{ + TimerALL: "ALL", + TimerTOTAL: "TOTAL", + TimerTASK: "TASK", + TimerOTHER: "OTHER", + TimerEQUIDISTANCE: "EQUIDISTANCE", + TimerDEVIATION: "DEVIATION", + TimerREMAINING: "REMAINING", +} + +var EnumValuesTimer = map[string]Timer{ + "ALL": TimerALL, + "TOTAL": TimerTOTAL, + "TASK": TimerTASK, + "OTHER": TimerOTHER, + "EQUIDISTANCE": TimerEQUIDISTANCE, + "DEVIATION": TimerDEVIATION, + "REMAINING": TimerREMAINING, +} + +func (v Timer) String() string { + if s, ok := EnumNamesTimer[v]; ok { + return s + } + return "Timer(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/fbs/Trigger.go b/pkg/fbs/common/scheduler/fbs/Trigger.go index 1b65cbc..cfa1f24 100644 --- a/pkg/fbs/common/scheduler/fbs/Trigger.go +++ b/pkg/fbs/common/scheduler/fbs/Trigger.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TriggerT struct { - Trigger CurrentTrigger -} - -func (t *TriggerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TriggerStart(builder) - TriggerAddTrigger(builder, t.Trigger) - return TriggerEnd(builder) -} - -func (rcv *Trigger) UnPackTo(t *TriggerT) { - t.Trigger = rcv.Trigger() -} - -func (rcv *Trigger) UnPack() *TriggerT { - if rcv == nil { return nil } - t := &TriggerT{} - rcv.UnPackTo(t) - return t -} - -type Trigger struct { - _tab flatbuffers.Table -} - -func GetRootAsTrigger(buf []byte, offset flatbuffers.UOffsetT) *Trigger { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Trigger{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTrigger(buf []byte, offset flatbuffers.UOffsetT) *Trigger { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Trigger{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Trigger) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Trigger) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Trigger) Trigger() CurrentTrigger { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentTrigger(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *Trigger) MutateTrigger(n CurrentTrigger) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func TriggerStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func TriggerAddTrigger(builder *flatbuffers.Builder, trigger CurrentTrigger) { - builder.PrependInt8Slot(0, int8(trigger), 1) -} -func TriggerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Type selector of trigger sources of Scheduler +type TriggerT struct { + Trigger CurrentTrigger +} + +func (t *TriggerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TriggerStart(builder) + TriggerAddTrigger(builder, t.Trigger) + return TriggerEnd(builder) +} + +func (rcv *Trigger) UnPackTo(t *TriggerT) { + t.Trigger = rcv.Trigger() +} + +func (rcv *Trigger) UnPack() *TriggerT { + if rcv == nil { return nil } + t := &TriggerT{} + rcv.UnPackTo(t) + return t +} + +type Trigger struct { + _tab flatbuffers.Table +} + +func GetRootAsTrigger(buf []byte, offset flatbuffers.UOffsetT) *Trigger { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Trigger{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTrigger(buf []byte, offset flatbuffers.UOffsetT) *Trigger { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Trigger{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Trigger) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Trigger) Table() flatbuffers.Table { + return rcv._tab +} + +/// Type selector of trigger sources of Scheduler +func (rcv *Trigger) Trigger() CurrentTrigger { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentTrigger(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Type selector of trigger sources of Scheduler +func (rcv *Trigger) MutateTrigger(n CurrentTrigger) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func TriggerStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func TriggerAddTrigger(builder *flatbuffers.Builder, trigger CurrentTrigger) { + builder.PrependInt8Slot(0, int8(trigger), 1) +} +func TriggerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/Admin.go b/pkg/fbs/common/scheduler/fbs2/Admin.go index a8c2366..8b386d1 100644 --- a/pkg/fbs/common/scheduler/fbs2/Admin.go +++ b/pkg/fbs/common/scheduler/fbs2/Admin.go @@ -1,277 +1,290 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - common__scheduler__controls__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/controls/fbs" - common__scheduler__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs" -) - -type AdminT struct { - StartupState CurrentState - StartupTimeout uint32 - StartupErrorReaction common__scheduler__fbs.CurrentErrorReaction - TriggerSource common__scheduler__fbs.CurrentTrigger - ControlDebug *common__scheduler__controls__fbs.ControlsT - CpuInfo *CpuInfoT - HardwareWatchdogRequired bool - WatchdogDefaultValue common__scheduler__fbs.CallableWdgConfig - Utilization *UtilizationThresholdT - CallableTimeouts *CallableTimeoutsT -} - -func (t *AdminT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - controlDebugOffset := t.ControlDebug.Pack(builder) - - cpuInfoOffset := t.CpuInfo.Pack(builder) - utilizationOffset := t.Utilization.Pack(builder) - callableTimeoutsOffset := t.CallableTimeouts.Pack(builder) - AdminStart(builder) - AdminAddStartupState(builder, t.StartupState) - AdminAddStartupTimeout(builder, t.StartupTimeout) - AdminAddStartupErrorReaction(builder, t.StartupErrorReaction) - AdminAddTriggerSource(builder, t.TriggerSource) - if t.ControlDebug != nil { - AdminAddControlDebugType(builder, t.ControlDebug.Type) - } - AdminAddControlDebug(builder, controlDebugOffset) - AdminAddCpuInfo(builder, cpuInfoOffset) - AdminAddHardwareWatchdogRequired(builder, t.HardwareWatchdogRequired) - AdminAddWatchdogDefaultValue(builder, t.WatchdogDefaultValue) - AdminAddUtilization(builder, utilizationOffset) - AdminAddCallableTimeouts(builder, callableTimeoutsOffset) - return AdminEnd(builder) -} - -func (rcv *Admin) UnPackTo(t *AdminT) { - t.StartupState = rcv.StartupState() - t.StartupTimeout = rcv.StartupTimeout() - t.StartupErrorReaction = rcv.StartupErrorReaction() - t.TriggerSource = rcv.TriggerSource() - controlDebugTable := flatbuffers.Table{} - if rcv.ControlDebug(&controlDebugTable) { - t.ControlDebug = rcv.ControlDebugType().UnPack(controlDebugTable) - } - t.CpuInfo = rcv.CpuInfo(nil).UnPack() - t.HardwareWatchdogRequired = rcv.HardwareWatchdogRequired() - t.WatchdogDefaultValue = rcv.WatchdogDefaultValue() - t.Utilization = rcv.Utilization(nil).UnPack() - t.CallableTimeouts = rcv.CallableTimeouts(nil).UnPack() -} - -func (rcv *Admin) UnPack() *AdminT { - if rcv == nil { return nil } - t := &AdminT{} - rcv.UnPackTo(t) - return t -} - -type Admin struct { - _tab flatbuffers.Table -} - -func GetRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Admin{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Admin{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Admin) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Admin) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Admin) StartupState() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Admin) MutateStartupState(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *Admin) StartupTimeout() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 5 -} - -func (rcv *Admin) MutateStartupTimeout(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Admin) StartupErrorReaction() common__scheduler__fbs.CurrentErrorReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return common__scheduler__fbs.CurrentErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Admin) MutateStartupErrorReaction(n common__scheduler__fbs.CurrentErrorReaction) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func (rcv *Admin) TriggerSource() common__scheduler__fbs.CurrentTrigger { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return common__scheduler__fbs.CurrentTrigger(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *Admin) MutateTriggerSource(n common__scheduler__fbs.CurrentTrigger) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -func (rcv *Admin) ControlDebugType() common__scheduler__controls__fbs.Controls { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return common__scheduler__controls__fbs.Controls(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Admin) MutateControlDebugType(n common__scheduler__controls__fbs.Controls) bool { - return rcv._tab.MutateByteSlot(12, byte(n)) -} - -func (rcv *Admin) ControlDebug(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -func (rcv *Admin) CpuInfo(obj *CpuInfo) *CpuInfo { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CpuInfo) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// status of hardware watchdog requirment -func (rcv *Admin) HardwareWatchdogRequired() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// status of hardware watchdog requirment -func (rcv *Admin) MutateHardwareWatchdogRequired(n bool) bool { - return rcv._tab.MutateBoolSlot(18, n) -} - -/// influence default task and hardware watchdog handling -func (rcv *Admin) WatchdogDefaultValue() common__scheduler__fbs.CallableWdgConfig { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return common__scheduler__fbs.CallableWdgConfig(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 3 -} - -/// influence default task and hardware watchdog handling -func (rcv *Admin) MutateWatchdogDefaultValue(n common__scheduler__fbs.CallableWdgConfig) bool { - return rcv._tab.MutateInt8Slot(20, int8(n)) -} - -/// utilization thresholds of scheduler system -func (rcv *Admin) Utilization(obj *UtilizationThreshold) *UtilizationThreshold { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(UtilizationThreshold) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// utilization thresholds of scheduler system -/// callable timeouts for the switch events -func (rcv *Admin) CallableTimeouts(obj *CallableTimeouts) *CallableTimeouts { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CallableTimeouts) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// callable timeouts for the switch events -func AdminStart(builder *flatbuffers.Builder) { - builder.StartObject(11) -} -func AdminAddStartupState(builder *flatbuffers.Builder, startupState CurrentState) { - builder.PrependInt8Slot(0, int8(startupState), 0) -} -func AdminAddStartupTimeout(builder *flatbuffers.Builder, startupTimeout uint32) { - builder.PrependUint32Slot(1, startupTimeout, 5) -} -func AdminAddStartupErrorReaction(builder *flatbuffers.Builder, startupErrorReaction common__scheduler__fbs.CurrentErrorReaction) { - builder.PrependInt8Slot(2, int8(startupErrorReaction), 0) -} -func AdminAddTriggerSource(builder *flatbuffers.Builder, triggerSource common__scheduler__fbs.CurrentTrigger) { - builder.PrependInt8Slot(3, int8(triggerSource), 1) -} -func AdminAddControlDebugType(builder *flatbuffers.Builder, controlDebugType common__scheduler__controls__fbs.Controls) { - builder.PrependByteSlot(4, byte(controlDebugType), 0) -} -func AdminAddControlDebug(builder *flatbuffers.Builder, controlDebug flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(controlDebug), 0) -} -func AdminAddCpuInfo(builder *flatbuffers.Builder, cpuInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(cpuInfo), 0) -} -func AdminAddHardwareWatchdogRequired(builder *flatbuffers.Builder, hardwareWatchdogRequired bool) { - builder.PrependBoolSlot(7, hardwareWatchdogRequired, false) -} -func AdminAddWatchdogDefaultValue(builder *flatbuffers.Builder, watchdogDefaultValue common__scheduler__fbs.CallableWdgConfig) { - builder.PrependInt8Slot(8, int8(watchdogDefaultValue), 3) -} -func AdminAddUtilization(builder *flatbuffers.Builder, utilization flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(utilization), 0) -} -func AdminAddCallableTimeouts(builder *flatbuffers.Builder, callableTimeouts flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(callableTimeouts), 0) -} -func AdminEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + common__scheduler__controls__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/controls/fbs" + common__scheduler__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs" +) + +/// General settings of Scheduler, startup behavior, callables, tasks and timing +type AdminT struct { + StartupState CurrentState + StartupTimeout uint32 + StartupErrorReaction common__scheduler__fbs.CurrentErrorReaction + TriggerSource common__scheduler__fbs.CurrentTrigger + ControlDebug *common__scheduler__controls__fbs.ControlsT + CpuInfo *CpuInfoT + HardwareWatchdogRequired bool + WatchdogDefaultValue common__scheduler__fbs.CallableWdgConfig + Utilization *UtilizationThresholdT + CallableTimeouts *CallableTimeoutsT +} + +func (t *AdminT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + controlDebugOffset := t.ControlDebug.Pack(builder) + + cpuInfoOffset := t.CpuInfo.Pack(builder) + utilizationOffset := t.Utilization.Pack(builder) + callableTimeoutsOffset := t.CallableTimeouts.Pack(builder) + AdminStart(builder) + AdminAddStartupState(builder, t.StartupState) + AdminAddStartupTimeout(builder, t.StartupTimeout) + AdminAddStartupErrorReaction(builder, t.StartupErrorReaction) + AdminAddTriggerSource(builder, t.TriggerSource) + if t.ControlDebug != nil { + AdminAddControlDebugType(builder, t.ControlDebug.Type) + } + AdminAddControlDebug(builder, controlDebugOffset) + AdminAddCpuInfo(builder, cpuInfoOffset) + AdminAddHardwareWatchdogRequired(builder, t.HardwareWatchdogRequired) + AdminAddWatchdogDefaultValue(builder, t.WatchdogDefaultValue) + AdminAddUtilization(builder, utilizationOffset) + AdminAddCallableTimeouts(builder, callableTimeoutsOffset) + return AdminEnd(builder) +} + +func (rcv *Admin) UnPackTo(t *AdminT) { + t.StartupState = rcv.StartupState() + t.StartupTimeout = rcv.StartupTimeout() + t.StartupErrorReaction = rcv.StartupErrorReaction() + t.TriggerSource = rcv.TriggerSource() + controlDebugTable := flatbuffers.Table{} + if rcv.ControlDebug(&controlDebugTable) { + t.ControlDebug = rcv.ControlDebugType().UnPack(controlDebugTable) + } + t.CpuInfo = rcv.CpuInfo(nil).UnPack() + t.HardwareWatchdogRequired = rcv.HardwareWatchdogRequired() + t.WatchdogDefaultValue = rcv.WatchdogDefaultValue() + t.Utilization = rcv.Utilization(nil).UnPack() + t.CallableTimeouts = rcv.CallableTimeouts(nil).UnPack() +} + +func (rcv *Admin) UnPack() *AdminT { + if rcv == nil { return nil } + t := &AdminT{} + rcv.UnPackTo(t) + return t +} + +type Admin struct { + _tab flatbuffers.Table +} + +func GetRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Admin{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAdmin(buf []byte, offset flatbuffers.UOffsetT) *Admin { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Admin{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Admin) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Admin) Table() flatbuffers.Table { + return rcv._tab +} + +/// Target operation state of Scheduler after power on ctrlX CORE +func (rcv *Admin) StartupState() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Target operation state of Scheduler after power on ctrlX CORE +func (rcv *Admin) MutateStartupState(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +/// Timeout for waiting for missing components before carry on switching to target operation state +func (rcv *Admin) StartupTimeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Timeout for waiting for missing components before carry on switching to target operation state +func (rcv *Admin) MutateStartupTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// Error reaction in case of not all configured components are available +func (rcv *Admin) StartupErrorReaction() common__scheduler__fbs.CurrentErrorReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return common__scheduler__fbs.CurrentErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Error reaction in case of not all configured components are available +func (rcv *Admin) MutateStartupErrorReaction(n common__scheduler__fbs.CurrentErrorReaction) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// Trigger source of Scheduler task tick +func (rcv *Admin) TriggerSource() common__scheduler__fbs.CurrentTrigger { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return common__scheduler__fbs.CurrentTrigger(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Trigger source of Scheduler task tick +func (rcv *Admin) MutateTriggerSource(n common__scheduler__fbs.CurrentTrigger) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +func (rcv *Admin) ControlDebugType() common__scheduler__controls__fbs.Controls { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return common__scheduler__controls__fbs.Controls(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Admin) MutateControlDebugType(n common__scheduler__controls__fbs.Controls) bool { + return rcv._tab.MutateByteSlot(12, byte(n)) +} + +/// Indication whether the DEBUG mode is active and hardware watchdog and task watchdogs are disabled +func (rcv *Admin) ControlDebug(obj *flatbuffers.Table) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + rcv._tab.Union(obj, o) + return true + } + return false +} + +/// Indication whether the DEBUG mode is active and hardware watchdog and task watchdogs are disabled +/// Information about CPU cores of ctrlX CORE +func (rcv *Admin) CpuInfo(obj *CpuInfo) *CpuInfo { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CpuInfo) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Information about CPU cores of ctrlX CORE +/// Indication whether switching to the SERVICE state is required for managing apps +func (rcv *Admin) HardwareWatchdogRequired() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Indication whether switching to the SERVICE state is required for managing apps +func (rcv *Admin) MutateHardwareWatchdogRequired(n bool) bool { + return rcv._tab.MutateBoolSlot(18, n) +} + +/// Default behavior of task and hardware watchdog handling when no requirements are given by other +func (rcv *Admin) WatchdogDefaultValue() common__scheduler__fbs.CallableWdgConfig { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return common__scheduler__fbs.CallableWdgConfig(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 3 +} + +/// Default behavior of task and hardware watchdog handling when no requirements are given by other +func (rcv *Admin) MutateWatchdogDefaultValue(n common__scheduler__fbs.CallableWdgConfig) bool { + return rcv._tab.MutateInt8Slot(20, int8(n)) +} + +/// Utilization of the cycle time of Scheduler tick task causes by itself +func (rcv *Admin) Utilization(obj *UtilizationThreshold) *UtilizationThreshold { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(UtilizationThreshold) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Utilization of the cycle time of Scheduler tick task causes by itself +/// General settings for timeouts when switching callable operation states +func (rcv *Admin) CallableTimeouts(obj *CallableTimeouts) *CallableTimeouts { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CallableTimeouts) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// General settings for timeouts when switching callable operation states +func AdminStart(builder *flatbuffers.Builder) { + builder.StartObject(11) +} +func AdminAddStartupState(builder *flatbuffers.Builder, startupState CurrentState) { + builder.PrependInt8Slot(0, int8(startupState), 0) +} +func AdminAddStartupTimeout(builder *flatbuffers.Builder, startupTimeout uint32) { + builder.PrependUint32Slot(1, startupTimeout, 0) +} +func AdminAddStartupErrorReaction(builder *flatbuffers.Builder, startupErrorReaction common__scheduler__fbs.CurrentErrorReaction) { + builder.PrependInt8Slot(2, int8(startupErrorReaction), 1) +} +func AdminAddTriggerSource(builder *flatbuffers.Builder, triggerSource common__scheduler__fbs.CurrentTrigger) { + builder.PrependInt8Slot(3, int8(triggerSource), 1) +} +func AdminAddControlDebugType(builder *flatbuffers.Builder, controlDebugType common__scheduler__controls__fbs.Controls) { + builder.PrependByteSlot(4, byte(controlDebugType), 0) +} +func AdminAddControlDebug(builder *flatbuffers.Builder, controlDebug flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(controlDebug), 0) +} +func AdminAddCpuInfo(builder *flatbuffers.Builder, cpuInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(cpuInfo), 0) +} +func AdminAddHardwareWatchdogRequired(builder *flatbuffers.Builder, hardwareWatchdogRequired bool) { + builder.PrependBoolSlot(7, hardwareWatchdogRequired, false) +} +func AdminAddWatchdogDefaultValue(builder *flatbuffers.Builder, watchdogDefaultValue common__scheduler__fbs.CallableWdgConfig) { + builder.PrependInt8Slot(8, int8(watchdogDefaultValue), 3) +} +func AdminAddUtilization(builder *flatbuffers.Builder, utilization flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(utilization), 0) +} +func AdminAddCallableTimeouts(builder *flatbuffers.Builder, callableTimeouts flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(callableTimeouts), 0) +} +func AdminEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/CallableTimeouts.go b/pkg/fbs/common/scheduler/fbs2/CallableTimeouts.go index 2f85ac2..3a6dd68 100644 --- a/pkg/fbs/common/scheduler/fbs2/CallableTimeouts.go +++ b/pkg/fbs/common/scheduler/fbs2/CallableTimeouts.go @@ -1,114 +1,121 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CallableTimeoutsT struct { - Begin uint32 - Execute uint32 - End uint32 -} - -func (t *CallableTimeoutsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - CallableTimeoutsStart(builder) - CallableTimeoutsAddBegin(builder, t.Begin) - CallableTimeoutsAddExecute(builder, t.Execute) - CallableTimeoutsAddEnd(builder, t.End) - return CallableTimeoutsEnd(builder) -} - -func (rcv *CallableTimeouts) UnPackTo(t *CallableTimeoutsT) { - t.Begin = rcv.Begin() - t.Execute = rcv.Execute() - t.End = rcv.End() -} - -func (rcv *CallableTimeouts) UnPack() *CallableTimeoutsT { - if rcv == nil { return nil } - t := &CallableTimeoutsT{} - rcv.UnPackTo(t) - return t -} - -type CallableTimeouts struct { - _tab flatbuffers.Table -} - -func GetRootAsCallableTimeouts(buf []byte, offset flatbuffers.UOffsetT) *CallableTimeouts { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CallableTimeouts{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCallableTimeouts(buf []byte, offset flatbuffers.UOffsetT) *CallableTimeouts { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CallableTimeouts{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CallableTimeouts) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CallableTimeouts) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CallableTimeouts) Begin() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 1000 -} - -func (rcv *CallableTimeouts) MutateBegin(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *CallableTimeouts) Execute() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 60000 -} - -func (rcv *CallableTimeouts) MutateExecute(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *CallableTimeouts) End() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 1000 -} - -func (rcv *CallableTimeouts) MutateEnd(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func CallableTimeoutsStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CallableTimeoutsAddBegin(builder *flatbuffers.Builder, begin uint32) { - builder.PrependUint32Slot(0, begin, 1000) -} -func CallableTimeoutsAddExecute(builder *flatbuffers.Builder, execute uint32) { - builder.PrependUint32Slot(1, execute, 60000) -} -func CallableTimeoutsAddEnd(builder *flatbuffers.Builder, end uint32) { - builder.PrependUint32Slot(2, end, 1000) -} -func CallableTimeoutsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// General settings for timeouts when switching callable operation states +type CallableTimeoutsT struct { + Begin uint32 + Execute uint32 + End uint32 +} + +func (t *CallableTimeoutsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CallableTimeoutsStart(builder) + CallableTimeoutsAddBegin(builder, t.Begin) + CallableTimeoutsAddExecute(builder, t.Execute) + CallableTimeoutsAddEnd(builder, t.End) + return CallableTimeoutsEnd(builder) +} + +func (rcv *CallableTimeouts) UnPackTo(t *CallableTimeoutsT) { + t.Begin = rcv.Begin() + t.Execute = rcv.Execute() + t.End = rcv.End() +} + +func (rcv *CallableTimeouts) UnPack() *CallableTimeoutsT { + if rcv == nil { return nil } + t := &CallableTimeoutsT{} + rcv.UnPackTo(t) + return t +} + +type CallableTimeouts struct { + _tab flatbuffers.Table +} + +func GetRootAsCallableTimeouts(buf []byte, offset flatbuffers.UOffsetT) *CallableTimeouts { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CallableTimeouts{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCallableTimeouts(buf []byte, offset flatbuffers.UOffsetT) *CallableTimeouts { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CallableTimeouts{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CallableTimeouts) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CallableTimeouts) Table() flatbuffers.Table { + return rcv._tab +} + +/// General settings for timeouts when switching callable operation states - phase BEGIN +func (rcv *CallableTimeouts) Begin() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 1000 +} + +/// General settings for timeouts when switching callable operation states - phase BEGIN +func (rcv *CallableTimeouts) MutateBegin(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// General settings for timeouts when switching callable operation states - phase EXECUTE +func (rcv *CallableTimeouts) Execute() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 60000 +} + +/// General settings for timeouts when switching callable operation states - phase EXECUTE +func (rcv *CallableTimeouts) MutateExecute(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// General settings for timeouts when switching callable operation states - phase END +func (rcv *CallableTimeouts) End() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 1000 +} + +/// General settings for timeouts when switching callable operation states - phase END +func (rcv *CallableTimeouts) MutateEnd(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func CallableTimeoutsStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CallableTimeoutsAddBegin(builder *flatbuffers.Builder, begin uint32) { + builder.PrependUint32Slot(0, begin, 1000) +} +func CallableTimeoutsAddExecute(builder *flatbuffers.Builder, execute uint32) { + builder.PrependUint32Slot(1, execute, 60000) +} +func CallableTimeoutsAddEnd(builder *flatbuffers.Builder, end uint32) { + builder.PrependUint32Slot(2, end, 1000) +} +func CallableTimeoutsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/CpuInfo.go b/pkg/fbs/common/scheduler/fbs2/CpuInfo.go index 2c510cc..f48090a 100644 --- a/pkg/fbs/common/scheduler/fbs2/CpuInfo.go +++ b/pkg/fbs/common/scheduler/fbs2/CpuInfo.go @@ -1,447 +1,478 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CpuInfoT struct { - CpuCoresTotal []uint32 - CpuCoresActive []uint32 - CpuCoresRealtime []uint32 - CpuCoresNonRealtime []uint32 - CpuCoreRealtimeMax int32 - CpuCoreRealtimeMin int32 - CpuCoreRealtimeDefault int32 - CpuCoreNonRealtimeMax int32 - CpuCoreNonRealtimeMin int32 - CpuCoreNonRealtimeDefault int32 - VariationId string - CpuCoreHwWdg uint32 - CpuCorePtpTimer uint32 - CpuCoreScheduler uint32 - CpuCoreAutomation uint32 -} - -func (t *CpuInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cpuCoresTotalOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresTotal != nil { - cpuCoresTotalLength := len(t.CpuCoresTotal) - CpuInfoStartCpuCoresTotalVector(builder, cpuCoresTotalLength) - for j := cpuCoresTotalLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresTotal[j]) - } - cpuCoresTotalOffset = builder.EndVector(cpuCoresTotalLength) - } - cpuCoresActiveOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresActive != nil { - cpuCoresActiveLength := len(t.CpuCoresActive) - CpuInfoStartCpuCoresActiveVector(builder, cpuCoresActiveLength) - for j := cpuCoresActiveLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresActive[j]) - } - cpuCoresActiveOffset = builder.EndVector(cpuCoresActiveLength) - } - cpuCoresRealtimeOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresRealtime != nil { - cpuCoresRealtimeLength := len(t.CpuCoresRealtime) - CpuInfoStartCpuCoresRealtimeVector(builder, cpuCoresRealtimeLength) - for j := cpuCoresRealtimeLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresRealtime[j]) - } - cpuCoresRealtimeOffset = builder.EndVector(cpuCoresRealtimeLength) - } - cpuCoresNonRealtimeOffset := flatbuffers.UOffsetT(0) - if t.CpuCoresNonRealtime != nil { - cpuCoresNonRealtimeLength := len(t.CpuCoresNonRealtime) - CpuInfoStartCpuCoresNonRealtimeVector(builder, cpuCoresNonRealtimeLength) - for j := cpuCoresNonRealtimeLength - 1; j >= 0; j-- { - builder.PrependUint32(t.CpuCoresNonRealtime[j]) - } - cpuCoresNonRealtimeOffset = builder.EndVector(cpuCoresNonRealtimeLength) - } - variationIdOffset := builder.CreateString(t.VariationId) - CpuInfoStart(builder) - CpuInfoAddCpuCoresTotal(builder, cpuCoresTotalOffset) - CpuInfoAddCpuCoresActive(builder, cpuCoresActiveOffset) - CpuInfoAddCpuCoresRealtime(builder, cpuCoresRealtimeOffset) - CpuInfoAddCpuCoresNonRealtime(builder, cpuCoresNonRealtimeOffset) - CpuInfoAddCpuCoreRealtimeMax(builder, t.CpuCoreRealtimeMax) - CpuInfoAddCpuCoreRealtimeMin(builder, t.CpuCoreRealtimeMin) - CpuInfoAddCpuCoreRealtimeDefault(builder, t.CpuCoreRealtimeDefault) - CpuInfoAddCpuCoreNonRealtimeMax(builder, t.CpuCoreNonRealtimeMax) - CpuInfoAddCpuCoreNonRealtimeMin(builder, t.CpuCoreNonRealtimeMin) - CpuInfoAddCpuCoreNonRealtimeDefault(builder, t.CpuCoreNonRealtimeDefault) - CpuInfoAddVariationId(builder, variationIdOffset) - CpuInfoAddCpuCoreHwWdg(builder, t.CpuCoreHwWdg) - CpuInfoAddCpuCorePtpTimer(builder, t.CpuCorePtpTimer) - CpuInfoAddCpuCoreScheduler(builder, t.CpuCoreScheduler) - CpuInfoAddCpuCoreAutomation(builder, t.CpuCoreAutomation) - return CpuInfoEnd(builder) -} - -func (rcv *CpuInfo) UnPackTo(t *CpuInfoT) { - cpuCoresTotalLength := rcv.CpuCoresTotalLength() - t.CpuCoresTotal = make([]uint32, cpuCoresTotalLength) - for j := 0; j < cpuCoresTotalLength; j++ { - t.CpuCoresTotal[j] = rcv.CpuCoresTotal(j) - } - cpuCoresActiveLength := rcv.CpuCoresActiveLength() - t.CpuCoresActive = make([]uint32, cpuCoresActiveLength) - for j := 0; j < cpuCoresActiveLength; j++ { - t.CpuCoresActive[j] = rcv.CpuCoresActive(j) - } - cpuCoresRealtimeLength := rcv.CpuCoresRealtimeLength() - t.CpuCoresRealtime = make([]uint32, cpuCoresRealtimeLength) - for j := 0; j < cpuCoresRealtimeLength; j++ { - t.CpuCoresRealtime[j] = rcv.CpuCoresRealtime(j) - } - cpuCoresNonRealtimeLength := rcv.CpuCoresNonRealtimeLength() - t.CpuCoresNonRealtime = make([]uint32, cpuCoresNonRealtimeLength) - for j := 0; j < cpuCoresNonRealtimeLength; j++ { - t.CpuCoresNonRealtime[j] = rcv.CpuCoresNonRealtime(j) - } - t.CpuCoreRealtimeMax = rcv.CpuCoreRealtimeMax() - t.CpuCoreRealtimeMin = rcv.CpuCoreRealtimeMin() - t.CpuCoreRealtimeDefault = rcv.CpuCoreRealtimeDefault() - t.CpuCoreNonRealtimeMax = rcv.CpuCoreNonRealtimeMax() - t.CpuCoreNonRealtimeMin = rcv.CpuCoreNonRealtimeMin() - t.CpuCoreNonRealtimeDefault = rcv.CpuCoreNonRealtimeDefault() - t.VariationId = string(rcv.VariationId()) - t.CpuCoreHwWdg = rcv.CpuCoreHwWdg() - t.CpuCorePtpTimer = rcv.CpuCorePtpTimer() - t.CpuCoreScheduler = rcv.CpuCoreScheduler() - t.CpuCoreAutomation = rcv.CpuCoreAutomation() -} - -func (rcv *CpuInfo) UnPack() *CpuInfoT { - if rcv == nil { return nil } - t := &CpuInfoT{} - rcv.UnPackTo(t) - return t -} - -type CpuInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CpuInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CpuInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CpuInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CpuInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CpuInfo) CpuCoresTotal(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresTotalLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresTotal(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoresActive(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresActiveLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresActive(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoresRealtime(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresRealtimeLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresRealtime(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoresNonRealtime(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *CpuInfo) CpuCoresNonRealtimeLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoresNonRealtime(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func (rcv *CpuInfo) CpuCoreRealtimeMax() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreRealtimeMax(n int32) bool { - return rcv._tab.MutateInt32Slot(12, n) -} - -func (rcv *CpuInfo) CpuCoreRealtimeMin() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreRealtimeMin(n int32) bool { - return rcv._tab.MutateInt32Slot(14, n) -} - -func (rcv *CpuInfo) CpuCoreRealtimeDefault() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreRealtimeDefault(n int32) bool { - return rcv._tab.MutateInt32Slot(16, n) -} - -func (rcv *CpuInfo) CpuCoreNonRealtimeMax() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMax(n int32) bool { - return rcv._tab.MutateInt32Slot(18, n) -} - -func (rcv *CpuInfo) CpuCoreNonRealtimeMin() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMin(n int32) bool { - return rcv._tab.MutateInt32Slot(20, n) -} - -func (rcv *CpuInfo) CpuCoreNonRealtimeDefault() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -func (rcv *CpuInfo) MutateCpuCoreNonRealtimeDefault(n int32) bool { - return rcv._tab.MutateInt32Slot(22, n) -} - -func (rcv *CpuInfo) VariationId() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CpuInfo) CpuCoreHwWdg() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoreHwWdg(n uint32) bool { - return rcv._tab.MutateUint32Slot(26, n) -} - -func (rcv *CpuInfo) CpuCorePtpTimer() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCorePtpTimer(n uint32) bool { - return rcv._tab.MutateUint32Slot(28, n) -} - -func (rcv *CpuInfo) CpuCoreScheduler() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoreScheduler(n uint32) bool { - return rcv._tab.MutateUint32Slot(30, n) -} - -func (rcv *CpuInfo) CpuCoreAutomation() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *CpuInfo) MutateCpuCoreAutomation(n uint32) bool { - return rcv._tab.MutateUint32Slot(32, n) -} - -func CpuInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(15) -} -func CpuInfoAddCpuCoresTotal(builder *flatbuffers.Builder, cpuCoresTotal flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cpuCoresTotal), 0) -} -func CpuInfoStartCpuCoresTotalVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoresActive(builder *flatbuffers.Builder, cpuCoresActive flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(cpuCoresActive), 0) -} -func CpuInfoStartCpuCoresActiveVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoresRealtime(builder *flatbuffers.Builder, cpuCoresRealtime flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(cpuCoresRealtime), 0) -} -func CpuInfoStartCpuCoresRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoresNonRealtime(builder *flatbuffers.Builder, cpuCoresNonRealtime flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(cpuCoresNonRealtime), 0) -} -func CpuInfoStartCpuCoresNonRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CpuInfoAddCpuCoreRealtimeMax(builder *flatbuffers.Builder, cpuCoreRealtimeMax int32) { - builder.PrependInt32Slot(4, cpuCoreRealtimeMax, -1) -} -func CpuInfoAddCpuCoreRealtimeMin(builder *flatbuffers.Builder, cpuCoreRealtimeMin int32) { - builder.PrependInt32Slot(5, cpuCoreRealtimeMin, -1) -} -func CpuInfoAddCpuCoreRealtimeDefault(builder *flatbuffers.Builder, cpuCoreRealtimeDefault int32) { - builder.PrependInt32Slot(6, cpuCoreRealtimeDefault, -1) -} -func CpuInfoAddCpuCoreNonRealtimeMax(builder *flatbuffers.Builder, cpuCoreNonRealtimeMax int32) { - builder.PrependInt32Slot(7, cpuCoreNonRealtimeMax, -1) -} -func CpuInfoAddCpuCoreNonRealtimeMin(builder *flatbuffers.Builder, cpuCoreNonRealtimeMin int32) { - builder.PrependInt32Slot(8, cpuCoreNonRealtimeMin, -1) -} -func CpuInfoAddCpuCoreNonRealtimeDefault(builder *flatbuffers.Builder, cpuCoreNonRealtimeDefault int32) { - builder.PrependInt32Slot(9, cpuCoreNonRealtimeDefault, -1) -} -func CpuInfoAddVariationId(builder *flatbuffers.Builder, variationId flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(variationId), 0) -} -func CpuInfoAddCpuCoreHwWdg(builder *flatbuffers.Builder, cpuCoreHwWdg uint32) { - builder.PrependUint32Slot(11, cpuCoreHwWdg, 0) -} -func CpuInfoAddCpuCorePtpTimer(builder *flatbuffers.Builder, cpuCorePtpTimer uint32) { - builder.PrependUint32Slot(12, cpuCorePtpTimer, 0) -} -func CpuInfoAddCpuCoreScheduler(builder *flatbuffers.Builder, cpuCoreScheduler uint32) { - builder.PrependUint32Slot(13, cpuCoreScheduler, 0) -} -func CpuInfoAddCpuCoreAutomation(builder *flatbuffers.Builder, cpuCoreAutomation uint32) { - builder.PrependUint32Slot(14, cpuCoreAutomation, 0) -} -func CpuInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Information about CPU cores of ctrlX CORE +type CpuInfoT struct { + CpuCoresTotal []uint32 + CpuCoresActive []uint32 + CpuCoresRealtime []uint32 + CpuCoresNonRealtime []uint32 + CpuCoreRealtimeMax int32 + CpuCoreRealtimeMin int32 + CpuCoreRealtimeDefault int32 + CpuCoreNonRealtimeMax int32 + CpuCoreNonRealtimeMin int32 + CpuCoreNonRealtimeDefault int32 + VariationId string + CpuCoreHwWdg uint32 + CpuCorePtpTimer uint32 + CpuCoreScheduler uint32 + CpuCoreAutomation uint32 +} + +func (t *CpuInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cpuCoresTotalOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresTotal != nil { + cpuCoresTotalLength := len(t.CpuCoresTotal) + CpuInfoStartCpuCoresTotalVector(builder, cpuCoresTotalLength) + for j := cpuCoresTotalLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresTotal[j]) + } + cpuCoresTotalOffset = builder.EndVector(cpuCoresTotalLength) + } + cpuCoresActiveOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresActive != nil { + cpuCoresActiveLength := len(t.CpuCoresActive) + CpuInfoStartCpuCoresActiveVector(builder, cpuCoresActiveLength) + for j := cpuCoresActiveLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresActive[j]) + } + cpuCoresActiveOffset = builder.EndVector(cpuCoresActiveLength) + } + cpuCoresRealtimeOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresRealtime != nil { + cpuCoresRealtimeLength := len(t.CpuCoresRealtime) + CpuInfoStartCpuCoresRealtimeVector(builder, cpuCoresRealtimeLength) + for j := cpuCoresRealtimeLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresRealtime[j]) + } + cpuCoresRealtimeOffset = builder.EndVector(cpuCoresRealtimeLength) + } + cpuCoresNonRealtimeOffset := flatbuffers.UOffsetT(0) + if t.CpuCoresNonRealtime != nil { + cpuCoresNonRealtimeLength := len(t.CpuCoresNonRealtime) + CpuInfoStartCpuCoresNonRealtimeVector(builder, cpuCoresNonRealtimeLength) + for j := cpuCoresNonRealtimeLength - 1; j >= 0; j-- { + builder.PrependUint32(t.CpuCoresNonRealtime[j]) + } + cpuCoresNonRealtimeOffset = builder.EndVector(cpuCoresNonRealtimeLength) + } + variationIdOffset := builder.CreateString(t.VariationId) + CpuInfoStart(builder) + CpuInfoAddCpuCoresTotal(builder, cpuCoresTotalOffset) + CpuInfoAddCpuCoresActive(builder, cpuCoresActiveOffset) + CpuInfoAddCpuCoresRealtime(builder, cpuCoresRealtimeOffset) + CpuInfoAddCpuCoresNonRealtime(builder, cpuCoresNonRealtimeOffset) + CpuInfoAddCpuCoreRealtimeMax(builder, t.CpuCoreRealtimeMax) + CpuInfoAddCpuCoreRealtimeMin(builder, t.CpuCoreRealtimeMin) + CpuInfoAddCpuCoreRealtimeDefault(builder, t.CpuCoreRealtimeDefault) + CpuInfoAddCpuCoreNonRealtimeMax(builder, t.CpuCoreNonRealtimeMax) + CpuInfoAddCpuCoreNonRealtimeMin(builder, t.CpuCoreNonRealtimeMin) + CpuInfoAddCpuCoreNonRealtimeDefault(builder, t.CpuCoreNonRealtimeDefault) + CpuInfoAddVariationId(builder, variationIdOffset) + CpuInfoAddCpuCoreHwWdg(builder, t.CpuCoreHwWdg) + CpuInfoAddCpuCorePtpTimer(builder, t.CpuCorePtpTimer) + CpuInfoAddCpuCoreScheduler(builder, t.CpuCoreScheduler) + CpuInfoAddCpuCoreAutomation(builder, t.CpuCoreAutomation) + return CpuInfoEnd(builder) +} + +func (rcv *CpuInfo) UnPackTo(t *CpuInfoT) { + cpuCoresTotalLength := rcv.CpuCoresTotalLength() + t.CpuCoresTotal = make([]uint32, cpuCoresTotalLength) + for j := 0; j < cpuCoresTotalLength; j++ { + t.CpuCoresTotal[j] = rcv.CpuCoresTotal(j) + } + cpuCoresActiveLength := rcv.CpuCoresActiveLength() + t.CpuCoresActive = make([]uint32, cpuCoresActiveLength) + for j := 0; j < cpuCoresActiveLength; j++ { + t.CpuCoresActive[j] = rcv.CpuCoresActive(j) + } + cpuCoresRealtimeLength := rcv.CpuCoresRealtimeLength() + t.CpuCoresRealtime = make([]uint32, cpuCoresRealtimeLength) + for j := 0; j < cpuCoresRealtimeLength; j++ { + t.CpuCoresRealtime[j] = rcv.CpuCoresRealtime(j) + } + cpuCoresNonRealtimeLength := rcv.CpuCoresNonRealtimeLength() + t.CpuCoresNonRealtime = make([]uint32, cpuCoresNonRealtimeLength) + for j := 0; j < cpuCoresNonRealtimeLength; j++ { + t.CpuCoresNonRealtime[j] = rcv.CpuCoresNonRealtime(j) + } + t.CpuCoreRealtimeMax = rcv.CpuCoreRealtimeMax() + t.CpuCoreRealtimeMin = rcv.CpuCoreRealtimeMin() + t.CpuCoreRealtimeDefault = rcv.CpuCoreRealtimeDefault() + t.CpuCoreNonRealtimeMax = rcv.CpuCoreNonRealtimeMax() + t.CpuCoreNonRealtimeMin = rcv.CpuCoreNonRealtimeMin() + t.CpuCoreNonRealtimeDefault = rcv.CpuCoreNonRealtimeDefault() + t.VariationId = string(rcv.VariationId()) + t.CpuCoreHwWdg = rcv.CpuCoreHwWdg() + t.CpuCorePtpTimer = rcv.CpuCorePtpTimer() + t.CpuCoreScheduler = rcv.CpuCoreScheduler() + t.CpuCoreAutomation = rcv.CpuCoreAutomation() +} + +func (rcv *CpuInfo) UnPack() *CpuInfoT { + if rcv == nil { return nil } + t := &CpuInfoT{} + rcv.UnPackTo(t) + return t +} + +type CpuInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CpuInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCpuInfo(buf []byte, offset flatbuffers.UOffsetT) *CpuInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CpuInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CpuInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CpuInfo) Table() flatbuffers.Table { + return rcv._tab +} + +/// Identification indices of all available CPU cores +func (rcv *CpuInfo) CpuCoresTotal(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresTotalLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Identification indices of all available CPU cores +func (rcv *CpuInfo) MutateCpuCoresTotal(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +/// Identification indices of all available active CPU cores +func (rcv *CpuInfo) CpuCoresActive(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresActiveLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Identification indices of all available active CPU cores +func (rcv *CpuInfo) MutateCpuCoresActive(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +/// Identification indices of the available CPU cores assigned to real-time processing +func (rcv *CpuInfo) CpuCoresRealtime(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresRealtimeLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Identification indices of the available CPU cores assigned to real-time processing +func (rcv *CpuInfo) MutateCpuCoresRealtime(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +/// Identification indices of the available CPU cores assigned to non real-time processing +func (rcv *CpuInfo) CpuCoresNonRealtime(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *CpuInfo) CpuCoresNonRealtimeLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Identification indices of the available CPU cores assigned to non real-time processing +func (rcv *CpuInfo) MutateCpuCoresNonRealtime(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +/// Highest available identification index of the CPU core for real-time processing +func (rcv *CpuInfo) CpuCoreRealtimeMax() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// Highest available identification index of the CPU core for real-time processing +func (rcv *CpuInfo) MutateCpuCoreRealtimeMax(n int32) bool { + return rcv._tab.MutateInt32Slot(12, n) +} + +/// Lowest available identification index of the CPU core for real-time processing +func (rcv *CpuInfo) CpuCoreRealtimeMin() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// Lowest available identification index of the CPU core for real-time processing +func (rcv *CpuInfo) MutateCpuCoreRealtimeMin(n int32) bool { + return rcv._tab.MutateInt32Slot(14, n) +} + +/// Identification index of the CPU core assigned to real-time processing by default +func (rcv *CpuInfo) CpuCoreRealtimeDefault() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// Identification index of the CPU core assigned to real-time processing by default +func (rcv *CpuInfo) MutateCpuCoreRealtimeDefault(n int32) bool { + return rcv._tab.MutateInt32Slot(16, n) +} + +/// Highest available identification index of the CPU core for non real-time processing +func (rcv *CpuInfo) CpuCoreNonRealtimeMax() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// Highest available identification index of the CPU core for non real-time processing +func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMax(n int32) bool { + return rcv._tab.MutateInt32Slot(18, n) +} + +/// Lowest available identification index of the CPU core for non real-time processing +func (rcv *CpuInfo) CpuCoreNonRealtimeMin() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// Lowest available identification index of the CPU core for non real-time processing +func (rcv *CpuInfo) MutateCpuCoreNonRealtimeMin(n int32) bool { + return rcv._tab.MutateInt32Slot(20, n) +} + +/// Identification index of the CPU core assigned to non real-time processing by default +func (rcv *CpuInfo) CpuCoreNonRealtimeDefault() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// Identification index of the CPU core assigned to non real-time processing by default +func (rcv *CpuInfo) MutateCpuCoreNonRealtimeDefault(n int32) bool { + return rcv._tab.MutateInt32Slot(22, n) +} + +/// Variation ID to manage special handling of CPU type +func (rcv *CpuInfo) VariationId() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Variation ID to manage special handling of CPU type +/// Identification index of the CPU core on which the hardware watchdog is handled +func (rcv *CpuInfo) CpuCoreHwWdg() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Identification index of the CPU core on which the hardware watchdog is handled +func (rcv *CpuInfo) MutateCpuCoreHwWdg(n uint32) bool { + return rcv._tab.MutateUint32Slot(26, n) +} + +/// Identification index of the CPU core on which the FPGA interrupt is handled +func (rcv *CpuInfo) CpuCorePtpTimer() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Identification index of the CPU core on which the FPGA interrupt is handled +func (rcv *CpuInfo) MutateCpuCorePtpTimer(n uint32) bool { + return rcv._tab.MutateUint32Slot(28, n) +} + +/// Identification index of the CPU core on which the Scheduler tick task is executed +func (rcv *CpuInfo) CpuCoreScheduler() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Identification index of the CPU core on which the Scheduler tick task is executed +func (rcv *CpuInfo) MutateCpuCoreScheduler(n uint32) bool { + return rcv._tab.MutateUint32Slot(30, n) +} + +/// Identification index of the CPU core on which the user task 'ctrlXAutomation' is executed by default +func (rcv *CpuInfo) CpuCoreAutomation() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Identification index of the CPU core on which the user task 'ctrlXAutomation' is executed by default +func (rcv *CpuInfo) MutateCpuCoreAutomation(n uint32) bool { + return rcv._tab.MutateUint32Slot(32, n) +} + +func CpuInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(15) +} +func CpuInfoAddCpuCoresTotal(builder *flatbuffers.Builder, cpuCoresTotal flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cpuCoresTotal), 0) +} +func CpuInfoStartCpuCoresTotalVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoresActive(builder *flatbuffers.Builder, cpuCoresActive flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(cpuCoresActive), 0) +} +func CpuInfoStartCpuCoresActiveVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoresRealtime(builder *flatbuffers.Builder, cpuCoresRealtime flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(cpuCoresRealtime), 0) +} +func CpuInfoStartCpuCoresRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoresNonRealtime(builder *flatbuffers.Builder, cpuCoresNonRealtime flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(cpuCoresNonRealtime), 0) +} +func CpuInfoStartCpuCoresNonRealtimeVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CpuInfoAddCpuCoreRealtimeMax(builder *flatbuffers.Builder, cpuCoreRealtimeMax int32) { + builder.PrependInt32Slot(4, cpuCoreRealtimeMax, -1) +} +func CpuInfoAddCpuCoreRealtimeMin(builder *flatbuffers.Builder, cpuCoreRealtimeMin int32) { + builder.PrependInt32Slot(5, cpuCoreRealtimeMin, -1) +} +func CpuInfoAddCpuCoreRealtimeDefault(builder *flatbuffers.Builder, cpuCoreRealtimeDefault int32) { + builder.PrependInt32Slot(6, cpuCoreRealtimeDefault, -1) +} +func CpuInfoAddCpuCoreNonRealtimeMax(builder *flatbuffers.Builder, cpuCoreNonRealtimeMax int32) { + builder.PrependInt32Slot(7, cpuCoreNonRealtimeMax, -1) +} +func CpuInfoAddCpuCoreNonRealtimeMin(builder *flatbuffers.Builder, cpuCoreNonRealtimeMin int32) { + builder.PrependInt32Slot(8, cpuCoreNonRealtimeMin, -1) +} +func CpuInfoAddCpuCoreNonRealtimeDefault(builder *flatbuffers.Builder, cpuCoreNonRealtimeDefault int32) { + builder.PrependInt32Slot(9, cpuCoreNonRealtimeDefault, -1) +} +func CpuInfoAddVariationId(builder *flatbuffers.Builder, variationId flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(variationId), 0) +} +func CpuInfoAddCpuCoreHwWdg(builder *flatbuffers.Builder, cpuCoreHwWdg uint32) { + builder.PrependUint32Slot(11, cpuCoreHwWdg, 0) +} +func CpuInfoAddCpuCorePtpTimer(builder *flatbuffers.Builder, cpuCorePtpTimer uint32) { + builder.PrependUint32Slot(12, cpuCorePtpTimer, 0) +} +func CpuInfoAddCpuCoreScheduler(builder *flatbuffers.Builder, cpuCoreScheduler uint32) { + builder.PrependUint32Slot(13, cpuCoreScheduler, 0) +} +func CpuInfoAddCpuCoreAutomation(builder *flatbuffers.Builder, cpuCoreAutomation uint32) { + builder.PrependUint32Slot(14, cpuCoreAutomation, 0) +} +func CpuInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/CurrentState.go b/pkg/fbs/common/scheduler/fbs2/CurrentState.go index b421de2..a9911f3 100644 --- a/pkg/fbs/common/scheduler/fbs2/CurrentState.go +++ b/pkg/fbs/common/scheduler/fbs2/CurrentState.go @@ -1,35 +1,40 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import "strconv" - -type CurrentState int8 - -const ( - CurrentStateOPERATING CurrentState = 0 - CurrentStateSETUP CurrentState = 1 - CurrentStateSERVICE CurrentState = 2 - CurrentStateEXIT CurrentState = 3 -) - -var EnumNamesCurrentState = map[CurrentState]string{ - CurrentStateOPERATING: "OPERATING", - CurrentStateSETUP: "SETUP", - CurrentStateSERVICE: "SERVICE", - CurrentStateEXIT: "EXIT", -} - -var EnumValuesCurrentState = map[string]CurrentState{ - "OPERATING": CurrentStateOPERATING, - "SETUP": CurrentStateSETUP, - "SERVICE": CurrentStateSERVICE, - "EXIT": CurrentStateEXIT, -} - -func (v CurrentState) String() string { - if s, ok := EnumNamesCurrentState[v]; ok { - return s - } - return "CurrentState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import "strconv" + +/// Types of operation state +type CurrentState int8 + +const ( + /// User tasks and callables will executed, changes to the configuration might not be permitted, action with influence on the real-time behavior (like app installation) are not allowed + CurrentStateOPERATING CurrentState = 0 + /// User tasks and callables will executed, changes to the configuration are permitted, action with influence on the real-time behavior (like app installation) are not allowed + CurrentStateSETUP CurrentState = 1 + /// User tasks and callables are not executed, action with influence on the real-time behavior can be performed + CurrentStateSERVICE CurrentState = 2 + /// Termination of task is pending + CurrentStateEXIT CurrentState = 3 +) + +var EnumNamesCurrentState = map[CurrentState]string{ + CurrentStateOPERATING: "OPERATING", + CurrentStateSETUP: "SETUP", + CurrentStateSERVICE: "SERVICE", + CurrentStateEXIT: "EXIT", +} + +var EnumValuesCurrentState = map[string]CurrentState{ + "OPERATING": CurrentStateOPERATING, + "SETUP": CurrentStateSETUP, + "SERVICE": CurrentStateSERVICE, + "EXIT": CurrentStateEXIT, +} + +func (v CurrentState) String() string { + if s, ok := EnumNamesCurrentState[v]; ok { + return s + } + return "CurrentState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/fbs2/Program.go b/pkg/fbs/common/scheduler/fbs2/Program.go index 3fc7767..216dddb 100644 --- a/pkg/fbs/common/scheduler/fbs2/Program.go +++ b/pkg/fbs/common/scheduler/fbs2/Program.go @@ -1,194 +1,203 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - common__scheduler__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs" - common__scheduler__watchdog__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/watchdog/fbs" -) - -type ProgramT struct { - Task *common__scheduler__fbs.TaskT - Callables []*common__scheduler__fbs.CallableT - Watchdog *common__scheduler__watchdog__fbs.WatchdogT - Sequence []string -} - -func (t *ProgramT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - taskOffset := t.Task.Pack(builder) - callablesOffset := flatbuffers.UOffsetT(0) - if t.Callables != nil { - callablesLength := len(t.Callables) - callablesOffsets := make([]flatbuffers.UOffsetT, callablesLength) - for j := 0; j < callablesLength; j++ { - callablesOffsets[j] = t.Callables[j].Pack(builder) - } - ProgramStartCallablesVector(builder, callablesLength) - for j := callablesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(callablesOffsets[j]) - } - callablesOffset = builder.EndVector(callablesLength) - } - watchdogOffset := t.Watchdog.Pack(builder) - sequenceOffset := flatbuffers.UOffsetT(0) - if t.Sequence != nil { - sequenceLength := len(t.Sequence) - sequenceOffsets := make([]flatbuffers.UOffsetT, sequenceLength) - for j := 0; j < sequenceLength; j++ { - sequenceOffsets[j] = builder.CreateString(t.Sequence[j]) - } - ProgramStartSequenceVector(builder, sequenceLength) - for j := sequenceLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(sequenceOffsets[j]) - } - sequenceOffset = builder.EndVector(sequenceLength) - } - ProgramStart(builder) - ProgramAddTask(builder, taskOffset) - ProgramAddCallables(builder, callablesOffset) - ProgramAddWatchdog(builder, watchdogOffset) - ProgramAddSequence(builder, sequenceOffset) - return ProgramEnd(builder) -} - -func (rcv *Program) UnPackTo(t *ProgramT) { - t.Task = rcv.Task(nil).UnPack() - callablesLength := rcv.CallablesLength() - t.Callables = make([]*common__scheduler__fbs.CallableT, callablesLength) - for j := 0; j < callablesLength; j++ { - x := common__scheduler__fbs.Callable{} - rcv.Callables(&x, j) - t.Callables[j] = x.UnPack() - } - t.Watchdog = rcv.Watchdog(nil).UnPack() - sequenceLength := rcv.SequenceLength() - t.Sequence = make([]string, sequenceLength) - for j := 0; j < sequenceLength; j++ { - t.Sequence[j] = string(rcv.Sequence(j)) - } -} - -func (rcv *Program) UnPack() *ProgramT { - if rcv == nil { return nil } - t := &ProgramT{} - rcv.UnPackTo(t) - return t -} - -type Program struct { - _tab flatbuffers.Table -} - -func GetRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Program{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Program{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Program) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Program) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Program) Task(obj *common__scheduler__fbs.Task) *common__scheduler__fbs.Task { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(common__scheduler__fbs.Task) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Program) Callables(obj *common__scheduler__fbs.Callable, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Program) CallablesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Program) Watchdog(obj *common__scheduler__watchdog__fbs.Watchdog) *common__scheduler__watchdog__fbs.Watchdog { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(common__scheduler__watchdog__fbs.Watchdog) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Program) Sequence(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Program) SequenceLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ProgramStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func ProgramAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(task), 0) -} -func ProgramAddCallables(builder *flatbuffers.Builder, callables flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(callables), 0) -} -func ProgramStartCallablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProgramAddWatchdog(builder *flatbuffers.Builder, watchdog flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(watchdog), 0) -} -func ProgramAddSequence(builder *flatbuffers.Builder, sequence flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(sequence), 0) -} -func ProgramStartSequenceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProgramEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + common__scheduler__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/fbs" + common__scheduler__watchdog__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/watchdog/fbs" +) + +/// Composition of callables executed by the task in given sequence +type ProgramT struct { + Task *common__scheduler__fbs.TaskT + Callables []*common__scheduler__fbs.CallableT + Watchdog *common__scheduler__watchdog__fbs.WatchdogT + Sequence []string +} + +func (t *ProgramT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + taskOffset := t.Task.Pack(builder) + callablesOffset := flatbuffers.UOffsetT(0) + if t.Callables != nil { + callablesLength := len(t.Callables) + callablesOffsets := make([]flatbuffers.UOffsetT, callablesLength) + for j := 0; j < callablesLength; j++ { + callablesOffsets[j] = t.Callables[j].Pack(builder) + } + ProgramStartCallablesVector(builder, callablesLength) + for j := callablesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(callablesOffsets[j]) + } + callablesOffset = builder.EndVector(callablesLength) + } + watchdogOffset := t.Watchdog.Pack(builder) + sequenceOffset := flatbuffers.UOffsetT(0) + if t.Sequence != nil { + sequenceLength := len(t.Sequence) + sequenceOffsets := make([]flatbuffers.UOffsetT, sequenceLength) + for j := 0; j < sequenceLength; j++ { + sequenceOffsets[j] = builder.CreateString(t.Sequence[j]) + } + ProgramStartSequenceVector(builder, sequenceLength) + for j := sequenceLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(sequenceOffsets[j]) + } + sequenceOffset = builder.EndVector(sequenceLength) + } + ProgramStart(builder) + ProgramAddTask(builder, taskOffset) + ProgramAddCallables(builder, callablesOffset) + ProgramAddWatchdog(builder, watchdogOffset) + ProgramAddSequence(builder, sequenceOffset) + return ProgramEnd(builder) +} + +func (rcv *Program) UnPackTo(t *ProgramT) { + t.Task = rcv.Task(nil).UnPack() + callablesLength := rcv.CallablesLength() + t.Callables = make([]*common__scheduler__fbs.CallableT, callablesLength) + for j := 0; j < callablesLength; j++ { + x := common__scheduler__fbs.Callable{} + rcv.Callables(&x, j) + t.Callables[j] = x.UnPack() + } + t.Watchdog = rcv.Watchdog(nil).UnPack() + sequenceLength := rcv.SequenceLength() + t.Sequence = make([]string, sequenceLength) + for j := 0; j < sequenceLength; j++ { + t.Sequence[j] = string(rcv.Sequence(j)) + } +} + +func (rcv *Program) UnPack() *ProgramT { + if rcv == nil { return nil } + t := &ProgramT{} + rcv.UnPackTo(t) + return t +} + +type Program struct { + _tab flatbuffers.Table +} + +func GetRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Program{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProgram(buf []byte, offset flatbuffers.UOffsetT) *Program { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Program{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Program) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Program) Table() flatbuffers.Table { + return rcv._tab +} + +/// Task configuration which executes the program +func (rcv *Program) Task(obj *common__scheduler__fbs.Task) *common__scheduler__fbs.Task { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(common__scheduler__fbs.Task) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Task configuration which executes the program +/// Composition of callables, executes jobs defined by regarding apps +func (rcv *Program) Callables(obj *common__scheduler__fbs.Callable, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Program) CallablesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Composition of callables, executes jobs defined by regarding apps +/// Configuration of task watchdog +func (rcv *Program) Watchdog(obj *common__scheduler__watchdog__fbs.Watchdog) *common__scheduler__watchdog__fbs.Watchdog { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(common__scheduler__watchdog__fbs.Watchdog) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Configuration of task watchdog +/// Call sequence of callables within the program [0-9]+ +func (rcv *Program) Sequence(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Program) SequenceLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Call sequence of callables within the program [0-9]+ +func ProgramStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func ProgramAddTask(builder *flatbuffers.Builder, task flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(task), 0) +} +func ProgramAddCallables(builder *flatbuffers.Builder, callables flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(callables), 0) +} +func ProgramStartCallablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProgramAddWatchdog(builder *flatbuffers.Builder, watchdog flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(watchdog), 0) +} +func ProgramAddSequence(builder *flatbuffers.Builder, sequence flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(sequence), 0) +} +func ProgramStartSequenceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProgramEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/Programs.go b/pkg/fbs/common/scheduler/fbs2/Programs.go index 89acbf7..9f7596a 100644 --- a/pkg/fbs/common/scheduler/fbs2/Programs.go +++ b/pkg/fbs/common/scheduler/fbs2/Programs.go @@ -1,151 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ProgramsT struct { - Programs []*ProgramT - CallablePool []string -} - -func (t *ProgramsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - programsOffset := flatbuffers.UOffsetT(0) - if t.Programs != nil { - programsLength := len(t.Programs) - programsOffsets := make([]flatbuffers.UOffsetT, programsLength) - for j := 0; j < programsLength; j++ { - programsOffsets[j] = t.Programs[j].Pack(builder) - } - ProgramsStartProgramsVector(builder, programsLength) - for j := programsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(programsOffsets[j]) - } - programsOffset = builder.EndVector(programsLength) - } - callablePoolOffset := flatbuffers.UOffsetT(0) - if t.CallablePool != nil { - callablePoolLength := len(t.CallablePool) - callablePoolOffsets := make([]flatbuffers.UOffsetT, callablePoolLength) - for j := 0; j < callablePoolLength; j++ { - callablePoolOffsets[j] = builder.CreateString(t.CallablePool[j]) - } - ProgramsStartCallablePoolVector(builder, callablePoolLength) - for j := callablePoolLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(callablePoolOffsets[j]) - } - callablePoolOffset = builder.EndVector(callablePoolLength) - } - ProgramsStart(builder) - ProgramsAddPrograms(builder, programsOffset) - ProgramsAddCallablePool(builder, callablePoolOffset) - return ProgramsEnd(builder) -} - -func (rcv *Programs) UnPackTo(t *ProgramsT) { - programsLength := rcv.ProgramsLength() - t.Programs = make([]*ProgramT, programsLength) - for j := 0; j < programsLength; j++ { - x := Program{} - rcv.Programs(&x, j) - t.Programs[j] = x.UnPack() - } - callablePoolLength := rcv.CallablePoolLength() - t.CallablePool = make([]string, callablePoolLength) - for j := 0; j < callablePoolLength; j++ { - t.CallablePool[j] = string(rcv.CallablePool(j)) - } -} - -func (rcv *Programs) UnPack() *ProgramsT { - if rcv == nil { return nil } - t := &ProgramsT{} - rcv.UnPackTo(t) - return t -} - -type Programs struct { - _tab flatbuffers.Table -} - -func GetRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Programs{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Programs{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Programs) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Programs) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Programs) Programs(obj *Program, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *Programs) ProgramsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Programs) CallablePool(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Programs) CallablePoolLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func ProgramsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func ProgramsAddPrograms(builder *flatbuffers.Builder, programs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(programs), 0) -} -func ProgramsStartProgramsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProgramsAddCallablePool(builder *flatbuffers.Builder, callablePool flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(callablePool), 0) -} -func ProgramsStartCallablePoolVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ProgramsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Composition of programs and available callables factories +type ProgramsT struct { + Programs []*ProgramT + CallablePool []string +} + +func (t *ProgramsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + programsOffset := flatbuffers.UOffsetT(0) + if t.Programs != nil { + programsLength := len(t.Programs) + programsOffsets := make([]flatbuffers.UOffsetT, programsLength) + for j := 0; j < programsLength; j++ { + programsOffsets[j] = t.Programs[j].Pack(builder) + } + ProgramsStartProgramsVector(builder, programsLength) + for j := programsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(programsOffsets[j]) + } + programsOffset = builder.EndVector(programsLength) + } + callablePoolOffset := flatbuffers.UOffsetT(0) + if t.CallablePool != nil { + callablePoolLength := len(t.CallablePool) + callablePoolOffsets := make([]flatbuffers.UOffsetT, callablePoolLength) + for j := 0; j < callablePoolLength; j++ { + callablePoolOffsets[j] = builder.CreateString(t.CallablePool[j]) + } + ProgramsStartCallablePoolVector(builder, callablePoolLength) + for j := callablePoolLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(callablePoolOffsets[j]) + } + callablePoolOffset = builder.EndVector(callablePoolLength) + } + ProgramsStart(builder) + ProgramsAddPrograms(builder, programsOffset) + ProgramsAddCallablePool(builder, callablePoolOffset) + return ProgramsEnd(builder) +} + +func (rcv *Programs) UnPackTo(t *ProgramsT) { + programsLength := rcv.ProgramsLength() + t.Programs = make([]*ProgramT, programsLength) + for j := 0; j < programsLength; j++ { + x := Program{} + rcv.Programs(&x, j) + t.Programs[j] = x.UnPack() + } + callablePoolLength := rcv.CallablePoolLength() + t.CallablePool = make([]string, callablePoolLength) + for j := 0; j < callablePoolLength; j++ { + t.CallablePool[j] = string(rcv.CallablePool(j)) + } +} + +func (rcv *Programs) UnPack() *ProgramsT { + if rcv == nil { return nil } + t := &ProgramsT{} + rcv.UnPackTo(t) + return t +} + +type Programs struct { + _tab flatbuffers.Table +} + +func GetRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Programs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsPrograms(buf []byte, offset flatbuffers.UOffsetT) *Programs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Programs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Programs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Programs) Table() flatbuffers.Table { + return rcv._tab +} + +/// Composition of programs +func (rcv *Programs) Programs(obj *Program, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *Programs) ProgramsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Composition of programs +/// Collection of available callables factories provided by installed apps +func (rcv *Programs) CallablePool(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Programs) CallablePoolLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Collection of available callables factories provided by installed apps +func ProgramsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func ProgramsAddPrograms(builder *flatbuffers.Builder, programs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(programs), 0) +} +func ProgramsStartProgramsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProgramsAddCallablePool(builder *flatbuffers.Builder, callablePool flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(callablePool), 0) +} +func ProgramsStartCallablePoolVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ProgramsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/State.go b/pkg/fbs/common/scheduler/fbs2/State.go index 3be9e88..6345d3c 100644 --- a/pkg/fbs/common/scheduler/fbs2/State.go +++ b/pkg/fbs/common/scheduler/fbs2/State.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StateT struct { - State CurrentState -} - -func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StateStart(builder) - StateAddState(builder, t.State) - return StateEnd(builder) -} - -func (rcv *State) UnPackTo(t *StateT) { - t.State = rcv.State() -} - -func (rcv *State) UnPack() *StateT { - if rcv == nil { return nil } - t := &StateT{} - rcv.UnPackTo(t) - return t -} - -type State struct { - _tab flatbuffers.Table -} - -func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State) State() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *State) MutateState(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func StateStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StateAddState(builder *flatbuffers.Builder, state CurrentState) { - builder.PrependInt8Slot(0, int8(state), 1) -} -func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Type selector of operation state +type StateT struct { + State CurrentState +} + +func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StateStart(builder) + StateAddState(builder, t.State) + return StateEnd(builder) +} + +func (rcv *State) UnPackTo(t *StateT) { + t.State = rcv.State() +} + +func (rcv *State) UnPack() *StateT { + if rcv == nil { return nil } + t := &StateT{} + rcv.UnPackTo(t) + return t +} + +type State struct { + _tab flatbuffers.Table +} + +func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State) Table() flatbuffers.Table { + return rcv._tab +} + +/// Type selector of operation state +func (rcv *State) State() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Type selector of operation state +func (rcv *State) MutateState(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func StateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StateAddState(builder *flatbuffers.Builder, state CurrentState) { + builder.PrependInt8Slot(0, int8(state), 1) +} +func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/StateSwitchingInfo.go b/pkg/fbs/common/scheduler/fbs2/StateSwitchingInfo.go index 4d575bb..437c1d1 100644 --- a/pkg/fbs/common/scheduler/fbs2/StateSwitchingInfo.go +++ b/pkg/fbs/common/scheduler/fbs2/StateSwitchingInfo.go @@ -1,114 +1,121 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StateSwitchingInfoT struct { - Initial CurrentState - Current CurrentState - Target CurrentState -} - -func (t *StateSwitchingInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StateSwitchingInfoStart(builder) - StateSwitchingInfoAddInitial(builder, t.Initial) - StateSwitchingInfoAddCurrent(builder, t.Current) - StateSwitchingInfoAddTarget(builder, t.Target) - return StateSwitchingInfoEnd(builder) -} - -func (rcv *StateSwitchingInfo) UnPackTo(t *StateSwitchingInfoT) { - t.Initial = rcv.Initial() - t.Current = rcv.Current() - t.Target = rcv.Target() -} - -func (rcv *StateSwitchingInfo) UnPack() *StateSwitchingInfoT { - if rcv == nil { return nil } - t := &StateSwitchingInfoT{} - rcv.UnPackTo(t) - return t -} - -type StateSwitchingInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsStateSwitchingInfo(buf []byte, offset flatbuffers.UOffsetT) *StateSwitchingInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StateSwitchingInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStateSwitchingInfo(buf []byte, offset flatbuffers.UOffsetT) *StateSwitchingInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StateSwitchingInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StateSwitchingInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StateSwitchingInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StateSwitchingInfo) Initial() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -func (rcv *StateSwitchingInfo) MutateInitial(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *StateSwitchingInfo) Current() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -func (rcv *StateSwitchingInfo) MutateCurrent(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func (rcv *StateSwitchingInfo) Target() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -func (rcv *StateSwitchingInfo) MutateTarget(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func StateSwitchingInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func StateSwitchingInfoAddInitial(builder *flatbuffers.Builder, initial CurrentState) { - builder.PrependInt8Slot(0, int8(initial), 2) -} -func StateSwitchingInfoAddCurrent(builder *flatbuffers.Builder, current CurrentState) { - builder.PrependInt8Slot(1, int8(current), 2) -} -func StateSwitchingInfoAddTarget(builder *flatbuffers.Builder, target CurrentState) { - builder.PrependInt8Slot(2, int8(target), 2) -} -func StateSwitchingInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Switching progress (initial / current / target) of Scheduler operation state +type StateSwitchingInfoT struct { + Initial CurrentState + Current CurrentState + Target CurrentState +} + +func (t *StateSwitchingInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StateSwitchingInfoStart(builder) + StateSwitchingInfoAddInitial(builder, t.Initial) + StateSwitchingInfoAddCurrent(builder, t.Current) + StateSwitchingInfoAddTarget(builder, t.Target) + return StateSwitchingInfoEnd(builder) +} + +func (rcv *StateSwitchingInfo) UnPackTo(t *StateSwitchingInfoT) { + t.Initial = rcv.Initial() + t.Current = rcv.Current() + t.Target = rcv.Target() +} + +func (rcv *StateSwitchingInfo) UnPack() *StateSwitchingInfoT { + if rcv == nil { return nil } + t := &StateSwitchingInfoT{} + rcv.UnPackTo(t) + return t +} + +type StateSwitchingInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsStateSwitchingInfo(buf []byte, offset flatbuffers.UOffsetT) *StateSwitchingInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StateSwitchingInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStateSwitchingInfo(buf []byte, offset flatbuffers.UOffsetT) *StateSwitchingInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StateSwitchingInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StateSwitchingInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StateSwitchingInfo) Table() flatbuffers.Table { + return rcv._tab +} + +/// Initial operation state of Scheduler at the beginning of switching +func (rcv *StateSwitchingInfo) Initial() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// Initial operation state of Scheduler at the beginning of switching +func (rcv *StateSwitchingInfo) MutateInitial(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +/// Current operation state of Scheduler +func (rcv *StateSwitchingInfo) Current() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// Current operation state of Scheduler +func (rcv *StateSwitchingInfo) MutateCurrent(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// Target operation state of Scheduler +func (rcv *StateSwitchingInfo) Target() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// Target operation state of Scheduler +func (rcv *StateSwitchingInfo) MutateTarget(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func StateSwitchingInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func StateSwitchingInfoAddInitial(builder *flatbuffers.Builder, initial CurrentState) { + builder.PrependInt8Slot(0, int8(initial), 2) +} +func StateSwitchingInfoAddCurrent(builder *flatbuffers.Builder, current CurrentState) { + builder.PrependInt8Slot(1, int8(current), 2) +} +func StateSwitchingInfoAddTarget(builder *flatbuffers.Builder, target CurrentState) { + builder.PrependInt8Slot(2, int8(target), 2) +} +func StateSwitchingInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/fbs2/UtilizationThreshold.go b/pkg/fbs/common/scheduler/fbs2/UtilizationThreshold.go index 82e9f1e..160783c 100644 --- a/pkg/fbs/common/scheduler/fbs2/UtilizationThreshold.go +++ b/pkg/fbs/common/scheduler/fbs2/UtilizationThreshold.go @@ -1,96 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs2 - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type UtilizationThresholdT struct { - Warning byte - Error byte -} - -func (t *UtilizationThresholdT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - UtilizationThresholdStart(builder) - UtilizationThresholdAddWarning(builder, t.Warning) - UtilizationThresholdAddError(builder, t.Error) - return UtilizationThresholdEnd(builder) -} - -func (rcv *UtilizationThreshold) UnPackTo(t *UtilizationThresholdT) { - t.Warning = rcv.Warning() - t.Error = rcv.Error() -} - -func (rcv *UtilizationThreshold) UnPack() *UtilizationThresholdT { - if rcv == nil { return nil } - t := &UtilizationThresholdT{} - rcv.UnPackTo(t) - return t -} - -type UtilizationThreshold struct { - _tab flatbuffers.Table -} - -func GetRootAsUtilizationThreshold(buf []byte, offset flatbuffers.UOffsetT) *UtilizationThreshold { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UtilizationThreshold{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUtilizationThreshold(buf []byte, offset flatbuffers.UOffsetT) *UtilizationThreshold { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UtilizationThreshold{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UtilizationThreshold) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UtilizationThreshold) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *UtilizationThreshold) Warning() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 50 -} - -func (rcv *UtilizationThreshold) MutateWarning(n byte) bool { - return rcv._tab.MutateByteSlot(4, n) -} - -func (rcv *UtilizationThreshold) Error() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 75 -} - -func (rcv *UtilizationThreshold) MutateError(n byte) bool { - return rcv._tab.MutateByteSlot(6, n) -} - -func UtilizationThresholdStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func UtilizationThresholdAddWarning(builder *flatbuffers.Builder, warning byte) { - builder.PrependByteSlot(0, warning, 50) -} -func UtilizationThresholdAddError(builder *flatbuffers.Builder, error byte) { - builder.PrependByteSlot(1, error, 75) -} -func UtilizationThresholdEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs2 + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Utilization of the cycle time of Scheduler tick task causes by itself +type UtilizationThresholdT struct { + Warning byte + Error byte +} + +func (t *UtilizationThresholdT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + UtilizationThresholdStart(builder) + UtilizationThresholdAddWarning(builder, t.Warning) + UtilizationThresholdAddError(builder, t.Error) + return UtilizationThresholdEnd(builder) +} + +func (rcv *UtilizationThreshold) UnPackTo(t *UtilizationThresholdT) { + t.Warning = rcv.Warning() + t.Error = rcv.Error() +} + +func (rcv *UtilizationThreshold) UnPack() *UtilizationThresholdT { + if rcv == nil { return nil } + t := &UtilizationThresholdT{} + rcv.UnPackTo(t) + return t +} + +type UtilizationThreshold struct { + _tab flatbuffers.Table +} + +func GetRootAsUtilizationThreshold(buf []byte, offset flatbuffers.UOffsetT) *UtilizationThreshold { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UtilizationThreshold{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUtilizationThreshold(buf []byte, offset flatbuffers.UOffsetT) *UtilizationThreshold { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UtilizationThreshold{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UtilizationThreshold) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UtilizationThreshold) Table() flatbuffers.Table { + return rcv._tab +} + +/// Threshold of utilization of the cycle time of Scheduler tick task causes by itself for reporting a warning +func (rcv *UtilizationThreshold) Warning() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 50 +} + +/// Threshold of utilization of the cycle time of Scheduler tick task causes by itself for reporting a warning +func (rcv *UtilizationThreshold) MutateWarning(n byte) bool { + return rcv._tab.MutateByteSlot(4, n) +} + +/// Threshold of utilization of the cycle time of Scheduler tick task causes by itself for reporting an error +func (rcv *UtilizationThreshold) Error() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 75 +} + +/// Threshold of utilization of the cycle time of Scheduler tick task causes by itself for reporting an error +func (rcv *UtilizationThreshold) MutateError(n byte) bool { + return rcv._tab.MutateByteSlot(6, n) +} + +func UtilizationThresholdStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func UtilizationThresholdAddWarning(builder *flatbuffers.Builder, warning byte) { + builder.PrependByteSlot(0, warning, 50) +} +func UtilizationThresholdAddError(builder *flatbuffers.Builder, error byte) { + builder.PrependByteSlot(1, error, 75) +} +func UtilizationThresholdEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Class.go b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Class.go index 828959c..94ff21e 100644 --- a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Class.go +++ b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Class.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ClassT struct { - Type CurrentClass -} - -func (t *ClassT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ClassStart(builder) - ClassAddType(builder, t.Type) - return ClassEnd(builder) -} - -func (rcv *Class) UnPackTo(t *ClassT) { - t.Type = rcv.Type() -} - -func (rcv *Class) UnPack() *ClassT { - if rcv == nil { return nil } - t := &ClassT{} - rcv.UnPackTo(t) - return t -} - -type Class struct { - _tab flatbuffers.Table -} - -func GetRootAsClass(buf []byte, offset flatbuffers.UOffsetT) *Class { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Class{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsClass(buf []byte, offset flatbuffers.UOffsetT) *Class { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Class{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Class) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Class) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Class) Type() CurrentClass { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentClass(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -func (rcv *Class) MutateType(n CurrentClass) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func ClassStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ClassAddType(builder *flatbuffers.Builder, type_ CurrentClass) { - builder.PrependInt8Slot(0, int8(type_), 1) -} -func ClassEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Criticality of task watchdog error which cause a pre-defined error reaction +type ClassT struct { + Type CurrentClass +} + +func (t *ClassT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ClassStart(builder) + ClassAddType(builder, t.Type) + return ClassEnd(builder) +} + +func (rcv *Class) UnPackTo(t *ClassT) { + t.Type = rcv.Type() +} + +func (rcv *Class) UnPack() *ClassT { + if rcv == nil { return nil } + t := &ClassT{} + rcv.UnPackTo(t) + return t +} + +type Class struct { + _tab flatbuffers.Table +} + +func GetRootAsClass(buf []byte, offset flatbuffers.UOffsetT) *Class { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Class{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsClass(buf []byte, offset flatbuffers.UOffsetT) *Class { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Class{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Class) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Class) Table() flatbuffers.Table { + return rcv._tab +} + +/// Criticality of task watchdog error which cause a pre-defined error reaction +func (rcv *Class) Type() CurrentClass { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentClass(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Criticality of task watchdog error which cause a pre-defined error reaction +func (rcv *Class) MutateType(n CurrentClass) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func ClassStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ClassAddType(builder *flatbuffers.Builder, type_ CurrentClass) { + builder.PrependInt8Slot(0, int8(type_), 1) +} +func ClassEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Configuration.go b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Configuration.go index ec1afe3..f850ed4 100644 --- a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Configuration.go +++ b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/Configuration.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ConfigurationT struct { - Type CurrentConfiguration -} - -func (t *ConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ConfigurationStart(builder) - ConfigurationAddType(builder, t.Type) - return ConfigurationEnd(builder) -} - -func (rcv *Configuration) UnPackTo(t *ConfigurationT) { - t.Type = rcv.Type() -} - -func (rcv *Configuration) UnPack() *ConfigurationT { - if rcv == nil { return nil } - t := &ConfigurationT{} - rcv.UnPackTo(t) - return t -} - -type Configuration struct { - _tab flatbuffers.Table -} - -func GetRootAsConfiguration(buf []byte, offset flatbuffers.UOffsetT) *Configuration { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Configuration{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsConfiguration(buf []byte, offset flatbuffers.UOffsetT) *Configuration { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Configuration{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Configuration) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Configuration) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Configuration) Type() CurrentConfiguration { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentConfiguration(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Configuration) MutateType(n CurrentConfiguration) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func ConfigurationStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ConfigurationAddType(builder *flatbuffers.Builder, type_ CurrentConfiguration) { - builder.PrependInt8Slot(0, int8(type_), 0) -} -func ConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Task behavior in case of a task watchdog occurs +type ConfigurationT struct { + Type CurrentConfiguration +} + +func (t *ConfigurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ConfigurationStart(builder) + ConfigurationAddType(builder, t.Type) + return ConfigurationEnd(builder) +} + +func (rcv *Configuration) UnPackTo(t *ConfigurationT) { + t.Type = rcv.Type() +} + +func (rcv *Configuration) UnPack() *ConfigurationT { + if rcv == nil { return nil } + t := &ConfigurationT{} + rcv.UnPackTo(t) + return t +} + +type Configuration struct { + _tab flatbuffers.Table +} + +func GetRootAsConfiguration(buf []byte, offset flatbuffers.UOffsetT) *Configuration { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Configuration{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsConfiguration(buf []byte, offset flatbuffers.UOffsetT) *Configuration { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Configuration{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Configuration) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Configuration) Table() flatbuffers.Table { + return rcv._tab +} + +/// Task behavior in case of a task watchdog occurs +func (rcv *Configuration) Type() CurrentConfiguration { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentConfiguration(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Task behavior in case of a task watchdog occurs +func (rcv *Configuration) MutateType(n CurrentConfiguration) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func ConfigurationStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ConfigurationAddType(builder *flatbuffers.Builder, type_ CurrentConfiguration) { + builder.PrependInt8Slot(0, int8(type_), 0) +} +func ConfigurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentClass.go b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentClass.go index ebfbbb0..4ba6ee6 100644 --- a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentClass.go +++ b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentClass.go @@ -1,29 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CurrentClass int8 - -const ( - CurrentClassF0 CurrentClass = 0 - CurrentClassF6 CurrentClass = 1 -) - -var EnumNamesCurrentClass = map[CurrentClass]string{ - CurrentClassF0: "F0", - CurrentClassF6: "F6", -} - -var EnumValuesCurrentClass = map[string]CurrentClass{ - "F0": CurrentClassF0, - "F6": CurrentClassF6, -} - -func (v CurrentClass) String() string { - if s, ok := EnumNamesCurrentClass[v]; ok { - return s - } - return "CurrentClass(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Criticality of task watchdog error which cause a pre-defined error reaction +type CurrentClass int8 + +const ( + /// Minor error without error reaction + CurrentClassF0 CurrentClass = 0 + /// Serious error with error reaction + CurrentClassF6 CurrentClass = 1 +) + +var EnumNamesCurrentClass = map[CurrentClass]string{ + CurrentClassF0: "F0", + CurrentClassF6: "F6", +} + +var EnumValuesCurrentClass = map[string]CurrentClass{ + "F0": CurrentClassF0, + "F6": CurrentClassF6, +} + +func (v CurrentClass) String() string { + if s, ok := EnumNamesCurrentClass[v]; ok { + return s + } + return "CurrentClass(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentConfiguration.go b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentConfiguration.go index 95c1673..1949731 100644 --- a/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentConfiguration.go +++ b/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs/CurrentConfiguration.go @@ -1,29 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CurrentConfiguration int8 - -const ( - CurrentConfigurationCONTINUE CurrentConfiguration = 0 - CurrentConfigurationDISABLE CurrentConfiguration = 1 -) - -var EnumNamesCurrentConfiguration = map[CurrentConfiguration]string{ - CurrentConfigurationCONTINUE: "CONTINUE", - CurrentConfigurationDISABLE: "DISABLE", -} - -var EnumValuesCurrentConfiguration = map[string]CurrentConfiguration{ - "CONTINUE": CurrentConfigurationCONTINUE, - "DISABLE": CurrentConfigurationDISABLE, -} - -func (v CurrentConfiguration) String() string { - if s, ok := EnumNamesCurrentConfiguration[v]; ok { - return s - } - return "CurrentConfiguration(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Task behavior in case of a task watchdog occurs +type CurrentConfiguration int8 + +const ( + /// The task is triggered even after the watchdog is triggered until the maximum number of consecutive errors is reached + CurrentConfigurationCONTINUE CurrentConfiguration = 0 + /// The task is not triggered anymore after triggering the watchdog + CurrentConfigurationDISABLE CurrentConfiguration = 1 +) + +var EnumNamesCurrentConfiguration = map[CurrentConfiguration]string{ + CurrentConfigurationCONTINUE: "CONTINUE", + CurrentConfigurationDISABLE: "DISABLE", +} + +var EnumValuesCurrentConfiguration = map[string]CurrentConfiguration{ + "CONTINUE": CurrentConfigurationCONTINUE, + "DISABLE": CurrentConfigurationDISABLE, +} + +func (v CurrentConfiguration) String() string { + if s, ok := EnumNamesCurrentConfiguration[v]; ok { + return s + } + return "CurrentConfiguration(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/watchdog/fbs/CurrentType.go b/pkg/fbs/common/scheduler/watchdog/fbs/CurrentType.go index 07256dd..09cb561 100644 --- a/pkg/fbs/common/scheduler/watchdog/fbs/CurrentType.go +++ b/pkg/fbs/common/scheduler/watchdog/fbs/CurrentType.go @@ -1,29 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CurrentType int8 - -const ( - CurrentTypeCYCLE CurrentType = 0 - CurrentTypeNONE CurrentType = 1 -) - -var EnumNamesCurrentType = map[CurrentType]string{ - CurrentTypeCYCLE: "CYCLE", - CurrentTypeNONE: "NONE", -} - -var EnumValuesCurrentType = map[string]CurrentType{ - "CYCLE": CurrentTypeCYCLE, - "NONE": CurrentTypeNONE, -} - -func (v CurrentType) String() string { - if s, ok := EnumNamesCurrentType[v]; ok { - return s - } - return "CurrentType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +/// Type of watchdog of the task +type CurrentType int8 + +const ( + /// Task will be monitored regarding the consumed cycle time + CurrentTypeCYCLE CurrentType = 0 + /// No watchdog used + CurrentTypeNONE CurrentType = 1 +) + +var EnumNamesCurrentType = map[CurrentType]string{ + CurrentTypeCYCLE: "CYCLE", + CurrentTypeNONE: "NONE", +} + +var EnumValuesCurrentType = map[string]CurrentType{ + "CYCLE": CurrentTypeCYCLE, + "NONE": CurrentTypeNONE, +} + +func (v CurrentType) String() string { + if s, ok := EnumNamesCurrentType[v]; ok { + return s + } + return "CurrentType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/scheduler/watchdog/fbs/Cyclic.go b/pkg/fbs/common/scheduler/watchdog/fbs/Cyclic.go index f5f79fc..ef9e6c4 100644 --- a/pkg/fbs/common/scheduler/watchdog/fbs/Cyclic.go +++ b/pkg/fbs/common/scheduler/watchdog/fbs/Cyclic.go @@ -1,116 +1,116 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CyclicT struct { - ErrorCount uint32 - Reset bool - ErrorReaction *ErrorReactionT -} - -func (t *CyclicT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - errorReactionOffset := t.ErrorReaction.Pack(builder) - CyclicStart(builder) - CyclicAddErrorCount(builder, t.ErrorCount) - CyclicAddReset(builder, t.Reset) - CyclicAddErrorReaction(builder, errorReactionOffset) - return CyclicEnd(builder) -} - -func (rcv *Cyclic) UnPackTo(t *CyclicT) { - t.ErrorCount = rcv.ErrorCount() - t.Reset = rcv.Reset() - t.ErrorReaction = rcv.ErrorReaction(nil).UnPack() -} - -func (rcv *Cyclic) UnPack() *CyclicT { - if rcv == nil { return nil } - t := &CyclicT{} - rcv.UnPackTo(t) - return t -} - -type Cyclic struct { - _tab flatbuffers.Table -} - -func GetRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cyclic{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cyclic{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cyclic) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cyclic) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cyclic) ErrorCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Cyclic) MutateErrorCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *Cyclic) Reset() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Cyclic) MutateReset(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *Cyclic) ErrorReaction(obj *ErrorReaction) *ErrorReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ErrorReaction) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func CyclicStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CyclicAddErrorCount(builder *flatbuffers.Builder, errorCount uint32) { - builder.PrependUint32Slot(0, errorCount, 0) -} -func CyclicAddReset(builder *flatbuffers.Builder, reset bool) { - builder.PrependBoolSlot(1, reset, false) -} -func CyclicAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(errorReaction), 0) -} -func CyclicEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CyclicT struct { + ErrorCount uint32 + Reset bool + ErrorReaction *ErrorReactionT +} + +func (t *CyclicT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + errorReactionOffset := t.ErrorReaction.Pack(builder) + CyclicStart(builder) + CyclicAddErrorCount(builder, t.ErrorCount) + CyclicAddReset(builder, t.Reset) + CyclicAddErrorReaction(builder, errorReactionOffset) + return CyclicEnd(builder) +} + +func (rcv *Cyclic) UnPackTo(t *CyclicT) { + t.ErrorCount = rcv.ErrorCount() + t.Reset = rcv.Reset() + t.ErrorReaction = rcv.ErrorReaction(nil).UnPack() +} + +func (rcv *Cyclic) UnPack() *CyclicT { + if rcv == nil { return nil } + t := &CyclicT{} + rcv.UnPackTo(t) + return t +} + +type Cyclic struct { + _tab flatbuffers.Table +} + +func GetRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cyclic{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCyclic(buf []byte, offset flatbuffers.UOffsetT) *Cyclic { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cyclic{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cyclic) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cyclic) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cyclic) ErrorCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Cyclic) MutateErrorCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *Cyclic) Reset() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Cyclic) MutateReset(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *Cyclic) ErrorReaction(obj *ErrorReaction) *ErrorReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ErrorReaction) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func CyclicStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CyclicAddErrorCount(builder *flatbuffers.Builder, errorCount uint32) { + builder.PrependUint32Slot(0, errorCount, 0) +} +func CyclicAddReset(builder *flatbuffers.Builder, reset bool) { + builder.PrependBoolSlot(1, reset, false) +} +func CyclicAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(errorReaction), 0) +} +func CyclicEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/fbs/Duration.go b/pkg/fbs/common/scheduler/watchdog/fbs/Duration.go index 65c0ff0..6422d94 100644 --- a/pkg/fbs/common/scheduler/watchdog/fbs/Duration.go +++ b/pkg/fbs/common/scheduler/watchdog/fbs/Duration.go @@ -1,134 +1,134 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DurationT struct { - Time uint32 - ErrorCount uint32 - Reset bool - ErrorReaction *ErrorReactionT -} - -func (t *DurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - errorReactionOffset := t.ErrorReaction.Pack(builder) - DurationStart(builder) - DurationAddTime(builder, t.Time) - DurationAddErrorCount(builder, t.ErrorCount) - DurationAddReset(builder, t.Reset) - DurationAddErrorReaction(builder, errorReactionOffset) - return DurationEnd(builder) -} - -func (rcv *Duration) UnPackTo(t *DurationT) { - t.Time = rcv.Time() - t.ErrorCount = rcv.ErrorCount() - t.Reset = rcv.Reset() - t.ErrorReaction = rcv.ErrorReaction(nil).UnPack() -} - -func (rcv *Duration) UnPack() *DurationT { - if rcv == nil { return nil } - t := &DurationT{} - rcv.UnPackTo(t) - return t -} - -type Duration struct { - _tab flatbuffers.Table -} - -func GetRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Duration{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Duration{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Duration) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Duration) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Duration) Time() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Duration) MutateTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *Duration) ErrorCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Duration) MutateErrorCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Duration) Reset() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Duration) MutateReset(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *Duration) ErrorReaction(obj *ErrorReaction) *ErrorReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(ErrorReaction) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func DurationStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func DurationAddTime(builder *flatbuffers.Builder, time uint32) { - builder.PrependUint32Slot(0, time, 0) -} -func DurationAddErrorCount(builder *flatbuffers.Builder, errorCount uint32) { - builder.PrependUint32Slot(1, errorCount, 0) -} -func DurationAddReset(builder *flatbuffers.Builder, reset bool) { - builder.PrependBoolSlot(2, reset, false) -} -func DurationAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(errorReaction), 0) -} -func DurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DurationT struct { + Time uint32 + ErrorCount uint32 + Reset bool + ErrorReaction *ErrorReactionT +} + +func (t *DurationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + errorReactionOffset := t.ErrorReaction.Pack(builder) + DurationStart(builder) + DurationAddTime(builder, t.Time) + DurationAddErrorCount(builder, t.ErrorCount) + DurationAddReset(builder, t.Reset) + DurationAddErrorReaction(builder, errorReactionOffset) + return DurationEnd(builder) +} + +func (rcv *Duration) UnPackTo(t *DurationT) { + t.Time = rcv.Time() + t.ErrorCount = rcv.ErrorCount() + t.Reset = rcv.Reset() + t.ErrorReaction = rcv.ErrorReaction(nil).UnPack() +} + +func (rcv *Duration) UnPack() *DurationT { + if rcv == nil { return nil } + t := &DurationT{} + rcv.UnPackTo(t) + return t +} + +type Duration struct { + _tab flatbuffers.Table +} + +func GetRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Duration{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDuration(buf []byte, offset flatbuffers.UOffsetT) *Duration { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Duration{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Duration) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Duration) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Duration) Time() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Duration) MutateTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *Duration) ErrorCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Duration) MutateErrorCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *Duration) Reset() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Duration) MutateReset(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *Duration) ErrorReaction(obj *ErrorReaction) *ErrorReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ErrorReaction) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func DurationStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func DurationAddTime(builder *flatbuffers.Builder, time uint32) { + builder.PrependUint32Slot(0, time, 0) +} +func DurationAddErrorCount(builder *flatbuffers.Builder, errorCount uint32) { + builder.PrependUint32Slot(1, errorCount, 0) +} +func DurationAddReset(builder *flatbuffers.Builder, reset bool) { + builder.PrependBoolSlot(2, reset, false) +} +func DurationAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(errorReaction), 0) +} +func DurationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/fbs/ErrorReaction.go b/pkg/fbs/common/scheduler/watchdog/fbs/ErrorReaction.go index fdf259a..84d72f0 100644 --- a/pkg/fbs/common/scheduler/watchdog/fbs/ErrorReaction.go +++ b/pkg/fbs/common/scheduler/watchdog/fbs/ErrorReaction.go @@ -1,120 +1,120 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - common__scheduler__watchdog__errorreaction__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs" -) - -type ErrorReactionT struct { - Class *common__scheduler__watchdog__errorreaction__fbs.ClassT - Configuration *common__scheduler__watchdog__errorreaction__fbs.ConfigurationT - MaxConsecutiveErrors uint32 -} - -func (t *ErrorReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - classOffset := t.Class.Pack(builder) - configurationOffset := t.Configuration.Pack(builder) - ErrorReactionStart(builder) - ErrorReactionAddClass(builder, classOffset) - ErrorReactionAddConfiguration(builder, configurationOffset) - ErrorReactionAddMaxConsecutiveErrors(builder, t.MaxConsecutiveErrors) - return ErrorReactionEnd(builder) -} - -func (rcv *ErrorReaction) UnPackTo(t *ErrorReactionT) { - t.Class = rcv.Class(nil).UnPack() - t.Configuration = rcv.Configuration(nil).UnPack() - t.MaxConsecutiveErrors = rcv.MaxConsecutiveErrors() -} - -func (rcv *ErrorReaction) UnPack() *ErrorReactionT { - if rcv == nil { return nil } - t := &ErrorReactionT{} - rcv.UnPackTo(t) - return t -} - -type ErrorReaction struct { - _tab flatbuffers.Table -} - -func GetRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ErrorReaction{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ErrorReaction{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ErrorReaction) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ErrorReaction) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ErrorReaction) Class(obj *common__scheduler__watchdog__errorreaction__fbs.Class) *common__scheduler__watchdog__errorreaction__fbs.Class { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(common__scheduler__watchdog__errorreaction__fbs.Class) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ErrorReaction) Configuration(obj *common__scheduler__watchdog__errorreaction__fbs.Configuration) *common__scheduler__watchdog__errorreaction__fbs.Configuration { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(common__scheduler__watchdog__errorreaction__fbs.Configuration) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *ErrorReaction) MaxConsecutiveErrors() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *ErrorReaction) MutateMaxConsecutiveErrors(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func ErrorReactionStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func ErrorReactionAddClass(builder *flatbuffers.Builder, class flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(class), 0) -} -func ErrorReactionAddConfiguration(builder *flatbuffers.Builder, configuration flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(configuration), 0) -} -func ErrorReactionAddMaxConsecutiveErrors(builder *flatbuffers.Builder, maxConsecutiveErrors uint32) { - builder.PrependUint32Slot(2, maxConsecutiveErrors, 0) -} -func ErrorReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + common__scheduler__watchdog__errorreaction__fbs "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/common/scheduler/watchdog/errorreaction/fbs" +) + +type ErrorReactionT struct { + Class *common__scheduler__watchdog__errorreaction__fbs.ClassT + Configuration *common__scheduler__watchdog__errorreaction__fbs.ConfigurationT + MaxConsecutiveErrors uint32 +} + +func (t *ErrorReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + classOffset := t.Class.Pack(builder) + configurationOffset := t.Configuration.Pack(builder) + ErrorReactionStart(builder) + ErrorReactionAddClass(builder, classOffset) + ErrorReactionAddConfiguration(builder, configurationOffset) + ErrorReactionAddMaxConsecutiveErrors(builder, t.MaxConsecutiveErrors) + return ErrorReactionEnd(builder) +} + +func (rcv *ErrorReaction) UnPackTo(t *ErrorReactionT) { + t.Class = rcv.Class(nil).UnPack() + t.Configuration = rcv.Configuration(nil).UnPack() + t.MaxConsecutiveErrors = rcv.MaxConsecutiveErrors() +} + +func (rcv *ErrorReaction) UnPack() *ErrorReactionT { + if rcv == nil { return nil } + t := &ErrorReactionT{} + rcv.UnPackTo(t) + return t +} + +type ErrorReaction struct { + _tab flatbuffers.Table +} + +func GetRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ErrorReaction{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *ErrorReaction { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ErrorReaction{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ErrorReaction) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ErrorReaction) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ErrorReaction) Class(obj *common__scheduler__watchdog__errorreaction__fbs.Class) *common__scheduler__watchdog__errorreaction__fbs.Class { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(common__scheduler__watchdog__errorreaction__fbs.Class) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *ErrorReaction) Configuration(obj *common__scheduler__watchdog__errorreaction__fbs.Configuration) *common__scheduler__watchdog__errorreaction__fbs.Configuration { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(common__scheduler__watchdog__errorreaction__fbs.Configuration) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *ErrorReaction) MaxConsecutiveErrors() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *ErrorReaction) MutateMaxConsecutiveErrors(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func ErrorReactionStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func ErrorReactionAddClass(builder *flatbuffers.Builder, class flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(class), 0) +} +func ErrorReactionAddConfiguration(builder *flatbuffers.Builder, configuration flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(configuration), 0) +} +func ErrorReactionAddMaxConsecutiveErrors(builder *flatbuffers.Builder, maxConsecutiveErrors uint32) { + builder.PrependUint32Slot(2, maxConsecutiveErrors, 0) +} +func ErrorReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/fbs/Type.go b/pkg/fbs/common/scheduler/watchdog/fbs/Type.go index 995ec16..9db39c9 100644 --- a/pkg/fbs/common/scheduler/watchdog/fbs/Type.go +++ b/pkg/fbs/common/scheduler/watchdog/fbs/Type.go @@ -1,78 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TypeT struct { - Type CurrentType -} - -func (t *TypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - TypeStart(builder) - TypeAddType(builder, t.Type) - return TypeEnd(builder) -} - -func (rcv *Type) UnPackTo(t *TypeT) { - t.Type = rcv.Type() -} - -func (rcv *Type) UnPack() *TypeT { - if rcv == nil { return nil } - t := &TypeT{} - rcv.UnPackTo(t) - return t -} - -type Type struct { - _tab flatbuffers.Table -} - -func GetRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Type{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Type{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Type) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Type) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Type) Type() CurrentType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Type) MutateType(n CurrentType) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func TypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func TypeAddType(builder *flatbuffers.Builder, type_ CurrentType) { - builder.PrependInt8Slot(0, int8(type_), 0) -} -func TypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Type of watchdog of the task +type TypeT struct { + Type CurrentType +} + +func (t *TypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + TypeStart(builder) + TypeAddType(builder, t.Type) + return TypeEnd(builder) +} + +func (rcv *Type) UnPackTo(t *TypeT) { + t.Type = rcv.Type() +} + +func (rcv *Type) UnPack() *TypeT { + if rcv == nil { return nil } + t := &TypeT{} + rcv.UnPackTo(t) + return t +} + +type Type struct { + _tab flatbuffers.Table +} + +func GetRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Type{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsType(buf []byte, offset flatbuffers.UOffsetT) *Type { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Type{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Type) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Type) Table() flatbuffers.Table { + return rcv._tab +} + +/// Type of watchdog of the task +func (rcv *Type) Type() CurrentType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Type of watchdog of the task +func (rcv *Type) MutateType(n CurrentType) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func TypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func TypeAddType(builder *flatbuffers.Builder, type_ CurrentType) { + builder.PrependInt8Slot(0, int8(type_), 0) +} +func TypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/fbs/Watchdog.go b/pkg/fbs/common/scheduler/watchdog/fbs/Watchdog.go index 6eeb027..2dd737e 100644 --- a/pkg/fbs/common/scheduler/watchdog/fbs/Watchdog.go +++ b/pkg/fbs/common/scheduler/watchdog/fbs/Watchdog.go @@ -1,133 +1,133 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type WatchdogT struct { - Name string - Type *TypeT - Variant *WatchdogVariantT -} - -func (t *WatchdogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - typeOffset := t.Type.Pack(builder) - variantOffset := t.Variant.Pack(builder) - - WatchdogStart(builder) - WatchdogAddName(builder, nameOffset) - WatchdogAddType(builder, typeOffset) - if t.Variant != nil { - WatchdogAddVariantType(builder, t.Variant.Type) - } - WatchdogAddVariant(builder, variantOffset) - return WatchdogEnd(builder) -} - -func (rcv *Watchdog) UnPackTo(t *WatchdogT) { - t.Name = string(rcv.Name()) - t.Type = rcv.Type(nil).UnPack() - variantTable := flatbuffers.Table{} - if rcv.Variant(&variantTable) { - t.Variant = rcv.VariantType().UnPack(variantTable) - } -} - -func (rcv *Watchdog) UnPack() *WatchdogT { - if rcv == nil { return nil } - t := &WatchdogT{} - rcv.UnPackTo(t) - return t -} - -type Watchdog struct { - _tab flatbuffers.Table -} - -func GetRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Watchdog{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Watchdog{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Watchdog) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Watchdog) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Watchdog) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Watchdog) Type(obj *Type) *Type { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Type) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Watchdog) VariantType() WatchdogVariant { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return WatchdogVariant(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Watchdog) MutateVariantType(n WatchdogVariant) bool { - return rcv._tab.MutateByteSlot(8, byte(n)) -} - -func (rcv *Watchdog) Variant(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -func WatchdogStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func WatchdogAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func WatchdogAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) -} -func WatchdogAddVariantType(builder *flatbuffers.Builder, variantType WatchdogVariant) { - builder.PrependByteSlot(2, byte(variantType), 0) -} -func WatchdogAddVariant(builder *flatbuffers.Builder, variant flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(variant), 0) -} -func WatchdogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type WatchdogT struct { + Name string + Type *TypeT + Variant *WatchdogVariantT +} + +func (t *WatchdogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + typeOffset := t.Type.Pack(builder) + variantOffset := t.Variant.Pack(builder) + + WatchdogStart(builder) + WatchdogAddName(builder, nameOffset) + WatchdogAddType(builder, typeOffset) + if t.Variant != nil { + WatchdogAddVariantType(builder, t.Variant.Type) + } + WatchdogAddVariant(builder, variantOffset) + return WatchdogEnd(builder) +} + +func (rcv *Watchdog) UnPackTo(t *WatchdogT) { + t.Name = string(rcv.Name()) + t.Type = rcv.Type(nil).UnPack() + variantTable := flatbuffers.Table{} + if rcv.Variant(&variantTable) { + t.Variant = rcv.VariantType().UnPack(variantTable) + } +} + +func (rcv *Watchdog) UnPack() *WatchdogT { + if rcv == nil { return nil } + t := &WatchdogT{} + rcv.UnPackTo(t) + return t +} + +type Watchdog struct { + _tab flatbuffers.Table +} + +func GetRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Watchdog{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsWatchdog(buf []byte, offset flatbuffers.UOffsetT) *Watchdog { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Watchdog{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Watchdog) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Watchdog) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Watchdog) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Watchdog) Type(obj *Type) *Type { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Type) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Watchdog) VariantType() WatchdogVariant { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return WatchdogVariant(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Watchdog) MutateVariantType(n WatchdogVariant) bool { + return rcv._tab.MutateByteSlot(8, byte(n)) +} + +func (rcv *Watchdog) Variant(obj *flatbuffers.Table) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + rcv._tab.Union(obj, o) + return true + } + return false +} + +func WatchdogStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func WatchdogAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func WatchdogAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) +} +func WatchdogAddVariantType(builder *flatbuffers.Builder, variantType WatchdogVariant) { + builder.PrependByteSlot(2, byte(variantType), 0) +} +func WatchdogAddVariant(builder *flatbuffers.Builder, variant flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(variant), 0) +} +func WatchdogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/scheduler/watchdog/fbs/WatchdogVariant.go b/pkg/fbs/common/scheduler/watchdog/fbs/WatchdogVariant.go index 5887435..295a8be 100644 --- a/pkg/fbs/common/scheduler/watchdog/fbs/WatchdogVariant.go +++ b/pkg/fbs/common/scheduler/watchdog/fbs/WatchdogVariant.go @@ -1,66 +1,58 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - "strconv" - - flatbuffers "github.com/google/flatbuffers/go" -) - -type WatchdogVariant byte - -const ( - WatchdogVariantNONE WatchdogVariant = 0 - WatchdogVariantCyclic WatchdogVariant = 1 - WatchdogVariantDuration WatchdogVariant = 2 -) - -var EnumNamesWatchdogVariant = map[WatchdogVariant]string{ - WatchdogVariantNONE: "NONE", - WatchdogVariantCyclic: "Cyclic", - WatchdogVariantDuration: "Duration", -} - -var EnumValuesWatchdogVariant = map[string]WatchdogVariant{ - "NONE": WatchdogVariantNONE, - "Cyclic": WatchdogVariantCyclic, - "Duration": WatchdogVariantDuration, -} - -func (v WatchdogVariant) String() string { - if s, ok := EnumNamesWatchdogVariant[v]; ok { - return s - } - return "WatchdogVariant(" + strconv.FormatInt(int64(v), 10) + ")" -} - -type WatchdogVariantT struct { - Type WatchdogVariant - Value interface{} -} - -func (t *WatchdogVariantT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { - return 0 - } - switch t.Type { - case WatchdogVariantCyclic: - return t.Value.(*CyclicT).Pack(builder) - case WatchdogVariantDuration: - return t.Value.(*DurationT).Pack(builder) - } - return 0 -} - -func (rcv WatchdogVariant) UnPack(table flatbuffers.Table) *WatchdogVariantT { - switch rcv { - case WatchdogVariantCyclic: - x := Cyclic{_tab: table} - return &WatchdogVariantT{ Type: WatchdogVariantCyclic, Value: x.UnPack() } - case WatchdogVariantDuration: - x := Duration{_tab: table} - return &WatchdogVariantT{ Type: WatchdogVariantDuration, Value: x.UnPack() } - } - return nil -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + "strconv" + + flatbuffers "github.com/google/flatbuffers/go" +) + +type WatchdogVariant byte + +const ( + WatchdogVariantNONE WatchdogVariant = 0 + WatchdogVariantCyclic WatchdogVariant = 1 +) + +var EnumNamesWatchdogVariant = map[WatchdogVariant]string{ + WatchdogVariantNONE: "NONE", + WatchdogVariantCyclic: "Cyclic", +} + +var EnumValuesWatchdogVariant = map[string]WatchdogVariant{ + "NONE": WatchdogVariantNONE, + "Cyclic": WatchdogVariantCyclic, +} + +func (v WatchdogVariant) String() string { + if s, ok := EnumNamesWatchdogVariant[v]; ok { + return s + } + return "WatchdogVariant(" + strconv.FormatInt(int64(v), 10) + ")" +} + +type WatchdogVariantT struct { + Type WatchdogVariant + Value interface{} +} + +func (t *WatchdogVariantT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { + return 0 + } + switch t.Type { + case WatchdogVariantCyclic: + return t.Value.(*CyclicT).Pack(builder) + } + return 0 +} + +func (rcv WatchdogVariant) UnPack(table flatbuffers.Table) *WatchdogVariantT { + switch rcv { + case WatchdogVariantCyclic: + x := Cyclic{_tab: table} + return &WatchdogVariantT{ Type: WatchdogVariantCyclic, Value: x.UnPack() } + } + return nil +} diff --git a/pkg/fbs/common/systemcore/licenseproxy/LicenseCapabilities.go b/pkg/fbs/common/systemcore/licenseproxy/LicenseCapabilities.go index a52785b..2ff476a 100644 --- a/pkg/fbs/common/systemcore/licenseproxy/LicenseCapabilities.go +++ b/pkg/fbs/common/systemcore/licenseproxy/LicenseCapabilities.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package licenseproxy - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LicenseCapabilitiesT struct { - Capabilities []*LicenseCapabilityT -} - -func (t *LicenseCapabilitiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - capabilitiesOffset := flatbuffers.UOffsetT(0) - if t.Capabilities != nil { - capabilitiesLength := len(t.Capabilities) - capabilitiesOffsets := make([]flatbuffers.UOffsetT, capabilitiesLength) - for j := 0; j < capabilitiesLength; j++ { - capabilitiesOffsets[j] = t.Capabilities[j].Pack(builder) - } - LicenseCapabilitiesStartCapabilitiesVector(builder, capabilitiesLength) - for j := capabilitiesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(capabilitiesOffsets[j]) - } - capabilitiesOffset = builder.EndVector(capabilitiesLength) - } - LicenseCapabilitiesStart(builder) - LicenseCapabilitiesAddCapabilities(builder, capabilitiesOffset) - return LicenseCapabilitiesEnd(builder) -} - -func (rcv *LicenseCapabilities) UnPackTo(t *LicenseCapabilitiesT) { - capabilitiesLength := rcv.CapabilitiesLength() - t.Capabilities = make([]*LicenseCapabilityT, capabilitiesLength) - for j := 0; j < capabilitiesLength; j++ { - x := LicenseCapability{} - rcv.Capabilities(&x, j) - t.Capabilities[j] = x.UnPack() - } -} - -func (rcv *LicenseCapabilities) UnPack() *LicenseCapabilitiesT { - if rcv == nil { return nil } - t := &LicenseCapabilitiesT{} - rcv.UnPackTo(t) - return t -} - -type LicenseCapabilities struct { - _tab flatbuffers.Table -} - -func GetRootAsLicenseCapabilities(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapabilities { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LicenseCapabilities{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLicenseCapabilities(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapabilities { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LicenseCapabilities{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LicenseCapabilities) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LicenseCapabilities) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LicenseCapabilities) Capabilities(obj *LicenseCapability, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *LicenseCapabilities) CapabilitiesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func LicenseCapabilitiesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func LicenseCapabilitiesAddCapabilities(builder *flatbuffers.Builder, capabilities flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(capabilities), 0) -} -func LicenseCapabilitiesStartCapabilitiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func LicenseCapabilitiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package licenseproxy + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LicenseCapabilitiesT struct { + Capabilities []*LicenseCapabilityT +} + +func (t *LicenseCapabilitiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + capabilitiesOffset := flatbuffers.UOffsetT(0) + if t.Capabilities != nil { + capabilitiesLength := len(t.Capabilities) + capabilitiesOffsets := make([]flatbuffers.UOffsetT, capabilitiesLength) + for j := 0; j < capabilitiesLength; j++ { + capabilitiesOffsets[j] = t.Capabilities[j].Pack(builder) + } + LicenseCapabilitiesStartCapabilitiesVector(builder, capabilitiesLength) + for j := capabilitiesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(capabilitiesOffsets[j]) + } + capabilitiesOffset = builder.EndVector(capabilitiesLength) + } + LicenseCapabilitiesStart(builder) + LicenseCapabilitiesAddCapabilities(builder, capabilitiesOffset) + return LicenseCapabilitiesEnd(builder) +} + +func (rcv *LicenseCapabilities) UnPackTo(t *LicenseCapabilitiesT) { + capabilitiesLength := rcv.CapabilitiesLength() + t.Capabilities = make([]*LicenseCapabilityT, capabilitiesLength) + for j := 0; j < capabilitiesLength; j++ { + x := LicenseCapability{} + rcv.Capabilities(&x, j) + t.Capabilities[j] = x.UnPack() + } +} + +func (rcv *LicenseCapabilities) UnPack() *LicenseCapabilitiesT { + if rcv == nil { return nil } + t := &LicenseCapabilitiesT{} + rcv.UnPackTo(t) + return t +} + +type LicenseCapabilities struct { + _tab flatbuffers.Table +} + +func GetRootAsLicenseCapabilities(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapabilities { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LicenseCapabilities{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLicenseCapabilities(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapabilities { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LicenseCapabilities{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LicenseCapabilities) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LicenseCapabilities) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LicenseCapabilities) Capabilities(obj *LicenseCapability, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *LicenseCapabilities) CapabilitiesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func LicenseCapabilitiesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func LicenseCapabilitiesAddCapabilities(builder *flatbuffers.Builder, capabilities flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(capabilities), 0) +} +func LicenseCapabilitiesStartCapabilitiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func LicenseCapabilitiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/systemcore/licenseproxy/LicenseCapability.go b/pkg/fbs/common/systemcore/licenseproxy/LicenseCapability.go index a753bb4..7bff575 100644 --- a/pkg/fbs/common/systemcore/licenseproxy/LicenseCapability.go +++ b/pkg/fbs/common/systemcore/licenseproxy/LicenseCapability.go @@ -1,156 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package licenseproxy - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LicenseCapabilityT struct { - Name string - Version string - Count int32 - IsPermanent bool - StartDate string - FinalExpirationDate string -} - -func (t *LicenseCapabilityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - versionOffset := builder.CreateString(t.Version) - startDateOffset := builder.CreateString(t.StartDate) - finalExpirationDateOffset := builder.CreateString(t.FinalExpirationDate) - LicenseCapabilityStart(builder) - LicenseCapabilityAddName(builder, nameOffset) - LicenseCapabilityAddVersion(builder, versionOffset) - LicenseCapabilityAddCount(builder, t.Count) - LicenseCapabilityAddIsPermanent(builder, t.IsPermanent) - LicenseCapabilityAddStartDate(builder, startDateOffset) - LicenseCapabilityAddFinalExpirationDate(builder, finalExpirationDateOffset) - return LicenseCapabilityEnd(builder) -} - -func (rcv *LicenseCapability) UnPackTo(t *LicenseCapabilityT) { - t.Name = string(rcv.Name()) - t.Version = string(rcv.Version()) - t.Count = rcv.Count() - t.IsPermanent = rcv.IsPermanent() - t.StartDate = string(rcv.StartDate()) - t.FinalExpirationDate = string(rcv.FinalExpirationDate()) -} - -func (rcv *LicenseCapability) UnPack() *LicenseCapabilityT { - if rcv == nil { return nil } - t := &LicenseCapabilityT{} - rcv.UnPackTo(t) - return t -} - -type LicenseCapability struct { - _tab flatbuffers.Table -} - -func GetRootAsLicenseCapability(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapability { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LicenseCapability{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLicenseCapability(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapability { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LicenseCapability{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LicenseCapability) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LicenseCapability) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LicenseCapability) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseCapability) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseCapability) Count() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *LicenseCapability) MutateCount(n int32) bool { - return rcv._tab.MutateInt32Slot(8, n) -} - -func (rcv *LicenseCapability) IsPermanent() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *LicenseCapability) MutateIsPermanent(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *LicenseCapability) StartDate() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseCapability) FinalExpirationDate() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func LicenseCapabilityStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func LicenseCapabilityAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func LicenseCapabilityAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) -} -func LicenseCapabilityAddCount(builder *flatbuffers.Builder, count int32) { - builder.PrependInt32Slot(2, count, 0) -} -func LicenseCapabilityAddIsPermanent(builder *flatbuffers.Builder, isPermanent bool) { - builder.PrependBoolSlot(3, isPermanent, false) -} -func LicenseCapabilityAddStartDate(builder *flatbuffers.Builder, startDate flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(startDate), 0) -} -func LicenseCapabilityAddFinalExpirationDate(builder *flatbuffers.Builder, finalExpirationDate flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(finalExpirationDate), 0) -} -func LicenseCapabilityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package licenseproxy + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LicenseCapabilityT struct { + Name string + Version string + Count int32 + IsPermanent bool + StartDate string + FinalExpirationDate string +} + +func (t *LicenseCapabilityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + versionOffset := builder.CreateString(t.Version) + startDateOffset := builder.CreateString(t.StartDate) + finalExpirationDateOffset := builder.CreateString(t.FinalExpirationDate) + LicenseCapabilityStart(builder) + LicenseCapabilityAddName(builder, nameOffset) + LicenseCapabilityAddVersion(builder, versionOffset) + LicenseCapabilityAddCount(builder, t.Count) + LicenseCapabilityAddIsPermanent(builder, t.IsPermanent) + LicenseCapabilityAddStartDate(builder, startDateOffset) + LicenseCapabilityAddFinalExpirationDate(builder, finalExpirationDateOffset) + return LicenseCapabilityEnd(builder) +} + +func (rcv *LicenseCapability) UnPackTo(t *LicenseCapabilityT) { + t.Name = string(rcv.Name()) + t.Version = string(rcv.Version()) + t.Count = rcv.Count() + t.IsPermanent = rcv.IsPermanent() + t.StartDate = string(rcv.StartDate()) + t.FinalExpirationDate = string(rcv.FinalExpirationDate()) +} + +func (rcv *LicenseCapability) UnPack() *LicenseCapabilityT { + if rcv == nil { return nil } + t := &LicenseCapabilityT{} + rcv.UnPackTo(t) + return t +} + +type LicenseCapability struct { + _tab flatbuffers.Table +} + +func GetRootAsLicenseCapability(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapability { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LicenseCapability{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLicenseCapability(buf []byte, offset flatbuffers.UOffsetT) *LicenseCapability { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LicenseCapability{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LicenseCapability) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LicenseCapability) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LicenseCapability) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseCapability) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseCapability) Count() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *LicenseCapability) MutateCount(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +func (rcv *LicenseCapability) IsPermanent() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *LicenseCapability) MutateIsPermanent(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func (rcv *LicenseCapability) StartDate() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseCapability) FinalExpirationDate() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func LicenseCapabilityStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func LicenseCapabilityAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func LicenseCapabilityAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) +} +func LicenseCapabilityAddCount(builder *flatbuffers.Builder, count int32) { + builder.PrependInt32Slot(2, count, 0) +} +func LicenseCapabilityAddIsPermanent(builder *flatbuffers.Builder, isPermanent bool) { + builder.PrependBoolSlot(3, isPermanent, false) +} +func LicenseCapabilityAddStartDate(builder *flatbuffers.Builder, startDate flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(startDate), 0) +} +func LicenseCapabilityAddFinalExpirationDate(builder *flatbuffers.Builder, finalExpirationDate flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(finalExpirationDate), 0) +} +func LicenseCapabilityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/systemcore/licenseproxy/LicenseRequest.go b/pkg/fbs/common/systemcore/licenseproxy/LicenseRequest.go index d80835d..09e8e07 100644 --- a/pkg/fbs/common/systemcore/licenseproxy/LicenseRequest.go +++ b/pkg/fbs/common/systemcore/licenseproxy/LicenseRequest.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package licenseproxy - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LicenseRequestT struct { - Name string - Version string -} - -func (t *LicenseRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - versionOffset := builder.CreateString(t.Version) - LicenseRequestStart(builder) - LicenseRequestAddName(builder, nameOffset) - LicenseRequestAddVersion(builder, versionOffset) - return LicenseRequestEnd(builder) -} - -func (rcv *LicenseRequest) UnPackTo(t *LicenseRequestT) { - t.Name = string(rcv.Name()) - t.Version = string(rcv.Version()) -} - -func (rcv *LicenseRequest) UnPack() *LicenseRequestT { - if rcv == nil { return nil } - t := &LicenseRequestT{} - rcv.UnPackTo(t) - return t -} - -type LicenseRequest struct { - _tab flatbuffers.Table -} - -func GetRootAsLicenseRequest(buf []byte, offset flatbuffers.UOffsetT) *LicenseRequest { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LicenseRequest{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLicenseRequest(buf []byte, offset flatbuffers.UOffsetT) *LicenseRequest { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LicenseRequest{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LicenseRequest) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LicenseRequest) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LicenseRequest) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseRequest) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func LicenseRequestStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func LicenseRequestAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func LicenseRequestAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) -} -func LicenseRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package licenseproxy + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LicenseRequestT struct { + Name string + Version string +} + +func (t *LicenseRequestT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + versionOffset := builder.CreateString(t.Version) + LicenseRequestStart(builder) + LicenseRequestAddName(builder, nameOffset) + LicenseRequestAddVersion(builder, versionOffset) + return LicenseRequestEnd(builder) +} + +func (rcv *LicenseRequest) UnPackTo(t *LicenseRequestT) { + t.Name = string(rcv.Name()) + t.Version = string(rcv.Version()) +} + +func (rcv *LicenseRequest) UnPack() *LicenseRequestT { + if rcv == nil { return nil } + t := &LicenseRequestT{} + rcv.UnPackTo(t) + return t +} + +type LicenseRequest struct { + _tab flatbuffers.Table +} + +func GetRootAsLicenseRequest(buf []byte, offset flatbuffers.UOffsetT) *LicenseRequest { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LicenseRequest{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLicenseRequest(buf []byte, offset flatbuffers.UOffsetT) *LicenseRequest { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LicenseRequest{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LicenseRequest) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LicenseRequest) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LicenseRequest) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseRequest) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func LicenseRequestStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func LicenseRequestAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func LicenseRequestAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) +} +func LicenseRequestEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/systemcore/licenseproxy/LicenseResponse.go b/pkg/fbs/common/systemcore/licenseproxy/LicenseResponse.go index 09c3ca7..ff18431 100644 --- a/pkg/fbs/common/systemcore/licenseproxy/LicenseResponse.go +++ b/pkg/fbs/common/systemcore/licenseproxy/LicenseResponse.go @@ -1,171 +1,171 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package licenseproxy - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LicenseResponseT struct { - Name string - Version string - Id string - IsPermanent bool - StartDate string - EndDate string - Tampered bool -} - -func (t *LicenseResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - versionOffset := builder.CreateString(t.Version) - idOffset := builder.CreateString(t.Id) - startDateOffset := builder.CreateString(t.StartDate) - endDateOffset := builder.CreateString(t.EndDate) - LicenseResponseStart(builder) - LicenseResponseAddName(builder, nameOffset) - LicenseResponseAddVersion(builder, versionOffset) - LicenseResponseAddId(builder, idOffset) - LicenseResponseAddIsPermanent(builder, t.IsPermanent) - LicenseResponseAddStartDate(builder, startDateOffset) - LicenseResponseAddEndDate(builder, endDateOffset) - LicenseResponseAddTampered(builder, t.Tampered) - return LicenseResponseEnd(builder) -} - -func (rcv *LicenseResponse) UnPackTo(t *LicenseResponseT) { - t.Name = string(rcv.Name()) - t.Version = string(rcv.Version()) - t.Id = string(rcv.Id()) - t.IsPermanent = rcv.IsPermanent() - t.StartDate = string(rcv.StartDate()) - t.EndDate = string(rcv.EndDate()) - t.Tampered = rcv.Tampered() -} - -func (rcv *LicenseResponse) UnPack() *LicenseResponseT { - if rcv == nil { return nil } - t := &LicenseResponseT{} - rcv.UnPackTo(t) - return t -} - -type LicenseResponse struct { - _tab flatbuffers.Table -} - -func GetRootAsLicenseResponse(buf []byte, offset flatbuffers.UOffsetT) *LicenseResponse { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &LicenseResponse{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLicenseResponse(buf []byte, offset flatbuffers.UOffsetT) *LicenseResponse { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &LicenseResponse{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *LicenseResponse) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *LicenseResponse) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *LicenseResponse) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseResponse) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseResponse) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseResponse) IsPermanent() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *LicenseResponse) MutateIsPermanent(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *LicenseResponse) StartDate() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseResponse) EndDate() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *LicenseResponse) Tampered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *LicenseResponse) MutateTampered(n bool) bool { - return rcv._tab.MutateBoolSlot(16, n) -} - -func LicenseResponseStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func LicenseResponseAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func LicenseResponseAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) -} -func LicenseResponseAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(id), 0) -} -func LicenseResponseAddIsPermanent(builder *flatbuffers.Builder, isPermanent bool) { - builder.PrependBoolSlot(3, isPermanent, false) -} -func LicenseResponseAddStartDate(builder *flatbuffers.Builder, startDate flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(startDate), 0) -} -func LicenseResponseAddEndDate(builder *flatbuffers.Builder, endDate flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(endDate), 0) -} -func LicenseResponseAddTampered(builder *flatbuffers.Builder, tampered bool) { - builder.PrependBoolSlot(6, tampered, false) -} -func LicenseResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package licenseproxy + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LicenseResponseT struct { + Name string + Version string + Id string + IsPermanent bool + StartDate string + EndDate string + Tampered bool +} + +func (t *LicenseResponseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + versionOffset := builder.CreateString(t.Version) + idOffset := builder.CreateString(t.Id) + startDateOffset := builder.CreateString(t.StartDate) + endDateOffset := builder.CreateString(t.EndDate) + LicenseResponseStart(builder) + LicenseResponseAddName(builder, nameOffset) + LicenseResponseAddVersion(builder, versionOffset) + LicenseResponseAddId(builder, idOffset) + LicenseResponseAddIsPermanent(builder, t.IsPermanent) + LicenseResponseAddStartDate(builder, startDateOffset) + LicenseResponseAddEndDate(builder, endDateOffset) + LicenseResponseAddTampered(builder, t.Tampered) + return LicenseResponseEnd(builder) +} + +func (rcv *LicenseResponse) UnPackTo(t *LicenseResponseT) { + t.Name = string(rcv.Name()) + t.Version = string(rcv.Version()) + t.Id = string(rcv.Id()) + t.IsPermanent = rcv.IsPermanent() + t.StartDate = string(rcv.StartDate()) + t.EndDate = string(rcv.EndDate()) + t.Tampered = rcv.Tampered() +} + +func (rcv *LicenseResponse) UnPack() *LicenseResponseT { + if rcv == nil { return nil } + t := &LicenseResponseT{} + rcv.UnPackTo(t) + return t +} + +type LicenseResponse struct { + _tab flatbuffers.Table +} + +func GetRootAsLicenseResponse(buf []byte, offset flatbuffers.UOffsetT) *LicenseResponse { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &LicenseResponse{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLicenseResponse(buf []byte, offset flatbuffers.UOffsetT) *LicenseResponse { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &LicenseResponse{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *LicenseResponse) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *LicenseResponse) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *LicenseResponse) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseResponse) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseResponse) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseResponse) IsPermanent() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *LicenseResponse) MutateIsPermanent(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func (rcv *LicenseResponse) StartDate() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseResponse) EndDate() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *LicenseResponse) Tampered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *LicenseResponse) MutateTampered(n bool) bool { + return rcv._tab.MutateBoolSlot(16, n) +} + +func LicenseResponseStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func LicenseResponseAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func LicenseResponseAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) +} +func LicenseResponseAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(id), 0) +} +func LicenseResponseAddIsPermanent(builder *flatbuffers.Builder, isPermanent bool) { + builder.PrependBoolSlot(3, isPermanent, false) +} +func LicenseResponseAddStartDate(builder *flatbuffers.Builder, startDate flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(startDate), 0) +} +func LicenseResponseAddEndDate(builder *flatbuffers.Builder, endDate flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(endDate), 0) +} +func LicenseResponseAddTampered(builder *flatbuffers.Builder, tampered bool) { + builder.PrependBoolSlot(6, tampered, false) +} +func LicenseResponseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/systemhandler/fbs/CurrentState.go b/pkg/fbs/common/systemhandler/fbs/CurrentState.go index d96fd20..a949240 100644 --- a/pkg/fbs/common/systemhandler/fbs/CurrentState.go +++ b/pkg/fbs/common/systemhandler/fbs/CurrentState.go @@ -1,56 +1,56 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type CurrentState int8 - -const ( - CurrentStateINIT CurrentState = 0 - CurrentStateSTOP CurrentState = 1 - CurrentStateRUN CurrentState = 2 - CurrentStateERROR CurrentState = 3 - CurrentStateSYSERROR CurrentState = 4 - CurrentStateSHUTDOWN CurrentState = 5 - CurrentStateWARNING CurrentState = 6 - CurrentStateSERVICE CurrentState = 7 - CurrentStateSETUP CurrentState = 8 - CurrentStatePARTIAL_OPERATING CurrentState = 9 - CurrentStateOPERATING CurrentState = 10 -) - -var EnumNamesCurrentState = map[CurrentState]string{ - CurrentStateINIT: "INIT", - CurrentStateSTOP: "STOP", - CurrentStateRUN: "RUN", - CurrentStateERROR: "ERROR", - CurrentStateSYSERROR: "SYSERROR", - CurrentStateSHUTDOWN: "SHUTDOWN", - CurrentStateWARNING: "WARNING", - CurrentStateSERVICE: "SERVICE", - CurrentStateSETUP: "SETUP", - CurrentStatePARTIAL_OPERATING: "PARTIAL_OPERATING", - CurrentStateOPERATING: "OPERATING", -} - -var EnumValuesCurrentState = map[string]CurrentState{ - "INIT": CurrentStateINIT, - "STOP": CurrentStateSTOP, - "RUN": CurrentStateRUN, - "ERROR": CurrentStateERROR, - "SYSERROR": CurrentStateSYSERROR, - "SHUTDOWN": CurrentStateSHUTDOWN, - "WARNING": CurrentStateWARNING, - "SERVICE": CurrentStateSERVICE, - "SETUP": CurrentStateSETUP, - "PARTIAL_OPERATING": CurrentStatePARTIAL_OPERATING, - "OPERATING": CurrentStateOPERATING, -} - -func (v CurrentState) String() string { - if s, ok := EnumNamesCurrentState[v]; ok { - return s - } - return "CurrentState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type CurrentState int8 + +const ( + CurrentStateINIT CurrentState = 0 + CurrentStateSTOP CurrentState = 1 + CurrentStateRUN CurrentState = 2 + CurrentStateERROR CurrentState = 3 + CurrentStateSYSERROR CurrentState = 4 + CurrentStateSHUTDOWN CurrentState = 5 + CurrentStateWARNING CurrentState = 6 + CurrentStateSERVICE CurrentState = 7 + CurrentStateSETUP CurrentState = 8 + CurrentStatePARTIAL_OPERATING CurrentState = 9 + CurrentStateOPERATING CurrentState = 10 +) + +var EnumNamesCurrentState = map[CurrentState]string{ + CurrentStateINIT: "INIT", + CurrentStateSTOP: "STOP", + CurrentStateRUN: "RUN", + CurrentStateERROR: "ERROR", + CurrentStateSYSERROR: "SYSERROR", + CurrentStateSHUTDOWN: "SHUTDOWN", + CurrentStateWARNING: "WARNING", + CurrentStateSERVICE: "SERVICE", + CurrentStateSETUP: "SETUP", + CurrentStatePARTIAL_OPERATING: "PARTIAL_OPERATING", + CurrentStateOPERATING: "OPERATING", +} + +var EnumValuesCurrentState = map[string]CurrentState{ + "INIT": CurrentStateINIT, + "STOP": CurrentStateSTOP, + "RUN": CurrentStateRUN, + "ERROR": CurrentStateERROR, + "SYSERROR": CurrentStateSYSERROR, + "SHUTDOWN": CurrentStateSHUTDOWN, + "WARNING": CurrentStateWARNING, + "SERVICE": CurrentStateSERVICE, + "SETUP": CurrentStateSETUP, + "PARTIAL_OPERATING": CurrentStatePARTIAL_OPERATING, + "OPERATING": CurrentStateOPERATING, +} + +func (v CurrentState) String() string { + if s, ok := EnumNamesCurrentState[v]; ok { + return s + } + return "CurrentState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/systemhandler/fbs/State.go b/pkg/fbs/common/systemhandler/fbs/State.go index 67403f1..f0de4aa 100644 --- a/pkg/fbs/common/systemhandler/fbs/State.go +++ b/pkg/fbs/common/systemhandler/fbs/State.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StateT struct { - State CurrentState -} - -func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StateStart(builder) - StateAddState(builder, t.State) - return StateEnd(builder) -} - -func (rcv *State) UnPackTo(t *StateT) { - t.State = rcv.State() -} - -func (rcv *State) UnPack() *StateT { - if rcv == nil { return nil } - t := &StateT{} - rcv.UnPackTo(t) - return t -} - -type State struct { - _tab flatbuffers.Table -} - -func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State) State() CurrentState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *State) MutateState(n CurrentState) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func StateStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StateAddState(builder *flatbuffers.Builder, state CurrentState) { - builder.PrependInt8Slot(0, int8(state), 0) -} -func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StateT struct { + State CurrentState +} + +func (t *StateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StateStart(builder) + StateAddState(builder, t.State) + return StateEnd(builder) +} + +func (rcv *State) UnPackTo(t *StateT) { + t.State = rcv.State() +} + +func (rcv *State) UnPack() *StateT { + if rcv == nil { return nil } + t := &StateT{} + rcv.UnPackTo(t) + return t +} + +type State struct { + _tab flatbuffers.Table +} + +func GetRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState(buf []byte, offset flatbuffers.UOffsetT) *State { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State) State() CurrentState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return CurrentState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *State) MutateState(n CurrentState) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func StateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StateAddState(builder *flatbuffers.Builder, state CurrentState) { + builder.PrependInt8Slot(0, int8(state), 0) +} +func StateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/testbuddy/Data.go b/pkg/fbs/common/testbuddy/Data.go index 49ab9ac..8a38a65 100644 --- a/pkg/fbs/common/testbuddy/Data.go +++ b/pkg/fbs/common/testbuddy/Data.go @@ -1,93 +1,93 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package testbuddy - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DataT struct { - Name string - Value float64 -} - -func (t *DataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - DataStart(builder) - DataAddName(builder, nameOffset) - DataAddValue(builder, t.Value) - return DataEnd(builder) -} - -func (rcv *Data) UnPackTo(t *DataT) { - t.Name = string(rcv.Name()) - t.Value = rcv.Value() -} - -func (rcv *Data) UnPack() *DataT { - if rcv == nil { return nil } - t := &DataT{} - rcv.UnPackTo(t) - return t -} - -type Data struct { - _tab flatbuffers.Table -} - -func GetRootAsData(buf []byte, offset flatbuffers.UOffsetT) *Data { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Data{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsData(buf []byte, offset flatbuffers.UOffsetT) *Data { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Data{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Data) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Data) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Data) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Data) Value() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Data) MutateValue(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func DataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func DataAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func DataAddValue(builder *flatbuffers.Builder, value float64) { - builder.PrependFloat64Slot(1, value, 0.0) -} -func DataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package testbuddy + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DataT struct { + Name string + Value float64 +} + +func (t *DataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + DataStart(builder) + DataAddName(builder, nameOffset) + DataAddValue(builder, t.Value) + return DataEnd(builder) +} + +func (rcv *Data) UnPackTo(t *DataT) { + t.Name = string(rcv.Name()) + t.Value = rcv.Value() +} + +func (rcv *Data) UnPack() *DataT { + if rcv == nil { return nil } + t := &DataT{} + rcv.UnPackTo(t) + return t +} + +type Data struct { + _tab flatbuffers.Table +} + +func GetRootAsData(buf []byte, offset flatbuffers.UOffsetT) *Data { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Data{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsData(buf []byte, offset flatbuffers.UOffsetT) *Data { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Data{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Data) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Data) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Data) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Data) Value() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Data) MutateValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func DataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func DataAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func DataAddValue(builder *flatbuffers.Builder, value float64) { + builder.PrependFloat64Slot(1, value, 0.0) +} +func DataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/testbuddy/Log.go b/pkg/fbs/common/testbuddy/Log.go index 32a07e7..9509c6d 100644 --- a/pkg/fbs/common/testbuddy/Log.go +++ b/pkg/fbs/common/testbuddy/Log.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package testbuddy - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type LogT struct { - Index uint32 - Type LogType - Log string -} - -func (t *LogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - logOffset := builder.CreateString(t.Log) - LogStart(builder) - LogAddIndex(builder, t.Index) - LogAddType(builder, t.Type) - LogAddLog(builder, logOffset) - return LogEnd(builder) -} - -func (rcv *Log) UnPackTo(t *LogT) { - t.Index = rcv.Index() - t.Type = rcv.Type() - t.Log = string(rcv.Log()) -} - -func (rcv *Log) UnPack() *LogT { - if rcv == nil { return nil } - t := &LogT{} - rcv.UnPackTo(t) - return t -} - -type Log struct { - _tab flatbuffers.Table -} - -func GetRootAsLog(buf []byte, offset flatbuffers.UOffsetT) *Log { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Log{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsLog(buf []byte, offset flatbuffers.UOffsetT) *Log { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Log{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Log) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Log) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Log) Index() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Log) MutateIndex(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *Log) Type() LogType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return LogType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Log) MutateType(n LogType) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func (rcv *Log) Log() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func LogStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func LogAddIndex(builder *flatbuffers.Builder, index uint32) { - builder.PrependUint32Slot(0, index, 0) -} -func LogAddType(builder *flatbuffers.Builder, type_ LogType) { - builder.PrependInt8Slot(1, int8(type_), 0) -} -func LogAddLog(builder *flatbuffers.Builder, log flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(log), 0) -} -func LogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package testbuddy + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type LogT struct { + Index uint32 + Type LogType + Log string +} + +func (t *LogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + logOffset := builder.CreateString(t.Log) + LogStart(builder) + LogAddIndex(builder, t.Index) + LogAddType(builder, t.Type) + LogAddLog(builder, logOffset) + return LogEnd(builder) +} + +func (rcv *Log) UnPackTo(t *LogT) { + t.Index = rcv.Index() + t.Type = rcv.Type() + t.Log = string(rcv.Log()) +} + +func (rcv *Log) UnPack() *LogT { + if rcv == nil { return nil } + t := &LogT{} + rcv.UnPackTo(t) + return t +} + +type Log struct { + _tab flatbuffers.Table +} + +func GetRootAsLog(buf []byte, offset flatbuffers.UOffsetT) *Log { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Log{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsLog(buf []byte, offset flatbuffers.UOffsetT) *Log { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Log{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Log) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Log) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Log) Index() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Log) MutateIndex(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *Log) Type() LogType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return LogType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Log) MutateType(n LogType) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func (rcv *Log) Log() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func LogStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func LogAddIndex(builder *flatbuffers.Builder, index uint32) { + builder.PrependUint32Slot(0, index, 0) +} +func LogAddType(builder *flatbuffers.Builder, type_ LogType) { + builder.PrependInt8Slot(1, int8(type_), 0) +} +func LogAddLog(builder *flatbuffers.Builder, log flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(log), 0) +} +func LogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/common/testbuddy/LogType.go b/pkg/fbs/common/testbuddy/LogType.go index 68f3c64..e7980e7 100644 --- a/pkg/fbs/common/testbuddy/LogType.go +++ b/pkg/fbs/common/testbuddy/LogType.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package testbuddy - -import "strconv" - -type LogType int8 - -const ( - LogTypeLog LogType = 0 - LogTypeWarning LogType = 1 - LogTypeError LogType = 2 -) - -var EnumNamesLogType = map[LogType]string{ - LogTypeLog: "Log", - LogTypeWarning: "Warning", - LogTypeError: "Error", -} - -var EnumValuesLogType = map[string]LogType{ - "Log": LogTypeLog, - "Warning": LogTypeWarning, - "Error": LogTypeError, -} - -func (v LogType) String() string { - if s, ok := EnumNamesLogType[v]; ok { - return s - } - return "LogType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package testbuddy + +import "strconv" + +type LogType int8 + +const ( + LogTypeLog LogType = 0 + LogTypeWarning LogType = 1 + LogTypeError LogType = 2 +) + +var EnumNamesLogType = map[LogType]string{ + LogTypeLog: "Log", + LogTypeWarning: "Warning", + LogTypeError: "Error", +} + +var EnumValuesLogType = map[string]LogType{ + "Log": LogTypeLog, + "Warning": LogTypeWarning, + "Error": LogTypeError, +} + +func (v LogType) String() string { + if s, ok := EnumNamesLogType[v]; ok { + return s + } + return "LogType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/common/testbuddy/TestResult.go b/pkg/fbs/common/testbuddy/TestResult.go index d7acc01..540e3a8 100644 --- a/pkg/fbs/common/testbuddy/TestResult.go +++ b/pkg/fbs/common/testbuddy/TestResult.go @@ -1,192 +1,192 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package testbuddy - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type TestResultT struct { - NumWarnings int32 - NumErrors int32 - Log []*LogT - Data []*DataT -} - -func (t *TestResultT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - logOffset := flatbuffers.UOffsetT(0) - if t.Log != nil { - logLength := len(t.Log) - logOffsets := make([]flatbuffers.UOffsetT, logLength) - for j := 0; j < logLength; j++ { - logOffsets[j] = t.Log[j].Pack(builder) - } - TestResultStartLogVector(builder, logLength) - for j := logLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(logOffsets[j]) - } - logOffset = builder.EndVector(logLength) - } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - dataOffsets := make([]flatbuffers.UOffsetT, dataLength) - for j := 0; j < dataLength; j++ { - dataOffsets[j] = t.Data[j].Pack(builder) - } - TestResultStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(dataOffsets[j]) - } - dataOffset = builder.EndVector(dataLength) - } - TestResultStart(builder) - TestResultAddNumWarnings(builder, t.NumWarnings) - TestResultAddNumErrors(builder, t.NumErrors) - TestResultAddLog(builder, logOffset) - TestResultAddData(builder, dataOffset) - return TestResultEnd(builder) -} - -func (rcv *TestResult) UnPackTo(t *TestResultT) { - t.NumWarnings = rcv.NumWarnings() - t.NumErrors = rcv.NumErrors() - logLength := rcv.LogLength() - t.Log = make([]*LogT, logLength) - for j := 0; j < logLength; j++ { - x := Log{} - rcv.Log(&x, j) - t.Log[j] = x.UnPack() - } - dataLength := rcv.DataLength() - t.Data = make([]*DataT, dataLength) - for j := 0; j < dataLength; j++ { - x := Data{} - rcv.Data(&x, j) - t.Data[j] = x.UnPack() - } -} - -func (rcv *TestResult) UnPack() *TestResultT { - if rcv == nil { return nil } - t := &TestResultT{} - rcv.UnPackTo(t) - return t -} - -type TestResult struct { - _tab flatbuffers.Table -} - -func GetRootAsTestResult(buf []byte, offset flatbuffers.UOffsetT) *TestResult { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &TestResult{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTestResult(buf []byte, offset flatbuffers.UOffsetT) *TestResult { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &TestResult{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *TestResult) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *TestResult) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *TestResult) NumWarnings() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *TestResult) MutateNumWarnings(n int32) bool { - return rcv._tab.MutateInt32Slot(4, n) -} - -func (rcv *TestResult) NumErrors() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *TestResult) MutateNumErrors(n int32) bool { - return rcv._tab.MutateInt32Slot(6, n) -} - -func (rcv *TestResult) Log(obj *Log, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *TestResult) LogLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *TestResult) Data(obj *Data, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *TestResult) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func TestResultStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func TestResultAddNumWarnings(builder *flatbuffers.Builder, numWarnings int32) { - builder.PrependInt32Slot(0, numWarnings, 0) -} -func TestResultAddNumErrors(builder *flatbuffers.Builder, numErrors int32) { - builder.PrependInt32Slot(1, numErrors, 0) -} -func TestResultAddLog(builder *flatbuffers.Builder, log flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(log), 0) -} -func TestResultStartLogVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func TestResultAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(data), 0) -} -func TestResultStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func TestResultEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package testbuddy + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type TestResultT struct { + NumWarnings int32 + NumErrors int32 + Log []*LogT + Data []*DataT +} + +func (t *TestResultT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + logOffset := flatbuffers.UOffsetT(0) + if t.Log != nil { + logLength := len(t.Log) + logOffsets := make([]flatbuffers.UOffsetT, logLength) + for j := 0; j < logLength; j++ { + logOffsets[j] = t.Log[j].Pack(builder) + } + TestResultStartLogVector(builder, logLength) + for j := logLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(logOffsets[j]) + } + logOffset = builder.EndVector(logLength) + } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + dataOffsets := make([]flatbuffers.UOffsetT, dataLength) + for j := 0; j < dataLength; j++ { + dataOffsets[j] = t.Data[j].Pack(builder) + } + TestResultStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(dataOffsets[j]) + } + dataOffset = builder.EndVector(dataLength) + } + TestResultStart(builder) + TestResultAddNumWarnings(builder, t.NumWarnings) + TestResultAddNumErrors(builder, t.NumErrors) + TestResultAddLog(builder, logOffset) + TestResultAddData(builder, dataOffset) + return TestResultEnd(builder) +} + +func (rcv *TestResult) UnPackTo(t *TestResultT) { + t.NumWarnings = rcv.NumWarnings() + t.NumErrors = rcv.NumErrors() + logLength := rcv.LogLength() + t.Log = make([]*LogT, logLength) + for j := 0; j < logLength; j++ { + x := Log{} + rcv.Log(&x, j) + t.Log[j] = x.UnPack() + } + dataLength := rcv.DataLength() + t.Data = make([]*DataT, dataLength) + for j := 0; j < dataLength; j++ { + x := Data{} + rcv.Data(&x, j) + t.Data[j] = x.UnPack() + } +} + +func (rcv *TestResult) UnPack() *TestResultT { + if rcv == nil { return nil } + t := &TestResultT{} + rcv.UnPackTo(t) + return t +} + +type TestResult struct { + _tab flatbuffers.Table +} + +func GetRootAsTestResult(buf []byte, offset flatbuffers.UOffsetT) *TestResult { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &TestResult{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTestResult(buf []byte, offset flatbuffers.UOffsetT) *TestResult { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &TestResult{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *TestResult) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *TestResult) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *TestResult) NumWarnings() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *TestResult) MutateNumWarnings(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +func (rcv *TestResult) NumErrors() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *TestResult) MutateNumErrors(n int32) bool { + return rcv._tab.MutateInt32Slot(6, n) +} + +func (rcv *TestResult) Log(obj *Log, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *TestResult) LogLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *TestResult) Data(obj *Data, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *TestResult) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func TestResultStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func TestResultAddNumWarnings(builder *flatbuffers.Builder, numWarnings int32) { + builder.PrependInt32Slot(0, numWarnings, 0) +} +func TestResultAddNumErrors(builder *flatbuffers.Builder, numErrors int32) { + builder.PrependInt32Slot(1, numErrors, 0) +} +func TestResultAddLog(builder *flatbuffers.Builder, log flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(log), 0) +} +func TestResultStartLogVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func TestResultAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(data), 0) +} +func TestResultStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func TestResultEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionAvoidance.go b/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionAvoidance.go index 7858063..ea77048 100644 --- a/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionAvoidance.go +++ b/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionAvoidance.go @@ -1,114 +1,114 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the collision avoidance function -type CollisionAvoidanceT struct { - AxsName string - Enable bool - Params *GetCollisionGuardStateParamsT -} - -func (t *CollisionAvoidanceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsNameOffset := builder.CreateString(t.AxsName) - paramsOffset := t.Params.Pack(builder) - CollisionAvoidanceStart(builder) - CollisionAvoidanceAddAxsName(builder, axsNameOffset) - CollisionAvoidanceAddEnable(builder, t.Enable) - CollisionAvoidanceAddParams(builder, paramsOffset) - return CollisionAvoidanceEnd(builder) -} - -func (rcv *CollisionAvoidance) UnPackTo(t *CollisionAvoidanceT) { - t.AxsName = string(rcv.AxsName()) - t.Enable = rcv.Enable() - t.Params = rcv.Params(nil).UnPack() -} - -func (rcv *CollisionAvoidance) UnPack() *CollisionAvoidanceT { - if rcv == nil { return nil } - t := &CollisionAvoidanceT{} - rcv.UnPackTo(t) - return t -} - -type CollisionAvoidance struct { - _tab flatbuffers.Table -} - -func GetRootAsCollisionAvoidance(buf []byte, offset flatbuffers.UOffsetT) *CollisionAvoidance { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CollisionAvoidance{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCollisionAvoidance(buf []byte, offset flatbuffers.UOffsetT) *CollisionAvoidance { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CollisionAvoidance{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CollisionAvoidance) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CollisionAvoidance) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CollisionAvoidance) AxsName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CollisionAvoidance) Enable() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *CollisionAvoidance) MutateEnable(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *CollisionAvoidance) Params(obj *GetCollisionGuardStateParams) *GetCollisionGuardStateParams { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(GetCollisionGuardStateParams) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func CollisionAvoidanceStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CollisionAvoidanceAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) -} -func CollisionAvoidanceAddEnable(builder *flatbuffers.Builder, enable bool) { - builder.PrependBoolSlot(1, enable, false) -} -func CollisionAvoidanceAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(params), 0) -} -func CollisionAvoidanceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the collision avoidance function +type CollisionAvoidanceT struct { + AxsName string + Enable bool + Params *GetCollisionGuardStateParamsT +} + +func (t *CollisionAvoidanceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsNameOffset := builder.CreateString(t.AxsName) + paramsOffset := t.Params.Pack(builder) + CollisionAvoidanceStart(builder) + CollisionAvoidanceAddAxsName(builder, axsNameOffset) + CollisionAvoidanceAddEnable(builder, t.Enable) + CollisionAvoidanceAddParams(builder, paramsOffset) + return CollisionAvoidanceEnd(builder) +} + +func (rcv *CollisionAvoidance) UnPackTo(t *CollisionAvoidanceT) { + t.AxsName = string(rcv.AxsName()) + t.Enable = rcv.Enable() + t.Params = rcv.Params(nil).UnPack() +} + +func (rcv *CollisionAvoidance) UnPack() *CollisionAvoidanceT { + if rcv == nil { return nil } + t := &CollisionAvoidanceT{} + rcv.UnPackTo(t) + return t +} + +type CollisionAvoidance struct { + _tab flatbuffers.Table +} + +func GetRootAsCollisionAvoidance(buf []byte, offset flatbuffers.UOffsetT) *CollisionAvoidance { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CollisionAvoidance{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCollisionAvoidance(buf []byte, offset flatbuffers.UOffsetT) *CollisionAvoidance { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CollisionAvoidance{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CollisionAvoidance) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CollisionAvoidance) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CollisionAvoidance) AxsName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CollisionAvoidance) Enable() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *CollisionAvoidance) MutateEnable(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *CollisionAvoidance) Params(obj *GetCollisionGuardStateParams) *GetCollisionGuardStateParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(GetCollisionGuardStateParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func CollisionAvoidanceStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CollisionAvoidanceAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) +} +func CollisionAvoidanceAddEnable(builder *flatbuffers.Builder, enable bool) { + builder.PrependBoolSlot(1, enable, false) +} +func CollisionAvoidanceAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(params), 0) +} +func CollisionAvoidanceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionGuardState.go b/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionGuardState.go index 9ad3f63..a954a6d 100644 --- a/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionGuardState.go +++ b/pkg/fbs/motion/collision_avoidance/fbtypes/CollisionGuardState.go @@ -1,45 +1,45 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// Possible collision guard states -type CollisionGuardState int8 - -const ( - CollisionGuardStateMONITORING CollisionGuardState = 0 - CollisionGuardStateTARGETS_CROSSING CollisionGuardState = 1 - CollisionGuardStateSYNC_ADVICE CollisionGuardState = 2 - CollisionGuardStateSLOWDOWN_ADVICE CollisionGuardState = 3 - CollisionGuardStateSTOP CollisionGuardState = 4 - CollisionGuardStateEMERGENCY_STOP CollisionGuardState = 5 - CollisionGuardStateUNKNOWN CollisionGuardState = 6 -) - -var EnumNamesCollisionGuardState = map[CollisionGuardState]string{ - CollisionGuardStateMONITORING: "MONITORING", - CollisionGuardStateTARGETS_CROSSING: "TARGETS_CROSSING", - CollisionGuardStateSYNC_ADVICE: "SYNC_ADVICE", - CollisionGuardStateSLOWDOWN_ADVICE: "SLOWDOWN_ADVICE", - CollisionGuardStateSTOP: "STOP", - CollisionGuardStateEMERGENCY_STOP: "EMERGENCY_STOP", - CollisionGuardStateUNKNOWN: "UNKNOWN", -} - -var EnumValuesCollisionGuardState = map[string]CollisionGuardState{ - "MONITORING": CollisionGuardStateMONITORING, - "TARGETS_CROSSING": CollisionGuardStateTARGETS_CROSSING, - "SYNC_ADVICE": CollisionGuardStateSYNC_ADVICE, - "SLOWDOWN_ADVICE": CollisionGuardStateSLOWDOWN_ADVICE, - "STOP": CollisionGuardStateSTOP, - "EMERGENCY_STOP": CollisionGuardStateEMERGENCY_STOP, - "UNKNOWN": CollisionGuardStateUNKNOWN, -} - -func (v CollisionGuardState) String() string { - if s, ok := EnumNamesCollisionGuardState[v]; ok { - return s - } - return "CollisionGuardState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// Possible collision guard states +type CollisionGuardState int8 + +const ( + CollisionGuardStateMONITORING CollisionGuardState = 0 + CollisionGuardStateTARGETS_CROSSING CollisionGuardState = 1 + CollisionGuardStateSYNC_ADVICE CollisionGuardState = 2 + CollisionGuardStateSLOWDOWN_ADVICE CollisionGuardState = 3 + CollisionGuardStateSTOP CollisionGuardState = 4 + CollisionGuardStateEMERGENCY_STOP CollisionGuardState = 5 + CollisionGuardStateUNKNOWN CollisionGuardState = 6 +) + +var EnumNamesCollisionGuardState = map[CollisionGuardState]string{ + CollisionGuardStateMONITORING: "MONITORING", + CollisionGuardStateTARGETS_CROSSING: "TARGETS_CROSSING", + CollisionGuardStateSYNC_ADVICE: "SYNC_ADVICE", + CollisionGuardStateSLOWDOWN_ADVICE: "SLOWDOWN_ADVICE", + CollisionGuardStateSTOP: "STOP", + CollisionGuardStateEMERGENCY_STOP: "EMERGENCY_STOP", + CollisionGuardStateUNKNOWN: "UNKNOWN", +} + +var EnumValuesCollisionGuardState = map[string]CollisionGuardState{ + "MONITORING": CollisionGuardStateMONITORING, + "TARGETS_CROSSING": CollisionGuardStateTARGETS_CROSSING, + "SYNC_ADVICE": CollisionGuardStateSYNC_ADVICE, + "SLOWDOWN_ADVICE": CollisionGuardStateSLOWDOWN_ADVICE, + "STOP": CollisionGuardStateSTOP, + "EMERGENCY_STOP": CollisionGuardStateEMERGENCY_STOP, + "UNKNOWN": CollisionGuardStateUNKNOWN, +} + +func (v CollisionGuardState) String() string { + if s, ok := EnumNamesCollisionGuardState[v]; ok { + return s + } + return "CollisionGuardState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/collision_avoidance/fbtypes/GetCollisionGuardStateParams.go b/pkg/fbs/motion/collision_avoidance/fbtypes/GetCollisionGuardStateParams.go index bda0e34..12d65e4 100644 --- a/pkg/fbs/motion/collision_avoidance/fbtypes/GetCollisionGuardStateParams.go +++ b/pkg/fbs/motion/collision_avoidance/fbtypes/GetCollisionGuardStateParams.go @@ -1,277 +1,277 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the get collision guard state function -type GetCollisionGuardStateParamsT struct { - EmergencyDist float64 - MinDist float64 - SlowDownDist float64 - SyncDist float64 - ActPos float64 - TargetPos float64 - ActBrakingDist float64 - NeighborPos float64 - NeighborTargetPos float64 - NeighborBrakingDist float64 - HysteresisDist float64 - PrevState CollisionGuardState -} - -func (t *GetCollisionGuardStateParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - GetCollisionGuardStateParamsStart(builder) - GetCollisionGuardStateParamsAddEmergencyDist(builder, t.EmergencyDist) - GetCollisionGuardStateParamsAddMinDist(builder, t.MinDist) - GetCollisionGuardStateParamsAddSlowDownDist(builder, t.SlowDownDist) - GetCollisionGuardStateParamsAddSyncDist(builder, t.SyncDist) - GetCollisionGuardStateParamsAddActPos(builder, t.ActPos) - GetCollisionGuardStateParamsAddTargetPos(builder, t.TargetPos) - GetCollisionGuardStateParamsAddActBrakingDist(builder, t.ActBrakingDist) - GetCollisionGuardStateParamsAddNeighborPos(builder, t.NeighborPos) - GetCollisionGuardStateParamsAddNeighborTargetPos(builder, t.NeighborTargetPos) - GetCollisionGuardStateParamsAddNeighborBrakingDist(builder, t.NeighborBrakingDist) - GetCollisionGuardStateParamsAddHysteresisDist(builder, t.HysteresisDist) - GetCollisionGuardStateParamsAddPrevState(builder, t.PrevState) - return GetCollisionGuardStateParamsEnd(builder) -} - -func (rcv *GetCollisionGuardStateParams) UnPackTo(t *GetCollisionGuardStateParamsT) { - t.EmergencyDist = rcv.EmergencyDist() - t.MinDist = rcv.MinDist() - t.SlowDownDist = rcv.SlowDownDist() - t.SyncDist = rcv.SyncDist() - t.ActPos = rcv.ActPos() - t.TargetPos = rcv.TargetPos() - t.ActBrakingDist = rcv.ActBrakingDist() - t.NeighborPos = rcv.NeighborPos() - t.NeighborTargetPos = rcv.NeighborTargetPos() - t.NeighborBrakingDist = rcv.NeighborBrakingDist() - t.HysteresisDist = rcv.HysteresisDist() - t.PrevState = rcv.PrevState() -} - -func (rcv *GetCollisionGuardStateParams) UnPack() *GetCollisionGuardStateParamsT { - if rcv == nil { return nil } - t := &GetCollisionGuardStateParamsT{} - rcv.UnPackTo(t) - return t -} - -type GetCollisionGuardStateParams struct { - _tab flatbuffers.Table -} - -func GetRootAsGetCollisionGuardStateParams(buf []byte, offset flatbuffers.UOffsetT) *GetCollisionGuardStateParams { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &GetCollisionGuardStateParams{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsGetCollisionGuardStateParams(buf []byte, offset flatbuffers.UOffsetT) *GetCollisionGuardStateParams { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &GetCollisionGuardStateParams{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *GetCollisionGuardStateParams) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *GetCollisionGuardStateParams) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *GetCollisionGuardStateParams) EmergencyDist() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateEmergencyDist(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func (rcv *GetCollisionGuardStateParams) MinDist() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateMinDist(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *GetCollisionGuardStateParams) SlowDownDist() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateSlowDownDist(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *GetCollisionGuardStateParams) SyncDist() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateSyncDist(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func (rcv *GetCollisionGuardStateParams) ActPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateActPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -func (rcv *GetCollisionGuardStateParams) TargetPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateTargetPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(14, n) -} - -func (rcv *GetCollisionGuardStateParams) ActBrakingDist() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateActBrakingDist(n float64) bool { - return rcv._tab.MutateFloat64Slot(16, n) -} - -func (rcv *GetCollisionGuardStateParams) NeighborPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateNeighborPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(18, n) -} - -func (rcv *GetCollisionGuardStateParams) NeighborTargetPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateNeighborTargetPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(20, n) -} - -func (rcv *GetCollisionGuardStateParams) NeighborBrakingDist() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateNeighborBrakingDist(n float64) bool { - return rcv._tab.MutateFloat64Slot(22, n) -} - -func (rcv *GetCollisionGuardStateParams) HysteresisDist() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *GetCollisionGuardStateParams) MutateHysteresisDist(n float64) bool { - return rcv._tab.MutateFloat64Slot(24, n) -} - -func (rcv *GetCollisionGuardStateParams) PrevState() CollisionGuardState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return CollisionGuardState(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *GetCollisionGuardStateParams) MutatePrevState(n CollisionGuardState) bool { - return rcv._tab.MutateInt8Slot(26, int8(n)) -} - -func GetCollisionGuardStateParamsStart(builder *flatbuffers.Builder) { - builder.StartObject(12) -} -func GetCollisionGuardStateParamsAddEmergencyDist(builder *flatbuffers.Builder, emergencyDist float64) { - builder.PrependFloat64Slot(0, emergencyDist, 0.0) -} -func GetCollisionGuardStateParamsAddMinDist(builder *flatbuffers.Builder, minDist float64) { - builder.PrependFloat64Slot(1, minDist, 0.0) -} -func GetCollisionGuardStateParamsAddSlowDownDist(builder *flatbuffers.Builder, slowDownDist float64) { - builder.PrependFloat64Slot(2, slowDownDist, 0.0) -} -func GetCollisionGuardStateParamsAddSyncDist(builder *flatbuffers.Builder, syncDist float64) { - builder.PrependFloat64Slot(3, syncDist, 0.0) -} -func GetCollisionGuardStateParamsAddActPos(builder *flatbuffers.Builder, actPos float64) { - builder.PrependFloat64Slot(4, actPos, 0.0) -} -func GetCollisionGuardStateParamsAddTargetPos(builder *flatbuffers.Builder, targetPos float64) { - builder.PrependFloat64Slot(5, targetPos, 0.0) -} -func GetCollisionGuardStateParamsAddActBrakingDist(builder *flatbuffers.Builder, actBrakingDist float64) { - builder.PrependFloat64Slot(6, actBrakingDist, 0.0) -} -func GetCollisionGuardStateParamsAddNeighborPos(builder *flatbuffers.Builder, neighborPos float64) { - builder.PrependFloat64Slot(7, neighborPos, 0.0) -} -func GetCollisionGuardStateParamsAddNeighborTargetPos(builder *flatbuffers.Builder, neighborTargetPos float64) { - builder.PrependFloat64Slot(8, neighborTargetPos, 0.0) -} -func GetCollisionGuardStateParamsAddNeighborBrakingDist(builder *flatbuffers.Builder, neighborBrakingDist float64) { - builder.PrependFloat64Slot(9, neighborBrakingDist, 0.0) -} -func GetCollisionGuardStateParamsAddHysteresisDist(builder *flatbuffers.Builder, hysteresisDist float64) { - builder.PrependFloat64Slot(10, hysteresisDist, 0.0) -} -func GetCollisionGuardStateParamsAddPrevState(builder *flatbuffers.Builder, prevState CollisionGuardState) { - builder.PrependInt8Slot(11, int8(prevState), 0) -} -func GetCollisionGuardStateParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the get collision guard state function +type GetCollisionGuardStateParamsT struct { + EmergencyDist float64 + MinDist float64 + SlowDownDist float64 + SyncDist float64 + ActPos float64 + TargetPos float64 + ActBrakingDist float64 + NeighborPos float64 + NeighborTargetPos float64 + NeighborBrakingDist float64 + HysteresisDist float64 + PrevState CollisionGuardState +} + +func (t *GetCollisionGuardStateParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + GetCollisionGuardStateParamsStart(builder) + GetCollisionGuardStateParamsAddEmergencyDist(builder, t.EmergencyDist) + GetCollisionGuardStateParamsAddMinDist(builder, t.MinDist) + GetCollisionGuardStateParamsAddSlowDownDist(builder, t.SlowDownDist) + GetCollisionGuardStateParamsAddSyncDist(builder, t.SyncDist) + GetCollisionGuardStateParamsAddActPos(builder, t.ActPos) + GetCollisionGuardStateParamsAddTargetPos(builder, t.TargetPos) + GetCollisionGuardStateParamsAddActBrakingDist(builder, t.ActBrakingDist) + GetCollisionGuardStateParamsAddNeighborPos(builder, t.NeighborPos) + GetCollisionGuardStateParamsAddNeighborTargetPos(builder, t.NeighborTargetPos) + GetCollisionGuardStateParamsAddNeighborBrakingDist(builder, t.NeighborBrakingDist) + GetCollisionGuardStateParamsAddHysteresisDist(builder, t.HysteresisDist) + GetCollisionGuardStateParamsAddPrevState(builder, t.PrevState) + return GetCollisionGuardStateParamsEnd(builder) +} + +func (rcv *GetCollisionGuardStateParams) UnPackTo(t *GetCollisionGuardStateParamsT) { + t.EmergencyDist = rcv.EmergencyDist() + t.MinDist = rcv.MinDist() + t.SlowDownDist = rcv.SlowDownDist() + t.SyncDist = rcv.SyncDist() + t.ActPos = rcv.ActPos() + t.TargetPos = rcv.TargetPos() + t.ActBrakingDist = rcv.ActBrakingDist() + t.NeighborPos = rcv.NeighborPos() + t.NeighborTargetPos = rcv.NeighborTargetPos() + t.NeighborBrakingDist = rcv.NeighborBrakingDist() + t.HysteresisDist = rcv.HysteresisDist() + t.PrevState = rcv.PrevState() +} + +func (rcv *GetCollisionGuardStateParams) UnPack() *GetCollisionGuardStateParamsT { + if rcv == nil { return nil } + t := &GetCollisionGuardStateParamsT{} + rcv.UnPackTo(t) + return t +} + +type GetCollisionGuardStateParams struct { + _tab flatbuffers.Table +} + +func GetRootAsGetCollisionGuardStateParams(buf []byte, offset flatbuffers.UOffsetT) *GetCollisionGuardStateParams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &GetCollisionGuardStateParams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsGetCollisionGuardStateParams(buf []byte, offset flatbuffers.UOffsetT) *GetCollisionGuardStateParams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &GetCollisionGuardStateParams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *GetCollisionGuardStateParams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *GetCollisionGuardStateParams) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *GetCollisionGuardStateParams) EmergencyDist() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateEmergencyDist(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func (rcv *GetCollisionGuardStateParams) MinDist() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateMinDist(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *GetCollisionGuardStateParams) SlowDownDist() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateSlowDownDist(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *GetCollisionGuardStateParams) SyncDist() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateSyncDist(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func (rcv *GetCollisionGuardStateParams) ActPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateActPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +func (rcv *GetCollisionGuardStateParams) TargetPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateTargetPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(14, n) +} + +func (rcv *GetCollisionGuardStateParams) ActBrakingDist() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateActBrakingDist(n float64) bool { + return rcv._tab.MutateFloat64Slot(16, n) +} + +func (rcv *GetCollisionGuardStateParams) NeighborPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateNeighborPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(18, n) +} + +func (rcv *GetCollisionGuardStateParams) NeighborTargetPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateNeighborTargetPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(20, n) +} + +func (rcv *GetCollisionGuardStateParams) NeighborBrakingDist() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateNeighborBrakingDist(n float64) bool { + return rcv._tab.MutateFloat64Slot(22, n) +} + +func (rcv *GetCollisionGuardStateParams) HysteresisDist() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *GetCollisionGuardStateParams) MutateHysteresisDist(n float64) bool { + return rcv._tab.MutateFloat64Slot(24, n) +} + +func (rcv *GetCollisionGuardStateParams) PrevState() CollisionGuardState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return CollisionGuardState(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *GetCollisionGuardStateParams) MutatePrevState(n CollisionGuardState) bool { + return rcv._tab.MutateInt8Slot(26, int8(n)) +} + +func GetCollisionGuardStateParamsStart(builder *flatbuffers.Builder) { + builder.StartObject(12) +} +func GetCollisionGuardStateParamsAddEmergencyDist(builder *flatbuffers.Builder, emergencyDist float64) { + builder.PrependFloat64Slot(0, emergencyDist, 0.0) +} +func GetCollisionGuardStateParamsAddMinDist(builder *flatbuffers.Builder, minDist float64) { + builder.PrependFloat64Slot(1, minDist, 0.0) +} +func GetCollisionGuardStateParamsAddSlowDownDist(builder *flatbuffers.Builder, slowDownDist float64) { + builder.PrependFloat64Slot(2, slowDownDist, 0.0) +} +func GetCollisionGuardStateParamsAddSyncDist(builder *flatbuffers.Builder, syncDist float64) { + builder.PrependFloat64Slot(3, syncDist, 0.0) +} +func GetCollisionGuardStateParamsAddActPos(builder *flatbuffers.Builder, actPos float64) { + builder.PrependFloat64Slot(4, actPos, 0.0) +} +func GetCollisionGuardStateParamsAddTargetPos(builder *flatbuffers.Builder, targetPos float64) { + builder.PrependFloat64Slot(5, targetPos, 0.0) +} +func GetCollisionGuardStateParamsAddActBrakingDist(builder *flatbuffers.Builder, actBrakingDist float64) { + builder.PrependFloat64Slot(6, actBrakingDist, 0.0) +} +func GetCollisionGuardStateParamsAddNeighborPos(builder *flatbuffers.Builder, neighborPos float64) { + builder.PrependFloat64Slot(7, neighborPos, 0.0) +} +func GetCollisionGuardStateParamsAddNeighborTargetPos(builder *flatbuffers.Builder, neighborTargetPos float64) { + builder.PrependFloat64Slot(8, neighborTargetPos, 0.0) +} +func GetCollisionGuardStateParamsAddNeighborBrakingDist(builder *flatbuffers.Builder, neighborBrakingDist float64) { + builder.PrependFloat64Slot(9, neighborBrakingDist, 0.0) +} +func GetCollisionGuardStateParamsAddHysteresisDist(builder *flatbuffers.Builder, hysteresisDist float64) { + builder.PrependFloat64Slot(10, hysteresisDist, 0.0) +} +func GetCollisionGuardStateParamsAddPrevState(builder *flatbuffers.Builder, prevState CollisionGuardState) { + builder.PrependInt8Slot(11, int8(prevState), 0) +} +func GetCollisionGuardStateParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AcquiredLicenses.go b/pkg/fbs/motion/core/fbtypes/AcquiredLicenses.go index aca60e2..85da44a 100644 --- a/pkg/fbs/motion/core/fbtypes/AcquiredLicenses.go +++ b/pkg/fbs/motion/core/fbtypes/AcquiredLicenses.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// all currently acquired licenses (motion must be in state RUNNING) -type AcquiredLicensesT struct { - Licenses []*SingleLicenseT -} - -func (t *AcquiredLicensesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - licensesOffset := flatbuffers.UOffsetT(0) - if t.Licenses != nil { - licensesLength := len(t.Licenses) - licensesOffsets := make([]flatbuffers.UOffsetT, licensesLength) - for j := 0; j < licensesLength; j++ { - licensesOffsets[j] = t.Licenses[j].Pack(builder) - } - AcquiredLicensesStartLicensesVector(builder, licensesLength) - for j := licensesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(licensesOffsets[j]) - } - licensesOffset = builder.EndVector(licensesLength) - } - AcquiredLicensesStart(builder) - AcquiredLicensesAddLicenses(builder, licensesOffset) - return AcquiredLicensesEnd(builder) -} - -func (rcv *AcquiredLicenses) UnPackTo(t *AcquiredLicensesT) { - licensesLength := rcv.LicensesLength() - t.Licenses = make([]*SingleLicenseT, licensesLength) - for j := 0; j < licensesLength; j++ { - x := SingleLicense{} - rcv.Licenses(&x, j) - t.Licenses[j] = x.UnPack() - } -} - -func (rcv *AcquiredLicenses) UnPack() *AcquiredLicensesT { - if rcv == nil { return nil } - t := &AcquiredLicensesT{} - rcv.UnPackTo(t) - return t -} - -type AcquiredLicenses struct { - _tab flatbuffers.Table -} - -func GetRootAsAcquiredLicenses(buf []byte, offset flatbuffers.UOffsetT) *AcquiredLicenses { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AcquiredLicenses{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAcquiredLicenses(buf []byte, offset flatbuffers.UOffsetT) *AcquiredLicenses { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AcquiredLicenses{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AcquiredLicenses) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AcquiredLicenses) Table() flatbuffers.Table { - return rcv._tab -} - -/// array of all licenses -func (rcv *AcquiredLicenses) Licenses(obj *SingleLicense, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AcquiredLicenses) LicensesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// array of all licenses -func AcquiredLicensesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AcquiredLicensesAddLicenses(builder *flatbuffers.Builder, licenses flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(licenses), 0) -} -func AcquiredLicensesStartLicensesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AcquiredLicensesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// all currently acquired licenses (motion must be in state RUNNING) +type AcquiredLicensesT struct { + Licenses []*SingleLicenseT +} + +func (t *AcquiredLicensesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + licensesOffset := flatbuffers.UOffsetT(0) + if t.Licenses != nil { + licensesLength := len(t.Licenses) + licensesOffsets := make([]flatbuffers.UOffsetT, licensesLength) + for j := 0; j < licensesLength; j++ { + licensesOffsets[j] = t.Licenses[j].Pack(builder) + } + AcquiredLicensesStartLicensesVector(builder, licensesLength) + for j := licensesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(licensesOffsets[j]) + } + licensesOffset = builder.EndVector(licensesLength) + } + AcquiredLicensesStart(builder) + AcquiredLicensesAddLicenses(builder, licensesOffset) + return AcquiredLicensesEnd(builder) +} + +func (rcv *AcquiredLicenses) UnPackTo(t *AcquiredLicensesT) { + licensesLength := rcv.LicensesLength() + t.Licenses = make([]*SingleLicenseT, licensesLength) + for j := 0; j < licensesLength; j++ { + x := SingleLicense{} + rcv.Licenses(&x, j) + t.Licenses[j] = x.UnPack() + } +} + +func (rcv *AcquiredLicenses) UnPack() *AcquiredLicensesT { + if rcv == nil { return nil } + t := &AcquiredLicensesT{} + rcv.UnPackTo(t) + return t +} + +type AcquiredLicenses struct { + _tab flatbuffers.Table +} + +func GetRootAsAcquiredLicenses(buf []byte, offset flatbuffers.UOffsetT) *AcquiredLicenses { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AcquiredLicenses{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAcquiredLicenses(buf []byte, offset flatbuffers.UOffsetT) *AcquiredLicenses { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AcquiredLicenses{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AcquiredLicenses) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AcquiredLicenses) Table() flatbuffers.Table { + return rcv._tab +} + +/// array of all licenses +func (rcv *AcquiredLicenses) Licenses(obj *SingleLicense, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AcquiredLicenses) LicensesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// array of all licenses +func AcquiredLicensesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AcquiredLicensesAddLicenses(builder *flatbuffers.Builder, licenses flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(licenses), 0) +} +func AcquiredLicensesStartLicensesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AcquiredLicensesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsActualValues.go b/pkg/fbs/motion/core/fbtypes/AxsActualValues.go index cd4b7f8..9fa4d63 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsActualValues.go +++ b/pkg/fbs/motion/core/fbtypes/AxsActualValues.go @@ -1,246 +1,246 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// actual values from the drives -type AxsActualValuesT struct { - ActualPos float64 - ActualVel float64 - ActualAcc float64 - ActualTorque float64 - DistLeft float64 - ActualPosUnit string - ActualVelUnit string - ActualAccUnit string - ActualTorqueUnit string - DistLeftUnit string -} - -func (t *AxsActualValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - actualPosUnitOffset := builder.CreateString(t.ActualPosUnit) - actualVelUnitOffset := builder.CreateString(t.ActualVelUnit) - actualAccUnitOffset := builder.CreateString(t.ActualAccUnit) - actualTorqueUnitOffset := builder.CreateString(t.ActualTorqueUnit) - distLeftUnitOffset := builder.CreateString(t.DistLeftUnit) - AxsActualValuesStart(builder) - AxsActualValuesAddActualPos(builder, t.ActualPos) - AxsActualValuesAddActualVel(builder, t.ActualVel) - AxsActualValuesAddActualAcc(builder, t.ActualAcc) - AxsActualValuesAddActualTorque(builder, t.ActualTorque) - AxsActualValuesAddDistLeft(builder, t.DistLeft) - AxsActualValuesAddActualPosUnit(builder, actualPosUnitOffset) - AxsActualValuesAddActualVelUnit(builder, actualVelUnitOffset) - AxsActualValuesAddActualAccUnit(builder, actualAccUnitOffset) - AxsActualValuesAddActualTorqueUnit(builder, actualTorqueUnitOffset) - AxsActualValuesAddDistLeftUnit(builder, distLeftUnitOffset) - return AxsActualValuesEnd(builder) -} - -func (rcv *AxsActualValues) UnPackTo(t *AxsActualValuesT) { - t.ActualPos = rcv.ActualPos() - t.ActualVel = rcv.ActualVel() - t.ActualAcc = rcv.ActualAcc() - t.ActualTorque = rcv.ActualTorque() - t.DistLeft = rcv.DistLeft() - t.ActualPosUnit = string(rcv.ActualPosUnit()) - t.ActualVelUnit = string(rcv.ActualVelUnit()) - t.ActualAccUnit = string(rcv.ActualAccUnit()) - t.ActualTorqueUnit = string(rcv.ActualTorqueUnit()) - t.DistLeftUnit = string(rcv.DistLeftUnit()) -} - -func (rcv *AxsActualValues) UnPack() *AxsActualValuesT { - if rcv == nil { return nil } - t := &AxsActualValuesT{} - rcv.UnPackTo(t) - return t -} - -type AxsActualValues struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsActualValues(buf []byte, offset flatbuffers.UOffsetT) *AxsActualValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsActualValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsActualValues(buf []byte, offset flatbuffers.UOffsetT) *AxsActualValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsActualValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsActualValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsActualValues) Table() flatbuffers.Table { - return rcv._tab -} - -/// actual drive position -func (rcv *AxsActualValues) ActualPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual drive position -func (rcv *AxsActualValues) MutateActualPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// actual drive velocity (currently not supported for real drives) -func (rcv *AxsActualValues) ActualVel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual drive velocity (currently not supported for real drives) -func (rcv *AxsActualValues) MutateActualVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// actual drive acceleration (currently not supported for real drives) -func (rcv *AxsActualValues) ActualAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual drive acceleration (currently not supported for real drives) -func (rcv *AxsActualValues) MutateActualAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// actual drive torque (currently not supported for real drives) -func (rcv *AxsActualValues) ActualTorque() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual drive torque (currently not supported for real drives) -func (rcv *AxsActualValues) MutateActualTorque(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// actual distance left to the commanded target (currently not supported for real drives) -func (rcv *AxsActualValues) DistLeft() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual distance left to the commanded target (currently not supported for real drives) -func (rcv *AxsActualValues) MutateDistLeft(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -/// unit of the actual drive position -func (rcv *AxsActualValues) ActualPosUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual drive position -/// unit of the actual drive velocity (currently not supported for real drives) -func (rcv *AxsActualValues) ActualVelUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual drive velocity (currently not supported for real drives) -/// unit of the actual drive acceleration (currently not supported for real drives) -func (rcv *AxsActualValues) ActualAccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual drive acceleration (currently not supported for real drives) -/// unit of the actual drive torque (currently not supported for real drives) -func (rcv *AxsActualValues) ActualTorqueUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual drive torque (currently not supported for real drives) -/// unit of the actual distance left to the commanded target (currently not supported for real drives) -func (rcv *AxsActualValues) DistLeftUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual distance left to the commanded target (currently not supported for real drives) -func AxsActualValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(10) -} -func AxsActualValuesAddActualPos(builder *flatbuffers.Builder, actualPos float64) { - builder.PrependFloat64Slot(0, actualPos, 0.0) -} -func AxsActualValuesAddActualVel(builder *flatbuffers.Builder, actualVel float64) { - builder.PrependFloat64Slot(1, actualVel, 0.0) -} -func AxsActualValuesAddActualAcc(builder *flatbuffers.Builder, actualAcc float64) { - builder.PrependFloat64Slot(2, actualAcc, 0.0) -} -func AxsActualValuesAddActualTorque(builder *flatbuffers.Builder, actualTorque float64) { - builder.PrependFloat64Slot(3, actualTorque, 0.0) -} -func AxsActualValuesAddDistLeft(builder *flatbuffers.Builder, distLeft float64) { - builder.PrependFloat64Slot(4, distLeft, 0.0) -} -func AxsActualValuesAddActualPosUnit(builder *flatbuffers.Builder, actualPosUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(actualPosUnit), 0) -} -func AxsActualValuesAddActualVelUnit(builder *flatbuffers.Builder, actualVelUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(actualVelUnit), 0) -} -func AxsActualValuesAddActualAccUnit(builder *flatbuffers.Builder, actualAccUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(actualAccUnit), 0) -} -func AxsActualValuesAddActualTorqueUnit(builder *flatbuffers.Builder, actualTorqueUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(actualTorqueUnit), 0) -} -func AxsActualValuesAddDistLeftUnit(builder *flatbuffers.Builder, distLeftUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(distLeftUnit), 0) -} -func AxsActualValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// actual values from the drives +type AxsActualValuesT struct { + ActualPos float64 + ActualVel float64 + ActualAcc float64 + ActualTorque float64 + DistLeft float64 + ActualPosUnit string + ActualVelUnit string + ActualAccUnit string + ActualTorqueUnit string + DistLeftUnit string +} + +func (t *AxsActualValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + actualPosUnitOffset := builder.CreateString(t.ActualPosUnit) + actualVelUnitOffset := builder.CreateString(t.ActualVelUnit) + actualAccUnitOffset := builder.CreateString(t.ActualAccUnit) + actualTorqueUnitOffset := builder.CreateString(t.ActualTorqueUnit) + distLeftUnitOffset := builder.CreateString(t.DistLeftUnit) + AxsActualValuesStart(builder) + AxsActualValuesAddActualPos(builder, t.ActualPos) + AxsActualValuesAddActualVel(builder, t.ActualVel) + AxsActualValuesAddActualAcc(builder, t.ActualAcc) + AxsActualValuesAddActualTorque(builder, t.ActualTorque) + AxsActualValuesAddDistLeft(builder, t.DistLeft) + AxsActualValuesAddActualPosUnit(builder, actualPosUnitOffset) + AxsActualValuesAddActualVelUnit(builder, actualVelUnitOffset) + AxsActualValuesAddActualAccUnit(builder, actualAccUnitOffset) + AxsActualValuesAddActualTorqueUnit(builder, actualTorqueUnitOffset) + AxsActualValuesAddDistLeftUnit(builder, distLeftUnitOffset) + return AxsActualValuesEnd(builder) +} + +func (rcv *AxsActualValues) UnPackTo(t *AxsActualValuesT) { + t.ActualPos = rcv.ActualPos() + t.ActualVel = rcv.ActualVel() + t.ActualAcc = rcv.ActualAcc() + t.ActualTorque = rcv.ActualTorque() + t.DistLeft = rcv.DistLeft() + t.ActualPosUnit = string(rcv.ActualPosUnit()) + t.ActualVelUnit = string(rcv.ActualVelUnit()) + t.ActualAccUnit = string(rcv.ActualAccUnit()) + t.ActualTorqueUnit = string(rcv.ActualTorqueUnit()) + t.DistLeftUnit = string(rcv.DistLeftUnit()) +} + +func (rcv *AxsActualValues) UnPack() *AxsActualValuesT { + if rcv == nil { return nil } + t := &AxsActualValuesT{} + rcv.UnPackTo(t) + return t +} + +type AxsActualValues struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsActualValues(buf []byte, offset flatbuffers.UOffsetT) *AxsActualValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsActualValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsActualValues(buf []byte, offset flatbuffers.UOffsetT) *AxsActualValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsActualValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsActualValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsActualValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// actual drive position +func (rcv *AxsActualValues) ActualPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual drive position +func (rcv *AxsActualValues) MutateActualPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// actual drive velocity (currently not supported for real drives) +func (rcv *AxsActualValues) ActualVel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual drive velocity (currently not supported for real drives) +func (rcv *AxsActualValues) MutateActualVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// actual drive acceleration (currently not supported for real drives) +func (rcv *AxsActualValues) ActualAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual drive acceleration (currently not supported for real drives) +func (rcv *AxsActualValues) MutateActualAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// actual drive torque (currently not supported for real drives) +func (rcv *AxsActualValues) ActualTorque() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual drive torque (currently not supported for real drives) +func (rcv *AxsActualValues) MutateActualTorque(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// actual distance left to the commanded target (currently not supported for real drives) +func (rcv *AxsActualValues) DistLeft() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual distance left to the commanded target (currently not supported for real drives) +func (rcv *AxsActualValues) MutateDistLeft(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +/// unit of the actual drive position +func (rcv *AxsActualValues) ActualPosUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual drive position +/// unit of the actual drive velocity (currently not supported for real drives) +func (rcv *AxsActualValues) ActualVelUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual drive velocity (currently not supported for real drives) +/// unit of the actual drive acceleration (currently not supported for real drives) +func (rcv *AxsActualValues) ActualAccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual drive acceleration (currently not supported for real drives) +/// unit of the actual drive torque (currently not supported for real drives) +func (rcv *AxsActualValues) ActualTorqueUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual drive torque (currently not supported for real drives) +/// unit of the actual distance left to the commanded target (currently not supported for real drives) +func (rcv *AxsActualValues) DistLeftUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual distance left to the commanded target (currently not supported for real drives) +func AxsActualValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(10) +} +func AxsActualValuesAddActualPos(builder *flatbuffers.Builder, actualPos float64) { + builder.PrependFloat64Slot(0, actualPos, 0.0) +} +func AxsActualValuesAddActualVel(builder *flatbuffers.Builder, actualVel float64) { + builder.PrependFloat64Slot(1, actualVel, 0.0) +} +func AxsActualValuesAddActualAcc(builder *flatbuffers.Builder, actualAcc float64) { + builder.PrependFloat64Slot(2, actualAcc, 0.0) +} +func AxsActualValuesAddActualTorque(builder *flatbuffers.Builder, actualTorque float64) { + builder.PrependFloat64Slot(3, actualTorque, 0.0) +} +func AxsActualValuesAddDistLeft(builder *flatbuffers.Builder, distLeft float64) { + builder.PrependFloat64Slot(4, distLeft, 0.0) +} +func AxsActualValuesAddActualPosUnit(builder *flatbuffers.Builder, actualPosUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(actualPosUnit), 0) +} +func AxsActualValuesAddActualVelUnit(builder *flatbuffers.Builder, actualVelUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(actualVelUnit), 0) +} +func AxsActualValuesAddActualAccUnit(builder *flatbuffers.Builder, actualAccUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(actualAccUnit), 0) +} +func AxsActualValuesAddActualTorqueUnit(builder *flatbuffers.Builder, actualTorqueUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(actualTorqueUnit), 0) +} +func AxsActualValuesAddDistLeftUnit(builder *flatbuffers.Builder, distLeftUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(distLeftUnit), 0) +} +func AxsActualValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsBrakingDistanceEx.go b/pkg/fbs/motion/core/fbtypes/AxsBrakingDistanceEx.go index e8df19a..cc7d1fa 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsBrakingDistanceEx.go +++ b/pkg/fbs/motion/core/fbtypes/AxsBrakingDistanceEx.go @@ -1,172 +1,172 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// axis braking distance -type AxsBrakingDistanceExT struct { - SelectedTypes []BrakingDistanceType - DistanceUnit string - Distance float64 - DistanceType BrakingDistanceType -} - -func (t *AxsBrakingDistanceExT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - selectedTypesOffset := flatbuffers.UOffsetT(0) - if t.SelectedTypes != nil { - selectedTypesLength := len(t.SelectedTypes) - AxsBrakingDistanceExStartSelectedTypesVector(builder, selectedTypesLength) - for j := selectedTypesLength - 1; j >= 0; j-- { - builder.PrependInt8(int8(t.SelectedTypes[j])) - } - selectedTypesOffset = builder.EndVector(selectedTypesLength) - } - distanceUnitOffset := builder.CreateString(t.DistanceUnit) - AxsBrakingDistanceExStart(builder) - AxsBrakingDistanceExAddSelectedTypes(builder, selectedTypesOffset) - AxsBrakingDistanceExAddDistanceUnit(builder, distanceUnitOffset) - AxsBrakingDistanceExAddDistance(builder, t.Distance) - AxsBrakingDistanceExAddDistanceType(builder, t.DistanceType) - return AxsBrakingDistanceExEnd(builder) -} - -func (rcv *AxsBrakingDistanceEx) UnPackTo(t *AxsBrakingDistanceExT) { - selectedTypesLength := rcv.SelectedTypesLength() - t.SelectedTypes = make([]BrakingDistanceType, selectedTypesLength) - for j := 0; j < selectedTypesLength; j++ { - t.SelectedTypes[j] = rcv.SelectedTypes(j) - } - t.DistanceUnit = string(rcv.DistanceUnit()) - t.Distance = rcv.Distance() - t.DistanceType = rcv.DistanceType() -} - -func (rcv *AxsBrakingDistanceEx) UnPack() *AxsBrakingDistanceExT { - if rcv == nil { return nil } - t := &AxsBrakingDistanceExT{} - rcv.UnPackTo(t) - return t -} - -type AxsBrakingDistanceEx struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsBrakingDistanceEx(buf []byte, offset flatbuffers.UOffsetT) *AxsBrakingDistanceEx { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsBrakingDistanceEx{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsBrakingDistanceEx(buf []byte, offset flatbuffers.UOffsetT) *AxsBrakingDistanceEx { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsBrakingDistanceEx{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsBrakingDistanceEx) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsBrakingDistanceEx) Table() flatbuffers.Table { - return rcv._tab -} - -/// selected braking distance types in the calculation -/// default value is [SOFT_STOP, ESTOP] -func (rcv *AxsBrakingDistanceEx) SelectedTypes(j int) BrakingDistanceType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return BrakingDistanceType(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) - } - return 0 -} - -func (rcv *AxsBrakingDistanceEx) SelectedTypesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// selected braking distance types in the calculation -/// default value is [SOFT_STOP, ESTOP] -func (rcv *AxsBrakingDistanceEx) MutateSelectedTypes(j int, n BrakingDistanceType) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) - } - return false -} - -/// unit in which braking distance value should be calculated -/// default value is the configured unit for the axis -func (rcv *AxsBrakingDistanceEx) DistanceUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit in which braking distance value should be calculated -/// default value is the configured unit for the axis -/// calculated braking distance -func (rcv *AxsBrakingDistanceEx) Distance() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// calculated braking distance -func (rcv *AxsBrakingDistanceEx) MutateDistance(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// the distance type of the calculated braking distance -func (rcv *AxsBrakingDistanceEx) DistanceType() BrakingDistanceType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return BrakingDistanceType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// the distance type of the calculated braking distance -func (rcv *AxsBrakingDistanceEx) MutateDistanceType(n BrakingDistanceType) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -func AxsBrakingDistanceExStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func AxsBrakingDistanceExAddSelectedTypes(builder *flatbuffers.Builder, selectedTypes flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(selectedTypes), 0) -} -func AxsBrakingDistanceExStartSelectedTypesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func AxsBrakingDistanceExAddDistanceUnit(builder *flatbuffers.Builder, distanceUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(distanceUnit), 0) -} -func AxsBrakingDistanceExAddDistance(builder *flatbuffers.Builder, distance float64) { - builder.PrependFloat64Slot(2, distance, 0.0) -} -func AxsBrakingDistanceExAddDistanceType(builder *flatbuffers.Builder, distanceType BrakingDistanceType) { - builder.PrependInt8Slot(3, int8(distanceType), 0) -} -func AxsBrakingDistanceExEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// axis braking distance +type AxsBrakingDistanceExT struct { + SelectedTypes []BrakingDistanceType + DistanceUnit string + Distance float64 + DistanceType BrakingDistanceType +} + +func (t *AxsBrakingDistanceExT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + selectedTypesOffset := flatbuffers.UOffsetT(0) + if t.SelectedTypes != nil { + selectedTypesLength := len(t.SelectedTypes) + AxsBrakingDistanceExStartSelectedTypesVector(builder, selectedTypesLength) + for j := selectedTypesLength - 1; j >= 0; j-- { + builder.PrependInt8(int8(t.SelectedTypes[j])) + } + selectedTypesOffset = builder.EndVector(selectedTypesLength) + } + distanceUnitOffset := builder.CreateString(t.DistanceUnit) + AxsBrakingDistanceExStart(builder) + AxsBrakingDistanceExAddSelectedTypes(builder, selectedTypesOffset) + AxsBrakingDistanceExAddDistanceUnit(builder, distanceUnitOffset) + AxsBrakingDistanceExAddDistance(builder, t.Distance) + AxsBrakingDistanceExAddDistanceType(builder, t.DistanceType) + return AxsBrakingDistanceExEnd(builder) +} + +func (rcv *AxsBrakingDistanceEx) UnPackTo(t *AxsBrakingDistanceExT) { + selectedTypesLength := rcv.SelectedTypesLength() + t.SelectedTypes = make([]BrakingDistanceType, selectedTypesLength) + for j := 0; j < selectedTypesLength; j++ { + t.SelectedTypes[j] = rcv.SelectedTypes(j) + } + t.DistanceUnit = string(rcv.DistanceUnit()) + t.Distance = rcv.Distance() + t.DistanceType = rcv.DistanceType() +} + +func (rcv *AxsBrakingDistanceEx) UnPack() *AxsBrakingDistanceExT { + if rcv == nil { return nil } + t := &AxsBrakingDistanceExT{} + rcv.UnPackTo(t) + return t +} + +type AxsBrakingDistanceEx struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsBrakingDistanceEx(buf []byte, offset flatbuffers.UOffsetT) *AxsBrakingDistanceEx { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsBrakingDistanceEx{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsBrakingDistanceEx(buf []byte, offset flatbuffers.UOffsetT) *AxsBrakingDistanceEx { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsBrakingDistanceEx{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsBrakingDistanceEx) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsBrakingDistanceEx) Table() flatbuffers.Table { + return rcv._tab +} + +/// selected braking distance types in the calculation +/// default value is [SOFT_STOP, ESTOP] +func (rcv *AxsBrakingDistanceEx) SelectedTypes(j int) BrakingDistanceType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return BrakingDistanceType(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) + } + return 0 +} + +func (rcv *AxsBrakingDistanceEx) SelectedTypesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// selected braking distance types in the calculation +/// default value is [SOFT_STOP, ESTOP] +func (rcv *AxsBrakingDistanceEx) MutateSelectedTypes(j int, n BrakingDistanceType) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) + } + return false +} + +/// unit in which braking distance value should be calculated +/// default value is the configured unit for the axis +func (rcv *AxsBrakingDistanceEx) DistanceUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit in which braking distance value should be calculated +/// default value is the configured unit for the axis +/// calculated braking distance +func (rcv *AxsBrakingDistanceEx) Distance() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// calculated braking distance +func (rcv *AxsBrakingDistanceEx) MutateDistance(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// the distance type of the calculated braking distance +func (rcv *AxsBrakingDistanceEx) DistanceType() BrakingDistanceType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return BrakingDistanceType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// the distance type of the calculated braking distance +func (rcv *AxsBrakingDistanceEx) MutateDistanceType(n BrakingDistanceType) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +func AxsBrakingDistanceExStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsBrakingDistanceExAddSelectedTypes(builder *flatbuffers.Builder, selectedTypes flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(selectedTypes), 0) +} +func AxsBrakingDistanceExStartSelectedTypesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func AxsBrakingDistanceExAddDistanceUnit(builder *flatbuffers.Builder, distanceUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(distanceUnit), 0) +} +func AxsBrakingDistanceExAddDistance(builder *flatbuffers.Builder, distance float64) { + builder.PrependFloat64Slot(2, distance, 0.0) +} +func AxsBrakingDistanceExAddDistanceType(builder *flatbuffers.Builder, distanceType BrakingDistanceType) { + builder.PrependInt8Slot(3, int8(distanceType), 0) +} +func AxsBrakingDistanceExEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfg.go b/pkg/fbs/motion/core/fbtypes/AxsCfg.go index 520ca40..73b0425 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfg.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfg.go @@ -1,249 +1,249 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// complete configuration of a single axis -type AxsCfgT struct { - ObjectType string - AxisProfileName string - Limits *AxsCfgLimitsT - Functions *AxsCfgFunctionsT - Properties *AxsCfgPropertiesT - Units *UnitCfgObjT - KinProperties *AxsCfgKinPropertiesT - DevErrReaction *AxsCfgDeviceErrorReactionT - RtInputs *RTInputsCfgT -} - -func (t *AxsCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - objectTypeOffset := builder.CreateString(t.ObjectType) - axisProfileNameOffset := builder.CreateString(t.AxisProfileName) - limitsOffset := t.Limits.Pack(builder) - functionsOffset := t.Functions.Pack(builder) - propertiesOffset := t.Properties.Pack(builder) - unitsOffset := t.Units.Pack(builder) - kinPropertiesOffset := t.KinProperties.Pack(builder) - devErrReactionOffset := t.DevErrReaction.Pack(builder) - rtInputsOffset := t.RtInputs.Pack(builder) - AxsCfgStart(builder) - AxsCfgAddObjectType(builder, objectTypeOffset) - AxsCfgAddAxisProfileName(builder, axisProfileNameOffset) - AxsCfgAddLimits(builder, limitsOffset) - AxsCfgAddFunctions(builder, functionsOffset) - AxsCfgAddProperties(builder, propertiesOffset) - AxsCfgAddUnits(builder, unitsOffset) - AxsCfgAddKinProperties(builder, kinPropertiesOffset) - AxsCfgAddDevErrReaction(builder, devErrReactionOffset) - AxsCfgAddRtInputs(builder, rtInputsOffset) - return AxsCfgEnd(builder) -} - -func (rcv *AxsCfg) UnPackTo(t *AxsCfgT) { - t.ObjectType = string(rcv.ObjectType()) - t.AxisProfileName = string(rcv.AxisProfileName()) - t.Limits = rcv.Limits(nil).UnPack() - t.Functions = rcv.Functions(nil).UnPack() - t.Properties = rcv.Properties(nil).UnPack() - t.Units = rcv.Units(nil).UnPack() - t.KinProperties = rcv.KinProperties(nil).UnPack() - t.DevErrReaction = rcv.DevErrReaction(nil).UnPack() - t.RtInputs = rcv.RtInputs(nil).UnPack() -} - -func (rcv *AxsCfg) UnPack() *AxsCfgT { - if rcv == nil { return nil } - t := &AxsCfgT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfg(buf []byte, offset flatbuffers.UOffsetT) *AxsCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfg(buf []byte, offset flatbuffers.UOffsetT) *AxsCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// object type (must be "Axis"), required for save/load -func (rcv *AxsCfg) ObjectType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// object type (must be "Axis"), required for save/load -/// name of the assigned axis profile or empty for virtual drives -func (rcv *AxsCfg) AxisProfileName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the assigned axis profile or empty for virtual drives -/// all configured limits of this axis -func (rcv *AxsCfg) Limits(obj *AxsCfgLimits) *AxsCfgLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// all configured limits of this axis -/// configuration for specific functions of this axis -func (rcv *AxsCfg) Functions(obj *AxsCfgFunctions) *AxsCfgFunctions { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgFunctions) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration for specific functions of this axis -/// common axis properties of this axis -func (rcv *AxsCfg) Properties(obj *AxsCfgProperties) *AxsCfgProperties { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgProperties) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// common axis properties of this axis -/// general unit configuration of this axis -func (rcv *AxsCfg) Units(obj *UnitCfgObj) *UnitCfgObj { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(UnitCfgObj) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// general unit configuration of this axis -/// kinematic properties for axes -func (rcv *AxsCfg) KinProperties(obj *AxsCfgKinProperties) *AxsCfgKinProperties { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgKinProperties) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// kinematic properties for axes -/// device error reation settings -func (rcv *AxsCfg) DevErrReaction(obj *AxsCfgDeviceErrorReaction) *AxsCfgDeviceErrorReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgDeviceErrorReaction) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// device error reation settings -/// configuration of the real-time inputs of the axis -func (rcv *AxsCfg) RtInputs(obj *RTInputsCfg) *RTInputsCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(RTInputsCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of the real-time inputs of the axis -func AxsCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func AxsCfgAddObjectType(builder *flatbuffers.Builder, objectType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objectType), 0) -} -func AxsCfgAddAxisProfileName(builder *flatbuffers.Builder, axisProfileName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axisProfileName), 0) -} -func AxsCfgAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(limits), 0) -} -func AxsCfgAddFunctions(builder *flatbuffers.Builder, functions flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(functions), 0) -} -func AxsCfgAddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(properties), 0) -} -func AxsCfgAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(units), 0) -} -func AxsCfgAddKinProperties(builder *flatbuffers.Builder, kinProperties flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(kinProperties), 0) -} -func AxsCfgAddDevErrReaction(builder *flatbuffers.Builder, devErrReaction flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(devErrReaction), 0) -} -func AxsCfgAddRtInputs(builder *flatbuffers.Builder, rtInputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(rtInputs), 0) -} -func AxsCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// complete configuration of a single axis +type AxsCfgT struct { + ObjectType string + AxisProfileName string + Limits *AxsCfgLimitsT + Functions *AxsCfgFunctionsT + Properties *AxsCfgPropertiesT + Units *UnitCfgObjT + KinProperties *AxsCfgKinPropertiesT + DevErrReaction *AxsCfgDeviceErrorReactionT + RtInputs *RTInputsCfgT +} + +func (t *AxsCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objectTypeOffset := builder.CreateString(t.ObjectType) + axisProfileNameOffset := builder.CreateString(t.AxisProfileName) + limitsOffset := t.Limits.Pack(builder) + functionsOffset := t.Functions.Pack(builder) + propertiesOffset := t.Properties.Pack(builder) + unitsOffset := t.Units.Pack(builder) + kinPropertiesOffset := t.KinProperties.Pack(builder) + devErrReactionOffset := t.DevErrReaction.Pack(builder) + rtInputsOffset := t.RtInputs.Pack(builder) + AxsCfgStart(builder) + AxsCfgAddObjectType(builder, objectTypeOffset) + AxsCfgAddAxisProfileName(builder, axisProfileNameOffset) + AxsCfgAddLimits(builder, limitsOffset) + AxsCfgAddFunctions(builder, functionsOffset) + AxsCfgAddProperties(builder, propertiesOffset) + AxsCfgAddUnits(builder, unitsOffset) + AxsCfgAddKinProperties(builder, kinPropertiesOffset) + AxsCfgAddDevErrReaction(builder, devErrReactionOffset) + AxsCfgAddRtInputs(builder, rtInputsOffset) + return AxsCfgEnd(builder) +} + +func (rcv *AxsCfg) UnPackTo(t *AxsCfgT) { + t.ObjectType = string(rcv.ObjectType()) + t.AxisProfileName = string(rcv.AxisProfileName()) + t.Limits = rcv.Limits(nil).UnPack() + t.Functions = rcv.Functions(nil).UnPack() + t.Properties = rcv.Properties(nil).UnPack() + t.Units = rcv.Units(nil).UnPack() + t.KinProperties = rcv.KinProperties(nil).UnPack() + t.DevErrReaction = rcv.DevErrReaction(nil).UnPack() + t.RtInputs = rcv.RtInputs(nil).UnPack() +} + +func (rcv *AxsCfg) UnPack() *AxsCfgT { + if rcv == nil { return nil } + t := &AxsCfgT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfg(buf []byte, offset flatbuffers.UOffsetT) *AxsCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfg(buf []byte, offset flatbuffers.UOffsetT) *AxsCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// object type (must be "Axis"), required for save/load +func (rcv *AxsCfg) ObjectType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// object type (must be "Axis"), required for save/load +/// name of the assigned axis profile or empty for virtual drives +func (rcv *AxsCfg) AxisProfileName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the assigned axis profile or empty for virtual drives +/// all configured limits of this axis +func (rcv *AxsCfg) Limits(obj *AxsCfgLimits) *AxsCfgLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// all configured limits of this axis +/// configuration for specific functions of this axis +func (rcv *AxsCfg) Functions(obj *AxsCfgFunctions) *AxsCfgFunctions { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgFunctions) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration for specific functions of this axis +/// common axis properties of this axis +func (rcv *AxsCfg) Properties(obj *AxsCfgProperties) *AxsCfgProperties { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgProperties) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// common axis properties of this axis +/// general unit configuration of this axis +func (rcv *AxsCfg) Units(obj *UnitCfgObj) *UnitCfgObj { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(UnitCfgObj) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// general unit configuration of this axis +/// kinematic properties for axes +func (rcv *AxsCfg) KinProperties(obj *AxsCfgKinProperties) *AxsCfgKinProperties { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgKinProperties) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// kinematic properties for axes +/// device error reation settings +func (rcv *AxsCfg) DevErrReaction(obj *AxsCfgDeviceErrorReaction) *AxsCfgDeviceErrorReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgDeviceErrorReaction) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// device error reation settings +/// configuration of the real-time inputs of the axis +func (rcv *AxsCfg) RtInputs(obj *RTInputsCfg) *RTInputsCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(RTInputsCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of the real-time inputs of the axis +func AxsCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func AxsCfgAddObjectType(builder *flatbuffers.Builder, objectType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objectType), 0) +} +func AxsCfgAddAxisProfileName(builder *flatbuffers.Builder, axisProfileName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axisProfileName), 0) +} +func AxsCfgAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(limits), 0) +} +func AxsCfgAddFunctions(builder *flatbuffers.Builder, functions flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(functions), 0) +} +func AxsCfgAddProperties(builder *flatbuffers.Builder, properties flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(properties), 0) +} +func AxsCfgAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(units), 0) +} +func AxsCfgAddKinProperties(builder *flatbuffers.Builder, kinProperties flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(kinProperties), 0) +} +func AxsCfgAddDevErrReaction(builder *flatbuffers.Builder, devErrReaction flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(devErrReaction), 0) +} +func AxsCfgAddRtInputs(builder *flatbuffers.Builder, rtInputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(rtInputs), 0) +} +func AxsCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgCoupling.go b/pkg/fbs/motion/core/fbtypes/AxsCfgCoupling.go index 5d2e96b..fb4c5ab 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgCoupling.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgCoupling.go @@ -1,83 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration for coupling functions for a single axis -type AxsCfgCouplingT struct { - Gantry *AxsCfgGantryT -} - -func (t *AxsCfgCouplingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - gantryOffset := t.Gantry.Pack(builder) - AxsCfgCouplingStart(builder) - AxsCfgCouplingAddGantry(builder, gantryOffset) - return AxsCfgCouplingEnd(builder) -} - -func (rcv *AxsCfgCoupling) UnPackTo(t *AxsCfgCouplingT) { - t.Gantry = rcv.Gantry(nil).UnPack() -} - -func (rcv *AxsCfgCoupling) UnPack() *AxsCfgCouplingT { - if rcv == nil { return nil } - t := &AxsCfgCouplingT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgCoupling struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgCoupling(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCoupling { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgCoupling{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgCoupling(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCoupling { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgCoupling{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgCoupling) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgCoupling) Table() flatbuffers.Table { - return rcv._tab -} - -/// configuration for gantry coupling function of a single axis -func (rcv *AxsCfgCoupling) Gantry(obj *AxsCfgGantry) *AxsCfgGantry { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgGantry) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration for gantry coupling function of a single axis -func AxsCfgCouplingStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsCfgCouplingAddGantry(builder *flatbuffers.Builder, gantry flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(gantry), 0) -} -func AxsCfgCouplingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + motion__sync__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/sync/fbtypes" +) + +/// configuration for coupling functions for a single axis +type AxsCfgCouplingT struct { + Gantry *AxsCfgGantryT + Syncmotion *motion__sync__fbtypes.AxsCfgSyncMotionT +} + +func (t *AxsCfgCouplingT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + gantryOffset := t.Gantry.Pack(builder) + syncmotionOffset := t.Syncmotion.Pack(builder) + AxsCfgCouplingStart(builder) + AxsCfgCouplingAddGantry(builder, gantryOffset) + AxsCfgCouplingAddSyncmotion(builder, syncmotionOffset) + return AxsCfgCouplingEnd(builder) +} + +func (rcv *AxsCfgCoupling) UnPackTo(t *AxsCfgCouplingT) { + t.Gantry = rcv.Gantry(nil).UnPack() + t.Syncmotion = rcv.Syncmotion(nil).UnPack() +} + +func (rcv *AxsCfgCoupling) UnPack() *AxsCfgCouplingT { + if rcv == nil { return nil } + t := &AxsCfgCouplingT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgCoupling struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgCoupling(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCoupling { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgCoupling{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgCoupling(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCoupling { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgCoupling{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgCoupling) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgCoupling) Table() flatbuffers.Table { + return rcv._tab +} + +/// configuration for gantry coupling function of a single axis +func (rcv *AxsCfgCoupling) Gantry(obj *AxsCfgGantry) *AxsCfgGantry { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgGantry) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration for gantry coupling function of a single axis +/// configuration for sync motion functionality for a single axis +func (rcv *AxsCfgCoupling) Syncmotion(obj *motion__sync__fbtypes.AxsCfgSyncMotion) *motion__sync__fbtypes.AxsCfgSyncMotion { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(motion__sync__fbtypes.AxsCfgSyncMotion) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration for sync motion functionality for a single axis +func AxsCfgCouplingStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCfgCouplingAddGantry(builder *flatbuffers.Builder, gantry flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(gantry), 0) +} +func AxsCfgCouplingAddSyncmotion(builder *flatbuffers.Builder, syncmotion flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(syncmotion), 0) +} +func AxsCfgCouplingEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgDeviceErrorReaction.go b/pkg/fbs/motion/core/fbtypes/AxsCfgDeviceErrorReaction.go index 0c8c381..7c4a178 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgDeviceErrorReaction.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgDeviceErrorReaction.go @@ -1,105 +1,105 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration for reaction to device error -type AxsCfgDeviceErrorReactionT struct { - UserEstopLim *AxsCfgEstopDynamicLimitsT - EstopSettings *AxsCfgEstopSettingsT -} - -func (t *AxsCfgDeviceErrorReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - userEstopLimOffset := t.UserEstopLim.Pack(builder) - estopSettingsOffset := t.EstopSettings.Pack(builder) - AxsCfgDeviceErrorReactionStart(builder) - AxsCfgDeviceErrorReactionAddUserEstopLim(builder, userEstopLimOffset) - AxsCfgDeviceErrorReactionAddEstopSettings(builder, estopSettingsOffset) - return AxsCfgDeviceErrorReactionEnd(builder) -} - -func (rcv *AxsCfgDeviceErrorReaction) UnPackTo(t *AxsCfgDeviceErrorReactionT) { - t.UserEstopLim = rcv.UserEstopLim(nil).UnPack() - t.EstopSettings = rcv.EstopSettings(nil).UnPack() -} - -func (rcv *AxsCfgDeviceErrorReaction) UnPack() *AxsCfgDeviceErrorReactionT { - if rcv == nil { return nil } - t := &AxsCfgDeviceErrorReactionT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgDeviceErrorReaction struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgDeviceErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDeviceErrorReaction { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgDeviceErrorReaction{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgDeviceErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDeviceErrorReaction { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgDeviceErrorReaction{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgDeviceErrorReaction) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgDeviceErrorReaction) Table() flatbuffers.Table { - return rcv._tab -} - -/// user E-Stop dynamic limitations -func (rcv *AxsCfgDeviceErrorReaction) UserEstopLim(obj *AxsCfgEstopDynamicLimits) *AxsCfgEstopDynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgEstopDynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// user E-Stop dynamic limitations -/// E-Stop setting to different device errors -func (rcv *AxsCfgDeviceErrorReaction) EstopSettings(obj *AxsCfgEstopSettings) *AxsCfgEstopSettings { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgEstopSettings) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// E-Stop setting to different device errors -func AxsCfgDeviceErrorReactionStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCfgDeviceErrorReactionAddUserEstopLim(builder *flatbuffers.Builder, userEstopLim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(userEstopLim), 0) -} -func AxsCfgDeviceErrorReactionAddEstopSettings(builder *flatbuffers.Builder, estopSettings flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(estopSettings), 0) -} -func AxsCfgDeviceErrorReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration for reaction to device error +type AxsCfgDeviceErrorReactionT struct { + UserEstopLim *AxsCfgEstopDynamicLimitsT + EstopSettings *AxsCfgEstopSettingsT +} + +func (t *AxsCfgDeviceErrorReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + userEstopLimOffset := t.UserEstopLim.Pack(builder) + estopSettingsOffset := t.EstopSettings.Pack(builder) + AxsCfgDeviceErrorReactionStart(builder) + AxsCfgDeviceErrorReactionAddUserEstopLim(builder, userEstopLimOffset) + AxsCfgDeviceErrorReactionAddEstopSettings(builder, estopSettingsOffset) + return AxsCfgDeviceErrorReactionEnd(builder) +} + +func (rcv *AxsCfgDeviceErrorReaction) UnPackTo(t *AxsCfgDeviceErrorReactionT) { + t.UserEstopLim = rcv.UserEstopLim(nil).UnPack() + t.EstopSettings = rcv.EstopSettings(nil).UnPack() +} + +func (rcv *AxsCfgDeviceErrorReaction) UnPack() *AxsCfgDeviceErrorReactionT { + if rcv == nil { return nil } + t := &AxsCfgDeviceErrorReactionT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgDeviceErrorReaction struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgDeviceErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDeviceErrorReaction { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgDeviceErrorReaction{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgDeviceErrorReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDeviceErrorReaction { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgDeviceErrorReaction{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgDeviceErrorReaction) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgDeviceErrorReaction) Table() flatbuffers.Table { + return rcv._tab +} + +/// user E-Stop dynamic limitations +func (rcv *AxsCfgDeviceErrorReaction) UserEstopLim(obj *AxsCfgEstopDynamicLimits) *AxsCfgEstopDynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgEstopDynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// user E-Stop dynamic limitations +/// E-Stop setting to different device errors +func (rcv *AxsCfgDeviceErrorReaction) EstopSettings(obj *AxsCfgEstopSettings) *AxsCfgEstopSettings { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgEstopSettings) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// E-Stop setting to different device errors +func AxsCfgDeviceErrorReactionStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCfgDeviceErrorReactionAddUserEstopLim(builder *flatbuffers.Builder, userEstopLim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(userEstopLim), 0) +} +func AxsCfgDeviceErrorReactionAddEstopSettings(builder *flatbuffers.Builder, estopSettings flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(estopSettings), 0) +} +func AxsCfgDeviceErrorReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgEstopDynamicLimits.go b/pkg/fbs/motion/core/fbtypes/AxsCfgEstopDynamicLimits.go index 1caa7b4..f4ff7d7 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgEstopDynamicLimits.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgEstopDynamicLimits.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration for E-Stop dynamic limitation -type AxsCfgEstopDynamicLimitsT struct { - Dec float64 - JrkDec float64 - DecUnit string - JrkDecUnit string -} - -func (t *AxsCfgEstopDynamicLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - decUnitOffset := builder.CreateString(t.DecUnit) - jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) - AxsCfgEstopDynamicLimitsStart(builder) - AxsCfgEstopDynamicLimitsAddDec(builder, t.Dec) - AxsCfgEstopDynamicLimitsAddJrkDec(builder, t.JrkDec) - AxsCfgEstopDynamicLimitsAddDecUnit(builder, decUnitOffset) - AxsCfgEstopDynamicLimitsAddJrkDecUnit(builder, jrkDecUnitOffset) - return AxsCfgEstopDynamicLimitsEnd(builder) -} - -func (rcv *AxsCfgEstopDynamicLimits) UnPackTo(t *AxsCfgEstopDynamicLimitsT) { - t.Dec = rcv.Dec() - t.JrkDec = rcv.JrkDec() - t.DecUnit = string(rcv.DecUnit()) - t.JrkDecUnit = string(rcv.JrkDecUnit()) -} - -func (rcv *AxsCfgEstopDynamicLimits) UnPack() *AxsCfgEstopDynamicLimitsT { - if rcv == nil { return nil } - t := &AxsCfgEstopDynamicLimitsT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgEstopDynamicLimits struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgEstopDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopDynamicLimits { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgEstopDynamicLimits{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgEstopDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopDynamicLimits { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgEstopDynamicLimits{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgEstopDynamicLimits) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgEstopDynamicLimits) Table() flatbuffers.Table { - return rcv._tab -} - -/// deceleration limit (must be greater than zero) -func (rcv *AxsCfgEstopDynamicLimits) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// deceleration limit (must be greater than zero) -func (rcv *AxsCfgEstopDynamicLimits) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *AxsCfgEstopDynamicLimits) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *AxsCfgEstopDynamicLimits) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// unit of dec -func (rcv *AxsCfgEstopDynamicLimits) DecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of dec -/// unit of jrkDec -func (rcv *AxsCfgEstopDynamicLimits) JrkDecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of jrkDec -func AxsCfgEstopDynamicLimitsStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func AxsCfgEstopDynamicLimitsAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(0, dec, 0.0) -} -func AxsCfgEstopDynamicLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(1, jrkDec, 0.0) -} -func AxsCfgEstopDynamicLimitsAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(decUnit), 0) -} -func AxsCfgEstopDynamicLimitsAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(jrkDecUnit), 0) -} -func AxsCfgEstopDynamicLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration for E-Stop dynamic limitation +type AxsCfgEstopDynamicLimitsT struct { + Dec float64 + JrkDec float64 + DecUnit string + JrkDecUnit string +} + +func (t *AxsCfgEstopDynamicLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + decUnitOffset := builder.CreateString(t.DecUnit) + jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) + AxsCfgEstopDynamicLimitsStart(builder) + AxsCfgEstopDynamicLimitsAddDec(builder, t.Dec) + AxsCfgEstopDynamicLimitsAddJrkDec(builder, t.JrkDec) + AxsCfgEstopDynamicLimitsAddDecUnit(builder, decUnitOffset) + AxsCfgEstopDynamicLimitsAddJrkDecUnit(builder, jrkDecUnitOffset) + return AxsCfgEstopDynamicLimitsEnd(builder) +} + +func (rcv *AxsCfgEstopDynamicLimits) UnPackTo(t *AxsCfgEstopDynamicLimitsT) { + t.Dec = rcv.Dec() + t.JrkDec = rcv.JrkDec() + t.DecUnit = string(rcv.DecUnit()) + t.JrkDecUnit = string(rcv.JrkDecUnit()) +} + +func (rcv *AxsCfgEstopDynamicLimits) UnPack() *AxsCfgEstopDynamicLimitsT { + if rcv == nil { return nil } + t := &AxsCfgEstopDynamicLimitsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgEstopDynamicLimits struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgEstopDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopDynamicLimits { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgEstopDynamicLimits{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgEstopDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopDynamicLimits { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgEstopDynamicLimits{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgEstopDynamicLimits) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgEstopDynamicLimits) Table() flatbuffers.Table { + return rcv._tab +} + +/// deceleration limit (must be greater than zero) +func (rcv *AxsCfgEstopDynamicLimits) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// deceleration limit (must be greater than zero) +func (rcv *AxsCfgEstopDynamicLimits) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *AxsCfgEstopDynamicLimits) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *AxsCfgEstopDynamicLimits) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// unit of dec +func (rcv *AxsCfgEstopDynamicLimits) DecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of dec +/// unit of jrkDec +func (rcv *AxsCfgEstopDynamicLimits) JrkDecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of jrkDec +func AxsCfgEstopDynamicLimitsStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCfgEstopDynamicLimitsAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(0, dec, 0.0) +} +func AxsCfgEstopDynamicLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(1, jrkDec, 0.0) +} +func AxsCfgEstopDynamicLimitsAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(decUnit), 0) +} +func AxsCfgEstopDynamicLimitsAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(jrkDecUnit), 0) +} +func AxsCfgEstopDynamicLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgEstopSettings.go b/pkg/fbs/motion/core/fbtypes/AxsCfgEstopSettings.go index dbf97b7..4872650 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgEstopSettings.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgEstopSettings.go @@ -1,181 +1,181 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration for axis estop to device error -type AxsCfgEstopSettingsT struct { - EstopToNoDevErr EstopType - EstopToNoDeviceInfo EstopType - EstopToDevLightErr EstopType - EstopToFieldbusErr EstopType - EstopToDevCriticalErr EstopType - EstopToDevFatalErr EstopType -} - -func (t *AxsCfgEstopSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCfgEstopSettingsStart(builder) - AxsCfgEstopSettingsAddEstopToNoDevErr(builder, t.EstopToNoDevErr) - AxsCfgEstopSettingsAddEstopToNoDeviceInfo(builder, t.EstopToNoDeviceInfo) - AxsCfgEstopSettingsAddEstopToDevLightErr(builder, t.EstopToDevLightErr) - AxsCfgEstopSettingsAddEstopToFieldbusErr(builder, t.EstopToFieldbusErr) - AxsCfgEstopSettingsAddEstopToDevCriticalErr(builder, t.EstopToDevCriticalErr) - AxsCfgEstopSettingsAddEstopToDevFatalErr(builder, t.EstopToDevFatalErr) - return AxsCfgEstopSettingsEnd(builder) -} - -func (rcv *AxsCfgEstopSettings) UnPackTo(t *AxsCfgEstopSettingsT) { - t.EstopToNoDevErr = rcv.EstopToNoDevErr() - t.EstopToNoDeviceInfo = rcv.EstopToNoDeviceInfo() - t.EstopToDevLightErr = rcv.EstopToDevLightErr() - t.EstopToFieldbusErr = rcv.EstopToFieldbusErr() - t.EstopToDevCriticalErr = rcv.EstopToDevCriticalErr() - t.EstopToDevFatalErr = rcv.EstopToDevFatalErr() -} - -func (rcv *AxsCfgEstopSettings) UnPack() *AxsCfgEstopSettingsT { - if rcv == nil { return nil } - t := &AxsCfgEstopSettingsT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgEstopSettings struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgEstopSettings(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopSettings { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgEstopSettings{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgEstopSettings(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopSettings { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgEstopSettings{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgEstopSettings) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgEstopSettings) Table() flatbuffers.Table { - return rcv._tab -} - -/// estop when device has no error -func (rcv *AxsCfgEstopSettings) EstopToNoDevErr() EstopType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// estop when device has no error -func (rcv *AxsCfgEstopSettings) MutateEstopToNoDevErr(n EstopType) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -/// estop when no device error information, e.g. virtual axis -func (rcv *AxsCfgEstopSettings) EstopToNoDeviceInfo() EstopType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// estop when no device error information, e.g. virtual axis -func (rcv *AxsCfgEstopSettings) MutateEstopToNoDeviceInfo(n EstopType) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -/// estop when get device light error -func (rcv *AxsCfgEstopSettings) EstopToDevLightErr() EstopType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// estop when get device light error -func (rcv *AxsCfgEstopSettings) MutateEstopToDevLightErr(n EstopType) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -/// estop when get device light error -func (rcv *AxsCfgEstopSettings) EstopToFieldbusErr() EstopType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// estop when get device light error -func (rcv *AxsCfgEstopSettings) MutateEstopToFieldbusErr(n EstopType) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -/// estop when get device critical error -func (rcv *AxsCfgEstopSettings) EstopToDevCriticalErr() EstopType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// estop when get device critical error -func (rcv *AxsCfgEstopSettings) MutateEstopToDevCriticalErr(n EstopType) bool { - return rcv._tab.MutateInt8Slot(12, int8(n)) -} - -/// estop when get device fatal error -func (rcv *AxsCfgEstopSettings) EstopToDevFatalErr() EstopType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// estop when get device fatal error -func (rcv *AxsCfgEstopSettings) MutateEstopToDevFatalErr(n EstopType) bool { - return rcv._tab.MutateInt8Slot(14, int8(n)) -} - -func AxsCfgEstopSettingsStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func AxsCfgEstopSettingsAddEstopToNoDevErr(builder *flatbuffers.Builder, estopToNoDevErr EstopType) { - builder.PrependInt8Slot(0, int8(estopToNoDevErr), 0) -} -func AxsCfgEstopSettingsAddEstopToNoDeviceInfo(builder *flatbuffers.Builder, estopToNoDeviceInfo EstopType) { - builder.PrependInt8Slot(1, int8(estopToNoDeviceInfo), 0) -} -func AxsCfgEstopSettingsAddEstopToDevLightErr(builder *flatbuffers.Builder, estopToDevLightErr EstopType) { - builder.PrependInt8Slot(2, int8(estopToDevLightErr), 0) -} -func AxsCfgEstopSettingsAddEstopToFieldbusErr(builder *flatbuffers.Builder, estopToFieldbusErr EstopType) { - builder.PrependInt8Slot(3, int8(estopToFieldbusErr), 0) -} -func AxsCfgEstopSettingsAddEstopToDevCriticalErr(builder *flatbuffers.Builder, estopToDevCriticalErr EstopType) { - builder.PrependInt8Slot(4, int8(estopToDevCriticalErr), 0) -} -func AxsCfgEstopSettingsAddEstopToDevFatalErr(builder *flatbuffers.Builder, estopToDevFatalErr EstopType) { - builder.PrependInt8Slot(5, int8(estopToDevFatalErr), 0) -} -func AxsCfgEstopSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration for axis estop to device error +type AxsCfgEstopSettingsT struct { + EstopToNoDevErr EstopType + EstopToNoDeviceInfo EstopType + EstopToDevLightErr EstopType + EstopToFieldbusErr EstopType + EstopToDevCriticalErr EstopType + EstopToDevFatalErr EstopType +} + +func (t *AxsCfgEstopSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCfgEstopSettingsStart(builder) + AxsCfgEstopSettingsAddEstopToNoDevErr(builder, t.EstopToNoDevErr) + AxsCfgEstopSettingsAddEstopToNoDeviceInfo(builder, t.EstopToNoDeviceInfo) + AxsCfgEstopSettingsAddEstopToDevLightErr(builder, t.EstopToDevLightErr) + AxsCfgEstopSettingsAddEstopToFieldbusErr(builder, t.EstopToFieldbusErr) + AxsCfgEstopSettingsAddEstopToDevCriticalErr(builder, t.EstopToDevCriticalErr) + AxsCfgEstopSettingsAddEstopToDevFatalErr(builder, t.EstopToDevFatalErr) + return AxsCfgEstopSettingsEnd(builder) +} + +func (rcv *AxsCfgEstopSettings) UnPackTo(t *AxsCfgEstopSettingsT) { + t.EstopToNoDevErr = rcv.EstopToNoDevErr() + t.EstopToNoDeviceInfo = rcv.EstopToNoDeviceInfo() + t.EstopToDevLightErr = rcv.EstopToDevLightErr() + t.EstopToFieldbusErr = rcv.EstopToFieldbusErr() + t.EstopToDevCriticalErr = rcv.EstopToDevCriticalErr() + t.EstopToDevFatalErr = rcv.EstopToDevFatalErr() +} + +func (rcv *AxsCfgEstopSettings) UnPack() *AxsCfgEstopSettingsT { + if rcv == nil { return nil } + t := &AxsCfgEstopSettingsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgEstopSettings struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgEstopSettings(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopSettings { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgEstopSettings{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgEstopSettings(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgEstopSettings { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgEstopSettings{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgEstopSettings) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgEstopSettings) Table() flatbuffers.Table { + return rcv._tab +} + +/// estop when device has no error +func (rcv *AxsCfgEstopSettings) EstopToNoDevErr() EstopType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// estop when device has no error +func (rcv *AxsCfgEstopSettings) MutateEstopToNoDevErr(n EstopType) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +/// estop when no device error information, e.g. virtual axis +func (rcv *AxsCfgEstopSettings) EstopToNoDeviceInfo() EstopType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// estop when no device error information, e.g. virtual axis +func (rcv *AxsCfgEstopSettings) MutateEstopToNoDeviceInfo(n EstopType) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// estop when get device light error +func (rcv *AxsCfgEstopSettings) EstopToDevLightErr() EstopType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// estop when get device light error +func (rcv *AxsCfgEstopSettings) MutateEstopToDevLightErr(n EstopType) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// estop when get device light error +func (rcv *AxsCfgEstopSettings) EstopToFieldbusErr() EstopType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// estop when get device light error +func (rcv *AxsCfgEstopSettings) MutateEstopToFieldbusErr(n EstopType) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +/// estop when get device critical error +func (rcv *AxsCfgEstopSettings) EstopToDevCriticalErr() EstopType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// estop when get device critical error +func (rcv *AxsCfgEstopSettings) MutateEstopToDevCriticalErr(n EstopType) bool { + return rcv._tab.MutateInt8Slot(12, int8(n)) +} + +/// estop when get device fatal error +func (rcv *AxsCfgEstopSettings) EstopToDevFatalErr() EstopType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return EstopType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// estop when get device fatal error +func (rcv *AxsCfgEstopSettings) MutateEstopToDevFatalErr(n EstopType) bool { + return rcv._tab.MutateInt8Slot(14, int8(n)) +} + +func AxsCfgEstopSettingsStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func AxsCfgEstopSettingsAddEstopToNoDevErr(builder *flatbuffers.Builder, estopToNoDevErr EstopType) { + builder.PrependInt8Slot(0, int8(estopToNoDevErr), 0) +} +func AxsCfgEstopSettingsAddEstopToNoDeviceInfo(builder *flatbuffers.Builder, estopToNoDeviceInfo EstopType) { + builder.PrependInt8Slot(1, int8(estopToNoDeviceInfo), 0) +} +func AxsCfgEstopSettingsAddEstopToDevLightErr(builder *flatbuffers.Builder, estopToDevLightErr EstopType) { + builder.PrependInt8Slot(2, int8(estopToDevLightErr), 0) +} +func AxsCfgEstopSettingsAddEstopToFieldbusErr(builder *flatbuffers.Builder, estopToFieldbusErr EstopType) { + builder.PrependInt8Slot(3, int8(estopToFieldbusErr), 0) +} +func AxsCfgEstopSettingsAddEstopToDevCriticalErr(builder *flatbuffers.Builder, estopToDevCriticalErr EstopType) { + builder.PrependInt8Slot(4, int8(estopToDevCriticalErr), 0) +} +func AxsCfgEstopSettingsAddEstopToDevFatalErr(builder *flatbuffers.Builder, estopToDevFatalErr EstopType) { + builder.PrependInt8Slot(5, int8(estopToDevFatalErr), 0) +} +func AxsCfgEstopSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgFunctions.go b/pkg/fbs/motion/core/fbtypes/AxsCfgFunctions.go index 0e8d20e..653b246 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgFunctions.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgFunctions.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - motion__sync__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/sync/fbtypes" -) - -/// configuration for specific functions of this axis -type AxsCfgFunctionsT struct { - Coupling *AxsCfgCouplingT - CalculationPipelines []*motion__sync__fbtypes.CalcPipelineCfgT -} - -func (t *AxsCfgFunctionsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - couplingOffset := t.Coupling.Pack(builder) - calculationPipelinesOffset := flatbuffers.UOffsetT(0) - if t.CalculationPipelines != nil { - calculationPipelinesLength := len(t.CalculationPipelines) - calculationPipelinesOffsets := make([]flatbuffers.UOffsetT, calculationPipelinesLength) - for j := 0; j < calculationPipelinesLength; j++ { - calculationPipelinesOffsets[j] = t.CalculationPipelines[j].Pack(builder) - } - AxsCfgFunctionsStartCalculationPipelinesVector(builder, calculationPipelinesLength) - for j := calculationPipelinesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(calculationPipelinesOffsets[j]) - } - calculationPipelinesOffset = builder.EndVector(calculationPipelinesLength) - } - AxsCfgFunctionsStart(builder) - AxsCfgFunctionsAddCoupling(builder, couplingOffset) - AxsCfgFunctionsAddCalculationPipelines(builder, calculationPipelinesOffset) - return AxsCfgFunctionsEnd(builder) -} - -func (rcv *AxsCfgFunctions) UnPackTo(t *AxsCfgFunctionsT) { - t.Coupling = rcv.Coupling(nil).UnPack() - calculationPipelinesLength := rcv.CalculationPipelinesLength() - t.CalculationPipelines = make([]*motion__sync__fbtypes.CalcPipelineCfgT, calculationPipelinesLength) - for j := 0; j < calculationPipelinesLength; j++ { - x := motion__sync__fbtypes.CalcPipelineCfg{} - rcv.CalculationPipelines(&x, j) - t.CalculationPipelines[j] = x.UnPack() - } -} - -func (rcv *AxsCfgFunctions) UnPack() *AxsCfgFunctionsT { - if rcv == nil { return nil } - t := &AxsCfgFunctionsT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgFunctions struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgFunctions(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFunctions { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgFunctions{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgFunctions(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFunctions { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgFunctions{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgFunctions) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgFunctions) Table() flatbuffers.Table { - return rcv._tab -} - -/// configuration for coupling functions for a single axis -func (rcv *AxsCfgFunctions) Coupling(obj *AxsCfgCoupling) *AxsCfgCoupling { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgCoupling) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration for coupling functions for a single axis -/// configuration for calculation pipelines for a single axis -func (rcv *AxsCfgFunctions) CalculationPipelines(obj *motion__sync__fbtypes.CalcPipelineCfg, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AxsCfgFunctions) CalculationPipelinesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// configuration for calculation pipelines for a single axis -func AxsCfgFunctionsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCfgFunctionsAddCoupling(builder *flatbuffers.Builder, coupling flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(coupling), 0) -} -func AxsCfgFunctionsAddCalculationPipelines(builder *flatbuffers.Builder, calculationPipelines flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(calculationPipelines), 0) -} -func AxsCfgFunctionsStartCalculationPipelinesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsCfgFunctionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + motion__sync__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/sync/fbtypes" +) + +/// configuration for specific functions of this axis +type AxsCfgFunctionsT struct { + Coupling *AxsCfgCouplingT + CalculationPipelines []*motion__sync__fbtypes.CalcPipelineCfgT +} + +func (t *AxsCfgFunctionsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + couplingOffset := t.Coupling.Pack(builder) + calculationPipelinesOffset := flatbuffers.UOffsetT(0) + if t.CalculationPipelines != nil { + calculationPipelinesLength := len(t.CalculationPipelines) + calculationPipelinesOffsets := make([]flatbuffers.UOffsetT, calculationPipelinesLength) + for j := 0; j < calculationPipelinesLength; j++ { + calculationPipelinesOffsets[j] = t.CalculationPipelines[j].Pack(builder) + } + AxsCfgFunctionsStartCalculationPipelinesVector(builder, calculationPipelinesLength) + for j := calculationPipelinesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(calculationPipelinesOffsets[j]) + } + calculationPipelinesOffset = builder.EndVector(calculationPipelinesLength) + } + AxsCfgFunctionsStart(builder) + AxsCfgFunctionsAddCoupling(builder, couplingOffset) + AxsCfgFunctionsAddCalculationPipelines(builder, calculationPipelinesOffset) + return AxsCfgFunctionsEnd(builder) +} + +func (rcv *AxsCfgFunctions) UnPackTo(t *AxsCfgFunctionsT) { + t.Coupling = rcv.Coupling(nil).UnPack() + calculationPipelinesLength := rcv.CalculationPipelinesLength() + t.CalculationPipelines = make([]*motion__sync__fbtypes.CalcPipelineCfgT, calculationPipelinesLength) + for j := 0; j < calculationPipelinesLength; j++ { + x := motion__sync__fbtypes.CalcPipelineCfg{} + rcv.CalculationPipelines(&x, j) + t.CalculationPipelines[j] = x.UnPack() + } +} + +func (rcv *AxsCfgFunctions) UnPack() *AxsCfgFunctionsT { + if rcv == nil { return nil } + t := &AxsCfgFunctionsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgFunctions struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgFunctions(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFunctions { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgFunctions{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgFunctions(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFunctions { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgFunctions{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgFunctions) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgFunctions) Table() flatbuffers.Table { + return rcv._tab +} + +/// configuration for coupling functions for a single axis +func (rcv *AxsCfgFunctions) Coupling(obj *AxsCfgCoupling) *AxsCfgCoupling { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgCoupling) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration for coupling functions for a single axis +/// configuration for calculation pipelines for a single axis +func (rcv *AxsCfgFunctions) CalculationPipelines(obj *motion__sync__fbtypes.CalcPipelineCfg, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsCfgFunctions) CalculationPipelinesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// configuration for calculation pipelines for a single axis +func AxsCfgFunctionsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCfgFunctionsAddCoupling(builder *flatbuffers.Builder, coupling flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(coupling), 0) +} +func AxsCfgFunctionsAddCalculationPipelines(builder *flatbuffers.Builder, calculationPipelines flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(calculationPipelines), 0) +} +func AxsCfgFunctionsStartCalculationPipelinesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsCfgFunctionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgGantry.go b/pkg/fbs/motion/core/fbtypes/AxsCfgGantry.go index 681637f..f96f96e 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgGantry.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgGantry.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration for gantry coupling function of a single axis -type AxsCfgGantryT struct { - IsMember bool - MoveAllowed bool - MultiBrakeDyn bool -} - -func (t *AxsCfgGantryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCfgGantryStart(builder) - AxsCfgGantryAddIsMember(builder, t.IsMember) - AxsCfgGantryAddMoveAllowed(builder, t.MoveAllowed) - AxsCfgGantryAddMultiBrakeDyn(builder, t.MultiBrakeDyn) - return AxsCfgGantryEnd(builder) -} - -func (rcv *AxsCfgGantry) UnPackTo(t *AxsCfgGantryT) { - t.IsMember = rcv.IsMember() - t.MoveAllowed = rcv.MoveAllowed() - t.MultiBrakeDyn = rcv.MultiBrakeDyn() -} - -func (rcv *AxsCfgGantry) UnPack() *AxsCfgGantryT { - if rcv == nil { return nil } - t := &AxsCfgGantryT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgGantry struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgGantry(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgGantry { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgGantry{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgGantry(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgGantry { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgGantry{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgGantry) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgGantry) Table() flatbuffers.Table { - return rcv._tab -} - -/// is this axis a gantry member? -func (rcv *AxsCfgGantry) IsMember() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is this axis a gantry member? -func (rcv *AxsCfgGantry) MutateIsMember(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -/// is moving of this axis allowed, even when it's a gantry member and the gantry connection is not closed? -/// This value can be read/written when accessing the whole structure, but (file-)loading will always set to FALSE. -func (rcv *AxsCfgGantry) MoveAllowed() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is moving of this axis allowed, even when it's a gantry member and the gantry connection is not closed? -/// This value can be read/written when accessing the whole structure, but (file-)loading will always set to FALSE. -func (rcv *AxsCfgGantry) MutateMoveAllowed(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -/// is enable the multipe brake dynamic -func (rcv *AxsCfgGantry) MultiBrakeDyn() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is enable the multipe brake dynamic -func (rcv *AxsCfgGantry) MutateMultiBrakeDyn(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func AxsCfgGantryStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func AxsCfgGantryAddIsMember(builder *flatbuffers.Builder, isMember bool) { - builder.PrependBoolSlot(0, isMember, false) -} -func AxsCfgGantryAddMoveAllowed(builder *flatbuffers.Builder, moveAllowed bool) { - builder.PrependBoolSlot(1, moveAllowed, false) -} -func AxsCfgGantryAddMultiBrakeDyn(builder *flatbuffers.Builder, multiBrakeDyn bool) { - builder.PrependBoolSlot(2, multiBrakeDyn, false) -} -func AxsCfgGantryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration for gantry coupling function of a single axis +type AxsCfgGantryT struct { + IsMember bool + MoveAllowed bool + MultiBrakeDyn bool +} + +func (t *AxsCfgGantryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCfgGantryStart(builder) + AxsCfgGantryAddIsMember(builder, t.IsMember) + AxsCfgGantryAddMoveAllowed(builder, t.MoveAllowed) + AxsCfgGantryAddMultiBrakeDyn(builder, t.MultiBrakeDyn) + return AxsCfgGantryEnd(builder) +} + +func (rcv *AxsCfgGantry) UnPackTo(t *AxsCfgGantryT) { + t.IsMember = rcv.IsMember() + t.MoveAllowed = rcv.MoveAllowed() + t.MultiBrakeDyn = rcv.MultiBrakeDyn() +} + +func (rcv *AxsCfgGantry) UnPack() *AxsCfgGantryT { + if rcv == nil { return nil } + t := &AxsCfgGantryT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgGantry struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgGantry(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgGantry { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgGantry{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgGantry(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgGantry { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgGantry{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgGantry) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgGantry) Table() flatbuffers.Table { + return rcv._tab +} + +/// is this axis a gantry member? +func (rcv *AxsCfgGantry) IsMember() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is this axis a gantry member? +func (rcv *AxsCfgGantry) MutateIsMember(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// is moving of this axis allowed, even when it's a gantry member and the gantry connection is not closed? +/// This value can be read/written when accessing the whole structure, but (file-)loading will always set to FALSE. +func (rcv *AxsCfgGantry) MoveAllowed() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is moving of this axis allowed, even when it's a gantry member and the gantry connection is not closed? +/// This value can be read/written when accessing the whole structure, but (file-)loading will always set to FALSE. +func (rcv *AxsCfgGantry) MutateMoveAllowed(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// is enable the multipe brake dynamic +func (rcv *AxsCfgGantry) MultiBrakeDyn() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is enable the multipe brake dynamic +func (rcv *AxsCfgGantry) MutateMultiBrakeDyn(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func AxsCfgGantryStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsCfgGantryAddIsMember(builder *flatbuffers.Builder, isMember bool) { + builder.PrependBoolSlot(0, isMember, false) +} +func AxsCfgGantryAddMoveAllowed(builder *flatbuffers.Builder, moveAllowed bool) { + builder.PrependBoolSlot(1, moveAllowed, false) +} +func AxsCfgGantryAddMultiBrakeDyn(builder *flatbuffers.Builder, multiBrakeDyn bool) { + builder.PrependBoolSlot(2, multiBrakeDyn, false) +} +func AxsCfgGantryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgKinProperties.go b/pkg/fbs/motion/core/fbtypes/AxsCfgKinProperties.go index f7035e8..013cb00 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgKinProperties.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgKinProperties.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// kinematic properties for axes -type AxsCfgKinPropertiesT struct { - AccReserve float64 - JrkReserve float64 -} - -func (t *AxsCfgKinPropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCfgKinPropertiesStart(builder) - AxsCfgKinPropertiesAddAccReserve(builder, t.AccReserve) - AxsCfgKinPropertiesAddJrkReserve(builder, t.JrkReserve) - return AxsCfgKinPropertiesEnd(builder) -} - -func (rcv *AxsCfgKinProperties) UnPackTo(t *AxsCfgKinPropertiesT) { - t.AccReserve = rcv.AccReserve() - t.JrkReserve = rcv.JrkReserve() -} - -func (rcv *AxsCfgKinProperties) UnPack() *AxsCfgKinPropertiesT { - if rcv == nil { return nil } - t := &AxsCfgKinPropertiesT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgKinProperties struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgKinProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgKinProperties { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgKinProperties{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgKinProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgKinProperties { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgKinProperties{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgKinProperties) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgKinProperties) Table() flatbuffers.Table { - return rcv._tab -} - -/// acceleration reserve as factor of acceleration -func (rcv *AxsCfgKinProperties) AccReserve() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// acceleration reserve as factor of acceleration -func (rcv *AxsCfgKinProperties) MutateAccReserve(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// jerk reserve as factor of jerk -func (rcv *AxsCfgKinProperties) JrkReserve() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// jerk reserve as factor of jerk -func (rcv *AxsCfgKinProperties) MutateJrkReserve(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func AxsCfgKinPropertiesStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCfgKinPropertiesAddAccReserve(builder *flatbuffers.Builder, accReserve float64) { - builder.PrependFloat64Slot(0, accReserve, 0.0) -} -func AxsCfgKinPropertiesAddJrkReserve(builder *flatbuffers.Builder, jrkReserve float64) { - builder.PrependFloat64Slot(1, jrkReserve, 0.0) -} -func AxsCfgKinPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// kinematic properties for axes +type AxsCfgKinPropertiesT struct { + AccReserve float64 + JrkReserve float64 +} + +func (t *AxsCfgKinPropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCfgKinPropertiesStart(builder) + AxsCfgKinPropertiesAddAccReserve(builder, t.AccReserve) + AxsCfgKinPropertiesAddJrkReserve(builder, t.JrkReserve) + return AxsCfgKinPropertiesEnd(builder) +} + +func (rcv *AxsCfgKinProperties) UnPackTo(t *AxsCfgKinPropertiesT) { + t.AccReserve = rcv.AccReserve() + t.JrkReserve = rcv.JrkReserve() +} + +func (rcv *AxsCfgKinProperties) UnPack() *AxsCfgKinPropertiesT { + if rcv == nil { return nil } + t := &AxsCfgKinPropertiesT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgKinProperties struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgKinProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgKinProperties { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgKinProperties{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgKinProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgKinProperties { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgKinProperties{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgKinProperties) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgKinProperties) Table() flatbuffers.Table { + return rcv._tab +} + +/// acceleration reserve as factor of acceleration +func (rcv *AxsCfgKinProperties) AccReserve() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// acceleration reserve as factor of acceleration +func (rcv *AxsCfgKinProperties) MutateAccReserve(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// jerk reserve as factor of jerk +func (rcv *AxsCfgKinProperties) JrkReserve() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// jerk reserve as factor of jerk +func (rcv *AxsCfgKinProperties) MutateJrkReserve(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func AxsCfgKinPropertiesStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCfgKinPropertiesAddAccReserve(builder *flatbuffers.Builder, accReserve float64) { + builder.PrependFloat64Slot(0, accReserve, 0.0) +} +func AxsCfgKinPropertiesAddJrkReserve(builder *flatbuffers.Builder, jrkReserve float64) { + builder.PrependFloat64Slot(1, jrkReserve, 0.0) +} +func AxsCfgKinPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgLimits.go b/pkg/fbs/motion/core/fbtypes/AxsCfgLimits.go index d04469e..d806aa6 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgLimits.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgLimits.go @@ -1,357 +1,357 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configured limits of a single axis -type AxsCfgLimitsT struct { - PosMin float64 - PosMax float64 - VelPos float64 - VelNeg float64 - Acc float64 - Dec float64 - JrkAcc float64 - JrkDec float64 - PosMinUnit string - PosMaxUnit string - VelPosUnit string - VelNegUnit string - AccUnit string - DecUnit string - JrkAccUnit string - JrkDecUnit string -} - -func (t *AxsCfgLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - posMinUnitOffset := builder.CreateString(t.PosMinUnit) - posMaxUnitOffset := builder.CreateString(t.PosMaxUnit) - velPosUnitOffset := builder.CreateString(t.VelPosUnit) - velNegUnitOffset := builder.CreateString(t.VelNegUnit) - accUnitOffset := builder.CreateString(t.AccUnit) - decUnitOffset := builder.CreateString(t.DecUnit) - jrkAccUnitOffset := builder.CreateString(t.JrkAccUnit) - jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) - AxsCfgLimitsStart(builder) - AxsCfgLimitsAddPosMin(builder, t.PosMin) - AxsCfgLimitsAddPosMax(builder, t.PosMax) - AxsCfgLimitsAddVelPos(builder, t.VelPos) - AxsCfgLimitsAddVelNeg(builder, t.VelNeg) - AxsCfgLimitsAddAcc(builder, t.Acc) - AxsCfgLimitsAddDec(builder, t.Dec) - AxsCfgLimitsAddJrkAcc(builder, t.JrkAcc) - AxsCfgLimitsAddJrkDec(builder, t.JrkDec) - AxsCfgLimitsAddPosMinUnit(builder, posMinUnitOffset) - AxsCfgLimitsAddPosMaxUnit(builder, posMaxUnitOffset) - AxsCfgLimitsAddVelPosUnit(builder, velPosUnitOffset) - AxsCfgLimitsAddVelNegUnit(builder, velNegUnitOffset) - AxsCfgLimitsAddAccUnit(builder, accUnitOffset) - AxsCfgLimitsAddDecUnit(builder, decUnitOffset) - AxsCfgLimitsAddJrkAccUnit(builder, jrkAccUnitOffset) - AxsCfgLimitsAddJrkDecUnit(builder, jrkDecUnitOffset) - return AxsCfgLimitsEnd(builder) -} - -func (rcv *AxsCfgLimits) UnPackTo(t *AxsCfgLimitsT) { - t.PosMin = rcv.PosMin() - t.PosMax = rcv.PosMax() - t.VelPos = rcv.VelPos() - t.VelNeg = rcv.VelNeg() - t.Acc = rcv.Acc() - t.Dec = rcv.Dec() - t.JrkAcc = rcv.JrkAcc() - t.JrkDec = rcv.JrkDec() - t.PosMinUnit = string(rcv.PosMinUnit()) - t.PosMaxUnit = string(rcv.PosMaxUnit()) - t.VelPosUnit = string(rcv.VelPosUnit()) - t.VelNegUnit = string(rcv.VelNegUnit()) - t.AccUnit = string(rcv.AccUnit()) - t.DecUnit = string(rcv.DecUnit()) - t.JrkAccUnit = string(rcv.JrkAccUnit()) - t.JrkDecUnit = string(rcv.JrkDecUnit()) -} - -func (rcv *AxsCfgLimits) UnPack() *AxsCfgLimitsT { - if rcv == nil { return nil } - t := &AxsCfgLimitsT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgLimits struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgLimits { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgLimits{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgLimits { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgLimits{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgLimits) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgLimits) Table() flatbuffers.Table { - return rcv._tab -} - -/// minimum position limit (should be less than maximum position limit) -func (rcv *AxsCfgLimits) PosMin() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// minimum position limit (should be less than maximum position limit) -func (rcv *AxsCfgLimits) MutatePosMin(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// maximum position limit (should be greater than minimum position limit) -func (rcv *AxsCfgLimits) PosMax() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// maximum position limit (should be greater than minimum position limit) -func (rcv *AxsCfgLimits) MutatePosMax(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// absolute minimum velocity limit (should be greater than zero) -func (rcv *AxsCfgLimits) VelPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// absolute minimum velocity limit (should be greater than zero) -func (rcv *AxsCfgLimits) MutateVelPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// absolute maximum velocity limit (should be greater than zero) -func (rcv *AxsCfgLimits) VelNeg() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// absolute maximum velocity limit (should be greater than zero) -func (rcv *AxsCfgLimits) MutateVelNeg(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// absolute acceleration limit (should be greater than zero) -func (rcv *AxsCfgLimits) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// absolute acceleration limit (should be greater than zero) -func (rcv *AxsCfgLimits) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -/// absolute deceleration limit (should be greater than zero) -func (rcv *AxsCfgLimits) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// absolute deceleration limit (should be greater than zero) -func (rcv *AxsCfgLimits) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(14, n) -} - -/// absolute acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *AxsCfgLimits) JrkAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// absolute acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *AxsCfgLimits) MutateJrkAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(16, n) -} - -/// absolute deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *AxsCfgLimits) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// absolute deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *AxsCfgLimits) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(18, n) -} - -/// unit of posMin -func (rcv *AxsCfgLimits) PosMinUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of posMin -/// unit of posMax -func (rcv *AxsCfgLimits) PosMaxUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of posMax -/// unit of velPos -func (rcv *AxsCfgLimits) VelPosUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of velPos -/// unit of velNeg -func (rcv *AxsCfgLimits) VelNegUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of velNeg -/// unit of acc -func (rcv *AxsCfgLimits) AccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of acc -/// unit of dec -func (rcv *AxsCfgLimits) DecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of dec -/// unit of jrkAcc -func (rcv *AxsCfgLimits) JrkAccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of jrkAcc -/// unit of jrkDec -func (rcv *AxsCfgLimits) JrkDecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of jrkDec -func AxsCfgLimitsStart(builder *flatbuffers.Builder) { - builder.StartObject(16) -} -func AxsCfgLimitsAddPosMin(builder *flatbuffers.Builder, posMin float64) { - builder.PrependFloat64Slot(0, posMin, 0.0) -} -func AxsCfgLimitsAddPosMax(builder *flatbuffers.Builder, posMax float64) { - builder.PrependFloat64Slot(1, posMax, 0.0) -} -func AxsCfgLimitsAddVelPos(builder *flatbuffers.Builder, velPos float64) { - builder.PrependFloat64Slot(2, velPos, 0.0) -} -func AxsCfgLimitsAddVelNeg(builder *flatbuffers.Builder, velNeg float64) { - builder.PrependFloat64Slot(3, velNeg, 0.0) -} -func AxsCfgLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(4, acc, 0.0) -} -func AxsCfgLimitsAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(5, dec, 0.0) -} -func AxsCfgLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { - builder.PrependFloat64Slot(6, jrkAcc, 0.0) -} -func AxsCfgLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(7, jrkDec, 0.0) -} -func AxsCfgLimitsAddPosMinUnit(builder *flatbuffers.Builder, posMinUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(posMinUnit), 0) -} -func AxsCfgLimitsAddPosMaxUnit(builder *flatbuffers.Builder, posMaxUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(posMaxUnit), 0) -} -func AxsCfgLimitsAddVelPosUnit(builder *flatbuffers.Builder, velPosUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(velPosUnit), 0) -} -func AxsCfgLimitsAddVelNegUnit(builder *flatbuffers.Builder, velNegUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(velNegUnit), 0) -} -func AxsCfgLimitsAddAccUnit(builder *flatbuffers.Builder, accUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(12, flatbuffers.UOffsetT(accUnit), 0) -} -func AxsCfgLimitsAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(decUnit), 0) -} -func AxsCfgLimitsAddJrkAccUnit(builder *flatbuffers.Builder, jrkAccUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(14, flatbuffers.UOffsetT(jrkAccUnit), 0) -} -func AxsCfgLimitsAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(15, flatbuffers.UOffsetT(jrkDecUnit), 0) -} -func AxsCfgLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configured limits of a single axis +type AxsCfgLimitsT struct { + PosMin float64 + PosMax float64 + VelPos float64 + VelNeg float64 + Acc float64 + Dec float64 + JrkAcc float64 + JrkDec float64 + PosMinUnit string + PosMaxUnit string + VelPosUnit string + VelNegUnit string + AccUnit string + DecUnit string + JrkAccUnit string + JrkDecUnit string +} + +func (t *AxsCfgLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + posMinUnitOffset := builder.CreateString(t.PosMinUnit) + posMaxUnitOffset := builder.CreateString(t.PosMaxUnit) + velPosUnitOffset := builder.CreateString(t.VelPosUnit) + velNegUnitOffset := builder.CreateString(t.VelNegUnit) + accUnitOffset := builder.CreateString(t.AccUnit) + decUnitOffset := builder.CreateString(t.DecUnit) + jrkAccUnitOffset := builder.CreateString(t.JrkAccUnit) + jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) + AxsCfgLimitsStart(builder) + AxsCfgLimitsAddPosMin(builder, t.PosMin) + AxsCfgLimitsAddPosMax(builder, t.PosMax) + AxsCfgLimitsAddVelPos(builder, t.VelPos) + AxsCfgLimitsAddVelNeg(builder, t.VelNeg) + AxsCfgLimitsAddAcc(builder, t.Acc) + AxsCfgLimitsAddDec(builder, t.Dec) + AxsCfgLimitsAddJrkAcc(builder, t.JrkAcc) + AxsCfgLimitsAddJrkDec(builder, t.JrkDec) + AxsCfgLimitsAddPosMinUnit(builder, posMinUnitOffset) + AxsCfgLimitsAddPosMaxUnit(builder, posMaxUnitOffset) + AxsCfgLimitsAddVelPosUnit(builder, velPosUnitOffset) + AxsCfgLimitsAddVelNegUnit(builder, velNegUnitOffset) + AxsCfgLimitsAddAccUnit(builder, accUnitOffset) + AxsCfgLimitsAddDecUnit(builder, decUnitOffset) + AxsCfgLimitsAddJrkAccUnit(builder, jrkAccUnitOffset) + AxsCfgLimitsAddJrkDecUnit(builder, jrkDecUnitOffset) + return AxsCfgLimitsEnd(builder) +} + +func (rcv *AxsCfgLimits) UnPackTo(t *AxsCfgLimitsT) { + t.PosMin = rcv.PosMin() + t.PosMax = rcv.PosMax() + t.VelPos = rcv.VelPos() + t.VelNeg = rcv.VelNeg() + t.Acc = rcv.Acc() + t.Dec = rcv.Dec() + t.JrkAcc = rcv.JrkAcc() + t.JrkDec = rcv.JrkDec() + t.PosMinUnit = string(rcv.PosMinUnit()) + t.PosMaxUnit = string(rcv.PosMaxUnit()) + t.VelPosUnit = string(rcv.VelPosUnit()) + t.VelNegUnit = string(rcv.VelNegUnit()) + t.AccUnit = string(rcv.AccUnit()) + t.DecUnit = string(rcv.DecUnit()) + t.JrkAccUnit = string(rcv.JrkAccUnit()) + t.JrkDecUnit = string(rcv.JrkDecUnit()) +} + +func (rcv *AxsCfgLimits) UnPack() *AxsCfgLimitsT { + if rcv == nil { return nil } + t := &AxsCfgLimitsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgLimits struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgLimits { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgLimits{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgLimits { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgLimits{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgLimits) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgLimits) Table() flatbuffers.Table { + return rcv._tab +} + +/// minimum position limit (should be less than maximum position limit) +func (rcv *AxsCfgLimits) PosMin() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// minimum position limit (should be less than maximum position limit) +func (rcv *AxsCfgLimits) MutatePosMin(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// maximum position limit (should be greater than minimum position limit) +func (rcv *AxsCfgLimits) PosMax() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// maximum position limit (should be greater than minimum position limit) +func (rcv *AxsCfgLimits) MutatePosMax(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// absolute minimum velocity limit (should be greater than zero) +func (rcv *AxsCfgLimits) VelPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// absolute minimum velocity limit (should be greater than zero) +func (rcv *AxsCfgLimits) MutateVelPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// absolute maximum velocity limit (should be greater than zero) +func (rcv *AxsCfgLimits) VelNeg() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// absolute maximum velocity limit (should be greater than zero) +func (rcv *AxsCfgLimits) MutateVelNeg(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// absolute acceleration limit (should be greater than zero) +func (rcv *AxsCfgLimits) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// absolute acceleration limit (should be greater than zero) +func (rcv *AxsCfgLimits) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +/// absolute deceleration limit (should be greater than zero) +func (rcv *AxsCfgLimits) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// absolute deceleration limit (should be greater than zero) +func (rcv *AxsCfgLimits) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(14, n) +} + +/// absolute acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *AxsCfgLimits) JrkAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// absolute acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *AxsCfgLimits) MutateJrkAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(16, n) +} + +/// absolute deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *AxsCfgLimits) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// absolute deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *AxsCfgLimits) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(18, n) +} + +/// unit of posMin +func (rcv *AxsCfgLimits) PosMinUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of posMin +/// unit of posMax +func (rcv *AxsCfgLimits) PosMaxUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of posMax +/// unit of velPos +func (rcv *AxsCfgLimits) VelPosUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of velPos +/// unit of velNeg +func (rcv *AxsCfgLimits) VelNegUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of velNeg +/// unit of acc +func (rcv *AxsCfgLimits) AccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of acc +/// unit of dec +func (rcv *AxsCfgLimits) DecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of dec +/// unit of jrkAcc +func (rcv *AxsCfgLimits) JrkAccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of jrkAcc +/// unit of jrkDec +func (rcv *AxsCfgLimits) JrkDecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of jrkDec +func AxsCfgLimitsStart(builder *flatbuffers.Builder) { + builder.StartObject(16) +} +func AxsCfgLimitsAddPosMin(builder *flatbuffers.Builder, posMin float64) { + builder.PrependFloat64Slot(0, posMin, 0.0) +} +func AxsCfgLimitsAddPosMax(builder *flatbuffers.Builder, posMax float64) { + builder.PrependFloat64Slot(1, posMax, 0.0) +} +func AxsCfgLimitsAddVelPos(builder *flatbuffers.Builder, velPos float64) { + builder.PrependFloat64Slot(2, velPos, 0.0) +} +func AxsCfgLimitsAddVelNeg(builder *flatbuffers.Builder, velNeg float64) { + builder.PrependFloat64Slot(3, velNeg, 0.0) +} +func AxsCfgLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(4, acc, 0.0) +} +func AxsCfgLimitsAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(5, dec, 0.0) +} +func AxsCfgLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { + builder.PrependFloat64Slot(6, jrkAcc, 0.0) +} +func AxsCfgLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(7, jrkDec, 0.0) +} +func AxsCfgLimitsAddPosMinUnit(builder *flatbuffers.Builder, posMinUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(posMinUnit), 0) +} +func AxsCfgLimitsAddPosMaxUnit(builder *flatbuffers.Builder, posMaxUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(posMaxUnit), 0) +} +func AxsCfgLimitsAddVelPosUnit(builder *flatbuffers.Builder, velPosUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(velPosUnit), 0) +} +func AxsCfgLimitsAddVelNegUnit(builder *flatbuffers.Builder, velNegUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(velNegUnit), 0) +} +func AxsCfgLimitsAddAccUnit(builder *flatbuffers.Builder, accUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(12, flatbuffers.UOffsetT(accUnit), 0) +} +func AxsCfgLimitsAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(13, flatbuffers.UOffsetT(decUnit), 0) +} +func AxsCfgLimitsAddJrkAccUnit(builder *flatbuffers.Builder, jrkAccUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(14, flatbuffers.UOffsetT(jrkAccUnit), 0) +} +func AxsCfgLimitsAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(15, flatbuffers.UOffsetT(jrkDecUnit), 0) +} +func AxsCfgLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCfgProperties.go b/pkg/fbs/motion/core/fbtypes/AxsCfgProperties.go index 906080f..b237c01 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCfgProperties.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCfgProperties.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// common axis properties for a single axis -type AxsCfgPropertiesT struct { - AxsType string - Modulo bool - ModuloValue float64 - ModuloValueUnit string -} - -func (t *AxsCfgPropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsTypeOffset := builder.CreateString(t.AxsType) - moduloValueUnitOffset := builder.CreateString(t.ModuloValueUnit) - AxsCfgPropertiesStart(builder) - AxsCfgPropertiesAddAxsType(builder, axsTypeOffset) - AxsCfgPropertiesAddModulo(builder, t.Modulo) - AxsCfgPropertiesAddModuloValue(builder, t.ModuloValue) - AxsCfgPropertiesAddModuloValueUnit(builder, moduloValueUnitOffset) - return AxsCfgPropertiesEnd(builder) -} - -func (rcv *AxsCfgProperties) UnPackTo(t *AxsCfgPropertiesT) { - t.AxsType = string(rcv.AxsType()) - t.Modulo = rcv.Modulo() - t.ModuloValue = rcv.ModuloValue() - t.ModuloValueUnit = string(rcv.ModuloValueUnit()) -} - -func (rcv *AxsCfgProperties) UnPack() *AxsCfgPropertiesT { - if rcv == nil { return nil } - t := &AxsCfgPropertiesT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgProperties struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgProperties { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgProperties{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgProperties { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgProperties{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgProperties) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgProperties) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the axis type (e.g. "LINEAR") -func (rcv *AxsCfgProperties) AxsType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the axis type (e.g. "LINEAR") -/// is this a modulo axis? -func (rcv *AxsCfgProperties) Modulo() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is this a modulo axis? -func (rcv *AxsCfgProperties) MutateModulo(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -/// the modulo value, if the axis is a modulo axis -func (rcv *AxsCfgProperties) ModuloValue() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// the modulo value, if the axis is a modulo axis -func (rcv *AxsCfgProperties) MutateModuloValue(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// unit of moduloValue -func (rcv *AxsCfgProperties) ModuloValueUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of moduloValue -func AxsCfgPropertiesStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func AxsCfgPropertiesAddAxsType(builder *flatbuffers.Builder, axsType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsType), 0) -} -func AxsCfgPropertiesAddModulo(builder *flatbuffers.Builder, modulo bool) { - builder.PrependBoolSlot(1, modulo, false) -} -func AxsCfgPropertiesAddModuloValue(builder *flatbuffers.Builder, moduloValue float64) { - builder.PrependFloat64Slot(2, moduloValue, 0.0) -} -func AxsCfgPropertiesAddModuloValueUnit(builder *flatbuffers.Builder, moduloValueUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(moduloValueUnit), 0) -} -func AxsCfgPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// common axis properties for a single axis +type AxsCfgPropertiesT struct { + AxsType string + Modulo bool + ModuloValue float64 + ModuloValueUnit string +} + +func (t *AxsCfgPropertiesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsTypeOffset := builder.CreateString(t.AxsType) + moduloValueUnitOffset := builder.CreateString(t.ModuloValueUnit) + AxsCfgPropertiesStart(builder) + AxsCfgPropertiesAddAxsType(builder, axsTypeOffset) + AxsCfgPropertiesAddModulo(builder, t.Modulo) + AxsCfgPropertiesAddModuloValue(builder, t.ModuloValue) + AxsCfgPropertiesAddModuloValueUnit(builder, moduloValueUnitOffset) + return AxsCfgPropertiesEnd(builder) +} + +func (rcv *AxsCfgProperties) UnPackTo(t *AxsCfgPropertiesT) { + t.AxsType = string(rcv.AxsType()) + t.Modulo = rcv.Modulo() + t.ModuloValue = rcv.ModuloValue() + t.ModuloValueUnit = string(rcv.ModuloValueUnit()) +} + +func (rcv *AxsCfgProperties) UnPack() *AxsCfgPropertiesT { + if rcv == nil { return nil } + t := &AxsCfgPropertiesT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgProperties struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgProperties { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgProperties{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgProperties(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgProperties { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgProperties{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgProperties) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgProperties) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the axis type (e.g. "LINEAR") +func (rcv *AxsCfgProperties) AxsType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the axis type (e.g. "LINEAR") +/// is this a modulo axis? +func (rcv *AxsCfgProperties) Modulo() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is this a modulo axis? +func (rcv *AxsCfgProperties) MutateModulo(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// the modulo value, if the axis is a modulo axis +func (rcv *AxsCfgProperties) ModuloValue() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// the modulo value, if the axis is a modulo axis +func (rcv *AxsCfgProperties) MutateModuloValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// unit of moduloValue +func (rcv *AxsCfgProperties) ModuloValueUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of moduloValue +func AxsCfgPropertiesStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCfgPropertiesAddAxsType(builder *flatbuffers.Builder, axsType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsType), 0) +} +func AxsCfgPropertiesAddModulo(builder *flatbuffers.Builder, modulo bool) { + builder.PrependBoolSlot(1, modulo, false) +} +func AxsCfgPropertiesAddModuloValue(builder *flatbuffers.Builder, moduloValue float64) { + builder.PrependFloat64Slot(2, moduloValue, 0.0) +} +func AxsCfgPropertiesAddModuloValueUnit(builder *flatbuffers.Builder, moduloValueUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(moduloValueUnit), 0) +} +func AxsCfgPropertiesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdAbortData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdAbortData.go index 3fd4ff5..9c69608 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCmdAbortData.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdAbortData.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis abort command -type AxsCmdAbortDataT struct { - Dec float64 - JrkDec float64 -} - -func (t *AxsCmdAbortDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCmdAbortDataStart(builder) - AxsCmdAbortDataAddDec(builder, t.Dec) - AxsCmdAbortDataAddJrkDec(builder, t.JrkDec) - return AxsCmdAbortDataEnd(builder) -} - -func (rcv *AxsCmdAbortData) UnPackTo(t *AxsCmdAbortDataT) { - t.Dec = rcv.Dec() - t.JrkDec = rcv.JrkDec() -} - -func (rcv *AxsCmdAbortData) UnPack() *AxsCmdAbortDataT { - if rcv == nil { return nil } - t := &AxsCmdAbortDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdAbortData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAbortData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdAbortData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAbortData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdAbortData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdAbortData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdAbortData) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded deceleration limit (must be a positive value) -func (rcv *AxsCmdAbortData) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded deceleration limit (must be a positive value) -func (rcv *AxsCmdAbortData) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// commanded deceleration jerk limit (must be a positive value OR zero), zero means "not jerk limited" -func (rcv *AxsCmdAbortData) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded deceleration jerk limit (must be a positive value OR zero), zero means "not jerk limited" -func (rcv *AxsCmdAbortData) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func AxsCmdAbortDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCmdAbortDataAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(0, dec, 0.0) -} -func AxsCmdAbortDataAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(1, jrkDec, 0.0) -} -func AxsCmdAbortDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis abort command +type AxsCmdAbortDataT struct { + Dec float64 + JrkDec float64 +} + +func (t *AxsCmdAbortDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCmdAbortDataStart(builder) + AxsCmdAbortDataAddDec(builder, t.Dec) + AxsCmdAbortDataAddJrkDec(builder, t.JrkDec) + return AxsCmdAbortDataEnd(builder) +} + +func (rcv *AxsCmdAbortData) UnPackTo(t *AxsCmdAbortDataT) { + t.Dec = rcv.Dec() + t.JrkDec = rcv.JrkDec() +} + +func (rcv *AxsCmdAbortData) UnPack() *AxsCmdAbortDataT { + if rcv == nil { return nil } + t := &AxsCmdAbortDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdAbortData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAbortData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdAbortData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAbortData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdAbortData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdAbortData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdAbortData) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded deceleration limit (must be a positive value) +func (rcv *AxsCmdAbortData) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded deceleration limit (must be a positive value) +func (rcv *AxsCmdAbortData) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// commanded deceleration jerk limit (must be a positive value OR zero), zero means "not jerk limited" +func (rcv *AxsCmdAbortData) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded deceleration jerk limit (must be a positive value OR zero), zero means "not jerk limited" +func (rcv *AxsCmdAbortData) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func AxsCmdAbortDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdAbortDataAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(0, dec, 0.0) +} +func AxsCmdAbortDataAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(1, jrkDec, 0.0) +} +func AxsCmdAbortDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdAddToGantryData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdAddToGantryData.go index 1a01153..ddf90a2 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCmdAddToGantryData.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdAddToGantryData.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis command add-to-gantry -type AxsCmdAddToGantryDataT struct { - MasterName string - Buffered bool -} - -func (t *AxsCmdAddToGantryDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - masterNameOffset := builder.CreateString(t.MasterName) - AxsCmdAddToGantryDataStart(builder) - AxsCmdAddToGantryDataAddMasterName(builder, masterNameOffset) - AxsCmdAddToGantryDataAddBuffered(builder, t.Buffered) - return AxsCmdAddToGantryDataEnd(builder) -} - -func (rcv *AxsCmdAddToGantryData) UnPackTo(t *AxsCmdAddToGantryDataT) { - t.MasterName = string(rcv.MasterName()) - t.Buffered = rcv.Buffered() -} - -func (rcv *AxsCmdAddToGantryData) UnPack() *AxsCmdAddToGantryDataT { - if rcv == nil { return nil } - t := &AxsCmdAddToGantryDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdAddToGantryData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdAddToGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToGantryData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdAddToGantryData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdAddToGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToGantryData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdAddToGantryData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdAddToGantryData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdAddToGantryData) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the gantry master axis -func (rcv *AxsCmdAddToGantryData) MasterName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the gantry master axis -/// should this be a buffered command? -func (rcv *AxsCmdAddToGantryData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this be a buffered command? -func (rcv *AxsCmdAddToGantryData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func AxsCmdAddToGantryDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCmdAddToGantryDataAddMasterName(builder *flatbuffers.Builder, masterName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(masterName), 0) -} -func AxsCmdAddToGantryDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(1, buffered, false) -} -func AxsCmdAddToGantryDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis command add-to-gantry +type AxsCmdAddToGantryDataT struct { + MasterName string + Buffered bool +} + +func (t *AxsCmdAddToGantryDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterNameOffset := builder.CreateString(t.MasterName) + AxsCmdAddToGantryDataStart(builder) + AxsCmdAddToGantryDataAddMasterName(builder, masterNameOffset) + AxsCmdAddToGantryDataAddBuffered(builder, t.Buffered) + return AxsCmdAddToGantryDataEnd(builder) +} + +func (rcv *AxsCmdAddToGantryData) UnPackTo(t *AxsCmdAddToGantryDataT) { + t.MasterName = string(rcv.MasterName()) + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdAddToGantryData) UnPack() *AxsCmdAddToGantryDataT { + if rcv == nil { return nil } + t := &AxsCmdAddToGantryDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdAddToGantryData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdAddToGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToGantryData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdAddToGantryData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdAddToGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToGantryData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdAddToGantryData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdAddToGantryData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdAddToGantryData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the gantry master axis +func (rcv *AxsCmdAddToGantryData) MasterName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the gantry master axis +/// should this be a buffered command? +func (rcv *AxsCmdAddToGantryData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdAddToGantryData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func AxsCmdAddToGantryDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdAddToGantryDataAddMasterName(builder *flatbuffers.Builder, masterName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(masterName), 0) +} +func AxsCmdAddToGantryDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(1, buffered, false) +} +func AxsCmdAddToGantryDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdAddToKinData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdAddToKinData.go index 8511171..25d4626 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCmdAddToKinData.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdAddToKinData.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis command add-to-kin -type AxsCmdAddToKinDataT struct { - KinName string - Buffered bool -} - -func (t *AxsCmdAddToKinDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - kinNameOffset := builder.CreateString(t.KinName) - AxsCmdAddToKinDataStart(builder) - AxsCmdAddToKinDataAddKinName(builder, kinNameOffset) - AxsCmdAddToKinDataAddBuffered(builder, t.Buffered) - return AxsCmdAddToKinDataEnd(builder) -} - -func (rcv *AxsCmdAddToKinData) UnPackTo(t *AxsCmdAddToKinDataT) { - t.KinName = string(rcv.KinName()) - t.Buffered = rcv.Buffered() -} - -func (rcv *AxsCmdAddToKinData) UnPack() *AxsCmdAddToKinDataT { - if rcv == nil { return nil } - t := &AxsCmdAddToKinDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdAddToKinData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdAddToKinData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToKinData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdAddToKinData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdAddToKinData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToKinData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdAddToKinData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdAddToKinData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdAddToKinData) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the kinematics to which this axis should be added -func (rcv *AxsCmdAddToKinData) KinName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the kinematics to which this axis should be added -/// should this be a buffered command? -func (rcv *AxsCmdAddToKinData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this be a buffered command? -func (rcv *AxsCmdAddToKinData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func AxsCmdAddToKinDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCmdAddToKinDataAddKinName(builder *flatbuffers.Builder, kinName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinName), 0) -} -func AxsCmdAddToKinDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(1, buffered, false) -} -func AxsCmdAddToKinDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis command add-to-kin +type AxsCmdAddToKinDataT struct { + KinName string + Buffered bool +} + +func (t *AxsCmdAddToKinDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + kinNameOffset := builder.CreateString(t.KinName) + AxsCmdAddToKinDataStart(builder) + AxsCmdAddToKinDataAddKinName(builder, kinNameOffset) + AxsCmdAddToKinDataAddBuffered(builder, t.Buffered) + return AxsCmdAddToKinDataEnd(builder) +} + +func (rcv *AxsCmdAddToKinData) UnPackTo(t *AxsCmdAddToKinDataT) { + t.KinName = string(rcv.KinName()) + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdAddToKinData) UnPack() *AxsCmdAddToKinDataT { + if rcv == nil { return nil } + t := &AxsCmdAddToKinDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdAddToKinData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdAddToKinData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToKinData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdAddToKinData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdAddToKinData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdAddToKinData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdAddToKinData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdAddToKinData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdAddToKinData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the kinematics to which this axis should be added +func (rcv *AxsCmdAddToKinData) KinName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the kinematics to which this axis should be added +/// should this be a buffered command? +func (rcv *AxsCmdAddToKinData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdAddToKinData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func AxsCmdAddToKinDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdAddToKinDataAddKinName(builder *flatbuffers.Builder, kinName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinName), 0) +} +func AxsCmdAddToKinDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(1, buffered, false) +} +func AxsCmdAddToKinDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdJogData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdJogData.go index bb0055f..7f227b3 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCmdJogData.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdJogData.go @@ -1,120 +1,120 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis jog commands -type AxsCmdJogDataT struct { - JogDir string - JogIncrement float64 - Lim *DynamicLimitsT -} - -func (t *AxsCmdJogDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - jogDirOffset := builder.CreateString(t.JogDir) - limOffset := t.Lim.Pack(builder) - AxsCmdJogDataStart(builder) - AxsCmdJogDataAddJogDir(builder, jogDirOffset) - AxsCmdJogDataAddJogIncrement(builder, t.JogIncrement) - AxsCmdJogDataAddLim(builder, limOffset) - return AxsCmdJogDataEnd(builder) -} - -func (rcv *AxsCmdJogData) UnPackTo(t *AxsCmdJogDataT) { - t.JogDir = string(rcv.JogDir()) - t.JogIncrement = rcv.JogIncrement() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *AxsCmdJogData) UnPack() *AxsCmdJogDataT { - if rcv == nil { return nil } - t := &AxsCmdJogDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdJogData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdJogData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdJogData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdJogData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdJogData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdJogData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdJogData) Table() flatbuffers.Table { - return rcv._tab -} - -/// jog direction ("+" or "-") -func (rcv *AxsCmdJogData) JogDir() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// jog direction ("+" or "-") -/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) -func (rcv *AxsCmdJogData) JogIncrement() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) -func (rcv *AxsCmdJogData) MutateJogIncrement(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// dynamic limits for the motion of this command -func (rcv *AxsCmdJogData) Lim(obj *DynamicLimits) *DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -func AxsCmdJogDataStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func AxsCmdJogDataAddJogDir(builder *flatbuffers.Builder, jogDir flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(jogDir), 0) -} -func AxsCmdJogDataAddJogIncrement(builder *flatbuffers.Builder, jogIncrement float64) { - builder.PrependFloat64Slot(1, jogIncrement, 0.0) -} -func AxsCmdJogDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) -} -func AxsCmdJogDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis jog commands +type AxsCmdJogDataT struct { + JogDir string + JogIncrement float64 + Lim *DynamicLimitsT +} + +func (t *AxsCmdJogDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + jogDirOffset := builder.CreateString(t.JogDir) + limOffset := t.Lim.Pack(builder) + AxsCmdJogDataStart(builder) + AxsCmdJogDataAddJogDir(builder, jogDirOffset) + AxsCmdJogDataAddJogIncrement(builder, t.JogIncrement) + AxsCmdJogDataAddLim(builder, limOffset) + return AxsCmdJogDataEnd(builder) +} + +func (rcv *AxsCmdJogData) UnPackTo(t *AxsCmdJogDataT) { + t.JogDir = string(rcv.JogDir()) + t.JogIncrement = rcv.JogIncrement() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *AxsCmdJogData) UnPack() *AxsCmdJogDataT { + if rcv == nil { return nil } + t := &AxsCmdJogDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdJogData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdJogData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdJogData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdJogData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdJogData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdJogData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdJogData) Table() flatbuffers.Table { + return rcv._tab +} + +/// jog direction ("+" or "-") +func (rcv *AxsCmdJogData) JogDir() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// jog direction ("+" or "-") +/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) +func (rcv *AxsCmdJogData) JogIncrement() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) +func (rcv *AxsCmdJogData) MutateJogIncrement(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// dynamic limits for the motion of this command +func (rcv *AxsCmdJogData) Lim(obj *DynamicLimits) *DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +func AxsCmdJogDataStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsCmdJogDataAddJogDir(builder *flatbuffers.Builder, jogDir flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(jogDir), 0) +} +func AxsCmdJogDataAddJogIncrement(builder *flatbuffers.Builder, jogIncrement float64) { + builder.PrependFloat64Slot(1, jogIncrement, 0.0) +} +func AxsCmdJogDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) +} +func AxsCmdJogDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdPosData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdPosData.go index 1933af4..fc2cc97 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCmdPosData.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdPosData.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis position commands -type AxsCmdPosDataT struct { - AxsPos float64 - Buffered bool - Lim *DynamicLimitsT -} - -func (t *AxsCmdPosDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - limOffset := t.Lim.Pack(builder) - AxsCmdPosDataStart(builder) - AxsCmdPosDataAddAxsPos(builder, t.AxsPos) - AxsCmdPosDataAddBuffered(builder, t.Buffered) - AxsCmdPosDataAddLim(builder, limOffset) - return AxsCmdPosDataEnd(builder) -} - -func (rcv *AxsCmdPosData) UnPackTo(t *AxsCmdPosDataT) { - t.AxsPos = rcv.AxsPos() - t.Buffered = rcv.Buffered() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *AxsCmdPosData) UnPack() *AxsCmdPosDataT { - if rcv == nil { return nil } - t := &AxsCmdPosDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdPosData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdPosData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdPosData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdPosData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdPosData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdPosData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdPosData) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdPosData) AxsPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdPosData) MutateAxsPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// should this be a buffered command? -func (rcv *AxsCmdPosData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this be a buffered command? -func (rcv *AxsCmdPosData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -/// dynamic limits for the motion of this command -func (rcv *AxsCmdPosData) Lim(obj *DynamicLimits) *DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -func AxsCmdPosDataStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func AxsCmdPosDataAddAxsPos(builder *flatbuffers.Builder, axsPos float64) { - builder.PrependFloat64Slot(0, axsPos, 0.0) -} -func AxsCmdPosDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(1, buffered, false) -} -func AxsCmdPosDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) -} -func AxsCmdPosDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis position commands +type AxsCmdPosDataT struct { + AxsPos float64 + Buffered bool + Lim *DynamicLimitsT +} + +func (t *AxsCmdPosDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + limOffset := t.Lim.Pack(builder) + AxsCmdPosDataStart(builder) + AxsCmdPosDataAddAxsPos(builder, t.AxsPos) + AxsCmdPosDataAddBuffered(builder, t.Buffered) + AxsCmdPosDataAddLim(builder, limOffset) + return AxsCmdPosDataEnd(builder) +} + +func (rcv *AxsCmdPosData) UnPackTo(t *AxsCmdPosDataT) { + t.AxsPos = rcv.AxsPos() + t.Buffered = rcv.Buffered() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *AxsCmdPosData) UnPack() *AxsCmdPosDataT { + if rcv == nil { return nil } + t := &AxsCmdPosDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdPosData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdPosData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdPosData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdPosData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdPosData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdPosData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdPosData) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdPosData) AxsPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdPosData) MutateAxsPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// should this be a buffered command? +func (rcv *AxsCmdPosData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdPosData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// dynamic limits for the motion of this command +func (rcv *AxsCmdPosData) Lim(obj *DynamicLimits) *DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +func AxsCmdPosDataStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsCmdPosDataAddAxsPos(builder *flatbuffers.Builder, axsPos float64) { + builder.PrependFloat64Slot(0, axsPos, 0.0) +} +func AxsCmdPosDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(1, buffered, false) +} +func AxsCmdPosDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) +} +func AxsCmdPosDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdProbeBaseData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdProbeBaseData.go new file mode 100644 index 0000000..59dc95d --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdProbeBaseData.go @@ -0,0 +1,95 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// base parameters of the axis probe and axis probe abort command +type AxsCmdProbeBaseDataT struct { + TriggerSrc string + ProbeIndex string +} + +func (t *AxsCmdProbeBaseDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + triggerSrcOffset := builder.CreateString(t.TriggerSrc) + probeIndexOffset := builder.CreateString(t.ProbeIndex) + AxsCmdProbeBaseDataStart(builder) + AxsCmdProbeBaseDataAddTriggerSrc(builder, triggerSrcOffset) + AxsCmdProbeBaseDataAddProbeIndex(builder, probeIndexOffset) + return AxsCmdProbeBaseDataEnd(builder) +} + +func (rcv *AxsCmdProbeBaseData) UnPackTo(t *AxsCmdProbeBaseDataT) { + t.TriggerSrc = string(rcv.TriggerSrc()) + t.ProbeIndex = string(rcv.ProbeIndex()) +} + +func (rcv *AxsCmdProbeBaseData) UnPack() *AxsCmdProbeBaseDataT { + if rcv == nil { return nil } + t := &AxsCmdProbeBaseDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdProbeBaseData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdProbeBaseData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdProbeBaseData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdProbeBaseData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdProbeBaseData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdProbeBaseData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdProbeBaseData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdProbeBaseData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdProbeBaseData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of trigger source name +func (rcv *AxsCmdProbeBaseData) TriggerSrc() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of trigger source name +/// command of probe index +func (rcv *AxsCmdProbeBaseData) ProbeIndex() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// command of probe index +func AxsCmdProbeBaseDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdProbeBaseDataAddTriggerSrc(builder *flatbuffers.Builder, triggerSrc flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(triggerSrc), 0) +} +func AxsCmdProbeBaseDataAddProbeIndex(builder *flatbuffers.Builder, probeIndex flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(probeIndex), 0) +} +func AxsCmdProbeBaseDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdProbeData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdProbeData.go new file mode 100644 index 0000000..9000071 --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdProbeData.go @@ -0,0 +1,105 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis probe command +type AxsCmdProbeDataT struct { + BaseData *AxsCmdProbeBaseDataT + CfgData *ProbeCfgDataT +} + +func (t *AxsCmdProbeDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseDataOffset := t.BaseData.Pack(builder) + cfgDataOffset := t.CfgData.Pack(builder) + AxsCmdProbeDataStart(builder) + AxsCmdProbeDataAddBaseData(builder, baseDataOffset) + AxsCmdProbeDataAddCfgData(builder, cfgDataOffset) + return AxsCmdProbeDataEnd(builder) +} + +func (rcv *AxsCmdProbeData) UnPackTo(t *AxsCmdProbeDataT) { + t.BaseData = rcv.BaseData(nil).UnPack() + t.CfgData = rcv.CfgData(nil).UnPack() +} + +func (rcv *AxsCmdProbeData) UnPack() *AxsCmdProbeDataT { + if rcv == nil { return nil } + t := &AxsCmdProbeDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdProbeData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdProbeData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdProbeData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdProbeData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdProbeData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdProbeData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdProbeData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdProbeData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdProbeData) Table() flatbuffers.Table { + return rcv._tab +} + +/// base param of trigger src and probe index +func (rcv *AxsCmdProbeData) BaseData(obj *AxsCmdProbeBaseData) *AxsCmdProbeBaseData { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCmdProbeBaseData) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// base param of trigger src and probe index +/// probe parameter for data +func (rcv *AxsCmdProbeData) CfgData(obj *ProbeCfgData) *ProbeCfgData { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(ProbeCfgData) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// probe parameter for data +func AxsCmdProbeDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdProbeDataAddBaseData(builder *flatbuffers.Builder, baseData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(baseData), 0) +} +func AxsCmdProbeDataAddCfgData(builder *flatbuffers.Builder, cfgData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(cfgData), 0) +} +func AxsCmdProbeDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdValues.go b/pkg/fbs/motion/core/fbtypes/AxsCmdValues.go index 0f6e9d1..918ecbc 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCmdValues.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdValues.go @@ -1,236 +1,236 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters and data of the active command -type AxsCmdValuesT struct { - TargetPos float64 - TargetVel float64 - TargetTrq float64 - Lim *DynamicLimitsStateT - CmdId uint64 - Src *CmdSourceT - TargetPosUnit string - TargetVelUnit string - TargetTrqUnit string -} - -func (t *AxsCmdValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - limOffset := t.Lim.Pack(builder) - srcOffset := t.Src.Pack(builder) - targetPosUnitOffset := builder.CreateString(t.TargetPosUnit) - targetVelUnitOffset := builder.CreateString(t.TargetVelUnit) - targetTrqUnitOffset := builder.CreateString(t.TargetTrqUnit) - AxsCmdValuesStart(builder) - AxsCmdValuesAddTargetPos(builder, t.TargetPos) - AxsCmdValuesAddTargetVel(builder, t.TargetVel) - AxsCmdValuesAddTargetTrq(builder, t.TargetTrq) - AxsCmdValuesAddLim(builder, limOffset) - AxsCmdValuesAddCmdId(builder, t.CmdId) - AxsCmdValuesAddSrc(builder, srcOffset) - AxsCmdValuesAddTargetPosUnit(builder, targetPosUnitOffset) - AxsCmdValuesAddTargetVelUnit(builder, targetVelUnitOffset) - AxsCmdValuesAddTargetTrqUnit(builder, targetTrqUnitOffset) - return AxsCmdValuesEnd(builder) -} - -func (rcv *AxsCmdValues) UnPackTo(t *AxsCmdValuesT) { - t.TargetPos = rcv.TargetPos() - t.TargetVel = rcv.TargetVel() - t.TargetTrq = rcv.TargetTrq() - t.Lim = rcv.Lim(nil).UnPack() - t.CmdId = rcv.CmdId() - t.Src = rcv.Src(nil).UnPack() - t.TargetPosUnit = string(rcv.TargetPosUnit()) - t.TargetVelUnit = string(rcv.TargetVelUnit()) - t.TargetTrqUnit = string(rcv.TargetTrqUnit()) -} - -func (rcv *AxsCmdValues) UnPack() *AxsCmdValuesT { - if rcv == nil { return nil } - t := &AxsCmdValuesT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdValues struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdValues(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdValues(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdValues) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target position -func (rcv *AxsCmdValues) TargetPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target position -func (rcv *AxsCmdValues) MutateTargetPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// commanded target velocity (currently not supported) -func (rcv *AxsCmdValues) TargetVel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target velocity (currently not supported) -func (rcv *AxsCmdValues) MutateTargetVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// commanded target torque (currently not supported) -func (rcv *AxsCmdValues) TargetTrq() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target torque (currently not supported) -func (rcv *AxsCmdValues) MutateTargetTrq(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// dynamic limits for the motion of this command -func (rcv *AxsCmdValues) Lim(obj *DynamicLimitsState) *DynamicLimitsState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimitsState) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -/// command ID of the active command -func (rcv *AxsCmdValues) CmdId() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -/// command ID of the active command -func (rcv *AxsCmdValues) MutateCmdId(n uint64) bool { - return rcv._tab.MutateUint64Slot(12, n) -} - -/// command source (by which interface was this command inserted into the system (e.g. "PLC")) -func (rcv *AxsCmdValues) Src(obj *CmdSource) *CmdSource { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdSource) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// command source (by which interface was this command inserted into the system (e.g. "PLC")) -/// unit of the commanded target position -func (rcv *AxsCmdValues) TargetPosUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the commanded target position -/// unit of the commanded target velocity (currently not supported) -func (rcv *AxsCmdValues) TargetVelUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the commanded target velocity (currently not supported) -/// unit of the commanded target torque (currently not supported) -func (rcv *AxsCmdValues) TargetTrqUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the commanded target torque (currently not supported) -func AxsCmdValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func AxsCmdValuesAddTargetPos(builder *flatbuffers.Builder, targetPos float64) { - builder.PrependFloat64Slot(0, targetPos, 0.0) -} -func AxsCmdValuesAddTargetVel(builder *flatbuffers.Builder, targetVel float64) { - builder.PrependFloat64Slot(1, targetVel, 0.0) -} -func AxsCmdValuesAddTargetTrq(builder *flatbuffers.Builder, targetTrq float64) { - builder.PrependFloat64Slot(2, targetTrq, 0.0) -} -func AxsCmdValuesAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) -} -func AxsCmdValuesAddCmdId(builder *flatbuffers.Builder, cmdId uint64) { - builder.PrependUint64Slot(4, cmdId, 0) -} -func AxsCmdValuesAddSrc(builder *flatbuffers.Builder, src flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(src), 0) -} -func AxsCmdValuesAddTargetPosUnit(builder *flatbuffers.Builder, targetPosUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(targetPosUnit), 0) -} -func AxsCmdValuesAddTargetVelUnit(builder *flatbuffers.Builder, targetVelUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(targetVelUnit), 0) -} -func AxsCmdValuesAddTargetTrqUnit(builder *flatbuffers.Builder, targetTrqUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(targetTrqUnit), 0) -} -func AxsCmdValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters and data of the active command +type AxsCmdValuesT struct { + TargetPos float64 + TargetVel float64 + TargetTrq float64 + Lim *DynamicLimitsStateT + CmdId uint64 + Src *CmdSourceT + TargetPosUnit string + TargetVelUnit string + TargetTrqUnit string +} + +func (t *AxsCmdValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + limOffset := t.Lim.Pack(builder) + srcOffset := t.Src.Pack(builder) + targetPosUnitOffset := builder.CreateString(t.TargetPosUnit) + targetVelUnitOffset := builder.CreateString(t.TargetVelUnit) + targetTrqUnitOffset := builder.CreateString(t.TargetTrqUnit) + AxsCmdValuesStart(builder) + AxsCmdValuesAddTargetPos(builder, t.TargetPos) + AxsCmdValuesAddTargetVel(builder, t.TargetVel) + AxsCmdValuesAddTargetTrq(builder, t.TargetTrq) + AxsCmdValuesAddLim(builder, limOffset) + AxsCmdValuesAddCmdId(builder, t.CmdId) + AxsCmdValuesAddSrc(builder, srcOffset) + AxsCmdValuesAddTargetPosUnit(builder, targetPosUnitOffset) + AxsCmdValuesAddTargetVelUnit(builder, targetVelUnitOffset) + AxsCmdValuesAddTargetTrqUnit(builder, targetTrqUnitOffset) + return AxsCmdValuesEnd(builder) +} + +func (rcv *AxsCmdValues) UnPackTo(t *AxsCmdValuesT) { + t.TargetPos = rcv.TargetPos() + t.TargetVel = rcv.TargetVel() + t.TargetTrq = rcv.TargetTrq() + t.Lim = rcv.Lim(nil).UnPack() + t.CmdId = rcv.CmdId() + t.Src = rcv.Src(nil).UnPack() + t.TargetPosUnit = string(rcv.TargetPosUnit()) + t.TargetVelUnit = string(rcv.TargetVelUnit()) + t.TargetTrqUnit = string(rcv.TargetTrqUnit()) +} + +func (rcv *AxsCmdValues) UnPack() *AxsCmdValuesT { + if rcv == nil { return nil } + t := &AxsCmdValuesT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdValues struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdValues(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdValues(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target position +func (rcv *AxsCmdValues) TargetPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target position +func (rcv *AxsCmdValues) MutateTargetPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// commanded target velocity (currently not supported) +func (rcv *AxsCmdValues) TargetVel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target velocity (currently not supported) +func (rcv *AxsCmdValues) MutateTargetVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// commanded target torque (currently not supported) +func (rcv *AxsCmdValues) TargetTrq() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target torque (currently not supported) +func (rcv *AxsCmdValues) MutateTargetTrq(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// dynamic limits for the motion of this command +func (rcv *AxsCmdValues) Lim(obj *DynamicLimitsState) *DynamicLimitsState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimitsState) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +/// command ID of the active command +func (rcv *AxsCmdValues) CmdId() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// command ID of the active command +func (rcv *AxsCmdValues) MutateCmdId(n uint64) bool { + return rcv._tab.MutateUint64Slot(12, n) +} + +/// command source (by which interface was this command inserted into the system (e.g. "PLC")) +func (rcv *AxsCmdValues) Src(obj *CmdSource) *CmdSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdSource) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// command source (by which interface was this command inserted into the system (e.g. "PLC")) +/// unit of the commanded target position +func (rcv *AxsCmdValues) TargetPosUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the commanded target position +/// unit of the commanded target velocity (currently not supported) +func (rcv *AxsCmdValues) TargetVelUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the commanded target velocity (currently not supported) +/// unit of the commanded target torque (currently not supported) +func (rcv *AxsCmdValues) TargetTrqUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the commanded target torque (currently not supported) +func AxsCmdValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func AxsCmdValuesAddTargetPos(builder *flatbuffers.Builder, targetPos float64) { + builder.PrependFloat64Slot(0, targetPos, 0.0) +} +func AxsCmdValuesAddTargetVel(builder *flatbuffers.Builder, targetVel float64) { + builder.PrependFloat64Slot(1, targetVel, 0.0) +} +func AxsCmdValuesAddTargetTrq(builder *flatbuffers.Builder, targetTrq float64) { + builder.PrependFloat64Slot(2, targetTrq, 0.0) +} +func AxsCmdValuesAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) +} +func AxsCmdValuesAddCmdId(builder *flatbuffers.Builder, cmdId uint64) { + builder.PrependUint64Slot(4, cmdId, 0) +} +func AxsCmdValuesAddSrc(builder *flatbuffers.Builder, src flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(src), 0) +} +func AxsCmdValuesAddTargetPosUnit(builder *flatbuffers.Builder, targetPosUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(targetPosUnit), 0) +} +func AxsCmdValuesAddTargetVelUnit(builder *flatbuffers.Builder, targetVelUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(targetVelUnit), 0) +} +func AxsCmdValuesAddTargetTrqUnit(builder *flatbuffers.Builder, targetTrqUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(targetTrqUnit), 0) +} +func AxsCmdValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsCmdVelData.go b/pkg/fbs/motion/core/fbtypes/AxsCmdVelData.go index 2b00e8c..7a7ad22 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsCmdVelData.go +++ b/pkg/fbs/motion/core/fbtypes/AxsCmdVelData.go @@ -1,143 +1,143 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis velocity command -type AxsCmdVelDataT struct { - AxsVel float64 - DriveVelMode bool - Buffered bool - Lim *DynamicLimitsT -} - -func (t *AxsCmdVelDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - limOffset := t.Lim.Pack(builder) - AxsCmdVelDataStart(builder) - AxsCmdVelDataAddAxsVel(builder, t.AxsVel) - AxsCmdVelDataAddDriveVelMode(builder, t.DriveVelMode) - AxsCmdVelDataAddBuffered(builder, t.Buffered) - AxsCmdVelDataAddLim(builder, limOffset) - return AxsCmdVelDataEnd(builder) -} - -func (rcv *AxsCmdVelData) UnPackTo(t *AxsCmdVelDataT) { - t.AxsVel = rcv.AxsVel() - t.DriveVelMode = rcv.DriveVelMode() - t.Buffered = rcv.Buffered() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *AxsCmdVelData) UnPack() *AxsCmdVelDataT { - if rcv == nil { return nil } - t := &AxsCmdVelDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdVelData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdVelData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdVelData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdVelData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdVelData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdVelData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdVelData) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target velocity (can be negative) -func (rcv *AxsCmdVelData) AxsVel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target velocity (can be negative) -func (rcv *AxsCmdVelData) MutateAxsVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// should this command switch/stay the drive to velocity mode (or switch/stay to position mode)? -func (rcv *AxsCmdVelData) DriveVelMode() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this command switch/stay the drive to velocity mode (or switch/stay to position mode)? -func (rcv *AxsCmdVelData) MutateDriveVelMode(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -/// should this be a buffered command? -func (rcv *AxsCmdVelData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this be a buffered command? -func (rcv *AxsCmdVelData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -/// dynamic limits for the motion of this command -func (rcv *AxsCmdVelData) Lim(obj *DynamicLimits) *DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -func AxsCmdVelDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func AxsCmdVelDataAddAxsVel(builder *flatbuffers.Builder, axsVel float64) { - builder.PrependFloat64Slot(0, axsVel, 0.0) -} -func AxsCmdVelDataAddDriveVelMode(builder *flatbuffers.Builder, driveVelMode bool) { - builder.PrependBoolSlot(1, driveVelMode, false) -} -func AxsCmdVelDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(2, buffered, false) -} -func AxsCmdVelDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) -} -func AxsCmdVelDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis velocity command +type AxsCmdVelDataT struct { + AxsVel float64 + DriveVelMode bool + Buffered bool + Lim *DynamicLimitsT +} + +func (t *AxsCmdVelDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + limOffset := t.Lim.Pack(builder) + AxsCmdVelDataStart(builder) + AxsCmdVelDataAddAxsVel(builder, t.AxsVel) + AxsCmdVelDataAddDriveVelMode(builder, t.DriveVelMode) + AxsCmdVelDataAddBuffered(builder, t.Buffered) + AxsCmdVelDataAddLim(builder, limOffset) + return AxsCmdVelDataEnd(builder) +} + +func (rcv *AxsCmdVelData) UnPackTo(t *AxsCmdVelDataT) { + t.AxsVel = rcv.AxsVel() + t.DriveVelMode = rcv.DriveVelMode() + t.Buffered = rcv.Buffered() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *AxsCmdVelData) UnPack() *AxsCmdVelDataT { + if rcv == nil { return nil } + t := &AxsCmdVelDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdVelData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdVelData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdVelData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdVelData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdVelData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdVelData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdVelData) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target velocity (can be negative) +func (rcv *AxsCmdVelData) AxsVel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target velocity (can be negative) +func (rcv *AxsCmdVelData) MutateAxsVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// should this command switch/stay the drive to velocity mode (or switch/stay to position mode)? +func (rcv *AxsCmdVelData) DriveVelMode() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this command switch/stay the drive to velocity mode (or switch/stay to position mode)? +func (rcv *AxsCmdVelData) MutateDriveVelMode(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// should this be a buffered command? +func (rcv *AxsCmdVelData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdVelData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +/// dynamic limits for the motion of this command +func (rcv *AxsCmdVelData) Lim(obj *DynamicLimits) *DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +func AxsCmdVelDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCmdVelDataAddAxsVel(builder *flatbuffers.Builder, axsVel float64) { + builder.PrependFloat64Slot(0, axsVel, 0.0) +} +func AxsCmdVelDataAddDriveVelMode(builder *flatbuffers.Builder, driveVelMode bool) { + builder.PrependBoolSlot(1, driveVelMode, false) +} +func AxsCmdVelDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(2, buffered, false) +} +func AxsCmdVelDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) +} +func AxsCmdVelDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/AxsIpoValues.go b/pkg/fbs/motion/core/fbtypes/AxsIpoValues.go index f0926dc..26f15bf 100644 --- a/pkg/fbs/motion/core/fbtypes/AxsIpoValues.go +++ b/pkg/fbs/motion/core/fbtypes/AxsIpoValues.go @@ -1,209 +1,209 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// currently interpolated values -type AxsIpoValuesT struct { - IpoPos float64 - IpoVel float64 - IpoAcc float64 - IpoJrk float64 - IpoPosUnit string - IpoVelUnit string - IpoAccUnit string - IpoJrkUnit string -} - -func (t *AxsIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ipoPosUnitOffset := builder.CreateString(t.IpoPosUnit) - ipoVelUnitOffset := builder.CreateString(t.IpoVelUnit) - ipoAccUnitOffset := builder.CreateString(t.IpoAccUnit) - ipoJrkUnitOffset := builder.CreateString(t.IpoJrkUnit) - AxsIpoValuesStart(builder) - AxsIpoValuesAddIpoPos(builder, t.IpoPos) - AxsIpoValuesAddIpoVel(builder, t.IpoVel) - AxsIpoValuesAddIpoAcc(builder, t.IpoAcc) - AxsIpoValuesAddIpoJrk(builder, t.IpoJrk) - AxsIpoValuesAddIpoPosUnit(builder, ipoPosUnitOffset) - AxsIpoValuesAddIpoVelUnit(builder, ipoVelUnitOffset) - AxsIpoValuesAddIpoAccUnit(builder, ipoAccUnitOffset) - AxsIpoValuesAddIpoJrkUnit(builder, ipoJrkUnitOffset) - return AxsIpoValuesEnd(builder) -} - -func (rcv *AxsIpoValues) UnPackTo(t *AxsIpoValuesT) { - t.IpoPos = rcv.IpoPos() - t.IpoVel = rcv.IpoVel() - t.IpoAcc = rcv.IpoAcc() - t.IpoJrk = rcv.IpoJrk() - t.IpoPosUnit = string(rcv.IpoPosUnit()) - t.IpoVelUnit = string(rcv.IpoVelUnit()) - t.IpoAccUnit = string(rcv.IpoAccUnit()) - t.IpoJrkUnit = string(rcv.IpoJrkUnit()) -} - -func (rcv *AxsIpoValues) UnPack() *AxsIpoValuesT { - if rcv == nil { return nil } - t := &AxsIpoValuesT{} - rcv.UnPackTo(t) - return t -} - -type AxsIpoValues struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *AxsIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsIpoValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *AxsIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsIpoValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsIpoValues) Table() flatbuffers.Table { - return rcv._tab -} - -/// currently interpolated position -func (rcv *AxsIpoValues) IpoPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// currently interpolated position -func (rcv *AxsIpoValues) MutateIpoPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// currently interpolated velocity -func (rcv *AxsIpoValues) IpoVel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// currently interpolated velocity -func (rcv *AxsIpoValues) MutateIpoVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// currently interpolated acceleration -func (rcv *AxsIpoValues) IpoAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// currently interpolated acceleration -func (rcv *AxsIpoValues) MutateIpoAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// currently interpolated jerk -func (rcv *AxsIpoValues) IpoJrk() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// currently interpolated jerk -func (rcv *AxsIpoValues) MutateIpoJrk(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// unit of currently interpolated position -func (rcv *AxsIpoValues) IpoPosUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of currently interpolated position -/// unit of currently interpolated velocity -func (rcv *AxsIpoValues) IpoVelUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of currently interpolated velocity -/// unit of currently interpolated acceleration -func (rcv *AxsIpoValues) IpoAccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of currently interpolated acceleration -/// unit of currently interpolated jerk -func (rcv *AxsIpoValues) IpoJrkUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of currently interpolated jerk -func AxsIpoValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func AxsIpoValuesAddIpoPos(builder *flatbuffers.Builder, ipoPos float64) { - builder.PrependFloat64Slot(0, ipoPos, 0.0) -} -func AxsIpoValuesAddIpoVel(builder *flatbuffers.Builder, ipoVel float64) { - builder.PrependFloat64Slot(1, ipoVel, 0.0) -} -func AxsIpoValuesAddIpoAcc(builder *flatbuffers.Builder, ipoAcc float64) { - builder.PrependFloat64Slot(2, ipoAcc, 0.0) -} -func AxsIpoValuesAddIpoJrk(builder *flatbuffers.Builder, ipoJrk float64) { - builder.PrependFloat64Slot(3, ipoJrk, 0.0) -} -func AxsIpoValuesAddIpoPosUnit(builder *flatbuffers.Builder, ipoPosUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(ipoPosUnit), 0) -} -func AxsIpoValuesAddIpoVelUnit(builder *flatbuffers.Builder, ipoVelUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(ipoVelUnit), 0) -} -func AxsIpoValuesAddIpoAccUnit(builder *flatbuffers.Builder, ipoAccUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(ipoAccUnit), 0) -} -func AxsIpoValuesAddIpoJrkUnit(builder *flatbuffers.Builder, ipoJrkUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(ipoJrkUnit), 0) -} -func AxsIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// currently interpolated values +type AxsIpoValuesT struct { + IpoPos float64 + IpoVel float64 + IpoAcc float64 + IpoJrk float64 + IpoPosUnit string + IpoVelUnit string + IpoAccUnit string + IpoJrkUnit string +} + +func (t *AxsIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ipoPosUnitOffset := builder.CreateString(t.IpoPosUnit) + ipoVelUnitOffset := builder.CreateString(t.IpoVelUnit) + ipoAccUnitOffset := builder.CreateString(t.IpoAccUnit) + ipoJrkUnitOffset := builder.CreateString(t.IpoJrkUnit) + AxsIpoValuesStart(builder) + AxsIpoValuesAddIpoPos(builder, t.IpoPos) + AxsIpoValuesAddIpoVel(builder, t.IpoVel) + AxsIpoValuesAddIpoAcc(builder, t.IpoAcc) + AxsIpoValuesAddIpoJrk(builder, t.IpoJrk) + AxsIpoValuesAddIpoPosUnit(builder, ipoPosUnitOffset) + AxsIpoValuesAddIpoVelUnit(builder, ipoVelUnitOffset) + AxsIpoValuesAddIpoAccUnit(builder, ipoAccUnitOffset) + AxsIpoValuesAddIpoJrkUnit(builder, ipoJrkUnitOffset) + return AxsIpoValuesEnd(builder) +} + +func (rcv *AxsIpoValues) UnPackTo(t *AxsIpoValuesT) { + t.IpoPos = rcv.IpoPos() + t.IpoVel = rcv.IpoVel() + t.IpoAcc = rcv.IpoAcc() + t.IpoJrk = rcv.IpoJrk() + t.IpoPosUnit = string(rcv.IpoPosUnit()) + t.IpoVelUnit = string(rcv.IpoVelUnit()) + t.IpoAccUnit = string(rcv.IpoAccUnit()) + t.IpoJrkUnit = string(rcv.IpoJrkUnit()) +} + +func (rcv *AxsIpoValues) UnPack() *AxsIpoValuesT { + if rcv == nil { return nil } + t := &AxsIpoValuesT{} + rcv.UnPackTo(t) + return t +} + +type AxsIpoValues struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *AxsIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsIpoValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *AxsIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsIpoValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsIpoValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// currently interpolated position +func (rcv *AxsIpoValues) IpoPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently interpolated position +func (rcv *AxsIpoValues) MutateIpoPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// currently interpolated velocity +func (rcv *AxsIpoValues) IpoVel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently interpolated velocity +func (rcv *AxsIpoValues) MutateIpoVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// currently interpolated acceleration +func (rcv *AxsIpoValues) IpoAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently interpolated acceleration +func (rcv *AxsIpoValues) MutateIpoAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// currently interpolated jerk +func (rcv *AxsIpoValues) IpoJrk() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently interpolated jerk +func (rcv *AxsIpoValues) MutateIpoJrk(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// unit of currently interpolated position +func (rcv *AxsIpoValues) IpoPosUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of currently interpolated position +/// unit of currently interpolated velocity +func (rcv *AxsIpoValues) IpoVelUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of currently interpolated velocity +/// unit of currently interpolated acceleration +func (rcv *AxsIpoValues) IpoAccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of currently interpolated acceleration +/// unit of currently interpolated jerk +func (rcv *AxsIpoValues) IpoJrkUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of currently interpolated jerk +func AxsIpoValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func AxsIpoValuesAddIpoPos(builder *flatbuffers.Builder, ipoPos float64) { + builder.PrependFloat64Slot(0, ipoPos, 0.0) +} +func AxsIpoValuesAddIpoVel(builder *flatbuffers.Builder, ipoVel float64) { + builder.PrependFloat64Slot(1, ipoVel, 0.0) +} +func AxsIpoValuesAddIpoAcc(builder *flatbuffers.Builder, ipoAcc float64) { + builder.PrependFloat64Slot(2, ipoAcc, 0.0) +} +func AxsIpoValuesAddIpoJrk(builder *flatbuffers.Builder, ipoJrk float64) { + builder.PrependFloat64Slot(3, ipoJrk, 0.0) +} +func AxsIpoValuesAddIpoPosUnit(builder *flatbuffers.Builder, ipoPosUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(ipoPosUnit), 0) +} +func AxsIpoValuesAddIpoVelUnit(builder *flatbuffers.Builder, ipoVelUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(ipoVelUnit), 0) +} +func AxsIpoValuesAddIpoAccUnit(builder *flatbuffers.Builder, ipoAccUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(ipoAccUnit), 0) +} +func AxsIpoValuesAddIpoJrkUnit(builder *flatbuffers.Builder, ipoJrkUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(ipoJrkUnit), 0) +} +func AxsIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/BootState.go b/pkg/fbs/motion/core/fbtypes/BootState.go index 27f3c26..acb033d 100644 --- a/pkg/fbs/motion/core/fbtypes/BootState.go +++ b/pkg/fbs/motion/core/fbtypes/BootState.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// return type of requests of the current boot state -type BootStateT struct { - Text string - ActStep uint32 - MaxSteps uint32 -} - -func (t *BootStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - textOffset := builder.CreateString(t.Text) - BootStateStart(builder) - BootStateAddText(builder, textOffset) - BootStateAddActStep(builder, t.ActStep) - BootStateAddMaxSteps(builder, t.MaxSteps) - return BootStateEnd(builder) -} - -func (rcv *BootState) UnPackTo(t *BootStateT) { - t.Text = string(rcv.Text()) - t.ActStep = rcv.ActStep() - t.MaxSteps = rcv.MaxSteps() -} - -func (rcv *BootState) UnPack() *BootStateT { - if rcv == nil { return nil } - t := &BootStateT{} - rcv.UnPackTo(t) - return t -} - -type BootState struct { - _tab flatbuffers.Table -} - -func GetRootAsBootState(buf []byte, offset flatbuffers.UOffsetT) *BootState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &BootState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBootState(buf []byte, offset flatbuffers.UOffsetT) *BootState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &BootState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *BootState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *BootState) Table() flatbuffers.Table { - return rcv._tab -} - -/// text of the boot step (can be shown in an HMI) -func (rcv *BootState) Text() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// text of the boot step (can be shown in an HMI) -/// current boot step (starts with 0, ends with maxSteps) -func (rcv *BootState) ActStep() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// current boot step (starts with 0, ends with maxSteps) -func (rcv *BootState) MutateActStep(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -/// number of boot steps (when actStep == maxSteps then the booting is finished) -func (rcv *BootState) MaxSteps() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// number of boot steps (when actStep == maxSteps then the booting is finished) -func (rcv *BootState) MutateMaxSteps(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func BootStateStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func BootStateAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(text), 0) -} -func BootStateAddActStep(builder *flatbuffers.Builder, actStep uint32) { - builder.PrependUint32Slot(1, actStep, 0) -} -func BootStateAddMaxSteps(builder *flatbuffers.Builder, maxSteps uint32) { - builder.PrependUint32Slot(2, maxSteps, 0) -} -func BootStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// return type of requests of the current boot state +type BootStateT struct { + Text string + ActStep uint32 + MaxSteps uint32 +} + +func (t *BootStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + textOffset := builder.CreateString(t.Text) + BootStateStart(builder) + BootStateAddText(builder, textOffset) + BootStateAddActStep(builder, t.ActStep) + BootStateAddMaxSteps(builder, t.MaxSteps) + return BootStateEnd(builder) +} + +func (rcv *BootState) UnPackTo(t *BootStateT) { + t.Text = string(rcv.Text()) + t.ActStep = rcv.ActStep() + t.MaxSteps = rcv.MaxSteps() +} + +func (rcv *BootState) UnPack() *BootStateT { + if rcv == nil { return nil } + t := &BootStateT{} + rcv.UnPackTo(t) + return t +} + +type BootState struct { + _tab flatbuffers.Table +} + +func GetRootAsBootState(buf []byte, offset flatbuffers.UOffsetT) *BootState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &BootState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBootState(buf []byte, offset flatbuffers.UOffsetT) *BootState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &BootState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *BootState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *BootState) Table() flatbuffers.Table { + return rcv._tab +} + +/// text of the boot step (can be shown in an HMI) +func (rcv *BootState) Text() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// text of the boot step (can be shown in an HMI) +/// current boot step (starts with 0, ends with maxSteps) +func (rcv *BootState) ActStep() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// current boot step (starts with 0, ends with maxSteps) +func (rcv *BootState) MutateActStep(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// number of boot steps (when actStep == maxSteps then the booting is finished) +func (rcv *BootState) MaxSteps() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// number of boot steps (when actStep == maxSteps then the booting is finished) +func (rcv *BootState) MutateMaxSteps(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func BootStateStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func BootStateAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(text), 0) +} +func BootStateAddActStep(builder *flatbuffers.Builder, actStep uint32) { + builder.PrependUint32Slot(1, actStep, 0) +} +func BootStateAddMaxSteps(builder *flatbuffers.Builder, maxSteps uint32) { + builder.PrependUint32Slot(2, maxSteps, 0) +} +func BootStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/BootTimes.go b/pkg/fbs/motion/core/fbtypes/BootTimes.go index 45777fc..d67db97 100644 --- a/pkg/fbs/motion/core/fbtypes/BootTimes.go +++ b/pkg/fbs/motion/core/fbtypes/BootTimes.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// return type of requests of the times of the last booting -type BootTimesT struct { - Elapsed float64 - ElapsedThread float64 - StartedTimeStamp string - EndedTimeStamp string -} - -func (t *BootTimesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - startedTimeStampOffset := builder.CreateString(t.StartedTimeStamp) - endedTimeStampOffset := builder.CreateString(t.EndedTimeStamp) - BootTimesStart(builder) - BootTimesAddElapsed(builder, t.Elapsed) - BootTimesAddElapsedThread(builder, t.ElapsedThread) - BootTimesAddStartedTimeStamp(builder, startedTimeStampOffset) - BootTimesAddEndedTimeStamp(builder, endedTimeStampOffset) - return BootTimesEnd(builder) -} - -func (rcv *BootTimes) UnPackTo(t *BootTimesT) { - t.Elapsed = rcv.Elapsed() - t.ElapsedThread = rcv.ElapsedThread() - t.StartedTimeStamp = string(rcv.StartedTimeStamp()) - t.EndedTimeStamp = string(rcv.EndedTimeStamp()) -} - -func (rcv *BootTimes) UnPack() *BootTimesT { - if rcv == nil { return nil } - t := &BootTimesT{} - rcv.UnPackTo(t) - return t -} - -type BootTimes struct { - _tab flatbuffers.Table -} - -func GetRootAsBootTimes(buf []byte, offset flatbuffers.UOffsetT) *BootTimes { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &BootTimes{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBootTimes(buf []byte, offset flatbuffers.UOffsetT) *BootTimes { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &BootTimes{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *BootTimes) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *BootTimes) Table() flatbuffers.Table { - return rcv._tab -} - -/// Elapsed time of the last booting (only valid after end of booting) in seconds -func (rcv *BootTimes) Elapsed() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Elapsed time of the last booting (only valid after end of booting) in seconds -func (rcv *BootTimes) MutateElapsed(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// Elapsed time of the last booting (only valid after end of booting) in seconds only for the own thead (does not include waiting on other threads) -func (rcv *BootTimes) ElapsedThread() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Elapsed time of the last booting (only valid after end of booting) in seconds only for the own thead (does not include waiting on other threads) -func (rcv *BootTimes) MutateElapsedThread(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// Time stamp (string), when the last booting started -func (rcv *BootTimes) StartedTimeStamp() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Time stamp (string), when the last booting started -/// Time stamp (string), when the last booting ended -func (rcv *BootTimes) EndedTimeStamp() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Time stamp (string), when the last booting ended -func BootTimesStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func BootTimesAddElapsed(builder *flatbuffers.Builder, elapsed float64) { - builder.PrependFloat64Slot(0, elapsed, 0.0) -} -func BootTimesAddElapsedThread(builder *flatbuffers.Builder, elapsedThread float64) { - builder.PrependFloat64Slot(1, elapsedThread, 0.0) -} -func BootTimesAddStartedTimeStamp(builder *flatbuffers.Builder, startedTimeStamp flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(startedTimeStamp), 0) -} -func BootTimesAddEndedTimeStamp(builder *flatbuffers.Builder, endedTimeStamp flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(endedTimeStamp), 0) -} -func BootTimesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// return type of requests of the times of the last booting +type BootTimesT struct { + Elapsed float64 + ElapsedThread float64 + StartedTimeStamp string + EndedTimeStamp string +} + +func (t *BootTimesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + startedTimeStampOffset := builder.CreateString(t.StartedTimeStamp) + endedTimeStampOffset := builder.CreateString(t.EndedTimeStamp) + BootTimesStart(builder) + BootTimesAddElapsed(builder, t.Elapsed) + BootTimesAddElapsedThread(builder, t.ElapsedThread) + BootTimesAddStartedTimeStamp(builder, startedTimeStampOffset) + BootTimesAddEndedTimeStamp(builder, endedTimeStampOffset) + return BootTimesEnd(builder) +} + +func (rcv *BootTimes) UnPackTo(t *BootTimesT) { + t.Elapsed = rcv.Elapsed() + t.ElapsedThread = rcv.ElapsedThread() + t.StartedTimeStamp = string(rcv.StartedTimeStamp()) + t.EndedTimeStamp = string(rcv.EndedTimeStamp()) +} + +func (rcv *BootTimes) UnPack() *BootTimesT { + if rcv == nil { return nil } + t := &BootTimesT{} + rcv.UnPackTo(t) + return t +} + +type BootTimes struct { + _tab flatbuffers.Table +} + +func GetRootAsBootTimes(buf []byte, offset flatbuffers.UOffsetT) *BootTimes { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &BootTimes{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBootTimes(buf []byte, offset flatbuffers.UOffsetT) *BootTimes { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &BootTimes{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *BootTimes) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *BootTimes) Table() flatbuffers.Table { + return rcv._tab +} + +/// Elapsed time of the last booting (only valid after end of booting) in seconds +func (rcv *BootTimes) Elapsed() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Elapsed time of the last booting (only valid after end of booting) in seconds +func (rcv *BootTimes) MutateElapsed(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// Elapsed time of the last booting (only valid after end of booting) in seconds only for the own thead (does not include waiting on other threads) +func (rcv *BootTimes) ElapsedThread() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Elapsed time of the last booting (only valid after end of booting) in seconds only for the own thead (does not include waiting on other threads) +func (rcv *BootTimes) MutateElapsedThread(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// Time stamp (string), when the last booting started +func (rcv *BootTimes) StartedTimeStamp() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Time stamp (string), when the last booting started +/// Time stamp (string), when the last booting ended +func (rcv *BootTimes) EndedTimeStamp() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Time stamp (string), when the last booting ended +func BootTimesStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func BootTimesAddElapsed(builder *flatbuffers.Builder, elapsed float64) { + builder.PrependFloat64Slot(0, elapsed, 0.0) +} +func BootTimesAddElapsedThread(builder *flatbuffers.Builder, elapsedThread float64) { + builder.PrependFloat64Slot(1, elapsedThread, 0.0) +} +func BootTimesAddStartedTimeStamp(builder *flatbuffers.Builder, startedTimeStamp flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(startedTimeStamp), 0) +} +func BootTimesAddEndedTimeStamp(builder *flatbuffers.Builder, endedTimeStamp flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(endedTimeStamp), 0) +} +func BootTimesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/BrakeLimit.go b/pkg/fbs/motion/core/fbtypes/BrakeLimit.go index 3d68970..5f2c940 100644 --- a/pkg/fbs/motion/core/fbtypes/BrakeLimit.go +++ b/pkg/fbs/motion/core/fbtypes/BrakeLimit.go @@ -1,36 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// type of the brake limit -type BrakeLimit int8 - -const ( - /// brake with commanded dynamics limits (soft stop) - BrakeLimitLAST_COMMANDED_LIMITS BrakeLimit = 0 - /// brake with reduced axis limits (on commanded path) - BrakeLimitREDUCED_AXIS_LIMITS BrakeLimit = 1 - /// brake with configured axis limits (on commanded path) - BrakeLimitCONFIGURED_AXIS_LIMITS BrakeLimit = 2 -) - -var EnumNamesBrakeLimit = map[BrakeLimit]string{ - BrakeLimitLAST_COMMANDED_LIMITS: "LAST_COMMANDED_LIMITS", - BrakeLimitREDUCED_AXIS_LIMITS: "REDUCED_AXIS_LIMITS", - BrakeLimitCONFIGURED_AXIS_LIMITS: "CONFIGURED_AXIS_LIMITS", -} - -var EnumValuesBrakeLimit = map[string]BrakeLimit{ - "LAST_COMMANDED_LIMITS": BrakeLimitLAST_COMMANDED_LIMITS, - "REDUCED_AXIS_LIMITS": BrakeLimitREDUCED_AXIS_LIMITS, - "CONFIGURED_AXIS_LIMITS": BrakeLimitCONFIGURED_AXIS_LIMITS, -} - -func (v BrakeLimit) String() string { - if s, ok := EnumNamesBrakeLimit[v]; ok { - return s - } - return "BrakeLimit(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of the brake limit +type BrakeLimit int8 + +const ( + /// brake with commanded dynamics limits (soft stop) + BrakeLimitLAST_COMMANDED_LIMITS BrakeLimit = 0 + /// brake with reduced axis limits (on commanded path) + BrakeLimitREDUCED_AXIS_LIMITS BrakeLimit = 1 + /// brake with configured axis limits (on commanded path) + BrakeLimitCONFIGURED_AXIS_LIMITS BrakeLimit = 2 +) + +var EnumNamesBrakeLimit = map[BrakeLimit]string{ + BrakeLimitLAST_COMMANDED_LIMITS: "LAST_COMMANDED_LIMITS", + BrakeLimitREDUCED_AXIS_LIMITS: "REDUCED_AXIS_LIMITS", + BrakeLimitCONFIGURED_AXIS_LIMITS: "CONFIGURED_AXIS_LIMITS", +} + +var EnumValuesBrakeLimit = map[string]BrakeLimit{ + "LAST_COMMANDED_LIMITS": BrakeLimitLAST_COMMANDED_LIMITS, + "REDUCED_AXIS_LIMITS": BrakeLimitREDUCED_AXIS_LIMITS, + "CONFIGURED_AXIS_LIMITS": BrakeLimitCONFIGURED_AXIS_LIMITS, +} + +func (v BrakeLimit) String() string { + if s, ok := EnumNamesBrakeLimit[v]; ok { + return s + } + return "BrakeLimit(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/BrakingDistanceType.go b/pkg/fbs/motion/core/fbtypes/BrakingDistanceType.go index 6d22d96..9d317c4 100644 --- a/pkg/fbs/motion/core/fbtypes/BrakingDistanceType.go +++ b/pkg/fbs/motion/core/fbtypes/BrakingDistanceType.go @@ -1,36 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// braking distance type -type BrakingDistanceType int8 - -const ( - /// invalid braking distance type - BrakingDistanceTypeUNDEFINED BrakingDistanceType = 0 - /// emergency stop distance - BrakingDistanceTypeESTOP BrakingDistanceType = 1 - /// soft stop distance (corresponding to setting override to 0) - BrakingDistanceTypeSOFT_STOP BrakingDistanceType = 2 -) - -var EnumNamesBrakingDistanceType = map[BrakingDistanceType]string{ - BrakingDistanceTypeUNDEFINED: "UNDEFINED", - BrakingDistanceTypeESTOP: "ESTOP", - BrakingDistanceTypeSOFT_STOP: "SOFT_STOP", -} - -var EnumValuesBrakingDistanceType = map[string]BrakingDistanceType{ - "UNDEFINED": BrakingDistanceTypeUNDEFINED, - "ESTOP": BrakingDistanceTypeESTOP, - "SOFT_STOP": BrakingDistanceTypeSOFT_STOP, -} - -func (v BrakingDistanceType) String() string { - if s, ok := EnumNamesBrakingDistanceType[v]; ok { - return s - } - return "BrakingDistanceType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// braking distance type +type BrakingDistanceType int8 + +const ( + /// invalid braking distance type + BrakingDistanceTypeUNDEFINED BrakingDistanceType = 0 + /// emergency stop distance + BrakingDistanceTypeESTOP BrakingDistanceType = 1 + /// soft stop distance (corresponding to setting override to 0) + BrakingDistanceTypeSOFT_STOP BrakingDistanceType = 2 +) + +var EnumNamesBrakingDistanceType = map[BrakingDistanceType]string{ + BrakingDistanceTypeUNDEFINED: "UNDEFINED", + BrakingDistanceTypeESTOP: "ESTOP", + BrakingDistanceTypeSOFT_STOP: "SOFT_STOP", +} + +var EnumValuesBrakingDistanceType = map[string]BrakingDistanceType{ + "UNDEFINED": BrakingDistanceTypeUNDEFINED, + "ESTOP": BrakingDistanceTypeESTOP, + "SOFT_STOP": BrakingDistanceTypeSOFT_STOP, +} + +func (v BrakingDistanceType) String() string { + if s, ok := EnumNamesBrakingDistanceType[v]; ok { + return s + } + return "BrakingDistanceType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/Capability.go b/pkg/fbs/motion/core/fbtypes/Capability.go index 275fc0b..bb8f010 100644 --- a/pkg/fbs/motion/core/fbtypes/Capability.go +++ b/pkg/fbs/motion/core/fbtypes/Capability.go @@ -1,138 +1,138 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Response for a single capability -type CapabilityT struct { - Count uint32 - MainDiag uint32 - DetailDiag uint32 - AddInfo string -} - -func (t *CapabilityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - addInfoOffset := builder.CreateString(t.AddInfo) - CapabilityStart(builder) - CapabilityAddCount(builder, t.Count) - CapabilityAddMainDiag(builder, t.MainDiag) - CapabilityAddDetailDiag(builder, t.DetailDiag) - CapabilityAddAddInfo(builder, addInfoOffset) - return CapabilityEnd(builder) -} - -func (rcv *Capability) UnPackTo(t *CapabilityT) { - t.Count = rcv.Count() - t.MainDiag = rcv.MainDiag() - t.DetailDiag = rcv.DetailDiag() - t.AddInfo = string(rcv.AddInfo()) -} - -func (rcv *Capability) UnPack() *CapabilityT { - if rcv == nil { return nil } - t := &CapabilityT{} - rcv.UnPackTo(t) - return t -} - -type Capability struct { - _tab flatbuffers.Table -} - -func GetRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Capability{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Capability{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Capability) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Capability) Table() flatbuffers.Table { - return rcv._tab -} - -/// how many items are allowed by the system or the ressource? (when true/false then 1 represents true and 0 represents false) -func (rcv *Capability) Count() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// how many items are allowed by the system or the ressource? (when true/false then 1 represents true and 0 represents false) -func (rcv *Capability) MutateCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// in case of count==0: get here the main diagnosis code, why the capability is missing -func (rcv *Capability) MainDiag() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// in case of count==0: get here the main diagnosis code, why the capability is missing -func (rcv *Capability) MutateMainDiag(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -/// in case of count==0: get here the detail diagnosis code, why the capability is missing -func (rcv *Capability) DetailDiag() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// in case of count==0: get here the detail diagnosis code, why the capability is missing -func (rcv *Capability) MutateDetailDiag(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -/// in case of count==0: get here additional information text, why the capability is missing -func (rcv *Capability) AddInfo() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// in case of count==0: get here additional information text, why the capability is missing -func CapabilityStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func CapabilityAddCount(builder *flatbuffers.Builder, count uint32) { - builder.PrependUint32Slot(0, count, 0) -} -func CapabilityAddMainDiag(builder *flatbuffers.Builder, mainDiag uint32) { - builder.PrependUint32Slot(1, mainDiag, 0) -} -func CapabilityAddDetailDiag(builder *flatbuffers.Builder, detailDiag uint32) { - builder.PrependUint32Slot(2, detailDiag, 0) -} -func CapabilityAddAddInfo(builder *flatbuffers.Builder, addInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(addInfo), 0) -} -func CapabilityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Response for a single capability +type CapabilityT struct { + Count uint32 + MainDiag uint32 + DetailDiag uint32 + AddInfo string +} + +func (t *CapabilityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + addInfoOffset := builder.CreateString(t.AddInfo) + CapabilityStart(builder) + CapabilityAddCount(builder, t.Count) + CapabilityAddMainDiag(builder, t.MainDiag) + CapabilityAddDetailDiag(builder, t.DetailDiag) + CapabilityAddAddInfo(builder, addInfoOffset) + return CapabilityEnd(builder) +} + +func (rcv *Capability) UnPackTo(t *CapabilityT) { + t.Count = rcv.Count() + t.MainDiag = rcv.MainDiag() + t.DetailDiag = rcv.DetailDiag() + t.AddInfo = string(rcv.AddInfo()) +} + +func (rcv *Capability) UnPack() *CapabilityT { + if rcv == nil { return nil } + t := &CapabilityT{} + rcv.UnPackTo(t) + return t +} + +type Capability struct { + _tab flatbuffers.Table +} + +func GetRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Capability{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCapability(buf []byte, offset flatbuffers.UOffsetT) *Capability { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Capability{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Capability) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Capability) Table() flatbuffers.Table { + return rcv._tab +} + +/// how many items are allowed by the system or the ressource? (when true/false then 1 represents true and 0 represents false) +func (rcv *Capability) Count() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// how many items are allowed by the system or the ressource? (when true/false then 1 represents true and 0 represents false) +func (rcv *Capability) MutateCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// in case of count==0: get here the main diagnosis code, why the capability is missing +func (rcv *Capability) MainDiag() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// in case of count==0: get here the main diagnosis code, why the capability is missing +func (rcv *Capability) MutateMainDiag(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// in case of count==0: get here the detail diagnosis code, why the capability is missing +func (rcv *Capability) DetailDiag() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// in case of count==0: get here the detail diagnosis code, why the capability is missing +func (rcv *Capability) MutateDetailDiag(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +/// in case of count==0: get here additional information text, why the capability is missing +func (rcv *Capability) AddInfo() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// in case of count==0: get here additional information text, why the capability is missing +func CapabilityStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func CapabilityAddCount(builder *flatbuffers.Builder, count uint32) { + builder.PrependUint32Slot(0, count, 0) +} +func CapabilityAddMainDiag(builder *flatbuffers.Builder, mainDiag uint32) { + builder.PrependUint32Slot(1, mainDiag, 0) +} +func CapabilityAddDetailDiag(builder *flatbuffers.Builder, detailDiag uint32) { + builder.PrependUint32Slot(2, detailDiag, 0) +} +func CapabilityAddAddInfo(builder *flatbuffers.Builder, addInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(addInfo), 0) +} +func CapabilityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/CmdOptNoParam.go b/pkg/fbs/motion/core/fbtypes/CmdOptNoParam.go index 506b98a..89e78b0 100644 --- a/pkg/fbs/motion/core/fbtypes/CmdOptNoParam.go +++ b/pkg/fbs/motion/core/fbtypes/CmdOptNoParam.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for all command options, that have no parameters (except the perm. type) -type CmdOptNoParamT struct { - PermType string -} - -func (t *CmdOptNoParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - CmdOptNoParamStart(builder) - CmdOptNoParamAddPermType(builder, permTypeOffset) - return CmdOptNoParamEnd(builder) -} - -func (rcv *CmdOptNoParam) UnPackTo(t *CmdOptNoParamT) { - t.PermType = string(rcv.PermType()) -} - -func (rcv *CmdOptNoParam) UnPack() *CmdOptNoParamT { - if rcv == nil { return nil } - t := &CmdOptNoParamT{} - rcv.UnPackTo(t) - return t -} - -type CmdOptNoParam struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOptNoParam(buf []byte, offset flatbuffers.UOffsetT) *CmdOptNoParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOptNoParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOptNoParam(buf []byte, offset flatbuffers.UOffsetT) *CmdOptNoParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOptNoParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOptNoParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOptNoParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "PermOn") -func (rcv *CmdOptNoParam) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "PermOn") -func CmdOptNoParamStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CmdOptNoParamAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func CmdOptNoParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for all command options, that have no parameters (except the perm. type) +type CmdOptNoParamT struct { + PermType string +} + +func (t *CmdOptNoParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + CmdOptNoParamStart(builder) + CmdOptNoParamAddPermType(builder, permTypeOffset) + return CmdOptNoParamEnd(builder) +} + +func (rcv *CmdOptNoParam) UnPackTo(t *CmdOptNoParamT) { + t.PermType = string(rcv.PermType()) +} + +func (rcv *CmdOptNoParam) UnPack() *CmdOptNoParamT { + if rcv == nil { return nil } + t := &CmdOptNoParamT{} + rcv.UnPackTo(t) + return t +} + +type CmdOptNoParam struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOptNoParam(buf []byte, offset flatbuffers.UOffsetT) *CmdOptNoParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOptNoParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOptNoParam(buf []byte, offset flatbuffers.UOffsetT) *CmdOptNoParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOptNoParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOptNoParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOptNoParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "PermOn") +func (rcv *CmdOptNoParam) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "PermOn") +func CmdOptNoParamStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CmdOptNoParamAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func CmdOptNoParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/CmdSource.go b/pkg/fbs/motion/core/fbtypes/CmdSource.go index d7d5f41..a19157f 100644 --- a/pkg/fbs/motion/core/fbtypes/CmdSource.go +++ b/pkg/fbs/motion/core/fbtypes/CmdSource.go @@ -1,115 +1,115 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// command source (by which interface was this command inserted into the system (e.g. "PLC")) -type CmdSourceT struct { - Type string - Name string - Line uint64 -} - -func (t *CmdSourceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - typeOffset := builder.CreateString(t.Type) - nameOffset := builder.CreateString(t.Name) - CmdSourceStart(builder) - CmdSourceAddType(builder, typeOffset) - CmdSourceAddName(builder, nameOffset) - CmdSourceAddLine(builder, t.Line) - return CmdSourceEnd(builder) -} - -func (rcv *CmdSource) UnPackTo(t *CmdSourceT) { - t.Type = string(rcv.Type()) - t.Name = string(rcv.Name()) - t.Line = rcv.Line() -} - -func (rcv *CmdSource) UnPack() *CmdSourceT { - if rcv == nil { return nil } - t := &CmdSourceT{} - rcv.UnPackTo(t) - return t -} - -type CmdSource struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdSource(buf []byte, offset flatbuffers.UOffsetT) *CmdSource { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdSource{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdSource(buf []byte, offset flatbuffers.UOffsetT) *CmdSource { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdSource{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdSource) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdSource) Table() flatbuffers.Table { - return rcv._tab -} - -/// interface type (e.g. "PLC" or "SCRIPT") -func (rcv *CmdSource) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// interface type (e.g. "PLC" or "SCRIPT") -/// name identifier (depends on interface type, e.g. this is the file name of a script when interface type is "SCRIPT") -func (rcv *CmdSource) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name identifier (depends on interface type, e.g. this is the file name of a script when interface type is "SCRIPT") -/// line identifier (depends on interface type, e.g. this is the line where the command is in the script when interface type is "SCRIPT") -func (rcv *CmdSource) Line() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -/// line identifier (depends on interface type, e.g. this is the line where the command is in the script when interface type is "SCRIPT") -func (rcv *CmdSource) MutateLine(n uint64) bool { - return rcv._tab.MutateUint64Slot(8, n) -} - -func CmdSourceStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CmdSourceAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(type_), 0) -} -func CmdSourceAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) -} -func CmdSourceAddLine(builder *flatbuffers.Builder, line uint64) { - builder.PrependUint64Slot(2, line, 0) -} -func CmdSourceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// command source (by which interface was this command inserted into the system (e.g. "PLC")) +type CmdSourceT struct { + Type string + Name string + Line uint64 +} + +func (t *CmdSourceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + typeOffset := builder.CreateString(t.Type) + nameOffset := builder.CreateString(t.Name) + CmdSourceStart(builder) + CmdSourceAddType(builder, typeOffset) + CmdSourceAddName(builder, nameOffset) + CmdSourceAddLine(builder, t.Line) + return CmdSourceEnd(builder) +} + +func (rcv *CmdSource) UnPackTo(t *CmdSourceT) { + t.Type = string(rcv.Type()) + t.Name = string(rcv.Name()) + t.Line = rcv.Line() +} + +func (rcv *CmdSource) UnPack() *CmdSourceT { + if rcv == nil { return nil } + t := &CmdSourceT{} + rcv.UnPackTo(t) + return t +} + +type CmdSource struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdSource(buf []byte, offset flatbuffers.UOffsetT) *CmdSource { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdSource{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdSource(buf []byte, offset flatbuffers.UOffsetT) *CmdSource { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdSource{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdSource) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdSource) Table() flatbuffers.Table { + return rcv._tab +} + +/// interface type (e.g. "PLC" or "SCRIPT") +func (rcv *CmdSource) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// interface type (e.g. "PLC" or "SCRIPT") +/// name identifier (depends on interface type, e.g. this is the file name of a script when interface type is "SCRIPT") +func (rcv *CmdSource) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name identifier (depends on interface type, e.g. this is the file name of a script when interface type is "SCRIPT") +/// line identifier (depends on interface type, e.g. this is the line where the command is in the script when interface type is "SCRIPT") +func (rcv *CmdSource) Line() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// line identifier (depends on interface type, e.g. this is the line where the command is in the script when interface type is "SCRIPT") +func (rcv *CmdSource) MutateLine(n uint64) bool { + return rcv._tab.MutateUint64Slot(8, n) +} + +func CmdSourceStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CmdSourceAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(type_), 0) +} +func CmdSourceAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) +} +func CmdSourceAddLine(builder *flatbuffers.Builder, line uint64) { + builder.PrependUint64Slot(2, line, 0) +} +func CmdSourceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/DiagInfo.go b/pkg/fbs/motion/core/fbtypes/DiagInfo.go index 0a452d1..9506239 100644 --- a/pkg/fbs/motion/core/fbtypes/DiagInfo.go +++ b/pkg/fbs/motion/core/fbtypes/DiagInfo.go @@ -1,243 +1,243 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// informations on the last diagnosis message of this motion object or of the system -type DiagInfoT struct { - MainDiagCode uint32 - DetailedDiagCode uint32 - ObjName string - ObjURI string - Source string - AddInfo string - FirstMainDiagCode uint32 - FirstDetailedDiagCode uint32 - FirstSource string - FirstAddInfo string -} - -func (t *DiagInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - objNameOffset := builder.CreateString(t.ObjName) - objURIOffset := builder.CreateString(t.ObjURI) - sourceOffset := builder.CreateString(t.Source) - addInfoOffset := builder.CreateString(t.AddInfo) - firstSourceOffset := builder.CreateString(t.FirstSource) - firstAddInfoOffset := builder.CreateString(t.FirstAddInfo) - DiagInfoStart(builder) - DiagInfoAddMainDiagCode(builder, t.MainDiagCode) - DiagInfoAddDetailedDiagCode(builder, t.DetailedDiagCode) - DiagInfoAddObjName(builder, objNameOffset) - DiagInfoAddObjURI(builder, objURIOffset) - DiagInfoAddSource(builder, sourceOffset) - DiagInfoAddAddInfo(builder, addInfoOffset) - DiagInfoAddFirstMainDiagCode(builder, t.FirstMainDiagCode) - DiagInfoAddFirstDetailedDiagCode(builder, t.FirstDetailedDiagCode) - DiagInfoAddFirstSource(builder, firstSourceOffset) - DiagInfoAddFirstAddInfo(builder, firstAddInfoOffset) - return DiagInfoEnd(builder) -} - -func (rcv *DiagInfo) UnPackTo(t *DiagInfoT) { - t.MainDiagCode = rcv.MainDiagCode() - t.DetailedDiagCode = rcv.DetailedDiagCode() - t.ObjName = string(rcv.ObjName()) - t.ObjURI = string(rcv.ObjURI()) - t.Source = string(rcv.Source()) - t.AddInfo = string(rcv.AddInfo()) - t.FirstMainDiagCode = rcv.FirstMainDiagCode() - t.FirstDetailedDiagCode = rcv.FirstDetailedDiagCode() - t.FirstSource = string(rcv.FirstSource()) - t.FirstAddInfo = string(rcv.FirstAddInfo()) -} - -func (rcv *DiagInfo) UnPack() *DiagInfoT { - if rcv == nil { return nil } - t := &DiagInfoT{} - rcv.UnPackTo(t) - return t -} - -type DiagInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagInfo) Table() flatbuffers.Table { - return rcv._tab -} - -/// main diagnosis code (refer to the diagnosis data base) -func (rcv *DiagInfo) MainDiagCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// main diagnosis code (refer to the diagnosis data base) -func (rcv *DiagInfo) MutateMainDiagCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// detailed diagnosis code (refer to the diagnosis data base) -func (rcv *DiagInfo) DetailedDiagCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// detailed diagnosis code (refer to the diagnosis data base) -func (rcv *DiagInfo) MutateDetailedDiagCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -/// name of the motion object -func (rcv *DiagInfo) ObjName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the motion object -/// URI of the motion object -func (rcv *DiagInfo) ObjURI() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// URI of the motion object -/// command source, when the diagnosis refers to a command -func (rcv *DiagInfo) Source() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// command source, when the diagnosis refers to a command -/// additional information on the error cause to help the user -func (rcv *DiagInfo) AddInfo() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// additional information on the error cause to help the user -/// main diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) -func (rcv *DiagInfo) FirstMainDiagCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// main diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) -func (rcv *DiagInfo) MutateFirstMainDiagCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -/// detailed diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) -func (rcv *DiagInfo) FirstDetailedDiagCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// detailed diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) -func (rcv *DiagInfo) MutateFirstDetailedDiagCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(18, n) -} - -/// command source of the first error after a reset or booting, when the diagnosis refers to a command -func (rcv *DiagInfo) FirstSource() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// command source of the first error after a reset or booting, when the diagnosis refers to a command -/// additional information on the error cause to help the user of the first error after a reset or booting -func (rcv *DiagInfo) FirstAddInfo() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// additional information on the error cause to help the user of the first error after a reset or booting -func DiagInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(10) -} -func DiagInfoAddMainDiagCode(builder *flatbuffers.Builder, mainDiagCode uint32) { - builder.PrependUint32Slot(0, mainDiagCode, 0) -} -func DiagInfoAddDetailedDiagCode(builder *flatbuffers.Builder, detailedDiagCode uint32) { - builder.PrependUint32Slot(1, detailedDiagCode, 0) -} -func DiagInfoAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(objName), 0) -} -func DiagInfoAddObjURI(builder *flatbuffers.Builder, objURI flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(objURI), 0) -} -func DiagInfoAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(source), 0) -} -func DiagInfoAddAddInfo(builder *flatbuffers.Builder, addInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(addInfo), 0) -} -func DiagInfoAddFirstMainDiagCode(builder *flatbuffers.Builder, firstMainDiagCode uint32) { - builder.PrependUint32Slot(6, firstMainDiagCode, 0) -} -func DiagInfoAddFirstDetailedDiagCode(builder *flatbuffers.Builder, firstDetailedDiagCode uint32) { - builder.PrependUint32Slot(7, firstDetailedDiagCode, 0) -} -func DiagInfoAddFirstSource(builder *flatbuffers.Builder, firstSource flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(firstSource), 0) -} -func DiagInfoAddFirstAddInfo(builder *flatbuffers.Builder, firstAddInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(firstAddInfo), 0) -} -func DiagInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// informations on the last diagnosis message of this motion object or of the system +type DiagInfoT struct { + MainDiagCode uint32 + DetailedDiagCode uint32 + ObjName string + ObjURI string + Source string + AddInfo string + FirstMainDiagCode uint32 + FirstDetailedDiagCode uint32 + FirstSource string + FirstAddInfo string +} + +func (t *DiagInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objNameOffset := builder.CreateString(t.ObjName) + objURIOffset := builder.CreateString(t.ObjURI) + sourceOffset := builder.CreateString(t.Source) + addInfoOffset := builder.CreateString(t.AddInfo) + firstSourceOffset := builder.CreateString(t.FirstSource) + firstAddInfoOffset := builder.CreateString(t.FirstAddInfo) + DiagInfoStart(builder) + DiagInfoAddMainDiagCode(builder, t.MainDiagCode) + DiagInfoAddDetailedDiagCode(builder, t.DetailedDiagCode) + DiagInfoAddObjName(builder, objNameOffset) + DiagInfoAddObjURI(builder, objURIOffset) + DiagInfoAddSource(builder, sourceOffset) + DiagInfoAddAddInfo(builder, addInfoOffset) + DiagInfoAddFirstMainDiagCode(builder, t.FirstMainDiagCode) + DiagInfoAddFirstDetailedDiagCode(builder, t.FirstDetailedDiagCode) + DiagInfoAddFirstSource(builder, firstSourceOffset) + DiagInfoAddFirstAddInfo(builder, firstAddInfoOffset) + return DiagInfoEnd(builder) +} + +func (rcv *DiagInfo) UnPackTo(t *DiagInfoT) { + t.MainDiagCode = rcv.MainDiagCode() + t.DetailedDiagCode = rcv.DetailedDiagCode() + t.ObjName = string(rcv.ObjName()) + t.ObjURI = string(rcv.ObjURI()) + t.Source = string(rcv.Source()) + t.AddInfo = string(rcv.AddInfo()) + t.FirstMainDiagCode = rcv.FirstMainDiagCode() + t.FirstDetailedDiagCode = rcv.FirstDetailedDiagCode() + t.FirstSource = string(rcv.FirstSource()) + t.FirstAddInfo = string(rcv.FirstAddInfo()) +} + +func (rcv *DiagInfo) UnPack() *DiagInfoT { + if rcv == nil { return nil } + t := &DiagInfoT{} + rcv.UnPackTo(t) + return t +} + +type DiagInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagInfo) Table() flatbuffers.Table { + return rcv._tab +} + +/// main diagnosis code (refer to the diagnosis data base) +func (rcv *DiagInfo) MainDiagCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// main diagnosis code (refer to the diagnosis data base) +func (rcv *DiagInfo) MutateMainDiagCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// detailed diagnosis code (refer to the diagnosis data base) +func (rcv *DiagInfo) DetailedDiagCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// detailed diagnosis code (refer to the diagnosis data base) +func (rcv *DiagInfo) MutateDetailedDiagCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// name of the motion object +func (rcv *DiagInfo) ObjName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the motion object +/// URI of the motion object +func (rcv *DiagInfo) ObjURI() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// URI of the motion object +/// command source, when the diagnosis refers to a command +func (rcv *DiagInfo) Source() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// command source, when the diagnosis refers to a command +/// additional information on the error cause to help the user +func (rcv *DiagInfo) AddInfo() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// additional information on the error cause to help the user +/// main diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) +func (rcv *DiagInfo) FirstMainDiagCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// main diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) +func (rcv *DiagInfo) MutateFirstMainDiagCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +/// detailed diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) +func (rcv *DiagInfo) FirstDetailedDiagCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// detailed diagnosis code of the first error after a reset or booting (refer to the diagnosis data base) +func (rcv *DiagInfo) MutateFirstDetailedDiagCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +/// command source of the first error after a reset or booting, when the diagnosis refers to a command +func (rcv *DiagInfo) FirstSource() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// command source of the first error after a reset or booting, when the diagnosis refers to a command +/// additional information on the error cause to help the user of the first error after a reset or booting +func (rcv *DiagInfo) FirstAddInfo() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// additional information on the error cause to help the user of the first error after a reset or booting +func DiagInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(10) +} +func DiagInfoAddMainDiagCode(builder *flatbuffers.Builder, mainDiagCode uint32) { + builder.PrependUint32Slot(0, mainDiagCode, 0) +} +func DiagInfoAddDetailedDiagCode(builder *flatbuffers.Builder, detailedDiagCode uint32) { + builder.PrependUint32Slot(1, detailedDiagCode, 0) +} +func DiagInfoAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(objName), 0) +} +func DiagInfoAddObjURI(builder *flatbuffers.Builder, objURI flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(objURI), 0) +} +func DiagInfoAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(source), 0) +} +func DiagInfoAddAddInfo(builder *flatbuffers.Builder, addInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(addInfo), 0) +} +func DiagInfoAddFirstMainDiagCode(builder *flatbuffers.Builder, firstMainDiagCode uint32) { + builder.PrependUint32Slot(6, firstMainDiagCode, 0) +} +func DiagInfoAddFirstDetailedDiagCode(builder *flatbuffers.Builder, firstDetailedDiagCode uint32) { + builder.PrependUint32Slot(7, firstDetailedDiagCode, 0) +} +func DiagInfoAddFirstSource(builder *flatbuffers.Builder, firstSource flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(firstSource), 0) +} +func DiagInfoAddFirstAddInfo(builder *flatbuffers.Builder, firstAddInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(firstAddInfo), 0) +} +func DiagInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/DynamicLimits.go b/pkg/fbs/motion/core/fbtypes/DynamicLimits.go index 4077b40..aaaedb9 100644 --- a/pkg/fbs/motion/core/fbtypes/DynamicLimits.go +++ b/pkg/fbs/motion/core/fbtypes/DynamicLimits.go @@ -1,161 +1,161 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// set of dynamic limits (for commands) -type DynamicLimitsT struct { - Vel float64 - Acc float64 - Dec float64 - JrkAcc float64 - JrkDec float64 -} - -func (t *DynamicLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - DynamicLimitsStart(builder) - DynamicLimitsAddVel(builder, t.Vel) - DynamicLimitsAddAcc(builder, t.Acc) - DynamicLimitsAddDec(builder, t.Dec) - DynamicLimitsAddJrkAcc(builder, t.JrkAcc) - DynamicLimitsAddJrkDec(builder, t.JrkDec) - return DynamicLimitsEnd(builder) -} - -func (rcv *DynamicLimits) UnPackTo(t *DynamicLimitsT) { - t.Vel = rcv.Vel() - t.Acc = rcv.Acc() - t.Dec = rcv.Dec() - t.JrkAcc = rcv.JrkAcc() - t.JrkDec = rcv.JrkDec() -} - -func (rcv *DynamicLimits) UnPack() *DynamicLimitsT { - if rcv == nil { return nil } - t := &DynamicLimitsT{} - rcv.UnPackTo(t) - return t -} - -type DynamicLimits struct { - _tab flatbuffers.Table -} - -func GetRootAsDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimits { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DynamicLimits{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimits { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DynamicLimits{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DynamicLimits) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DynamicLimits) Table() flatbuffers.Table { - return rcv._tab -} - -/// velocity limit (must be greater than zero) -func (rcv *DynamicLimits) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// velocity limit (must be greater than zero) -func (rcv *DynamicLimits) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// acceleration limit (must be greater than zero) -func (rcv *DynamicLimits) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// acceleration limit (must be greater than zero) -func (rcv *DynamicLimits) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// deceleration limit (must be greater than zero) -func (rcv *DynamicLimits) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// deceleration limit (must be greater than zero) -func (rcv *DynamicLimits) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimits) JrkAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimits) MutateJrkAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimits) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimits) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -func DynamicLimitsStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func DynamicLimitsAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(0, vel, 0.0) -} -func DynamicLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(1, acc, 0.0) -} -func DynamicLimitsAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(2, dec, 0.0) -} -func DynamicLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { - builder.PrependFloat64Slot(3, jrkAcc, 0.0) -} -func DynamicLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(4, jrkDec, 0.0) -} -func DynamicLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// set of dynamic limits (for commands) +type DynamicLimitsT struct { + Vel float64 + Acc float64 + Dec float64 + JrkAcc float64 + JrkDec float64 +} + +func (t *DynamicLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + DynamicLimitsStart(builder) + DynamicLimitsAddVel(builder, t.Vel) + DynamicLimitsAddAcc(builder, t.Acc) + DynamicLimitsAddDec(builder, t.Dec) + DynamicLimitsAddJrkAcc(builder, t.JrkAcc) + DynamicLimitsAddJrkDec(builder, t.JrkDec) + return DynamicLimitsEnd(builder) +} + +func (rcv *DynamicLimits) UnPackTo(t *DynamicLimitsT) { + t.Vel = rcv.Vel() + t.Acc = rcv.Acc() + t.Dec = rcv.Dec() + t.JrkAcc = rcv.JrkAcc() + t.JrkDec = rcv.JrkDec() +} + +func (rcv *DynamicLimits) UnPack() *DynamicLimitsT { + if rcv == nil { return nil } + t := &DynamicLimitsT{} + rcv.UnPackTo(t) + return t +} + +type DynamicLimits struct { + _tab flatbuffers.Table +} + +func GetRootAsDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimits { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DynamicLimits{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDynamicLimits(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimits { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DynamicLimits{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DynamicLimits) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DynamicLimits) Table() flatbuffers.Table { + return rcv._tab +} + +/// velocity limit (must be greater than zero) +func (rcv *DynamicLimits) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// velocity limit (must be greater than zero) +func (rcv *DynamicLimits) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// acceleration limit (must be greater than zero) +func (rcv *DynamicLimits) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// acceleration limit (must be greater than zero) +func (rcv *DynamicLimits) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// deceleration limit (must be greater than zero) +func (rcv *DynamicLimits) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// deceleration limit (must be greater than zero) +func (rcv *DynamicLimits) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimits) JrkAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimits) MutateJrkAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimits) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimits) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +func DynamicLimitsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func DynamicLimitsAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(0, vel, 0.0) +} +func DynamicLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(1, acc, 0.0) +} +func DynamicLimitsAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(2, dec, 0.0) +} +func DynamicLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { + builder.PrependFloat64Slot(3, jrkAcc, 0.0) +} +func DynamicLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(4, jrkDec, 0.0) +} +func DynamicLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/DynamicLimitsState.go b/pkg/fbs/motion/core/fbtypes/DynamicLimitsState.go index 00eda06..1bb75db 100644 --- a/pkg/fbs/motion/core/fbtypes/DynamicLimitsState.go +++ b/pkg/fbs/motion/core/fbtypes/DynamicLimitsState.go @@ -1,246 +1,246 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// set of dynamic limits (for reading them in states) -type DynamicLimitsStateT struct { - Vel float64 - Acc float64 - Dec float64 - JrkAcc float64 - JrkDec float64 - VelUnit string - AccUnit string - DecUnit string - JrkAccUnit string - JrkDecUnit string -} - -func (t *DynamicLimitsStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - velUnitOffset := builder.CreateString(t.VelUnit) - accUnitOffset := builder.CreateString(t.AccUnit) - decUnitOffset := builder.CreateString(t.DecUnit) - jrkAccUnitOffset := builder.CreateString(t.JrkAccUnit) - jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) - DynamicLimitsStateStart(builder) - DynamicLimitsStateAddVel(builder, t.Vel) - DynamicLimitsStateAddAcc(builder, t.Acc) - DynamicLimitsStateAddDec(builder, t.Dec) - DynamicLimitsStateAddJrkAcc(builder, t.JrkAcc) - DynamicLimitsStateAddJrkDec(builder, t.JrkDec) - DynamicLimitsStateAddVelUnit(builder, velUnitOffset) - DynamicLimitsStateAddAccUnit(builder, accUnitOffset) - DynamicLimitsStateAddDecUnit(builder, decUnitOffset) - DynamicLimitsStateAddJrkAccUnit(builder, jrkAccUnitOffset) - DynamicLimitsStateAddJrkDecUnit(builder, jrkDecUnitOffset) - return DynamicLimitsStateEnd(builder) -} - -func (rcv *DynamicLimitsState) UnPackTo(t *DynamicLimitsStateT) { - t.Vel = rcv.Vel() - t.Acc = rcv.Acc() - t.Dec = rcv.Dec() - t.JrkAcc = rcv.JrkAcc() - t.JrkDec = rcv.JrkDec() - t.VelUnit = string(rcv.VelUnit()) - t.AccUnit = string(rcv.AccUnit()) - t.DecUnit = string(rcv.DecUnit()) - t.JrkAccUnit = string(rcv.JrkAccUnit()) - t.JrkDecUnit = string(rcv.JrkDecUnit()) -} - -func (rcv *DynamicLimitsState) UnPack() *DynamicLimitsStateT { - if rcv == nil { return nil } - t := &DynamicLimitsStateT{} - rcv.UnPackTo(t) - return t -} - -type DynamicLimitsState struct { - _tab flatbuffers.Table -} - -func GetRootAsDynamicLimitsState(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimitsState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DynamicLimitsState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDynamicLimitsState(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimitsState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DynamicLimitsState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DynamicLimitsState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DynamicLimitsState) Table() flatbuffers.Table { - return rcv._tab -} - -/// velocity limit (must be greater than zero) -func (rcv *DynamicLimitsState) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// velocity limit (must be greater than zero) -func (rcv *DynamicLimitsState) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// acceleration limit (must be greater than zero) -func (rcv *DynamicLimitsState) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// acceleration limit (must be greater than zero) -func (rcv *DynamicLimitsState) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// deceleration limit (must be greater than zero) -func (rcv *DynamicLimitsState) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// deceleration limit (must be greater than zero) -func (rcv *DynamicLimitsState) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimitsState) JrkAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimitsState) MutateJrkAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimitsState) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) -func (rcv *DynamicLimitsState) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -/// unit of the velocity limit -func (rcv *DynamicLimitsState) VelUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the velocity limit -/// unit of the acceleration limit -func (rcv *DynamicLimitsState) AccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the acceleration limit -/// unit of the deceleration limit -func (rcv *DynamicLimitsState) DecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the deceleration limit -/// unit of the acceleration jerk limit -func (rcv *DynamicLimitsState) JrkAccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the acceleration jerk limit -/// unit of the deceleration jerk limit -func (rcv *DynamicLimitsState) JrkDecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the deceleration jerk limit -func DynamicLimitsStateStart(builder *flatbuffers.Builder) { - builder.StartObject(10) -} -func DynamicLimitsStateAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(0, vel, 0.0) -} -func DynamicLimitsStateAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(1, acc, 0.0) -} -func DynamicLimitsStateAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(2, dec, 0.0) -} -func DynamicLimitsStateAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { - builder.PrependFloat64Slot(3, jrkAcc, 0.0) -} -func DynamicLimitsStateAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(4, jrkDec, 0.0) -} -func DynamicLimitsStateAddVelUnit(builder *flatbuffers.Builder, velUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(velUnit), 0) -} -func DynamicLimitsStateAddAccUnit(builder *flatbuffers.Builder, accUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(accUnit), 0) -} -func DynamicLimitsStateAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(decUnit), 0) -} -func DynamicLimitsStateAddJrkAccUnit(builder *flatbuffers.Builder, jrkAccUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(jrkAccUnit), 0) -} -func DynamicLimitsStateAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(jrkDecUnit), 0) -} -func DynamicLimitsStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// set of dynamic limits (for reading them in states) +type DynamicLimitsStateT struct { + Vel float64 + Acc float64 + Dec float64 + JrkAcc float64 + JrkDec float64 + VelUnit string + AccUnit string + DecUnit string + JrkAccUnit string + JrkDecUnit string +} + +func (t *DynamicLimitsStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + velUnitOffset := builder.CreateString(t.VelUnit) + accUnitOffset := builder.CreateString(t.AccUnit) + decUnitOffset := builder.CreateString(t.DecUnit) + jrkAccUnitOffset := builder.CreateString(t.JrkAccUnit) + jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) + DynamicLimitsStateStart(builder) + DynamicLimitsStateAddVel(builder, t.Vel) + DynamicLimitsStateAddAcc(builder, t.Acc) + DynamicLimitsStateAddDec(builder, t.Dec) + DynamicLimitsStateAddJrkAcc(builder, t.JrkAcc) + DynamicLimitsStateAddJrkDec(builder, t.JrkDec) + DynamicLimitsStateAddVelUnit(builder, velUnitOffset) + DynamicLimitsStateAddAccUnit(builder, accUnitOffset) + DynamicLimitsStateAddDecUnit(builder, decUnitOffset) + DynamicLimitsStateAddJrkAccUnit(builder, jrkAccUnitOffset) + DynamicLimitsStateAddJrkDecUnit(builder, jrkDecUnitOffset) + return DynamicLimitsStateEnd(builder) +} + +func (rcv *DynamicLimitsState) UnPackTo(t *DynamicLimitsStateT) { + t.Vel = rcv.Vel() + t.Acc = rcv.Acc() + t.Dec = rcv.Dec() + t.JrkAcc = rcv.JrkAcc() + t.JrkDec = rcv.JrkDec() + t.VelUnit = string(rcv.VelUnit()) + t.AccUnit = string(rcv.AccUnit()) + t.DecUnit = string(rcv.DecUnit()) + t.JrkAccUnit = string(rcv.JrkAccUnit()) + t.JrkDecUnit = string(rcv.JrkDecUnit()) +} + +func (rcv *DynamicLimitsState) UnPack() *DynamicLimitsStateT { + if rcv == nil { return nil } + t := &DynamicLimitsStateT{} + rcv.UnPackTo(t) + return t +} + +type DynamicLimitsState struct { + _tab flatbuffers.Table +} + +func GetRootAsDynamicLimitsState(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimitsState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DynamicLimitsState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDynamicLimitsState(buf []byte, offset flatbuffers.UOffsetT) *DynamicLimitsState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DynamicLimitsState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DynamicLimitsState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DynamicLimitsState) Table() flatbuffers.Table { + return rcv._tab +} + +/// velocity limit (must be greater than zero) +func (rcv *DynamicLimitsState) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// velocity limit (must be greater than zero) +func (rcv *DynamicLimitsState) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// acceleration limit (must be greater than zero) +func (rcv *DynamicLimitsState) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// acceleration limit (must be greater than zero) +func (rcv *DynamicLimitsState) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// deceleration limit (must be greater than zero) +func (rcv *DynamicLimitsState) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// deceleration limit (must be greater than zero) +func (rcv *DynamicLimitsState) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimitsState) JrkAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// acceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimitsState) MutateJrkAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimitsState) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// deceleration jerk limit (must be greater than zero OR zero for not jerk limited motion) +func (rcv *DynamicLimitsState) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +/// unit of the velocity limit +func (rcv *DynamicLimitsState) VelUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the velocity limit +/// unit of the acceleration limit +func (rcv *DynamicLimitsState) AccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the acceleration limit +/// unit of the deceleration limit +func (rcv *DynamicLimitsState) DecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the deceleration limit +/// unit of the acceleration jerk limit +func (rcv *DynamicLimitsState) JrkAccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the acceleration jerk limit +/// unit of the deceleration jerk limit +func (rcv *DynamicLimitsState) JrkDecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the deceleration jerk limit +func DynamicLimitsStateStart(builder *flatbuffers.Builder) { + builder.StartObject(10) +} +func DynamicLimitsStateAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(0, vel, 0.0) +} +func DynamicLimitsStateAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(1, acc, 0.0) +} +func DynamicLimitsStateAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(2, dec, 0.0) +} +func DynamicLimitsStateAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { + builder.PrependFloat64Slot(3, jrkAcc, 0.0) +} +func DynamicLimitsStateAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(4, jrkDec, 0.0) +} +func DynamicLimitsStateAddVelUnit(builder *flatbuffers.Builder, velUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(velUnit), 0) +} +func DynamicLimitsStateAddAccUnit(builder *flatbuffers.Builder, accUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(accUnit), 0) +} +func DynamicLimitsStateAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(decUnit), 0) +} +func DynamicLimitsStateAddJrkAccUnit(builder *flatbuffers.Builder, jrkAccUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(jrkAccUnit), 0) +} +func DynamicLimitsStateAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(jrkDecUnit), 0) +} +func DynamicLimitsStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/EstopType.go b/pkg/fbs/motion/core/fbtypes/EstopType.go index 7f0197f..93eafdf 100644 --- a/pkg/fbs/motion/core/fbtypes/EstopType.go +++ b/pkg/fbs/motion/core/fbtypes/EstopType.go @@ -1,44 +1,44 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// type of the E-Stop type -type EstopType int8 - -const ( - /// keep exiting setting of E-Stop type - EstopTypeESTOP_PRESERVE EstopType = -1 - /// E-Stop with axis limitations - EstopTypeESTOP_AXIS_LIMIT EstopType = 0 - /// E-Stop with user set limitations - EstopTypeESTOP_USER_LIMIT EstopType = 1 - /// E-Stop with torque release - EstopTypeESTOP_TORQUE_FREE EstopType = 2 - ///E-Stop with best possible deceleration - EstopTypeESTOP_BEST_POSBLE_DEC EstopType = 3 -) - -var EnumNamesEstopType = map[EstopType]string{ - EstopTypeESTOP_PRESERVE: "ESTOP_PRESERVE", - EstopTypeESTOP_AXIS_LIMIT: "ESTOP_AXIS_LIMIT", - EstopTypeESTOP_USER_LIMIT: "ESTOP_USER_LIMIT", - EstopTypeESTOP_TORQUE_FREE: "ESTOP_TORQUE_FREE", - EstopTypeESTOP_BEST_POSBLE_DEC: "ESTOP_BEST_POSBLE_DEC", -} - -var EnumValuesEstopType = map[string]EstopType{ - "ESTOP_PRESERVE": EstopTypeESTOP_PRESERVE, - "ESTOP_AXIS_LIMIT": EstopTypeESTOP_AXIS_LIMIT, - "ESTOP_USER_LIMIT": EstopTypeESTOP_USER_LIMIT, - "ESTOP_TORQUE_FREE": EstopTypeESTOP_TORQUE_FREE, - "ESTOP_BEST_POSBLE_DEC": EstopTypeESTOP_BEST_POSBLE_DEC, -} - -func (v EstopType) String() string { - if s, ok := EnumNamesEstopType[v]; ok { - return s - } - return "EstopType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of the E-Stop type +type EstopType int8 + +const ( + /// keep exiting setting of E-Stop type + EstopTypeESTOP_PRESERVE EstopType = -1 + /// E-Stop with axis limitations + EstopTypeESTOP_AXIS_LIMIT EstopType = 0 + /// E-Stop with user set limitations + EstopTypeESTOP_USER_LIMIT EstopType = 1 + /// E-Stop with torque release + EstopTypeESTOP_TORQUE_FREE EstopType = 2 + ///E-Stop with best possible deceleration + EstopTypeESTOP_BEST_POSBLE_DEC EstopType = 3 +) + +var EnumNamesEstopType = map[EstopType]string{ + EstopTypeESTOP_PRESERVE: "ESTOP_PRESERVE", + EstopTypeESTOP_AXIS_LIMIT: "ESTOP_AXIS_LIMIT", + EstopTypeESTOP_USER_LIMIT: "ESTOP_USER_LIMIT", + EstopTypeESTOP_TORQUE_FREE: "ESTOP_TORQUE_FREE", + EstopTypeESTOP_BEST_POSBLE_DEC: "ESTOP_BEST_POSBLE_DEC", +} + +var EnumValuesEstopType = map[string]EstopType{ + "ESTOP_PRESERVE": EstopTypeESTOP_PRESERVE, + "ESTOP_AXIS_LIMIT": EstopTypeESTOP_AXIS_LIMIT, + "ESTOP_USER_LIMIT": EstopTypeESTOP_USER_LIMIT, + "ESTOP_TORQUE_FREE": EstopTypeESTOP_TORQUE_FREE, + "ESTOP_BEST_POSBLE_DEC": EstopTypeESTOP_BEST_POSBLE_DEC, +} + +func (v EstopType) String() string { + if s, ok := EnumNamesEstopType[v]; ok { + return s + } + return "EstopType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/FeedGroup.go b/pkg/fbs/motion/core/fbtypes/FeedGroup.go index cc3b80d..323424a 100644 --- a/pkg/fbs/motion/core/fbtypes/FeedGroup.go +++ b/pkg/fbs/motion/core/fbtypes/FeedGroup.go @@ -1,40 +1,40 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// type of the feedGroup -type FeedGroup int8 - -const ( - /// feedGroup x,y,z coordinate without orientation and without additional axes - FeedGroupFG_XYZ FeedGroup = 0 - /// feedGroup x,y,z coordinate with orientation and without additional axes - FeedGroupFG_XYZ_O FeedGroup = 1 - /// feedGroup x,y,z coordinate without orientation and with additional axes - FeedGroupFG_XYZ_A FeedGroup = 2 - /// feedGroup x,y,z coordinate with orientation and with additional axes - FeedGroupFG_XYZ_O_A FeedGroup = 3 -) - -var EnumNamesFeedGroup = map[FeedGroup]string{ - FeedGroupFG_XYZ: "FG_XYZ", - FeedGroupFG_XYZ_O: "FG_XYZ_O", - FeedGroupFG_XYZ_A: "FG_XYZ_A", - FeedGroupFG_XYZ_O_A: "FG_XYZ_O_A", -} - -var EnumValuesFeedGroup = map[string]FeedGroup{ - "FG_XYZ": FeedGroupFG_XYZ, - "FG_XYZ_O": FeedGroupFG_XYZ_O, - "FG_XYZ_A": FeedGroupFG_XYZ_A, - "FG_XYZ_O_A": FeedGroupFG_XYZ_O_A, -} - -func (v FeedGroup) String() string { - if s, ok := EnumNamesFeedGroup[v]; ok { - return s - } - return "FeedGroup(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of the feedGroup +type FeedGroup int8 + +const ( + /// feedGroup x,y,z coordinate without orientation and without additional axes + FeedGroupFG_XYZ FeedGroup = 0 + /// feedGroup x,y,z coordinate with orientation and without additional axes + FeedGroupFG_XYZ_O FeedGroup = 1 + /// feedGroup x,y,z coordinate without orientation and with additional axes + FeedGroupFG_XYZ_A FeedGroup = 2 + /// feedGroup x,y,z coordinate with orientation and with additional axes + FeedGroupFG_XYZ_O_A FeedGroup = 3 +) + +var EnumNamesFeedGroup = map[FeedGroup]string{ + FeedGroupFG_XYZ: "FG_XYZ", + FeedGroupFG_XYZ_O: "FG_XYZ_O", + FeedGroupFG_XYZ_A: "FG_XYZ_A", + FeedGroupFG_XYZ_O_A: "FG_XYZ_O_A", +} + +var EnumValuesFeedGroup = map[string]FeedGroup{ + "FG_XYZ": FeedGroupFG_XYZ, + "FG_XYZ_O": FeedGroupFG_XYZ_O, + "FG_XYZ_A": FeedGroupFG_XYZ_A, + "FG_XYZ_O_A": FeedGroupFG_XYZ_O_A, +} + +func (v FeedGroup) String() string { + if s, ok := EnumNamesFeedGroup[v]; ok { + return s + } + return "FeedGroup(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/FeedGroupSettings.go b/pkg/fbs/motion/core/fbtypes/FeedGroupSettings.go index 226fb39..f0a0287 100644 --- a/pkg/fbs/motion/core/fbtypes/FeedGroupSettings.go +++ b/pkg/fbs/motion/core/fbtypes/FeedGroupSettings.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type FeedGroupSettingsT struct { - Type FeedGroup -} - -func (t *FeedGroupSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - FeedGroupSettingsStart(builder) - FeedGroupSettingsAddType(builder, t.Type) - return FeedGroupSettingsEnd(builder) -} - -func (rcv *FeedGroupSettings) UnPackTo(t *FeedGroupSettingsT) { - t.Type = rcv.Type() -} - -func (rcv *FeedGroupSettings) UnPack() *FeedGroupSettingsT { - if rcv == nil { return nil } - t := &FeedGroupSettingsT{} - rcv.UnPackTo(t) - return t -} - -type FeedGroupSettings struct { - _tab flatbuffers.Table -} - -func GetRootAsFeedGroupSettings(buf []byte, offset flatbuffers.UOffsetT) *FeedGroupSettings { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &FeedGroupSettings{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFeedGroupSettings(buf []byte, offset flatbuffers.UOffsetT) *FeedGroupSettings { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &FeedGroupSettings{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *FeedGroupSettings) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *FeedGroupSettings) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *FeedGroupSettings) Type() FeedGroup { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return FeedGroup(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *FeedGroupSettings) MutateType(n FeedGroup) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func FeedGroupSettingsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func FeedGroupSettingsAddType(builder *flatbuffers.Builder, type_ FeedGroup) { - builder.PrependInt8Slot(0, int8(type_), 0) -} -func FeedGroupSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type FeedGroupSettingsT struct { + Type FeedGroup +} + +func (t *FeedGroupSettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + FeedGroupSettingsStart(builder) + FeedGroupSettingsAddType(builder, t.Type) + return FeedGroupSettingsEnd(builder) +} + +func (rcv *FeedGroupSettings) UnPackTo(t *FeedGroupSettingsT) { + t.Type = rcv.Type() +} + +func (rcv *FeedGroupSettings) UnPack() *FeedGroupSettingsT { + if rcv == nil { return nil } + t := &FeedGroupSettingsT{} + rcv.UnPackTo(t) + return t +} + +type FeedGroupSettings struct { + _tab flatbuffers.Table +} + +func GetRootAsFeedGroupSettings(buf []byte, offset flatbuffers.UOffsetT) *FeedGroupSettings { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &FeedGroupSettings{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFeedGroupSettings(buf []byte, offset flatbuffers.UOffsetT) *FeedGroupSettings { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &FeedGroupSettings{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *FeedGroupSettings) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *FeedGroupSettings) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *FeedGroupSettings) Type() FeedGroup { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return FeedGroup(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *FeedGroupSettings) MutateType(n FeedGroup) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func FeedGroupSettingsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func FeedGroupSettingsAddType(builder *flatbuffers.Builder, type_ FeedGroup) { + builder.PrependInt8Slot(0, int8(type_), 0) +} +func FeedGroupSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/IpoAddData.go b/pkg/fbs/motion/core/fbtypes/IpoAddData.go index c13abfc..661ca98 100644 --- a/pkg/fbs/motion/core/fbtypes/IpoAddData.go +++ b/pkg/fbs/motion/core/fbtypes/IpoAddData.go @@ -1,209 +1,209 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// currently interpolated values -type IpoAddDataT struct { - DistFromStart float64 - DistToTarget float64 - TimeFromStart float64 - TimeToTarget float64 - DistFromStartUnit string - DistToTargetUnit string - TimeFromStartUnit string - TimeToTargetUnit string -} - -func (t *IpoAddDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - distFromStartUnitOffset := builder.CreateString(t.DistFromStartUnit) - distToTargetUnitOffset := builder.CreateString(t.DistToTargetUnit) - timeFromStartUnitOffset := builder.CreateString(t.TimeFromStartUnit) - timeToTargetUnitOffset := builder.CreateString(t.TimeToTargetUnit) - IpoAddDataStart(builder) - IpoAddDataAddDistFromStart(builder, t.DistFromStart) - IpoAddDataAddDistToTarget(builder, t.DistToTarget) - IpoAddDataAddTimeFromStart(builder, t.TimeFromStart) - IpoAddDataAddTimeToTarget(builder, t.TimeToTarget) - IpoAddDataAddDistFromStartUnit(builder, distFromStartUnitOffset) - IpoAddDataAddDistToTargetUnit(builder, distToTargetUnitOffset) - IpoAddDataAddTimeFromStartUnit(builder, timeFromStartUnitOffset) - IpoAddDataAddTimeToTargetUnit(builder, timeToTargetUnitOffset) - return IpoAddDataEnd(builder) -} - -func (rcv *IpoAddData) UnPackTo(t *IpoAddDataT) { - t.DistFromStart = rcv.DistFromStart() - t.DistToTarget = rcv.DistToTarget() - t.TimeFromStart = rcv.TimeFromStart() - t.TimeToTarget = rcv.TimeToTarget() - t.DistFromStartUnit = string(rcv.DistFromStartUnit()) - t.DistToTargetUnit = string(rcv.DistToTargetUnit()) - t.TimeFromStartUnit = string(rcv.TimeFromStartUnit()) - t.TimeToTargetUnit = string(rcv.TimeToTargetUnit()) -} - -func (rcv *IpoAddData) UnPack() *IpoAddDataT { - if rcv == nil { return nil } - t := &IpoAddDataT{} - rcv.UnPackTo(t) - return t -} - -type IpoAddData struct { - _tab flatbuffers.Table -} - -func GetRootAsIpoAddData(buf []byte, offset flatbuffers.UOffsetT) *IpoAddData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &IpoAddData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsIpoAddData(buf []byte, offset flatbuffers.UOffsetT) *IpoAddData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &IpoAddData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *IpoAddData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *IpoAddData) Table() flatbuffers.Table { - return rcv._tab -} - -/// distance from start position -func (rcv *IpoAddData) DistFromStart() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// distance from start position -func (rcv *IpoAddData) MutateDistFromStart(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// distance to target position -func (rcv *IpoAddData) DistToTarget() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// distance to target position -func (rcv *IpoAddData) MutateDistToTarget(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// time from start position -func (rcv *IpoAddData) TimeFromStart() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// time from start position -func (rcv *IpoAddData) MutateTimeFromStart(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// time to target position -func (rcv *IpoAddData) TimeToTarget() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// time to target position -func (rcv *IpoAddData) MutateTimeToTarget(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// unit of the distance from start position -func (rcv *IpoAddData) DistFromStartUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the distance from start position -/// unit of the distance to target position -func (rcv *IpoAddData) DistToTargetUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the distance to target position -/// unit of the time from start position -func (rcv *IpoAddData) TimeFromStartUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the time from start position -/// unit of the time to target position -func (rcv *IpoAddData) TimeToTargetUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the time to target position -func IpoAddDataStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func IpoAddDataAddDistFromStart(builder *flatbuffers.Builder, distFromStart float64) { - builder.PrependFloat64Slot(0, distFromStart, 0.0) -} -func IpoAddDataAddDistToTarget(builder *flatbuffers.Builder, distToTarget float64) { - builder.PrependFloat64Slot(1, distToTarget, 0.0) -} -func IpoAddDataAddTimeFromStart(builder *flatbuffers.Builder, timeFromStart float64) { - builder.PrependFloat64Slot(2, timeFromStart, 0.0) -} -func IpoAddDataAddTimeToTarget(builder *flatbuffers.Builder, timeToTarget float64) { - builder.PrependFloat64Slot(3, timeToTarget, 0.0) -} -func IpoAddDataAddDistFromStartUnit(builder *flatbuffers.Builder, distFromStartUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(distFromStartUnit), 0) -} -func IpoAddDataAddDistToTargetUnit(builder *flatbuffers.Builder, distToTargetUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(distToTargetUnit), 0) -} -func IpoAddDataAddTimeFromStartUnit(builder *flatbuffers.Builder, timeFromStartUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(timeFromStartUnit), 0) -} -func IpoAddDataAddTimeToTargetUnit(builder *flatbuffers.Builder, timeToTargetUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(timeToTargetUnit), 0) -} -func IpoAddDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// currently interpolated values +type IpoAddDataT struct { + DistFromStart float64 + DistToTarget float64 + TimeFromStart float64 + TimeToTarget float64 + DistFromStartUnit string + DistToTargetUnit string + TimeFromStartUnit string + TimeToTargetUnit string +} + +func (t *IpoAddDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + distFromStartUnitOffset := builder.CreateString(t.DistFromStartUnit) + distToTargetUnitOffset := builder.CreateString(t.DistToTargetUnit) + timeFromStartUnitOffset := builder.CreateString(t.TimeFromStartUnit) + timeToTargetUnitOffset := builder.CreateString(t.TimeToTargetUnit) + IpoAddDataStart(builder) + IpoAddDataAddDistFromStart(builder, t.DistFromStart) + IpoAddDataAddDistToTarget(builder, t.DistToTarget) + IpoAddDataAddTimeFromStart(builder, t.TimeFromStart) + IpoAddDataAddTimeToTarget(builder, t.TimeToTarget) + IpoAddDataAddDistFromStartUnit(builder, distFromStartUnitOffset) + IpoAddDataAddDistToTargetUnit(builder, distToTargetUnitOffset) + IpoAddDataAddTimeFromStartUnit(builder, timeFromStartUnitOffset) + IpoAddDataAddTimeToTargetUnit(builder, timeToTargetUnitOffset) + return IpoAddDataEnd(builder) +} + +func (rcv *IpoAddData) UnPackTo(t *IpoAddDataT) { + t.DistFromStart = rcv.DistFromStart() + t.DistToTarget = rcv.DistToTarget() + t.TimeFromStart = rcv.TimeFromStart() + t.TimeToTarget = rcv.TimeToTarget() + t.DistFromStartUnit = string(rcv.DistFromStartUnit()) + t.DistToTargetUnit = string(rcv.DistToTargetUnit()) + t.TimeFromStartUnit = string(rcv.TimeFromStartUnit()) + t.TimeToTargetUnit = string(rcv.TimeToTargetUnit()) +} + +func (rcv *IpoAddData) UnPack() *IpoAddDataT { + if rcv == nil { return nil } + t := &IpoAddDataT{} + rcv.UnPackTo(t) + return t +} + +type IpoAddData struct { + _tab flatbuffers.Table +} + +func GetRootAsIpoAddData(buf []byte, offset flatbuffers.UOffsetT) *IpoAddData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &IpoAddData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsIpoAddData(buf []byte, offset flatbuffers.UOffsetT) *IpoAddData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &IpoAddData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *IpoAddData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *IpoAddData) Table() flatbuffers.Table { + return rcv._tab +} + +/// distance from start position +func (rcv *IpoAddData) DistFromStart() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// distance from start position +func (rcv *IpoAddData) MutateDistFromStart(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// distance to target position +func (rcv *IpoAddData) DistToTarget() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// distance to target position +func (rcv *IpoAddData) MutateDistToTarget(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// time from start position +func (rcv *IpoAddData) TimeFromStart() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// time from start position +func (rcv *IpoAddData) MutateTimeFromStart(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// time to target position +func (rcv *IpoAddData) TimeToTarget() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// time to target position +func (rcv *IpoAddData) MutateTimeToTarget(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// unit of the distance from start position +func (rcv *IpoAddData) DistFromStartUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the distance from start position +/// unit of the distance to target position +func (rcv *IpoAddData) DistToTargetUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the distance to target position +/// unit of the time from start position +func (rcv *IpoAddData) TimeFromStartUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the time from start position +/// unit of the time to target position +func (rcv *IpoAddData) TimeToTargetUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the time to target position +func IpoAddDataStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func IpoAddDataAddDistFromStart(builder *flatbuffers.Builder, distFromStart float64) { + builder.PrependFloat64Slot(0, distFromStart, 0.0) +} +func IpoAddDataAddDistToTarget(builder *flatbuffers.Builder, distToTarget float64) { + builder.PrependFloat64Slot(1, distToTarget, 0.0) +} +func IpoAddDataAddTimeFromStart(builder *flatbuffers.Builder, timeFromStart float64) { + builder.PrependFloat64Slot(2, timeFromStart, 0.0) +} +func IpoAddDataAddTimeToTarget(builder *flatbuffers.Builder, timeToTarget float64) { + builder.PrependFloat64Slot(3, timeToTarget, 0.0) +} +func IpoAddDataAddDistFromStartUnit(builder *flatbuffers.Builder, distFromStartUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(distFromStartUnit), 0) +} +func IpoAddDataAddDistToTargetUnit(builder *flatbuffers.Builder, distToTargetUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(distToTargetUnit), 0) +} +func IpoAddDataAddTimeFromStartUnit(builder *flatbuffers.Builder, timeFromStartUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(timeFromStartUnit), 0) +} +func IpoAddDataAddTimeToTargetUnit(builder *flatbuffers.Builder, timeToTargetUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(timeToTargetUnit), 0) +} +func IpoAddDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinActualValues.go b/pkg/fbs/motion/core/fbtypes/KinActualValues.go index 3771ac0..66e56a5 100644 --- a/pkg/fbs/motion/core/fbtypes/KinActualValues.go +++ b/pkg/fbs/motion/core/fbtypes/KinActualValues.go @@ -1,267 +1,267 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// actual values of the kinematics -type KinActualValuesT struct { - ActualPos []float64 - ActualVel float64 - ActualAcc float64 - ActualJerk float64 - ActualPosUnit []string - ActualVelUnit string - ActualAccUnit string - ActualJerkUnit string -} - -func (t *KinActualValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - actualPosOffset := flatbuffers.UOffsetT(0) - if t.ActualPos != nil { - actualPosLength := len(t.ActualPos) - KinActualValuesStartActualPosVector(builder, actualPosLength) - for j := actualPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.ActualPos[j]) - } - actualPosOffset = builder.EndVector(actualPosLength) - } - actualPosUnitOffset := flatbuffers.UOffsetT(0) - if t.ActualPosUnit != nil { - actualPosUnitLength := len(t.ActualPosUnit) - actualPosUnitOffsets := make([]flatbuffers.UOffsetT, actualPosUnitLength) - for j := 0; j < actualPosUnitLength; j++ { - actualPosUnitOffsets[j] = builder.CreateString(t.ActualPosUnit[j]) - } - KinActualValuesStartActualPosUnitVector(builder, actualPosUnitLength) - for j := actualPosUnitLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(actualPosUnitOffsets[j]) - } - actualPosUnitOffset = builder.EndVector(actualPosUnitLength) - } - actualVelUnitOffset := builder.CreateString(t.ActualVelUnit) - actualAccUnitOffset := builder.CreateString(t.ActualAccUnit) - actualJerkUnitOffset := builder.CreateString(t.ActualJerkUnit) - KinActualValuesStart(builder) - KinActualValuesAddActualPos(builder, actualPosOffset) - KinActualValuesAddActualVel(builder, t.ActualVel) - KinActualValuesAddActualAcc(builder, t.ActualAcc) - KinActualValuesAddActualJerk(builder, t.ActualJerk) - KinActualValuesAddActualPosUnit(builder, actualPosUnitOffset) - KinActualValuesAddActualVelUnit(builder, actualVelUnitOffset) - KinActualValuesAddActualAccUnit(builder, actualAccUnitOffset) - KinActualValuesAddActualJerkUnit(builder, actualJerkUnitOffset) - return KinActualValuesEnd(builder) -} - -func (rcv *KinActualValues) UnPackTo(t *KinActualValuesT) { - actualPosLength := rcv.ActualPosLength() - t.ActualPos = make([]float64, actualPosLength) - for j := 0; j < actualPosLength; j++ { - t.ActualPos[j] = rcv.ActualPos(j) - } - t.ActualVel = rcv.ActualVel() - t.ActualAcc = rcv.ActualAcc() - t.ActualJerk = rcv.ActualJerk() - actualPosUnitLength := rcv.ActualPosUnitLength() - t.ActualPosUnit = make([]string, actualPosUnitLength) - for j := 0; j < actualPosUnitLength; j++ { - t.ActualPosUnit[j] = string(rcv.ActualPosUnit(j)) - } - t.ActualVelUnit = string(rcv.ActualVelUnit()) - t.ActualAccUnit = string(rcv.ActualAccUnit()) - t.ActualJerkUnit = string(rcv.ActualJerkUnit()) -} - -func (rcv *KinActualValues) UnPack() *KinActualValuesT { - if rcv == nil { return nil } - t := &KinActualValuesT{} - rcv.UnPackTo(t) - return t -} - -type KinActualValues struct { - _tab flatbuffers.Table -} - -func GetRootAsKinActualValues(buf []byte, offset flatbuffers.UOffsetT) *KinActualValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinActualValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinActualValues(buf []byte, offset flatbuffers.UOffsetT) *KinActualValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinActualValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinActualValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinActualValues) Table() flatbuffers.Table { - return rcv._tab -} - -/// actual position -func (rcv *KinActualValues) ActualPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinActualValues) ActualPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// actual position -func (rcv *KinActualValues) MutateActualPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// actual velocity (currently not supported) -func (rcv *KinActualValues) ActualVel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual velocity (currently not supported) -func (rcv *KinActualValues) MutateActualVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// actual acceleration (currently not supported) -func (rcv *KinActualValues) ActualAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual acceleration (currently not supported) -func (rcv *KinActualValues) MutateActualAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// actual jerk (currently not supported) -func (rcv *KinActualValues) ActualJerk() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// actual jerk (currently not supported) -func (rcv *KinActualValues) MutateActualJerk(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// units of the actual position -func (rcv *KinActualValues) ActualPosUnit(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *KinActualValues) ActualPosUnitLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// units of the actual position -/// unit of the actual velocity (currently not supported) -func (rcv *KinActualValues) ActualVelUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual velocity (currently not supported) -/// unit of the actual acceleration (currently not supported) -func (rcv *KinActualValues) ActualAccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual acceleration (currently not supported) -/// unit of the actual jerk (currently not supported) -func (rcv *KinActualValues) ActualJerkUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the actual jerk (currently not supported) -func KinActualValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func KinActualValuesAddActualPos(builder *flatbuffers.Builder, actualPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(actualPos), 0) -} -func KinActualValuesStartActualPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinActualValuesAddActualVel(builder *flatbuffers.Builder, actualVel float64) { - builder.PrependFloat64Slot(1, actualVel, 0.0) -} -func KinActualValuesAddActualAcc(builder *flatbuffers.Builder, actualAcc float64) { - builder.PrependFloat64Slot(2, actualAcc, 0.0) -} -func KinActualValuesAddActualJerk(builder *flatbuffers.Builder, actualJerk float64) { - builder.PrependFloat64Slot(3, actualJerk, 0.0) -} -func KinActualValuesAddActualPosUnit(builder *flatbuffers.Builder, actualPosUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(actualPosUnit), 0) -} -func KinActualValuesStartActualPosUnitVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinActualValuesAddActualVelUnit(builder *flatbuffers.Builder, actualVelUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(actualVelUnit), 0) -} -func KinActualValuesAddActualAccUnit(builder *flatbuffers.Builder, actualAccUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(actualAccUnit), 0) -} -func KinActualValuesAddActualJerkUnit(builder *flatbuffers.Builder, actualJerkUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(actualJerkUnit), 0) -} -func KinActualValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// actual values of the kinematics +type KinActualValuesT struct { + ActualPos []float64 + ActualVel float64 + ActualAcc float64 + ActualJerk float64 + ActualPosUnit []string + ActualVelUnit string + ActualAccUnit string + ActualJerkUnit string +} + +func (t *KinActualValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + actualPosOffset := flatbuffers.UOffsetT(0) + if t.ActualPos != nil { + actualPosLength := len(t.ActualPos) + KinActualValuesStartActualPosVector(builder, actualPosLength) + for j := actualPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.ActualPos[j]) + } + actualPosOffset = builder.EndVector(actualPosLength) + } + actualPosUnitOffset := flatbuffers.UOffsetT(0) + if t.ActualPosUnit != nil { + actualPosUnitLength := len(t.ActualPosUnit) + actualPosUnitOffsets := make([]flatbuffers.UOffsetT, actualPosUnitLength) + for j := 0; j < actualPosUnitLength; j++ { + actualPosUnitOffsets[j] = builder.CreateString(t.ActualPosUnit[j]) + } + KinActualValuesStartActualPosUnitVector(builder, actualPosUnitLength) + for j := actualPosUnitLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(actualPosUnitOffsets[j]) + } + actualPosUnitOffset = builder.EndVector(actualPosUnitLength) + } + actualVelUnitOffset := builder.CreateString(t.ActualVelUnit) + actualAccUnitOffset := builder.CreateString(t.ActualAccUnit) + actualJerkUnitOffset := builder.CreateString(t.ActualJerkUnit) + KinActualValuesStart(builder) + KinActualValuesAddActualPos(builder, actualPosOffset) + KinActualValuesAddActualVel(builder, t.ActualVel) + KinActualValuesAddActualAcc(builder, t.ActualAcc) + KinActualValuesAddActualJerk(builder, t.ActualJerk) + KinActualValuesAddActualPosUnit(builder, actualPosUnitOffset) + KinActualValuesAddActualVelUnit(builder, actualVelUnitOffset) + KinActualValuesAddActualAccUnit(builder, actualAccUnitOffset) + KinActualValuesAddActualJerkUnit(builder, actualJerkUnitOffset) + return KinActualValuesEnd(builder) +} + +func (rcv *KinActualValues) UnPackTo(t *KinActualValuesT) { + actualPosLength := rcv.ActualPosLength() + t.ActualPos = make([]float64, actualPosLength) + for j := 0; j < actualPosLength; j++ { + t.ActualPos[j] = rcv.ActualPos(j) + } + t.ActualVel = rcv.ActualVel() + t.ActualAcc = rcv.ActualAcc() + t.ActualJerk = rcv.ActualJerk() + actualPosUnitLength := rcv.ActualPosUnitLength() + t.ActualPosUnit = make([]string, actualPosUnitLength) + for j := 0; j < actualPosUnitLength; j++ { + t.ActualPosUnit[j] = string(rcv.ActualPosUnit(j)) + } + t.ActualVelUnit = string(rcv.ActualVelUnit()) + t.ActualAccUnit = string(rcv.ActualAccUnit()) + t.ActualJerkUnit = string(rcv.ActualJerkUnit()) +} + +func (rcv *KinActualValues) UnPack() *KinActualValuesT { + if rcv == nil { return nil } + t := &KinActualValuesT{} + rcv.UnPackTo(t) + return t +} + +type KinActualValues struct { + _tab flatbuffers.Table +} + +func GetRootAsKinActualValues(buf []byte, offset flatbuffers.UOffsetT) *KinActualValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinActualValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinActualValues(buf []byte, offset flatbuffers.UOffsetT) *KinActualValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinActualValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinActualValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinActualValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// actual position +func (rcv *KinActualValues) ActualPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinActualValues) ActualPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// actual position +func (rcv *KinActualValues) MutateActualPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// actual velocity (currently not supported) +func (rcv *KinActualValues) ActualVel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual velocity (currently not supported) +func (rcv *KinActualValues) MutateActualVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// actual acceleration (currently not supported) +func (rcv *KinActualValues) ActualAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual acceleration (currently not supported) +func (rcv *KinActualValues) MutateActualAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// actual jerk (currently not supported) +func (rcv *KinActualValues) ActualJerk() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// actual jerk (currently not supported) +func (rcv *KinActualValues) MutateActualJerk(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// units of the actual position +func (rcv *KinActualValues) ActualPosUnit(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *KinActualValues) ActualPosUnitLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// units of the actual position +/// unit of the actual velocity (currently not supported) +func (rcv *KinActualValues) ActualVelUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual velocity (currently not supported) +/// unit of the actual acceleration (currently not supported) +func (rcv *KinActualValues) ActualAccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual acceleration (currently not supported) +/// unit of the actual jerk (currently not supported) +func (rcv *KinActualValues) ActualJerkUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual jerk (currently not supported) +func KinActualValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func KinActualValuesAddActualPos(builder *flatbuffers.Builder, actualPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(actualPos), 0) +} +func KinActualValuesStartActualPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinActualValuesAddActualVel(builder *flatbuffers.Builder, actualVel float64) { + builder.PrependFloat64Slot(1, actualVel, 0.0) +} +func KinActualValuesAddActualAcc(builder *flatbuffers.Builder, actualAcc float64) { + builder.PrependFloat64Slot(2, actualAcc, 0.0) +} +func KinActualValuesAddActualJerk(builder *flatbuffers.Builder, actualJerk float64) { + builder.PrependFloat64Slot(3, actualJerk, 0.0) +} +func KinActualValuesAddActualPosUnit(builder *flatbuffers.Builder, actualPosUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(actualPosUnit), 0) +} +func KinActualValuesStartActualPosUnitVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinActualValuesAddActualVelUnit(builder *flatbuffers.Builder, actualVelUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(actualVelUnit), 0) +} +func KinActualValuesAddActualAccUnit(builder *flatbuffers.Builder, actualAccUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(actualAccUnit), 0) +} +func KinActualValuesAddActualJerkUnit(builder *flatbuffers.Builder, actualJerkUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(actualJerkUnit), 0) +} +func KinActualValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinAxsAll.go b/pkg/fbs/motion/core/fbtypes/KinAxsAll.go index 164706f..28a4811 100644 --- a/pkg/fbs/motion/core/fbtypes/KinAxsAll.go +++ b/pkg/fbs/motion/core/fbtypes/KinAxsAll.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Data of all axes that are currently added to the kinematics -type KinAxsAllT struct { - Info []*KinAxsSingleT -} - -func (t *KinAxsAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - infoOffset := flatbuffers.UOffsetT(0) - if t.Info != nil { - infoLength := len(t.Info) - infoOffsets := make([]flatbuffers.UOffsetT, infoLength) - for j := 0; j < infoLength; j++ { - infoOffsets[j] = t.Info[j].Pack(builder) - } - KinAxsAllStartInfoVector(builder, infoLength) - for j := infoLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(infoOffsets[j]) - } - infoOffset = builder.EndVector(infoLength) - } - KinAxsAllStart(builder) - KinAxsAllAddInfo(builder, infoOffset) - return KinAxsAllEnd(builder) -} - -func (rcv *KinAxsAll) UnPackTo(t *KinAxsAllT) { - infoLength := rcv.InfoLength() - t.Info = make([]*KinAxsSingleT, infoLength) - for j := 0; j < infoLength; j++ { - x := KinAxsSingle{} - rcv.Info(&x, j) - t.Info[j] = x.UnPack() - } -} - -func (rcv *KinAxsAll) UnPack() *KinAxsAllT { - if rcv == nil { return nil } - t := &KinAxsAllT{} - rcv.UnPackTo(t) - return t -} - -type KinAxsAll struct { - _tab flatbuffers.Table -} - -func GetRootAsKinAxsAll(buf []byte, offset flatbuffers.UOffsetT) *KinAxsAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinAxsAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinAxsAll(buf []byte, offset flatbuffers.UOffsetT) *KinAxsAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinAxsAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinAxsAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinAxsAll) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all axes that are currently added to the kinematics -func (rcv *KinAxsAll) Info(obj *KinAxsSingle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinAxsAll) InfoLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all axes that are currently added to the kinematics -func KinAxsAllStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinAxsAllAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(info), 0) -} -func KinAxsAllStartInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinAxsAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Data of all axes that are currently added to the kinematics +type KinAxsAllT struct { + Info []*KinAxsSingleT +} + +func (t *KinAxsAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + infoOffset := flatbuffers.UOffsetT(0) + if t.Info != nil { + infoLength := len(t.Info) + infoOffsets := make([]flatbuffers.UOffsetT, infoLength) + for j := 0; j < infoLength; j++ { + infoOffsets[j] = t.Info[j].Pack(builder) + } + KinAxsAllStartInfoVector(builder, infoLength) + for j := infoLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(infoOffsets[j]) + } + infoOffset = builder.EndVector(infoLength) + } + KinAxsAllStart(builder) + KinAxsAllAddInfo(builder, infoOffset) + return KinAxsAllEnd(builder) +} + +func (rcv *KinAxsAll) UnPackTo(t *KinAxsAllT) { + infoLength := rcv.InfoLength() + t.Info = make([]*KinAxsSingleT, infoLength) + for j := 0; j < infoLength; j++ { + x := KinAxsSingle{} + rcv.Info(&x, j) + t.Info[j] = x.UnPack() + } +} + +func (rcv *KinAxsAll) UnPack() *KinAxsAllT { + if rcv == nil { return nil } + t := &KinAxsAllT{} + rcv.UnPackTo(t) + return t +} + +type KinAxsAll struct { + _tab flatbuffers.Table +} + +func GetRootAsKinAxsAll(buf []byte, offset flatbuffers.UOffsetT) *KinAxsAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinAxsAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinAxsAll(buf []byte, offset flatbuffers.UOffsetT) *KinAxsAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinAxsAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinAxsAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinAxsAll) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all axes that are currently added to the kinematics +func (rcv *KinAxsAll) Info(obj *KinAxsSingle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinAxsAll) InfoLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all axes that are currently added to the kinematics +func KinAxsAllStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinAxsAllAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(info), 0) +} +func KinAxsAllStartInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinAxsAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinAxsSingle.go b/pkg/fbs/motion/core/fbtypes/KinAxsSingle.go index d1ccf5a..4b66125 100644 --- a/pkg/fbs/motion/core/fbtypes/KinAxsSingle.go +++ b/pkg/fbs/motion/core/fbtypes/KinAxsSingle.go @@ -1,112 +1,132 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// informations of an axis that is part of a kinematics -type KinAxsSingleT struct { - Meaning string - Name string - Dir string -} - -func (t *KinAxsSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - meaningOffset := builder.CreateString(t.Meaning) - nameOffset := builder.CreateString(t.Name) - dirOffset := builder.CreateString(t.Dir) - KinAxsSingleStart(builder) - KinAxsSingleAddMeaning(builder, meaningOffset) - KinAxsSingleAddName(builder, nameOffset) - KinAxsSingleAddDir(builder, dirOffset) - return KinAxsSingleEnd(builder) -} - -func (rcv *KinAxsSingle) UnPackTo(t *KinAxsSingleT) { - t.Meaning = string(rcv.Meaning()) - t.Name = string(rcv.Name()) - t.Dir = string(rcv.Dir()) -} - -func (rcv *KinAxsSingle) UnPack() *KinAxsSingleT { - if rcv == nil { return nil } - t := &KinAxsSingleT{} - rcv.UnPackTo(t) - return t -} - -type KinAxsSingle struct { - _tab flatbuffers.Table -} - -func GetRootAsKinAxsSingle(buf []byte, offset flatbuffers.UOffsetT) *KinAxsSingle { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinAxsSingle{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinAxsSingle(buf []byte, offset flatbuffers.UOffsetT) *KinAxsSingle { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinAxsSingle{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinAxsSingle) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinAxsSingle) Table() flatbuffers.Table { - return rcv._tab -} - -/// (geometric) meaning of the axis in the kinematics -func (rcv *KinAxsSingle) Meaning() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// (geometric) meaning of the axis in the kinematics -/// name of the axis -func (rcv *KinAxsSingle) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the axis -/// direction ("+" or "-") of the axis referring to the kinematics coordinate system -func (rcv *KinAxsSingle) Dir() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// direction ("+" or "-") of the axis referring to the kinematics coordinate system -func KinAxsSingleStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinAxsSingleAddMeaning(builder *flatbuffers.Builder, meaning flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(meaning), 0) -} -func KinAxsSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) -} -func KinAxsSingleAddDir(builder *flatbuffers.Builder, dir flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dir), 0) -} -func KinAxsSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// informations of an axis that is part of a kinematics +type KinAxsSingleT struct { + Meaning string + Name string + Dir string + AcsIndex byte +} + +func (t *KinAxsSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + meaningOffset := builder.CreateString(t.Meaning) + nameOffset := builder.CreateString(t.Name) + dirOffset := builder.CreateString(t.Dir) + KinAxsSingleStart(builder) + KinAxsSingleAddMeaning(builder, meaningOffset) + KinAxsSingleAddName(builder, nameOffset) + KinAxsSingleAddDir(builder, dirOffset) + KinAxsSingleAddAcsIndex(builder, t.AcsIndex) + return KinAxsSingleEnd(builder) +} + +func (rcv *KinAxsSingle) UnPackTo(t *KinAxsSingleT) { + t.Meaning = string(rcv.Meaning()) + t.Name = string(rcv.Name()) + t.Dir = string(rcv.Dir()) + t.AcsIndex = rcv.AcsIndex() +} + +func (rcv *KinAxsSingle) UnPack() *KinAxsSingleT { + if rcv == nil { return nil } + t := &KinAxsSingleT{} + rcv.UnPackTo(t) + return t +} + +type KinAxsSingle struct { + _tab flatbuffers.Table +} + +func GetRootAsKinAxsSingle(buf []byte, offset flatbuffers.UOffsetT) *KinAxsSingle { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinAxsSingle{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinAxsSingle(buf []byte, offset flatbuffers.UOffsetT) *KinAxsSingle { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinAxsSingle{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinAxsSingle) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinAxsSingle) Table() flatbuffers.Table { + return rcv._tab +} + +/// DEPRECATED; (geometric) meaning of the axis in the kinematics (only useful for simple Cartesian kinematics); use "acsIndex" for all other cases +func (rcv *KinAxsSingle) Meaning() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// DEPRECATED; (geometric) meaning of the axis in the kinematics (only useful for simple Cartesian kinematics); use "acsIndex" for all other cases +/// name of the axis +func (rcv *KinAxsSingle) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the axis +/// direction ("+" or "-") of the axis referring to the kinematics coordinate system +func (rcv *KinAxsSingle) Dir() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// direction ("+" or "-") of the axis referring to the kinematics coordinate system +/// index of the axis in the ACS (axis coordinate system) array of the kinematics +func (rcv *KinAxsSingle) AcsIndex() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +/// index of the axis in the ACS (axis coordinate system) array of the kinematics +func (rcv *KinAxsSingle) MutateAcsIndex(n byte) bool { + return rcv._tab.MutateByteSlot(10, n) +} + +func KinAxsSingleStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinAxsSingleAddMeaning(builder *flatbuffers.Builder, meaning flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(meaning), 0) +} +func KinAxsSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) +} +func KinAxsSingleAddDir(builder *flatbuffers.Builder, dir flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dir), 0) +} +func KinAxsSingleAddAcsIndex(builder *flatbuffers.Builder, acsIndex byte) { + builder.PrependByteSlot(3, acsIndex, 0) +} +func KinAxsSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfg.go b/pkg/fbs/motion/core/fbtypes/KinCfg.go index 9131981..fe94876 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfg.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfg.go @@ -1,282 +1,282 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// complete configuration of a single kinematics -type KinCfgT struct { - ObjectType string - Limits *KinCfgLimitsT - AxsCfg []*KinCfgAxsT - Mcs *KinCfgJntTrafoAllSetsT - Units *UnitCfgKinT - PrepLimits *KinCfgPrepLimitsT - RtInputs *RTInputsCfgT - Dynamics *KinCfgDynamicsT - Geometry *KinGeoCfgT -} - -func (t *KinCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - objectTypeOffset := builder.CreateString(t.ObjectType) - limitsOffset := t.Limits.Pack(builder) - axsCfgOffset := flatbuffers.UOffsetT(0) - if t.AxsCfg != nil { - axsCfgLength := len(t.AxsCfg) - axsCfgOffsets := make([]flatbuffers.UOffsetT, axsCfgLength) - for j := 0; j < axsCfgLength; j++ { - axsCfgOffsets[j] = t.AxsCfg[j].Pack(builder) - } - KinCfgStartAxsCfgVector(builder, axsCfgLength) - for j := axsCfgLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(axsCfgOffsets[j]) - } - axsCfgOffset = builder.EndVector(axsCfgLength) - } - mcsOffset := t.Mcs.Pack(builder) - unitsOffset := t.Units.Pack(builder) - prepLimitsOffset := t.PrepLimits.Pack(builder) - rtInputsOffset := t.RtInputs.Pack(builder) - dynamicsOffset := t.Dynamics.Pack(builder) - geometryOffset := t.Geometry.Pack(builder) - KinCfgStart(builder) - KinCfgAddObjectType(builder, objectTypeOffset) - KinCfgAddLimits(builder, limitsOffset) - KinCfgAddAxsCfg(builder, axsCfgOffset) - KinCfgAddMcs(builder, mcsOffset) - KinCfgAddUnits(builder, unitsOffset) - KinCfgAddPrepLimits(builder, prepLimitsOffset) - KinCfgAddRtInputs(builder, rtInputsOffset) - KinCfgAddDynamics(builder, dynamicsOffset) - KinCfgAddGeometry(builder, geometryOffset) - return KinCfgEnd(builder) -} - -func (rcv *KinCfg) UnPackTo(t *KinCfgT) { - t.ObjectType = string(rcv.ObjectType()) - t.Limits = rcv.Limits(nil).UnPack() - axsCfgLength := rcv.AxsCfgLength() - t.AxsCfg = make([]*KinCfgAxsT, axsCfgLength) - for j := 0; j < axsCfgLength; j++ { - x := KinCfgAxs{} - rcv.AxsCfg(&x, j) - t.AxsCfg[j] = x.UnPack() - } - t.Mcs = rcv.Mcs(nil).UnPack() - t.Units = rcv.Units(nil).UnPack() - t.PrepLimits = rcv.PrepLimits(nil).UnPack() - t.RtInputs = rcv.RtInputs(nil).UnPack() - t.Dynamics = rcv.Dynamics(nil).UnPack() - t.Geometry = rcv.Geometry(nil).UnPack() -} - -func (rcv *KinCfg) UnPack() *KinCfgT { - if rcv == nil { return nil } - t := &KinCfgT{} - rcv.UnPackTo(t) - return t -} - -type KinCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfg(buf []byte, offset flatbuffers.UOffsetT) *KinCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfg(buf []byte, offset flatbuffers.UOffsetT) *KinCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// object type (must be "Kinematics"), required for save/load -func (rcv *KinCfg) ObjectType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// object type (must be "Kinematics"), required for save/load -/// all configured limits of this kinematics -func (rcv *KinCfg) Limits(obj *KinCfgLimits) *KinCfgLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// all configured limits of this kinematics -/// data of all axes, that can be added to this kinematics -func (rcv *KinCfg) AxsCfg(obj *KinCfgAxs, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfg) AxsCfgLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// data of all axes, that can be added to this kinematics -/// configuration of all joint transformations (ACS <--> MCS) -func (rcv *KinCfg) Mcs(obj *KinCfgJntTrafoAllSets) *KinCfgJntTrafoAllSets { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgJntTrafoAllSets) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of all joint transformations (ACS <--> MCS) -/// general unit configuration of this kinematics -func (rcv *KinCfg) Units(obj *UnitCfgKin) *UnitCfgKin { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(UnitCfgKin) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// general unit configuration of this kinematics -/// preparation limits of a kinematics -func (rcv *KinCfg) PrepLimits(obj *KinCfgPrepLimits) *KinCfgPrepLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgPrepLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// preparation limits of a kinematics -/// configuration of the real-time inputs of the kinematics -func (rcv *KinCfg) RtInputs(obj *RTInputsCfg) *RTInputsCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(RTInputsCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of the real-time inputs of the kinematics -/// configuration of the dynamics of the kinematics -func (rcv *KinCfg) Dynamics(obj *KinCfgDynamics) *KinCfgDynamics { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgDynamics) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of the dynamics of the kinematics -/// configuration of the geometry functions of the kinematics -func (rcv *KinCfg) Geometry(obj *KinGeoCfg) *KinGeoCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinGeoCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of the geometry functions of the kinematics -func KinCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func KinCfgAddObjectType(builder *flatbuffers.Builder, objectType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objectType), 0) -} -func KinCfgAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(limits), 0) -} -func KinCfgAddAxsCfg(builder *flatbuffers.Builder, axsCfg flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(axsCfg), 0) -} -func KinCfgStartAxsCfgVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAddMcs(builder *flatbuffers.Builder, mcs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(mcs), 0) -} -func KinCfgAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(units), 0) -} -func KinCfgAddPrepLimits(builder *flatbuffers.Builder, prepLimits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(prepLimits), 0) -} -func KinCfgAddRtInputs(builder *flatbuffers.Builder, rtInputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(rtInputs), 0) -} -func KinCfgAddDynamics(builder *flatbuffers.Builder, dynamics flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dynamics), 0) -} -func KinCfgAddGeometry(builder *flatbuffers.Builder, geometry flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(geometry), 0) -} -func KinCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// complete configuration of a single kinematics +type KinCfgT struct { + ObjectType string + Limits *KinCfgLimitsT + AxsCfg []*KinCfgAxsT + Mcs *KinCfgJntTrafoAllSetsT + Units *UnitCfgKinT + PrepLimits *KinCfgPrepLimitsT + RtInputs *RTInputsCfgT + Dynamics *KinCfgDynamicsT + Geometry *KinGeoCfgT +} + +func (t *KinCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objectTypeOffset := builder.CreateString(t.ObjectType) + limitsOffset := t.Limits.Pack(builder) + axsCfgOffset := flatbuffers.UOffsetT(0) + if t.AxsCfg != nil { + axsCfgLength := len(t.AxsCfg) + axsCfgOffsets := make([]flatbuffers.UOffsetT, axsCfgLength) + for j := 0; j < axsCfgLength; j++ { + axsCfgOffsets[j] = t.AxsCfg[j].Pack(builder) + } + KinCfgStartAxsCfgVector(builder, axsCfgLength) + for j := axsCfgLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(axsCfgOffsets[j]) + } + axsCfgOffset = builder.EndVector(axsCfgLength) + } + mcsOffset := t.Mcs.Pack(builder) + unitsOffset := t.Units.Pack(builder) + prepLimitsOffset := t.PrepLimits.Pack(builder) + rtInputsOffset := t.RtInputs.Pack(builder) + dynamicsOffset := t.Dynamics.Pack(builder) + geometryOffset := t.Geometry.Pack(builder) + KinCfgStart(builder) + KinCfgAddObjectType(builder, objectTypeOffset) + KinCfgAddLimits(builder, limitsOffset) + KinCfgAddAxsCfg(builder, axsCfgOffset) + KinCfgAddMcs(builder, mcsOffset) + KinCfgAddUnits(builder, unitsOffset) + KinCfgAddPrepLimits(builder, prepLimitsOffset) + KinCfgAddRtInputs(builder, rtInputsOffset) + KinCfgAddDynamics(builder, dynamicsOffset) + KinCfgAddGeometry(builder, geometryOffset) + return KinCfgEnd(builder) +} + +func (rcv *KinCfg) UnPackTo(t *KinCfgT) { + t.ObjectType = string(rcv.ObjectType()) + t.Limits = rcv.Limits(nil).UnPack() + axsCfgLength := rcv.AxsCfgLength() + t.AxsCfg = make([]*KinCfgAxsT, axsCfgLength) + for j := 0; j < axsCfgLength; j++ { + x := KinCfgAxs{} + rcv.AxsCfg(&x, j) + t.AxsCfg[j] = x.UnPack() + } + t.Mcs = rcv.Mcs(nil).UnPack() + t.Units = rcv.Units(nil).UnPack() + t.PrepLimits = rcv.PrepLimits(nil).UnPack() + t.RtInputs = rcv.RtInputs(nil).UnPack() + t.Dynamics = rcv.Dynamics(nil).UnPack() + t.Geometry = rcv.Geometry(nil).UnPack() +} + +func (rcv *KinCfg) UnPack() *KinCfgT { + if rcv == nil { return nil } + t := &KinCfgT{} + rcv.UnPackTo(t) + return t +} + +type KinCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfg(buf []byte, offset flatbuffers.UOffsetT) *KinCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfg(buf []byte, offset flatbuffers.UOffsetT) *KinCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// object type (must be "Kinematics"), required for save/load +func (rcv *KinCfg) ObjectType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// object type (must be "Kinematics"), required for save/load +/// all configured limits of this kinematics +func (rcv *KinCfg) Limits(obj *KinCfgLimits) *KinCfgLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// all configured limits of this kinematics +/// data of all axes, that can be added to this kinematics +func (rcv *KinCfg) AxsCfg(obj *KinCfgAxs, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfg) AxsCfgLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// data of all axes, that can be added to this kinematics +/// configuration of all joint transformations (ACS <--> MCS) +func (rcv *KinCfg) Mcs(obj *KinCfgJntTrafoAllSets) *KinCfgJntTrafoAllSets { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgJntTrafoAllSets) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of all joint transformations (ACS <--> MCS) +/// general unit configuration of this kinematics +func (rcv *KinCfg) Units(obj *UnitCfgKin) *UnitCfgKin { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(UnitCfgKin) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// general unit configuration of this kinematics +/// preparation limits of a kinematics +func (rcv *KinCfg) PrepLimits(obj *KinCfgPrepLimits) *KinCfgPrepLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgPrepLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// preparation limits of a kinematics +/// configuration of the real-time inputs of the kinematics +func (rcv *KinCfg) RtInputs(obj *RTInputsCfg) *RTInputsCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(RTInputsCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of the real-time inputs of the kinematics +/// configuration of the dynamics of the kinematics +func (rcv *KinCfg) Dynamics(obj *KinCfgDynamics) *KinCfgDynamics { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgDynamics) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of the dynamics of the kinematics +/// configuration of the geometry functions of the kinematics +func (rcv *KinCfg) Geometry(obj *KinGeoCfg) *KinGeoCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinGeoCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of the geometry functions of the kinematics +func KinCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func KinCfgAddObjectType(builder *flatbuffers.Builder, objectType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objectType), 0) +} +func KinCfgAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(limits), 0) +} +func KinCfgAddAxsCfg(builder *flatbuffers.Builder, axsCfg flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(axsCfg), 0) +} +func KinCfgStartAxsCfgVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAddMcs(builder *flatbuffers.Builder, mcs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(mcs), 0) +} +func KinCfgAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(units), 0) +} +func KinCfgAddPrepLimits(builder *flatbuffers.Builder, prepLimits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(prepLimits), 0) +} +func KinCfgAddRtInputs(builder *flatbuffers.Builder, rtInputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(rtInputs), 0) +} +func KinCfgAddDynamics(builder *flatbuffers.Builder, dynamics flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(dynamics), 0) +} +func KinCfgAddGeometry(builder *flatbuffers.Builder, geometry flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(geometry), 0) +} +func KinCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxs.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxs.go index 3b90193..492b6c3 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxs.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxs.go @@ -1,112 +1,132 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of an axis that can be added to a kinematics -type KinCfgAxsT struct { - AxsName string - AxsMeaning string - AxsDir string -} - -func (t *KinCfgAxsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsNameOffset := builder.CreateString(t.AxsName) - axsMeaningOffset := builder.CreateString(t.AxsMeaning) - axsDirOffset := builder.CreateString(t.AxsDir) - KinCfgAxsStart(builder) - KinCfgAxsAddAxsName(builder, axsNameOffset) - KinCfgAxsAddAxsMeaning(builder, axsMeaningOffset) - KinCfgAxsAddAxsDir(builder, axsDirOffset) - return KinCfgAxsEnd(builder) -} - -func (rcv *KinCfgAxs) UnPackTo(t *KinCfgAxsT) { - t.AxsName = string(rcv.AxsName()) - t.AxsMeaning = string(rcv.AxsMeaning()) - t.AxsDir = string(rcv.AxsDir()) -} - -func (rcv *KinCfgAxs) UnPack() *KinCfgAxsT { - if rcv == nil { return nil } - t := &KinCfgAxsT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxs struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxs(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxs { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxs{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxs(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxs { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxs{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxs) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxs) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the axis -func (rcv *KinCfgAxs) AxsName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the axis -/// (geometric) meaning of the axis in the kinematics when added -func (rcv *KinCfgAxs) AxsMeaning() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// (geometric) meaning of the axis in the kinematics when added -/// direction ("+" or "-") of the axis referring to the kinematics coordinate system -func (rcv *KinCfgAxs) AxsDir() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// direction ("+" or "-") of the axis referring to the kinematics coordinate system -func KinCfgAxsStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinCfgAxsAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) -} -func KinCfgAxsAddAxsMeaning(builder *flatbuffers.Builder, axsMeaning flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axsMeaning), 0) -} -func KinCfgAxsAddAxsDir(builder *flatbuffers.Builder, axsDir flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(axsDir), 0) -} -func KinCfgAxsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of an axis that can be added to a kinematics +type KinCfgAxsT struct { + AxsName string + AxsMeaning string + AxsDir string + AcsIndex byte +} + +func (t *KinCfgAxsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsNameOffset := builder.CreateString(t.AxsName) + axsMeaningOffset := builder.CreateString(t.AxsMeaning) + axsDirOffset := builder.CreateString(t.AxsDir) + KinCfgAxsStart(builder) + KinCfgAxsAddAxsName(builder, axsNameOffset) + KinCfgAxsAddAxsMeaning(builder, axsMeaningOffset) + KinCfgAxsAddAxsDir(builder, axsDirOffset) + KinCfgAxsAddAcsIndex(builder, t.AcsIndex) + return KinCfgAxsEnd(builder) +} + +func (rcv *KinCfgAxs) UnPackTo(t *KinCfgAxsT) { + t.AxsName = string(rcv.AxsName()) + t.AxsMeaning = string(rcv.AxsMeaning()) + t.AxsDir = string(rcv.AxsDir()) + t.AcsIndex = rcv.AcsIndex() +} + +func (rcv *KinCfgAxs) UnPack() *KinCfgAxsT { + if rcv == nil { return nil } + t := &KinCfgAxsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxs struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxs(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxs(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxs) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the axis +func (rcv *KinCfgAxs) AxsName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the axis +/// DEPRECATED; (geometric) meaning of the axis in the kinematics when added (only useful for simple Cartesian kinematics); use "acsIndex" for all other cases and leave this out +func (rcv *KinCfgAxs) AxsMeaning() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// DEPRECATED; (geometric) meaning of the axis in the kinematics when added (only useful for simple Cartesian kinematics); use "acsIndex" for all other cases and leave this out +/// direction ("+" or "-") of the axis referring to the kinematics coordinate system +func (rcv *KinCfgAxs) AxsDir() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// direction ("+" or "-") of the axis referring to the kinematics coordinate system +/// index of the axis in the ACS (axis coordinate system) array of the kinematics (value 255 means "use the axsMeaning") +func (rcv *KinCfgAxs) AcsIndex() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 255 +} + +/// index of the axis in the ACS (axis coordinate system) array of the kinematics (value 255 means "use the axsMeaning") +func (rcv *KinCfgAxs) MutateAcsIndex(n byte) bool { + return rcv._tab.MutateByteSlot(10, n) +} + +func KinCfgAxsStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCfgAxsAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) +} +func KinCfgAxsAddAxsMeaning(builder *flatbuffers.Builder, axsMeaning flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axsMeaning), 0) +} +func KinCfgAxsAddAxsDir(builder *flatbuffers.Builder, axsDir flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(axsDir), 0) +} +func KinCfgAxsAddAcsIndex(builder *flatbuffers.Builder, acsIndex byte) { + builder.PrependByteSlot(3, acsIndex, 255) +} +func KinCfgAxsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllParam.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllParam.go index 1f52fcf..22d8b1b 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllParam.go @@ -1,155 +1,155 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration parameter of a single axis transformation -type KinCfgAxsTrafoAllParamT struct { - AxisAssignment *KinCfgAxsTrafoAxisAssignmentT - Groups []*KinCfgAxsTrafoParamGroupT - General *KinCfgAxsTrafoParamGroupT -} - -func (t *KinCfgAxsTrafoAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axisAssignmentOffset := t.AxisAssignment.Pack(builder) - groupsOffset := flatbuffers.UOffsetT(0) - if t.Groups != nil { - groupsLength := len(t.Groups) - groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) - for j := 0; j < groupsLength; j++ { - groupsOffsets[j] = t.Groups[j].Pack(builder) - } - KinCfgAxsTrafoAllParamStartGroupsVector(builder, groupsLength) - for j := groupsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(groupsOffsets[j]) - } - groupsOffset = builder.EndVector(groupsLength) - } - generalOffset := t.General.Pack(builder) - KinCfgAxsTrafoAllParamStart(builder) - KinCfgAxsTrafoAllParamAddAxisAssignment(builder, axisAssignmentOffset) - KinCfgAxsTrafoAllParamAddGroups(builder, groupsOffset) - KinCfgAxsTrafoAllParamAddGeneral(builder, generalOffset) - return KinCfgAxsTrafoAllParamEnd(builder) -} - -func (rcv *KinCfgAxsTrafoAllParam) UnPackTo(t *KinCfgAxsTrafoAllParamT) { - t.AxisAssignment = rcv.AxisAssignment(nil).UnPack() - groupsLength := rcv.GroupsLength() - t.Groups = make([]*KinCfgAxsTrafoParamGroupT, groupsLength) - for j := 0; j < groupsLength; j++ { - x := KinCfgAxsTrafoParamGroup{} - rcv.Groups(&x, j) - t.Groups[j] = x.UnPack() - } - t.General = rcv.General(nil).UnPack() -} - -func (rcv *KinCfgAxsTrafoAllParam) UnPack() *KinCfgAxsTrafoAllParamT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoAllParamT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoAllParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoAllParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoAllParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoAllParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// axis assignment -func (rcv *KinCfgAxsTrafoAllParam) AxisAssignment(obj *KinCfgAxsTrafoAxisAssignment) *KinCfgAxsTrafoAxisAssignment { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgAxsTrafoAxisAssignment) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// axis assignment -/// all configuration parameter groups of this axis transformation -func (rcv *KinCfgAxsTrafoAllParam) Groups(obj *KinCfgAxsTrafoParamGroup, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgAxsTrafoAllParam) GroupsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// all configuration parameter groups of this axis transformation -/// all general parameter of this axis transformation -func (rcv *KinCfgAxsTrafoAllParam) General(obj *KinCfgAxsTrafoParamGroup) *KinCfgAxsTrafoParamGroup { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgAxsTrafoParamGroup) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// all general parameter of this axis transformation -func KinCfgAxsTrafoAllParamStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinCfgAxsTrafoAllParamAddAxisAssignment(builder *flatbuffers.Builder, axisAssignment flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisAssignment), 0) -} -func KinCfgAxsTrafoAllParamAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(groups), 0) -} -func KinCfgAxsTrafoAllParamStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoAllParamAddGeneral(builder *flatbuffers.Builder, general flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(general), 0) -} -func KinCfgAxsTrafoAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration parameter of a single axis transformation +type KinCfgAxsTrafoAllParamT struct { + AxisAssignment *KinCfgAxsTrafoAxisAssignmentT + Groups []*KinCfgAxsTrafoParamGroupT + General *KinCfgAxsTrafoParamGroupT +} + +func (t *KinCfgAxsTrafoAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axisAssignmentOffset := t.AxisAssignment.Pack(builder) + groupsOffset := flatbuffers.UOffsetT(0) + if t.Groups != nil { + groupsLength := len(t.Groups) + groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) + for j := 0; j < groupsLength; j++ { + groupsOffsets[j] = t.Groups[j].Pack(builder) + } + KinCfgAxsTrafoAllParamStartGroupsVector(builder, groupsLength) + for j := groupsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupsOffsets[j]) + } + groupsOffset = builder.EndVector(groupsLength) + } + generalOffset := t.General.Pack(builder) + KinCfgAxsTrafoAllParamStart(builder) + KinCfgAxsTrafoAllParamAddAxisAssignment(builder, axisAssignmentOffset) + KinCfgAxsTrafoAllParamAddGroups(builder, groupsOffset) + KinCfgAxsTrafoAllParamAddGeneral(builder, generalOffset) + return KinCfgAxsTrafoAllParamEnd(builder) +} + +func (rcv *KinCfgAxsTrafoAllParam) UnPackTo(t *KinCfgAxsTrafoAllParamT) { + t.AxisAssignment = rcv.AxisAssignment(nil).UnPack() + groupsLength := rcv.GroupsLength() + t.Groups = make([]*KinCfgAxsTrafoParamGroupT, groupsLength) + for j := 0; j < groupsLength; j++ { + x := KinCfgAxsTrafoParamGroup{} + rcv.Groups(&x, j) + t.Groups[j] = x.UnPack() + } + t.General = rcv.General(nil).UnPack() +} + +func (rcv *KinCfgAxsTrafoAllParam) UnPack() *KinCfgAxsTrafoAllParamT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoAllParamT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoAllParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoAllParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoAllParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoAllParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// axis assignment +func (rcv *KinCfgAxsTrafoAllParam) AxisAssignment(obj *KinCfgAxsTrafoAxisAssignment) *KinCfgAxsTrafoAxisAssignment { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgAxsTrafoAxisAssignment) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// axis assignment +/// all configuration parameter groups of this axis transformation +func (rcv *KinCfgAxsTrafoAllParam) Groups(obj *KinCfgAxsTrafoParamGroup, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgAxsTrafoAllParam) GroupsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// all configuration parameter groups of this axis transformation +/// all general parameter of this axis transformation +func (rcv *KinCfgAxsTrafoAllParam) General(obj *KinCfgAxsTrafoParamGroup) *KinCfgAxsTrafoParamGroup { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgAxsTrafoParamGroup) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// all general parameter of this axis transformation +func KinCfgAxsTrafoAllParamStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCfgAxsTrafoAllParamAddAxisAssignment(builder *flatbuffers.Builder, axisAssignment flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisAssignment), 0) +} +func KinCfgAxsTrafoAllParamAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(groups), 0) +} +func KinCfgAxsTrafoAllParamStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoAllParamAddGeneral(builder *flatbuffers.Builder, general flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(general), 0) +} +func KinCfgAxsTrafoAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllSets.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllSets.go index 273fd16..6f16016 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllSets.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAllSets.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration values of all axis transformation sets -type KinCfgAxsTrafoAllSetsT struct { - AxsTrafoSets []*KinCfgAxsTrafoSetT -} - -func (t *KinCfgAxsTrafoAllSetsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsTrafoSetsOffset := flatbuffers.UOffsetT(0) - if t.AxsTrafoSets != nil { - axsTrafoSetsLength := len(t.AxsTrafoSets) - axsTrafoSetsOffsets := make([]flatbuffers.UOffsetT, axsTrafoSetsLength) - for j := 0; j < axsTrafoSetsLength; j++ { - axsTrafoSetsOffsets[j] = t.AxsTrafoSets[j].Pack(builder) - } - KinCfgAxsTrafoAllSetsStartAxsTrafoSetsVector(builder, axsTrafoSetsLength) - for j := axsTrafoSetsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(axsTrafoSetsOffsets[j]) - } - axsTrafoSetsOffset = builder.EndVector(axsTrafoSetsLength) - } - KinCfgAxsTrafoAllSetsStart(builder) - KinCfgAxsTrafoAllSetsAddAxsTrafoSets(builder, axsTrafoSetsOffset) - return KinCfgAxsTrafoAllSetsEnd(builder) -} - -func (rcv *KinCfgAxsTrafoAllSets) UnPackTo(t *KinCfgAxsTrafoAllSetsT) { - axsTrafoSetsLength := rcv.AxsTrafoSetsLength() - t.AxsTrafoSets = make([]*KinCfgAxsTrafoSetT, axsTrafoSetsLength) - for j := 0; j < axsTrafoSetsLength; j++ { - x := KinCfgAxsTrafoSet{} - rcv.AxsTrafoSets(&x, j) - t.AxsTrafoSets[j] = x.UnPack() - } -} - -func (rcv *KinCfgAxsTrafoAllSets) UnPack() *KinCfgAxsTrafoAllSetsT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoAllSetsT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoAllSets struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllSets { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoAllSets{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllSets { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoAllSets{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoAllSets) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoAllSets) Table() flatbuffers.Table { - return rcv._tab -} - -/// configuration values of all axis transformation sets -func (rcv *KinCfgAxsTrafoAllSets) AxsTrafoSets(obj *KinCfgAxsTrafoSet, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgAxsTrafoAllSets) AxsTrafoSetsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// configuration values of all axis transformation sets -func KinCfgAxsTrafoAllSetsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCfgAxsTrafoAllSetsAddAxsTrafoSets(builder *flatbuffers.Builder, axsTrafoSets flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsTrafoSets), 0) -} -func KinCfgAxsTrafoAllSetsStartAxsTrafoSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoAllSetsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration values of all axis transformation sets +type KinCfgAxsTrafoAllSetsT struct { + AxsTrafoSets []*KinCfgAxsTrafoSetT +} + +func (t *KinCfgAxsTrafoAllSetsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsTrafoSetsOffset := flatbuffers.UOffsetT(0) + if t.AxsTrafoSets != nil { + axsTrafoSetsLength := len(t.AxsTrafoSets) + axsTrafoSetsOffsets := make([]flatbuffers.UOffsetT, axsTrafoSetsLength) + for j := 0; j < axsTrafoSetsLength; j++ { + axsTrafoSetsOffsets[j] = t.AxsTrafoSets[j].Pack(builder) + } + KinCfgAxsTrafoAllSetsStartAxsTrafoSetsVector(builder, axsTrafoSetsLength) + for j := axsTrafoSetsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(axsTrafoSetsOffsets[j]) + } + axsTrafoSetsOffset = builder.EndVector(axsTrafoSetsLength) + } + KinCfgAxsTrafoAllSetsStart(builder) + KinCfgAxsTrafoAllSetsAddAxsTrafoSets(builder, axsTrafoSetsOffset) + return KinCfgAxsTrafoAllSetsEnd(builder) +} + +func (rcv *KinCfgAxsTrafoAllSets) UnPackTo(t *KinCfgAxsTrafoAllSetsT) { + axsTrafoSetsLength := rcv.AxsTrafoSetsLength() + t.AxsTrafoSets = make([]*KinCfgAxsTrafoSetT, axsTrafoSetsLength) + for j := 0; j < axsTrafoSetsLength; j++ { + x := KinCfgAxsTrafoSet{} + rcv.AxsTrafoSets(&x, j) + t.AxsTrafoSets[j] = x.UnPack() + } +} + +func (rcv *KinCfgAxsTrafoAllSets) UnPack() *KinCfgAxsTrafoAllSetsT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoAllSetsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoAllSets struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllSets { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoAllSets{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAllSets { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoAllSets{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoAllSets) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoAllSets) Table() flatbuffers.Table { + return rcv._tab +} + +/// configuration values of all axis transformation sets +func (rcv *KinCfgAxsTrafoAllSets) AxsTrafoSets(obj *KinCfgAxsTrafoSet, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgAxsTrafoAllSets) AxsTrafoSetsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// configuration values of all axis transformation sets +func KinCfgAxsTrafoAllSetsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgAxsTrafoAllSetsAddAxsTrafoSets(builder *flatbuffers.Builder, axsTrafoSets flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsTrafoSets), 0) +} +func KinCfgAxsTrafoAllSetsStartAxsTrafoSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoAllSetsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAxisAssignment.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAxisAssignment.go index 24c12cf..99a511f 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAxisAssignment.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoAxisAssignment.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a all axis assignments for an axis transformation -type KinCfgAxsTrafoAxisAssignmentT struct { - Assignment []*KinCfgAxsTrafoSingleAxisAssignmentT -} - -func (t *KinCfgAxsTrafoAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - assignmentOffset := flatbuffers.UOffsetT(0) - if t.Assignment != nil { - assignmentLength := len(t.Assignment) - assignmentOffsets := make([]flatbuffers.UOffsetT, assignmentLength) - for j := 0; j < assignmentLength; j++ { - assignmentOffsets[j] = t.Assignment[j].Pack(builder) - } - KinCfgAxsTrafoAxisAssignmentStartAssignmentVector(builder, assignmentLength) - for j := assignmentLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(assignmentOffsets[j]) - } - assignmentOffset = builder.EndVector(assignmentLength) - } - KinCfgAxsTrafoAxisAssignmentStart(builder) - KinCfgAxsTrafoAxisAssignmentAddAssignment(builder, assignmentOffset) - return KinCfgAxsTrafoAxisAssignmentEnd(builder) -} - -func (rcv *KinCfgAxsTrafoAxisAssignment) UnPackTo(t *KinCfgAxsTrafoAxisAssignmentT) { - assignmentLength := rcv.AssignmentLength() - t.Assignment = make([]*KinCfgAxsTrafoSingleAxisAssignmentT, assignmentLength) - for j := 0; j < assignmentLength; j++ { - x := KinCfgAxsTrafoSingleAxisAssignment{} - rcv.Assignment(&x, j) - t.Assignment[j] = x.UnPack() - } -} - -func (rcv *KinCfgAxsTrafoAxisAssignment) UnPack() *KinCfgAxsTrafoAxisAssignmentT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoAxisAssignmentT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoAxisAssignment struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoAxisAssignment{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoAxisAssignment{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoAxisAssignment) Table() flatbuffers.Table { - return rcv._tab -} - -/// assignment as pairs of -func (rcv *KinCfgAxsTrafoAxisAssignment) Assignment(obj *KinCfgAxsTrafoSingleAxisAssignment, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgAxsTrafoAxisAssignment) AssignmentLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// assignment as pairs of -func KinCfgAxsTrafoAxisAssignmentStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCfgAxsTrafoAxisAssignmentAddAssignment(builder *flatbuffers.Builder, assignment flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(assignment), 0) -} -func KinCfgAxsTrafoAxisAssignmentStartAssignmentVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a all axis assignments for an axis transformation +type KinCfgAxsTrafoAxisAssignmentT struct { + Assignment []*KinCfgAxsTrafoSingleAxisAssignmentT +} + +func (t *KinCfgAxsTrafoAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + assignmentOffset := flatbuffers.UOffsetT(0) + if t.Assignment != nil { + assignmentLength := len(t.Assignment) + assignmentOffsets := make([]flatbuffers.UOffsetT, assignmentLength) + for j := 0; j < assignmentLength; j++ { + assignmentOffsets[j] = t.Assignment[j].Pack(builder) + } + KinCfgAxsTrafoAxisAssignmentStartAssignmentVector(builder, assignmentLength) + for j := assignmentLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(assignmentOffsets[j]) + } + assignmentOffset = builder.EndVector(assignmentLength) + } + KinCfgAxsTrafoAxisAssignmentStart(builder) + KinCfgAxsTrafoAxisAssignmentAddAssignment(builder, assignmentOffset) + return KinCfgAxsTrafoAxisAssignmentEnd(builder) +} + +func (rcv *KinCfgAxsTrafoAxisAssignment) UnPackTo(t *KinCfgAxsTrafoAxisAssignmentT) { + assignmentLength := rcv.AssignmentLength() + t.Assignment = make([]*KinCfgAxsTrafoSingleAxisAssignmentT, assignmentLength) + for j := 0; j < assignmentLength; j++ { + x := KinCfgAxsTrafoSingleAxisAssignment{} + rcv.Assignment(&x, j) + t.Assignment[j] = x.UnPack() + } +} + +func (rcv *KinCfgAxsTrafoAxisAssignment) UnPack() *KinCfgAxsTrafoAxisAssignmentT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoAxisAssignmentT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoAxisAssignment struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoAxisAssignment{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoAxisAssignment{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoAxisAssignment) Table() flatbuffers.Table { + return rcv._tab +} + +/// assignment as pairs of +func (rcv *KinCfgAxsTrafoAxisAssignment) Assignment(obj *KinCfgAxsTrafoSingleAxisAssignment, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgAxsTrafoAxisAssignment) AssignmentLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// assignment as pairs of +func KinCfgAxsTrafoAxisAssignmentStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgAxsTrafoAxisAssignmentAddAssignment(builder *flatbuffers.Builder, assignment flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(assignment), 0) +} +func KinCfgAxsTrafoAxisAssignmentStartAssignmentVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoData.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoData.go index 7a37bc5..080e250 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoData.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of all registered axis transformations when reading all data of implemented axis transformations -type KinCfgAxsTrafoDataT struct { - AxsTrafoData []*KinCfgAxsTrafoDataSingleT -} - -func (t *KinCfgAxsTrafoDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsTrafoDataOffset := flatbuffers.UOffsetT(0) - if t.AxsTrafoData != nil { - axsTrafoDataLength := len(t.AxsTrafoData) - axsTrafoDataOffsets := make([]flatbuffers.UOffsetT, axsTrafoDataLength) - for j := 0; j < axsTrafoDataLength; j++ { - axsTrafoDataOffsets[j] = t.AxsTrafoData[j].Pack(builder) - } - KinCfgAxsTrafoDataStartAxsTrafoDataVector(builder, axsTrafoDataLength) - for j := axsTrafoDataLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(axsTrafoDataOffsets[j]) - } - axsTrafoDataOffset = builder.EndVector(axsTrafoDataLength) - } - KinCfgAxsTrafoDataStart(builder) - KinCfgAxsTrafoDataAddAxsTrafoData(builder, axsTrafoDataOffset) - return KinCfgAxsTrafoDataEnd(builder) -} - -func (rcv *KinCfgAxsTrafoData) UnPackTo(t *KinCfgAxsTrafoDataT) { - axsTrafoDataLength := rcv.AxsTrafoDataLength() - t.AxsTrafoData = make([]*KinCfgAxsTrafoDataSingleT, axsTrafoDataLength) - for j := 0; j < axsTrafoDataLength; j++ { - x := KinCfgAxsTrafoDataSingle{} - rcv.AxsTrafoData(&x, j) - t.AxsTrafoData[j] = x.UnPack() - } -} - -func (rcv *KinCfgAxsTrafoData) UnPack() *KinCfgAxsTrafoDataT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoData) Table() flatbuffers.Table { - return rcv._tab -} - -/// data of all registered axis transformations -func (rcv *KinCfgAxsTrafoData) AxsTrafoData(obj *KinCfgAxsTrafoDataSingle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgAxsTrafoData) AxsTrafoDataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// data of all registered axis transformations -func KinCfgAxsTrafoDataStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCfgAxsTrafoDataAddAxsTrafoData(builder *flatbuffers.Builder, axsTrafoData flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsTrafoData), 0) -} -func KinCfgAxsTrafoDataStartAxsTrafoDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of all registered axis transformations when reading all data of implemented axis transformations +type KinCfgAxsTrafoDataT struct { + AxsTrafoData []*KinCfgAxsTrafoDataSingleT +} + +func (t *KinCfgAxsTrafoDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsTrafoDataOffset := flatbuffers.UOffsetT(0) + if t.AxsTrafoData != nil { + axsTrafoDataLength := len(t.AxsTrafoData) + axsTrafoDataOffsets := make([]flatbuffers.UOffsetT, axsTrafoDataLength) + for j := 0; j < axsTrafoDataLength; j++ { + axsTrafoDataOffsets[j] = t.AxsTrafoData[j].Pack(builder) + } + KinCfgAxsTrafoDataStartAxsTrafoDataVector(builder, axsTrafoDataLength) + for j := axsTrafoDataLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(axsTrafoDataOffsets[j]) + } + axsTrafoDataOffset = builder.EndVector(axsTrafoDataLength) + } + KinCfgAxsTrafoDataStart(builder) + KinCfgAxsTrafoDataAddAxsTrafoData(builder, axsTrafoDataOffset) + return KinCfgAxsTrafoDataEnd(builder) +} + +func (rcv *KinCfgAxsTrafoData) UnPackTo(t *KinCfgAxsTrafoDataT) { + axsTrafoDataLength := rcv.AxsTrafoDataLength() + t.AxsTrafoData = make([]*KinCfgAxsTrafoDataSingleT, axsTrafoDataLength) + for j := 0; j < axsTrafoDataLength; j++ { + x := KinCfgAxsTrafoDataSingle{} + rcv.AxsTrafoData(&x, j) + t.AxsTrafoData[j] = x.UnPack() + } +} + +func (rcv *KinCfgAxsTrafoData) UnPack() *KinCfgAxsTrafoDataT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoData) Table() flatbuffers.Table { + return rcv._tab +} + +/// data of all registered axis transformations +func (rcv *KinCfgAxsTrafoData) AxsTrafoData(obj *KinCfgAxsTrafoDataSingle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgAxsTrafoData) AxsTrafoDataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// data of all registered axis transformations +func KinCfgAxsTrafoDataStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgAxsTrafoDataAddAxsTrafoData(builder *flatbuffers.Builder, axsTrafoData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsTrafoData), 0) +} +func KinCfgAxsTrafoDataStartAxsTrafoDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataAllParam.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataAllParam.go index e163ed6..5f91688 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataAllParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataAllParam.go @@ -1,156 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single configuration parameter of an axis transformation when reading all data of an implemented axis transformation -type KinCfgAxsTrafoDataAllParamT struct { - AxsAssignment []string - Parameter []*KinCfgAxsTrafoDataParamT -} - -func (t *KinCfgAxsTrafoDataAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsAssignmentOffset := flatbuffers.UOffsetT(0) - if t.AxsAssignment != nil { - axsAssignmentLength := len(t.AxsAssignment) - axsAssignmentOffsets := make([]flatbuffers.UOffsetT, axsAssignmentLength) - for j := 0; j < axsAssignmentLength; j++ { - axsAssignmentOffsets[j] = builder.CreateString(t.AxsAssignment[j]) - } - KinCfgAxsTrafoDataAllParamStartAxsAssignmentVector(builder, axsAssignmentLength) - for j := axsAssignmentLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(axsAssignmentOffsets[j]) - } - axsAssignmentOffset = builder.EndVector(axsAssignmentLength) - } - parameterOffset := flatbuffers.UOffsetT(0) - if t.Parameter != nil { - parameterLength := len(t.Parameter) - parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) - for j := 0; j < parameterLength; j++ { - parameterOffsets[j] = t.Parameter[j].Pack(builder) - } - KinCfgAxsTrafoDataAllParamStartParameterVector(builder, parameterLength) - for j := parameterLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(parameterOffsets[j]) - } - parameterOffset = builder.EndVector(parameterLength) - } - KinCfgAxsTrafoDataAllParamStart(builder) - KinCfgAxsTrafoDataAllParamAddAxsAssignment(builder, axsAssignmentOffset) - KinCfgAxsTrafoDataAllParamAddParameter(builder, parameterOffset) - return KinCfgAxsTrafoDataAllParamEnd(builder) -} - -func (rcv *KinCfgAxsTrafoDataAllParam) UnPackTo(t *KinCfgAxsTrafoDataAllParamT) { - axsAssignmentLength := rcv.AxsAssignmentLength() - t.AxsAssignment = make([]string, axsAssignmentLength) - for j := 0; j < axsAssignmentLength; j++ { - t.AxsAssignment[j] = string(rcv.AxsAssignment(j)) - } - parameterLength := rcv.ParameterLength() - t.Parameter = make([]*KinCfgAxsTrafoDataParamT, parameterLength) - for j := 0; j < parameterLength; j++ { - x := KinCfgAxsTrafoDataParam{} - rcv.Parameter(&x, j) - t.Parameter[j] = x.UnPack() - } -} - -func (rcv *KinCfgAxsTrafoDataAllParam) UnPack() *KinCfgAxsTrafoDataAllParamT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoDataAllParamT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoDataAllParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataAllParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoDataAllParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataAllParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoDataAllParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoDataAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoDataAllParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// Names of all axes, that are required for this axis transformation and that require an axis assignment -func (rcv *KinCfgAxsTrafoDataAllParam) AxsAssignment(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *KinCfgAxsTrafoDataAllParam) AxsAssignmentLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Names of all axes, that are required for this axis transformation and that require an axis assignment -/// Vector of all configuration parameters of the axis transformation -func (rcv *KinCfgAxsTrafoDataAllParam) Parameter(obj *KinCfgAxsTrafoDataParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgAxsTrafoDataAllParam) ParameterLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Vector of all configuration parameters of the axis transformation -func KinCfgAxsTrafoDataAllParamStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCfgAxsTrafoDataAllParamAddAxsAssignment(builder *flatbuffers.Builder, axsAssignment flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsAssignment), 0) -} -func KinCfgAxsTrafoDataAllParamStartAxsAssignmentVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoDataAllParamAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(parameter), 0) -} -func KinCfgAxsTrafoDataAllParamStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoDataAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single configuration parameter of an axis transformation when reading all data of an implemented axis transformation +type KinCfgAxsTrafoDataAllParamT struct { + AxsAssignment []string + Parameter []*KinCfgAxsTrafoDataParamT +} + +func (t *KinCfgAxsTrafoDataAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsAssignmentOffset := flatbuffers.UOffsetT(0) + if t.AxsAssignment != nil { + axsAssignmentLength := len(t.AxsAssignment) + axsAssignmentOffsets := make([]flatbuffers.UOffsetT, axsAssignmentLength) + for j := 0; j < axsAssignmentLength; j++ { + axsAssignmentOffsets[j] = builder.CreateString(t.AxsAssignment[j]) + } + KinCfgAxsTrafoDataAllParamStartAxsAssignmentVector(builder, axsAssignmentLength) + for j := axsAssignmentLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(axsAssignmentOffsets[j]) + } + axsAssignmentOffset = builder.EndVector(axsAssignmentLength) + } + parameterOffset := flatbuffers.UOffsetT(0) + if t.Parameter != nil { + parameterLength := len(t.Parameter) + parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) + for j := 0; j < parameterLength; j++ { + parameterOffsets[j] = t.Parameter[j].Pack(builder) + } + KinCfgAxsTrafoDataAllParamStartParameterVector(builder, parameterLength) + for j := parameterLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(parameterOffsets[j]) + } + parameterOffset = builder.EndVector(parameterLength) + } + KinCfgAxsTrafoDataAllParamStart(builder) + KinCfgAxsTrafoDataAllParamAddAxsAssignment(builder, axsAssignmentOffset) + KinCfgAxsTrafoDataAllParamAddParameter(builder, parameterOffset) + return KinCfgAxsTrafoDataAllParamEnd(builder) +} + +func (rcv *KinCfgAxsTrafoDataAllParam) UnPackTo(t *KinCfgAxsTrafoDataAllParamT) { + axsAssignmentLength := rcv.AxsAssignmentLength() + t.AxsAssignment = make([]string, axsAssignmentLength) + for j := 0; j < axsAssignmentLength; j++ { + t.AxsAssignment[j] = string(rcv.AxsAssignment(j)) + } + parameterLength := rcv.ParameterLength() + t.Parameter = make([]*KinCfgAxsTrafoDataParamT, parameterLength) + for j := 0; j < parameterLength; j++ { + x := KinCfgAxsTrafoDataParam{} + rcv.Parameter(&x, j) + t.Parameter[j] = x.UnPack() + } +} + +func (rcv *KinCfgAxsTrafoDataAllParam) UnPack() *KinCfgAxsTrafoDataAllParamT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoDataAllParamT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoDataAllParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataAllParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoDataAllParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataAllParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoDataAllParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoDataAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoDataAllParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// Names of all axes, that are required for this axis transformation and that require an axis assignment +func (rcv *KinCfgAxsTrafoDataAllParam) AxsAssignment(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *KinCfgAxsTrafoDataAllParam) AxsAssignmentLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Names of all axes, that are required for this axis transformation and that require an axis assignment +/// Vector of all configuration parameters of the axis transformation +func (rcv *KinCfgAxsTrafoDataAllParam) Parameter(obj *KinCfgAxsTrafoDataParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgAxsTrafoDataAllParam) ParameterLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Vector of all configuration parameters of the axis transformation +func KinCfgAxsTrafoDataAllParamStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCfgAxsTrafoDataAllParamAddAxsAssignment(builder *flatbuffers.Builder, axsAssignment flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsAssignment), 0) +} +func KinCfgAxsTrafoDataAllParamStartAxsAssignmentVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoDataAllParamAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(parameter), 0) +} +func KinCfgAxsTrafoDataAllParamStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoDataAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataParam.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataParam.go index da1266a..dca84b1 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataParam.go @@ -1,228 +1,228 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single configuration parameter of an axis transformation when reading all data of an implemented axis transformation -type KinCfgAxsTrafoDataParamT struct { - Name string - Description string - Image string - DocRef string - Group string - Unit string - Values []string - Type VarType -} - -func (t *KinCfgAxsTrafoDataParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - descriptionOffset := builder.CreateString(t.Description) - imageOffset := builder.CreateString(t.Image) - docRefOffset := builder.CreateString(t.DocRef) - groupOffset := builder.CreateString(t.Group) - unitOffset := builder.CreateString(t.Unit) - valuesOffset := flatbuffers.UOffsetT(0) - if t.Values != nil { - valuesLength := len(t.Values) - valuesOffsets := make([]flatbuffers.UOffsetT, valuesLength) - for j := 0; j < valuesLength; j++ { - valuesOffsets[j] = builder.CreateString(t.Values[j]) - } - KinCfgAxsTrafoDataParamStartValuesVector(builder, valuesLength) - for j := valuesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(valuesOffsets[j]) - } - valuesOffset = builder.EndVector(valuesLength) - } - KinCfgAxsTrafoDataParamStart(builder) - KinCfgAxsTrafoDataParamAddName(builder, nameOffset) - KinCfgAxsTrafoDataParamAddDescription(builder, descriptionOffset) - KinCfgAxsTrafoDataParamAddImage(builder, imageOffset) - KinCfgAxsTrafoDataParamAddDocRef(builder, docRefOffset) - KinCfgAxsTrafoDataParamAddGroup(builder, groupOffset) - KinCfgAxsTrafoDataParamAddUnit(builder, unitOffset) - KinCfgAxsTrafoDataParamAddValues(builder, valuesOffset) - KinCfgAxsTrafoDataParamAddType(builder, t.Type) - return KinCfgAxsTrafoDataParamEnd(builder) -} - -func (rcv *KinCfgAxsTrafoDataParam) UnPackTo(t *KinCfgAxsTrafoDataParamT) { - t.Name = string(rcv.Name()) - t.Description = string(rcv.Description()) - t.Image = string(rcv.Image()) - t.DocRef = string(rcv.DocRef()) - t.Group = string(rcv.Group()) - t.Unit = string(rcv.Unit()) - valuesLength := rcv.ValuesLength() - t.Values = make([]string, valuesLength) - for j := 0; j < valuesLength; j++ { - t.Values[j] = string(rcv.Values(j)) - } - t.Type = rcv.Type() -} - -func (rcv *KinCfgAxsTrafoDataParam) UnPack() *KinCfgAxsTrafoDataParamT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoDataParamT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoDataParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoDataParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoDataParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoDataParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoDataParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// Name of the parameter -func (rcv *KinCfgAxsTrafoDataParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Name of the parameter -/// Description of the parameter -func (rcv *KinCfgAxsTrafoDataParam) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Description of the parameter -/// Image (link) of the parameter -func (rcv *KinCfgAxsTrafoDataParam) Image() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Image (link) of the parameter -/// Reference to the documentation of the parameter -func (rcv *KinCfgAxsTrafoDataParam) DocRef() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Reference to the documentation of the parameter -/// Group of the parameter (might be empty, when this parameter is not part of a group) -func (rcv *KinCfgAxsTrafoDataParam) Group() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Group of the parameter (might be empty, when this parameter is not part of a group) -/// Expected unit of the parameter (might be empty for unitless parameters -func (rcv *KinCfgAxsTrafoDataParam) Unit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Expected unit of the parameter (might be empty for unitless parameters -/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) -func (rcv *KinCfgAxsTrafoDataParam) Values(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *KinCfgAxsTrafoDataParam) ValuesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) -/// Type of the variable -func (rcv *KinCfgAxsTrafoDataParam) Type() VarType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return VarType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -/// Type of the variable -func (rcv *KinCfgAxsTrafoDataParam) MutateType(n VarType) bool { - return rcv._tab.MutateInt8Slot(18, int8(n)) -} - -func KinCfgAxsTrafoDataParamStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func KinCfgAxsTrafoDataParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgAxsTrafoDataParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) -} -func KinCfgAxsTrafoDataParamAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(image), 0) -} -func KinCfgAxsTrafoDataParamAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(docRef), 0) -} -func KinCfgAxsTrafoDataParamAddGroup(builder *flatbuffers.Builder, group flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(group), 0) -} -func KinCfgAxsTrafoDataParamAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(unit), 0) -} -func KinCfgAxsTrafoDataParamAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(values), 0) -} -func KinCfgAxsTrafoDataParamStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoDataParamAddType(builder *flatbuffers.Builder, type_ VarType) { - builder.PrependInt8Slot(7, int8(type_), 1) -} -func KinCfgAxsTrafoDataParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single configuration parameter of an axis transformation when reading all data of an implemented axis transformation +type KinCfgAxsTrafoDataParamT struct { + Name string + Description string + Image string + DocRef string + Group string + Unit string + Values []string + Type VarType +} + +func (t *KinCfgAxsTrafoDataParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + imageOffset := builder.CreateString(t.Image) + docRefOffset := builder.CreateString(t.DocRef) + groupOffset := builder.CreateString(t.Group) + unitOffset := builder.CreateString(t.Unit) + valuesOffset := flatbuffers.UOffsetT(0) + if t.Values != nil { + valuesLength := len(t.Values) + valuesOffsets := make([]flatbuffers.UOffsetT, valuesLength) + for j := 0; j < valuesLength; j++ { + valuesOffsets[j] = builder.CreateString(t.Values[j]) + } + KinCfgAxsTrafoDataParamStartValuesVector(builder, valuesLength) + for j := valuesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(valuesOffsets[j]) + } + valuesOffset = builder.EndVector(valuesLength) + } + KinCfgAxsTrafoDataParamStart(builder) + KinCfgAxsTrafoDataParamAddName(builder, nameOffset) + KinCfgAxsTrafoDataParamAddDescription(builder, descriptionOffset) + KinCfgAxsTrafoDataParamAddImage(builder, imageOffset) + KinCfgAxsTrafoDataParamAddDocRef(builder, docRefOffset) + KinCfgAxsTrafoDataParamAddGroup(builder, groupOffset) + KinCfgAxsTrafoDataParamAddUnit(builder, unitOffset) + KinCfgAxsTrafoDataParamAddValues(builder, valuesOffset) + KinCfgAxsTrafoDataParamAddType(builder, t.Type) + return KinCfgAxsTrafoDataParamEnd(builder) +} + +func (rcv *KinCfgAxsTrafoDataParam) UnPackTo(t *KinCfgAxsTrafoDataParamT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + t.Image = string(rcv.Image()) + t.DocRef = string(rcv.DocRef()) + t.Group = string(rcv.Group()) + t.Unit = string(rcv.Unit()) + valuesLength := rcv.ValuesLength() + t.Values = make([]string, valuesLength) + for j := 0; j < valuesLength; j++ { + t.Values[j] = string(rcv.Values(j)) + } + t.Type = rcv.Type() +} + +func (rcv *KinCfgAxsTrafoDataParam) UnPack() *KinCfgAxsTrafoDataParamT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoDataParamT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoDataParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoDataParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoDataParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoDataParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoDataParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of the parameter +func (rcv *KinCfgAxsTrafoDataParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the parameter +/// Description of the parameter +func (rcv *KinCfgAxsTrafoDataParam) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Description of the parameter +/// Image (link) of the parameter +func (rcv *KinCfgAxsTrafoDataParam) Image() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Image (link) of the parameter +/// Reference to the documentation of the parameter +func (rcv *KinCfgAxsTrafoDataParam) DocRef() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Reference to the documentation of the parameter +/// Group of the parameter (might be empty, when this parameter is not part of a group) +func (rcv *KinCfgAxsTrafoDataParam) Group() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Group of the parameter (might be empty, when this parameter is not part of a group) +/// Expected unit of the parameter (might be empty for unitless parameters +func (rcv *KinCfgAxsTrafoDataParam) Unit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Expected unit of the parameter (might be empty for unitless parameters +/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) +func (rcv *KinCfgAxsTrafoDataParam) Values(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *KinCfgAxsTrafoDataParam) ValuesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) +/// Type of the variable +func (rcv *KinCfgAxsTrafoDataParam) Type() VarType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return VarType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Type of the variable +func (rcv *KinCfgAxsTrafoDataParam) MutateType(n VarType) bool { + return rcv._tab.MutateInt8Slot(18, int8(n)) +} + +func KinCfgAxsTrafoDataParamStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func KinCfgAxsTrafoDataParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgAxsTrafoDataParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func KinCfgAxsTrafoDataParamAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(image), 0) +} +func KinCfgAxsTrafoDataParamAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(docRef), 0) +} +func KinCfgAxsTrafoDataParamAddGroup(builder *flatbuffers.Builder, group flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(group), 0) +} +func KinCfgAxsTrafoDataParamAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(unit), 0) +} +func KinCfgAxsTrafoDataParamAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(values), 0) +} +func KinCfgAxsTrafoDataParamStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoDataParamAddType(builder *flatbuffers.Builder, type_ VarType) { + builder.PrependInt8Slot(7, int8(type_), 1) +} +func KinCfgAxsTrafoDataParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataSingle.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataSingle.go index 6d4bc1b..568d166 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataSingle.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoDataSingle.go @@ -1,188 +1,188 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single registered axis transformation when reading all data of an implemented axis transformation -type KinCfgAxsTrafoDataSingleT struct { - Name string - Description string - Image string - DocRef string - Version string - Pow POWType - Parameters *KinCfgAxsTrafoDataAllParamT -} - -func (t *KinCfgAxsTrafoDataSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - descriptionOffset := builder.CreateString(t.Description) - imageOffset := builder.CreateString(t.Image) - docRefOffset := builder.CreateString(t.DocRef) - versionOffset := builder.CreateString(t.Version) - parametersOffset := t.Parameters.Pack(builder) - KinCfgAxsTrafoDataSingleStart(builder) - KinCfgAxsTrafoDataSingleAddName(builder, nameOffset) - KinCfgAxsTrafoDataSingleAddDescription(builder, descriptionOffset) - KinCfgAxsTrafoDataSingleAddImage(builder, imageOffset) - KinCfgAxsTrafoDataSingleAddDocRef(builder, docRefOffset) - KinCfgAxsTrafoDataSingleAddVersion(builder, versionOffset) - KinCfgAxsTrafoDataSingleAddPow(builder, t.Pow) - KinCfgAxsTrafoDataSingleAddParameters(builder, parametersOffset) - return KinCfgAxsTrafoDataSingleEnd(builder) -} - -func (rcv *KinCfgAxsTrafoDataSingle) UnPackTo(t *KinCfgAxsTrafoDataSingleT) { - t.Name = string(rcv.Name()) - t.Description = string(rcv.Description()) - t.Image = string(rcv.Image()) - t.DocRef = string(rcv.DocRef()) - t.Version = string(rcv.Version()) - t.Pow = rcv.Pow() - t.Parameters = rcv.Parameters(nil).UnPack() -} - -func (rcv *KinCfgAxsTrafoDataSingle) UnPack() *KinCfgAxsTrafoDataSingleT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoDataSingleT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoDataSingle struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataSingle { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoDataSingle{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataSingle { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoDataSingle{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoDataSingle) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoDataSingle) Table() flatbuffers.Table { - return rcv._tab -} - -/// Name of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Name of the axis transformation -/// Description of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Description of the axis transformation -/// Image (link) of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) Image() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Image (link) of the axis transformation -/// Reference to the documentation of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) DocRef() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Reference to the documentation of the axis transformation -/// Version string of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Version string of the axis transformation -/// Point of work of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) Pow() POWType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return POWType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -/// Point of work of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) MutatePow(n POWType) bool { - return rcv._tab.MutateInt8Slot(14, int8(n)) -} - -/// All configuration parameters of the axis transformation -func (rcv *KinCfgAxsTrafoDataSingle) Parameters(obj *KinCfgAxsTrafoDataAllParam) *KinCfgAxsTrafoDataAllParam { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgAxsTrafoDataAllParam) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// All configuration parameters of the axis transformation -func KinCfgAxsTrafoDataSingleStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func KinCfgAxsTrafoDataSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgAxsTrafoDataSingleAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) -} -func KinCfgAxsTrafoDataSingleAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(image), 0) -} -func KinCfgAxsTrafoDataSingleAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(docRef), 0) -} -func KinCfgAxsTrafoDataSingleAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(version), 0) -} -func KinCfgAxsTrafoDataSingleAddPow(builder *flatbuffers.Builder, pow POWType) { - builder.PrependInt8Slot(5, int8(pow), 1) -} -func KinCfgAxsTrafoDataSingleAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(parameters), 0) -} -func KinCfgAxsTrafoDataSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single registered axis transformation when reading all data of an implemented axis transformation +type KinCfgAxsTrafoDataSingleT struct { + Name string + Description string + Image string + DocRef string + Version string + Pow POWType + Parameters *KinCfgAxsTrafoDataAllParamT +} + +func (t *KinCfgAxsTrafoDataSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + imageOffset := builder.CreateString(t.Image) + docRefOffset := builder.CreateString(t.DocRef) + versionOffset := builder.CreateString(t.Version) + parametersOffset := t.Parameters.Pack(builder) + KinCfgAxsTrafoDataSingleStart(builder) + KinCfgAxsTrafoDataSingleAddName(builder, nameOffset) + KinCfgAxsTrafoDataSingleAddDescription(builder, descriptionOffset) + KinCfgAxsTrafoDataSingleAddImage(builder, imageOffset) + KinCfgAxsTrafoDataSingleAddDocRef(builder, docRefOffset) + KinCfgAxsTrafoDataSingleAddVersion(builder, versionOffset) + KinCfgAxsTrafoDataSingleAddPow(builder, t.Pow) + KinCfgAxsTrafoDataSingleAddParameters(builder, parametersOffset) + return KinCfgAxsTrafoDataSingleEnd(builder) +} + +func (rcv *KinCfgAxsTrafoDataSingle) UnPackTo(t *KinCfgAxsTrafoDataSingleT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + t.Image = string(rcv.Image()) + t.DocRef = string(rcv.DocRef()) + t.Version = string(rcv.Version()) + t.Pow = rcv.Pow() + t.Parameters = rcv.Parameters(nil).UnPack() +} + +func (rcv *KinCfgAxsTrafoDataSingle) UnPack() *KinCfgAxsTrafoDataSingleT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoDataSingleT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoDataSingle struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataSingle { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoDataSingle{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoDataSingle { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoDataSingle{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoDataSingle) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoDataSingle) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the axis transformation +/// Description of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Description of the axis transformation +/// Image (link) of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) Image() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Image (link) of the axis transformation +/// Reference to the documentation of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) DocRef() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Reference to the documentation of the axis transformation +/// Version string of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Version string of the axis transformation +/// Point of work of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) Pow() POWType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return POWType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Point of work of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) MutatePow(n POWType) bool { + return rcv._tab.MutateInt8Slot(14, int8(n)) +} + +/// All configuration parameters of the axis transformation +func (rcv *KinCfgAxsTrafoDataSingle) Parameters(obj *KinCfgAxsTrafoDataAllParam) *KinCfgAxsTrafoDataAllParam { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgAxsTrafoDataAllParam) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// All configuration parameters of the axis transformation +func KinCfgAxsTrafoDataSingleStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func KinCfgAxsTrafoDataSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgAxsTrafoDataSingleAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func KinCfgAxsTrafoDataSingleAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(image), 0) +} +func KinCfgAxsTrafoDataSingleAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(docRef), 0) +} +func KinCfgAxsTrafoDataSingleAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(version), 0) +} +func KinCfgAxsTrafoDataSingleAddPow(builder *flatbuffers.Builder, pow POWType) { + builder.PrependInt8Slot(5, int8(pow), 1) +} +func KinCfgAxsTrafoDataSingleAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(parameters), 0) +} +func KinCfgAxsTrafoDataSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoParamGroup.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoParamGroup.go index ac8c0bf..1b22312 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoParamGroup.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoParamGroup.go @@ -1,128 +1,128 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single parameter group of an axis transformation -type KinCfgAxsTrafoParamGroupT struct { - Name string - Param []*KinCfgAxsTrafoSingleParamT -} - -func (t *KinCfgAxsTrafoParamGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - paramOffset := flatbuffers.UOffsetT(0) - if t.Param != nil { - paramLength := len(t.Param) - paramOffsets := make([]flatbuffers.UOffsetT, paramLength) - for j := 0; j < paramLength; j++ { - paramOffsets[j] = t.Param[j].Pack(builder) - } - KinCfgAxsTrafoParamGroupStartParamVector(builder, paramLength) - for j := paramLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(paramOffsets[j]) - } - paramOffset = builder.EndVector(paramLength) - } - KinCfgAxsTrafoParamGroupStart(builder) - KinCfgAxsTrafoParamGroupAddName(builder, nameOffset) - KinCfgAxsTrafoParamGroupAddParam(builder, paramOffset) - return KinCfgAxsTrafoParamGroupEnd(builder) -} - -func (rcv *KinCfgAxsTrafoParamGroup) UnPackTo(t *KinCfgAxsTrafoParamGroupT) { - t.Name = string(rcv.Name()) - paramLength := rcv.ParamLength() - t.Param = make([]*KinCfgAxsTrafoSingleParamT, paramLength) - for j := 0; j < paramLength; j++ { - x := KinCfgAxsTrafoSingleParam{} - rcv.Param(&x, j) - t.Param[j] = x.UnPack() - } -} - -func (rcv *KinCfgAxsTrafoParamGroup) UnPack() *KinCfgAxsTrafoParamGroupT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoParamGroupT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoParamGroup struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoParamGroup { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoParamGroup{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoParamGroup { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoParamGroup{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoParamGroup) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoParamGroup) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter group -func (rcv *KinCfgAxsTrafoParamGroup) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter group -/// all configuration parameter of this group -func (rcv *KinCfgAxsTrafoParamGroup) Param(obj *KinCfgAxsTrafoSingleParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgAxsTrafoParamGroup) ParamLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// all configuration parameter of this group -func KinCfgAxsTrafoParamGroupStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCfgAxsTrafoParamGroupAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgAxsTrafoParamGroupAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(param), 0) -} -func KinCfgAxsTrafoParamGroupStartParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgAxsTrafoParamGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single parameter group of an axis transformation +type KinCfgAxsTrafoParamGroupT struct { + Name string + Param []*KinCfgAxsTrafoSingleParamT +} + +func (t *KinCfgAxsTrafoParamGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + paramOffset := flatbuffers.UOffsetT(0) + if t.Param != nil { + paramLength := len(t.Param) + paramOffsets := make([]flatbuffers.UOffsetT, paramLength) + for j := 0; j < paramLength; j++ { + paramOffsets[j] = t.Param[j].Pack(builder) + } + KinCfgAxsTrafoParamGroupStartParamVector(builder, paramLength) + for j := paramLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(paramOffsets[j]) + } + paramOffset = builder.EndVector(paramLength) + } + KinCfgAxsTrafoParamGroupStart(builder) + KinCfgAxsTrafoParamGroupAddName(builder, nameOffset) + KinCfgAxsTrafoParamGroupAddParam(builder, paramOffset) + return KinCfgAxsTrafoParamGroupEnd(builder) +} + +func (rcv *KinCfgAxsTrafoParamGroup) UnPackTo(t *KinCfgAxsTrafoParamGroupT) { + t.Name = string(rcv.Name()) + paramLength := rcv.ParamLength() + t.Param = make([]*KinCfgAxsTrafoSingleParamT, paramLength) + for j := 0; j < paramLength; j++ { + x := KinCfgAxsTrafoSingleParam{} + rcv.Param(&x, j) + t.Param[j] = x.UnPack() + } +} + +func (rcv *KinCfgAxsTrafoParamGroup) UnPack() *KinCfgAxsTrafoParamGroupT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoParamGroupT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoParamGroup struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoParamGroup { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoParamGroup{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoParamGroup { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoParamGroup{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoParamGroup) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoParamGroup) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter group +func (rcv *KinCfgAxsTrafoParamGroup) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter group +/// all configuration parameter of this group +func (rcv *KinCfgAxsTrafoParamGroup) Param(obj *KinCfgAxsTrafoSingleParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgAxsTrafoParamGroup) ParamLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// all configuration parameter of this group +func KinCfgAxsTrafoParamGroupStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCfgAxsTrafoParamGroupAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgAxsTrafoParamGroupAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(param), 0) +} +func KinCfgAxsTrafoParamGroupStartParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgAxsTrafoParamGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSet.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSet.go index 12fd3de..0399891 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSet.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSet.go @@ -1,117 +1,117 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single axis transformation set -type KinCfgAxsTrafoSetT struct { - Name string - AxsTrafo string - Param *KinCfgAxsTrafoAllParamT -} - -func (t *KinCfgAxsTrafoSetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - axsTrafoOffset := builder.CreateString(t.AxsTrafo) - paramOffset := t.Param.Pack(builder) - KinCfgAxsTrafoSetStart(builder) - KinCfgAxsTrafoSetAddName(builder, nameOffset) - KinCfgAxsTrafoSetAddAxsTrafo(builder, axsTrafoOffset) - KinCfgAxsTrafoSetAddParam(builder, paramOffset) - return KinCfgAxsTrafoSetEnd(builder) -} - -func (rcv *KinCfgAxsTrafoSet) UnPackTo(t *KinCfgAxsTrafoSetT) { - t.Name = string(rcv.Name()) - t.AxsTrafo = string(rcv.AxsTrafo()) - t.Param = rcv.Param(nil).UnPack() -} - -func (rcv *KinCfgAxsTrafoSet) UnPack() *KinCfgAxsTrafoSetT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoSetT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoSet struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSet { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoSet{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSet { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoSet{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoSet) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoSet) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the axis transformation set -func (rcv *KinCfgAxsTrafoSet) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the axis transformation set -/// name of the axis transformation -func (rcv *KinCfgAxsTrafoSet) AxsTrafo() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the axis transformation -/// configuration parameter of the axis transformation -func (rcv *KinCfgAxsTrafoSet) Param(obj *KinCfgAxsTrafoAllParam) *KinCfgAxsTrafoAllParam { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgAxsTrafoAllParam) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration parameter of the axis transformation -func KinCfgAxsTrafoSetStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinCfgAxsTrafoSetAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgAxsTrafoSetAddAxsTrafo(builder *flatbuffers.Builder, axsTrafo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axsTrafo), 0) -} -func KinCfgAxsTrafoSetAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(param), 0) -} -func KinCfgAxsTrafoSetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single axis transformation set +type KinCfgAxsTrafoSetT struct { + Name string + AxsTrafo string + Param *KinCfgAxsTrafoAllParamT +} + +func (t *KinCfgAxsTrafoSetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + axsTrafoOffset := builder.CreateString(t.AxsTrafo) + paramOffset := t.Param.Pack(builder) + KinCfgAxsTrafoSetStart(builder) + KinCfgAxsTrafoSetAddName(builder, nameOffset) + KinCfgAxsTrafoSetAddAxsTrafo(builder, axsTrafoOffset) + KinCfgAxsTrafoSetAddParam(builder, paramOffset) + return KinCfgAxsTrafoSetEnd(builder) +} + +func (rcv *KinCfgAxsTrafoSet) UnPackTo(t *KinCfgAxsTrafoSetT) { + t.Name = string(rcv.Name()) + t.AxsTrafo = string(rcv.AxsTrafo()) + t.Param = rcv.Param(nil).UnPack() +} + +func (rcv *KinCfgAxsTrafoSet) UnPack() *KinCfgAxsTrafoSetT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoSetT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoSet struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSet { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoSet{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSet { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoSet{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoSet) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoSet) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the axis transformation set +func (rcv *KinCfgAxsTrafoSet) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the axis transformation set +/// name of the axis transformation +func (rcv *KinCfgAxsTrafoSet) AxsTrafo() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the axis transformation +/// configuration parameter of the axis transformation +func (rcv *KinCfgAxsTrafoSet) Param(obj *KinCfgAxsTrafoAllParam) *KinCfgAxsTrafoAllParam { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgAxsTrafoAllParam) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration parameter of the axis transformation +func KinCfgAxsTrafoSetStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCfgAxsTrafoSetAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgAxsTrafoSetAddAxsTrafo(builder *flatbuffers.Builder, axsTrafo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axsTrafo), 0) +} +func KinCfgAxsTrafoSetAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(param), 0) +} +func KinCfgAxsTrafoSetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleAxisAssignment.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleAxisAssignment.go index a767b9e..7c5a29e 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleAxisAssignment.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleAxisAssignment.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single axis assignment for an axis transformation -type KinCfgAxsTrafoSingleAxisAssignmentT struct { - AxisName string - IndexACS byte -} - -func (t *KinCfgAxsTrafoSingleAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axisNameOffset := builder.CreateString(t.AxisName) - KinCfgAxsTrafoSingleAxisAssignmentStart(builder) - KinCfgAxsTrafoSingleAxisAssignmentAddAxisName(builder, axisNameOffset) - KinCfgAxsTrafoSingleAxisAssignmentAddIndexACS(builder, t.IndexACS) - return KinCfgAxsTrafoSingleAxisAssignmentEnd(builder) -} - -func (rcv *KinCfgAxsTrafoSingleAxisAssignment) UnPackTo(t *KinCfgAxsTrafoSingleAxisAssignmentT) { - t.AxisName = string(rcv.AxisName()) - t.IndexACS = rcv.IndexACS() -} - -func (rcv *KinCfgAxsTrafoSingleAxisAssignment) UnPack() *KinCfgAxsTrafoSingleAxisAssignmentT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoSingleAxisAssignmentT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoSingleAxisAssignment struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoSingleAxisAssignment{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoSingleAxisAssignment{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoSingleAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoSingleAxisAssignment) Table() flatbuffers.Table { - return rcv._tab -} - -/// axis name referring to the axis transformation -func (rcv *KinCfgAxsTrafoSingleAxisAssignment) AxisName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// axis name referring to the axis transformation -/// index of the ACS array -func (rcv *KinCfgAxsTrafoSingleAxisAssignment) IndexACS() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -/// index of the ACS array -func (rcv *KinCfgAxsTrafoSingleAxisAssignment) MutateIndexACS(n byte) bool { - return rcv._tab.MutateByteSlot(6, n) -} - -func KinCfgAxsTrafoSingleAxisAssignmentStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCfgAxsTrafoSingleAxisAssignmentAddAxisName(builder *flatbuffers.Builder, axisName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisName), 0) -} -func KinCfgAxsTrafoSingleAxisAssignmentAddIndexACS(builder *flatbuffers.Builder, indexACS byte) { - builder.PrependByteSlot(1, indexACS, 0) -} -func KinCfgAxsTrafoSingleAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single axis assignment for an axis transformation +type KinCfgAxsTrafoSingleAxisAssignmentT struct { + AxisName string + IndexACS byte +} + +func (t *KinCfgAxsTrafoSingleAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axisNameOffset := builder.CreateString(t.AxisName) + KinCfgAxsTrafoSingleAxisAssignmentStart(builder) + KinCfgAxsTrafoSingleAxisAssignmentAddAxisName(builder, axisNameOffset) + KinCfgAxsTrafoSingleAxisAssignmentAddIndexACS(builder, t.IndexACS) + return KinCfgAxsTrafoSingleAxisAssignmentEnd(builder) +} + +func (rcv *KinCfgAxsTrafoSingleAxisAssignment) UnPackTo(t *KinCfgAxsTrafoSingleAxisAssignmentT) { + t.AxisName = string(rcv.AxisName()) + t.IndexACS = rcv.IndexACS() +} + +func (rcv *KinCfgAxsTrafoSingleAxisAssignment) UnPack() *KinCfgAxsTrafoSingleAxisAssignmentT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoSingleAxisAssignmentT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoSingleAxisAssignment struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoSingleAxisAssignment{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoSingleAxisAssignment{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoSingleAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoSingleAxisAssignment) Table() flatbuffers.Table { + return rcv._tab +} + +/// axis name referring to the axis transformation +func (rcv *KinCfgAxsTrafoSingleAxisAssignment) AxisName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// axis name referring to the axis transformation +/// index of the ACS array +func (rcv *KinCfgAxsTrafoSingleAxisAssignment) IndexACS() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +/// index of the ACS array +func (rcv *KinCfgAxsTrafoSingleAxisAssignment) MutateIndexACS(n byte) bool { + return rcv._tab.MutateByteSlot(6, n) +} + +func KinCfgAxsTrafoSingleAxisAssignmentStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCfgAxsTrafoSingleAxisAssignmentAddAxisName(builder *flatbuffers.Builder, axisName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisName), 0) +} +func KinCfgAxsTrafoSingleAxisAssignmentAddIndexACS(builder *flatbuffers.Builder, indexACS byte) { + builder.PrependByteSlot(1, indexACS, 0) +} +func KinCfgAxsTrafoSingleAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleParam.go b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleParam.go index 3a1ee89..168aaf7 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgAxsTrafoSingleParam.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single parameter of an axis transformation -type KinCfgAxsTrafoSingleParamT struct { - Name string - ValueDouble float64 - ValueInt int64 - ValueString string -} - -func (t *KinCfgAxsTrafoSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - valueStringOffset := builder.CreateString(t.ValueString) - KinCfgAxsTrafoSingleParamStart(builder) - KinCfgAxsTrafoSingleParamAddName(builder, nameOffset) - KinCfgAxsTrafoSingleParamAddValueDouble(builder, t.ValueDouble) - KinCfgAxsTrafoSingleParamAddValueInt(builder, t.ValueInt) - KinCfgAxsTrafoSingleParamAddValueString(builder, valueStringOffset) - return KinCfgAxsTrafoSingleParamEnd(builder) -} - -func (rcv *KinCfgAxsTrafoSingleParam) UnPackTo(t *KinCfgAxsTrafoSingleParamT) { - t.Name = string(rcv.Name()) - t.ValueDouble = rcv.ValueDouble() - t.ValueInt = rcv.ValueInt() - t.ValueString = string(rcv.ValueString()) -} - -func (rcv *KinCfgAxsTrafoSingleParam) UnPack() *KinCfgAxsTrafoSingleParamT { - if rcv == nil { return nil } - t := &KinCfgAxsTrafoSingleParamT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgAxsTrafoSingleParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgAxsTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgAxsTrafoSingleParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgAxsTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgAxsTrafoSingleParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgAxsTrafoSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgAxsTrafoSingleParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter -func (rcv *KinCfgAxsTrafoSingleParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter -/// value of the parameter (when it's a double value) -func (rcv *KinCfgAxsTrafoSingleParam) ValueDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// value of the parameter (when it's a double value) -func (rcv *KinCfgAxsTrafoSingleParam) MutateValueDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// value of the parameter (when it's a integer value) -func (rcv *KinCfgAxsTrafoSingleParam) ValueInt() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -/// value of the parameter (when it's a integer value) -func (rcv *KinCfgAxsTrafoSingleParam) MutateValueInt(n int64) bool { - return rcv._tab.MutateInt64Slot(8, n) -} - -/// value of the parameter (when it's a string value) -func (rcv *KinCfgAxsTrafoSingleParam) ValueString() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// value of the parameter (when it's a string value) -func KinCfgAxsTrafoSingleParamStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCfgAxsTrafoSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgAxsTrafoSingleParamAddValueDouble(builder *flatbuffers.Builder, valueDouble float64) { - builder.PrependFloat64Slot(1, valueDouble, 0.0) -} -func KinCfgAxsTrafoSingleParamAddValueInt(builder *flatbuffers.Builder, valueInt int64) { - builder.PrependInt64Slot(2, valueInt, 0) -} -func KinCfgAxsTrafoSingleParamAddValueString(builder *flatbuffers.Builder, valueString flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(valueString), 0) -} -func KinCfgAxsTrafoSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single parameter of an axis transformation +type KinCfgAxsTrafoSingleParamT struct { + Name string + ValueDouble float64 + ValueInt int64 + ValueString string +} + +func (t *KinCfgAxsTrafoSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueStringOffset := builder.CreateString(t.ValueString) + KinCfgAxsTrafoSingleParamStart(builder) + KinCfgAxsTrafoSingleParamAddName(builder, nameOffset) + KinCfgAxsTrafoSingleParamAddValueDouble(builder, t.ValueDouble) + KinCfgAxsTrafoSingleParamAddValueInt(builder, t.ValueInt) + KinCfgAxsTrafoSingleParamAddValueString(builder, valueStringOffset) + return KinCfgAxsTrafoSingleParamEnd(builder) +} + +func (rcv *KinCfgAxsTrafoSingleParam) UnPackTo(t *KinCfgAxsTrafoSingleParamT) { + t.Name = string(rcv.Name()) + t.ValueDouble = rcv.ValueDouble() + t.ValueInt = rcv.ValueInt() + t.ValueString = string(rcv.ValueString()) +} + +func (rcv *KinCfgAxsTrafoSingleParam) UnPack() *KinCfgAxsTrafoSingleParamT { + if rcv == nil { return nil } + t := &KinCfgAxsTrafoSingleParamT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgAxsTrafoSingleParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgAxsTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgAxsTrafoSingleParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgAxsTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgAxsTrafoSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgAxsTrafoSingleParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgAxsTrafoSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgAxsTrafoSingleParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter +func (rcv *KinCfgAxsTrafoSingleParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter +/// value of the parameter (when it's a double value) +func (rcv *KinCfgAxsTrafoSingleParam) ValueDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// value of the parameter (when it's a double value) +func (rcv *KinCfgAxsTrafoSingleParam) MutateValueDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// value of the parameter (when it's a integer value) +func (rcv *KinCfgAxsTrafoSingleParam) ValueInt() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +/// value of the parameter (when it's a integer value) +func (rcv *KinCfgAxsTrafoSingleParam) MutateValueInt(n int64) bool { + return rcv._tab.MutateInt64Slot(8, n) +} + +/// value of the parameter (when it's a string value) +func (rcv *KinCfgAxsTrafoSingleParam) ValueString() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// value of the parameter (when it's a string value) +func KinCfgAxsTrafoSingleParamStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCfgAxsTrafoSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgAxsTrafoSingleParamAddValueDouble(builder *flatbuffers.Builder, valueDouble float64) { + builder.PrependFloat64Slot(1, valueDouble, 0.0) +} +func KinCfgAxsTrafoSingleParamAddValueInt(builder *flatbuffers.Builder, valueInt int64) { + builder.PrependInt64Slot(2, valueInt, 0) +} +func KinCfgAxsTrafoSingleParamAddValueString(builder *flatbuffers.Builder, valueString flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(valueString), 0) +} +func KinCfgAxsTrafoSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgDynamics.go b/pkg/fbs/motion/core/fbtypes/KinCfgDynamics.go index 488269d..9a488de 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgDynamics.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgDynamics.go @@ -1,85 +1,85 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// preparation limits for kinematics -type KinCfgDynamicsT struct { - FeedGroup *FeedGroupSettingsT -} - -func (t *KinCfgDynamicsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - feedGroupOffset := t.FeedGroup.Pack(builder) - KinCfgDynamicsStart(builder) - KinCfgDynamicsAddFeedGroup(builder, feedGroupOffset) - return KinCfgDynamicsEnd(builder) -} - -func (rcv *KinCfgDynamics) UnPackTo(t *KinCfgDynamicsT) { - t.FeedGroup = rcv.FeedGroup(nil).UnPack() -} - -func (rcv *KinCfgDynamics) UnPack() *KinCfgDynamicsT { - if rcv == nil { return nil } - t := &KinCfgDynamicsT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgDynamics struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgDynamics(buf []byte, offset flatbuffers.UOffsetT) *KinCfgDynamics { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgDynamics{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgDynamics(buf []byte, offset flatbuffers.UOffsetT) *KinCfgDynamics { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgDynamics{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgDynamics) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgDynamics) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the default feedGroup that should be used to define the path parameter (default FG_XYZ) -/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" -func (rcv *KinCfgDynamics) FeedGroup(obj *FeedGroupSettings) *FeedGroupSettings { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(FeedGroupSettings) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// name of the default feedGroup that should be used to define the path parameter (default FG_XYZ) -/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" -func KinCfgDynamicsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCfgDynamicsAddFeedGroup(builder *flatbuffers.Builder, feedGroup flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(feedGroup), 0) -} -func KinCfgDynamicsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// preparation limits for kinematics +type KinCfgDynamicsT struct { + FeedGroup *FeedGroupSettingsT +} + +func (t *KinCfgDynamicsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + feedGroupOffset := t.FeedGroup.Pack(builder) + KinCfgDynamicsStart(builder) + KinCfgDynamicsAddFeedGroup(builder, feedGroupOffset) + return KinCfgDynamicsEnd(builder) +} + +func (rcv *KinCfgDynamics) UnPackTo(t *KinCfgDynamicsT) { + t.FeedGroup = rcv.FeedGroup(nil).UnPack() +} + +func (rcv *KinCfgDynamics) UnPack() *KinCfgDynamicsT { + if rcv == nil { return nil } + t := &KinCfgDynamicsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgDynamics struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgDynamics(buf []byte, offset flatbuffers.UOffsetT) *KinCfgDynamics { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgDynamics{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgDynamics(buf []byte, offset flatbuffers.UOffsetT) *KinCfgDynamics { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgDynamics{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgDynamics) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgDynamics) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the default feedGroup that should be used to define the path parameter (default FG_XYZ) +/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" +func (rcv *KinCfgDynamics) FeedGroup(obj *FeedGroupSettings) *FeedGroupSettings { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(FeedGroupSettings) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// name of the default feedGroup that should be used to define the path parameter (default FG_XYZ) +/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" +func KinCfgDynamicsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgDynamicsAddFeedGroup(builder *flatbuffers.Builder, feedGroup flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(feedGroup), 0) +} +func KinCfgDynamicsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllParam.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllParam.go index 1d7dcc6..f1ef39a 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllParam.go @@ -1,155 +1,155 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration parameter of a single joint transformation -type KinCfgJntTrafoAllParamT struct { - AxisAssignment *KinCfgJntTrafoAxisAssignmentT - Groups []*KinCfgJntTrafoParamGroupT - General *KinCfgJntTrafoParamGroupT -} - -func (t *KinCfgJntTrafoAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axisAssignmentOffset := t.AxisAssignment.Pack(builder) - groupsOffset := flatbuffers.UOffsetT(0) - if t.Groups != nil { - groupsLength := len(t.Groups) - groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) - for j := 0; j < groupsLength; j++ { - groupsOffsets[j] = t.Groups[j].Pack(builder) - } - KinCfgJntTrafoAllParamStartGroupsVector(builder, groupsLength) - for j := groupsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(groupsOffsets[j]) - } - groupsOffset = builder.EndVector(groupsLength) - } - generalOffset := t.General.Pack(builder) - KinCfgJntTrafoAllParamStart(builder) - KinCfgJntTrafoAllParamAddAxisAssignment(builder, axisAssignmentOffset) - KinCfgJntTrafoAllParamAddGroups(builder, groupsOffset) - KinCfgJntTrafoAllParamAddGeneral(builder, generalOffset) - return KinCfgJntTrafoAllParamEnd(builder) -} - -func (rcv *KinCfgJntTrafoAllParam) UnPackTo(t *KinCfgJntTrafoAllParamT) { - t.AxisAssignment = rcv.AxisAssignment(nil).UnPack() - groupsLength := rcv.GroupsLength() - t.Groups = make([]*KinCfgJntTrafoParamGroupT, groupsLength) - for j := 0; j < groupsLength; j++ { - x := KinCfgJntTrafoParamGroup{} - rcv.Groups(&x, j) - t.Groups[j] = x.UnPack() - } - t.General = rcv.General(nil).UnPack() -} - -func (rcv *KinCfgJntTrafoAllParam) UnPack() *KinCfgJntTrafoAllParamT { - if rcv == nil { return nil } - t := &KinCfgJntTrafoAllParamT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgJntTrafoAllParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgJntTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgJntTrafoAllParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgJntTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgJntTrafoAllParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgJntTrafoAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgJntTrafoAllParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// axis assignment -func (rcv *KinCfgJntTrafoAllParam) AxisAssignment(obj *KinCfgJntTrafoAxisAssignment) *KinCfgJntTrafoAxisAssignment { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgJntTrafoAxisAssignment) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// axis assignment -/// all configuration parameter groups of this joint transformation -func (rcv *KinCfgJntTrafoAllParam) Groups(obj *KinCfgJntTrafoParamGroup, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgJntTrafoAllParam) GroupsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// all configuration parameter groups of this joint transformation -/// all general parameter of this joint transformation -func (rcv *KinCfgJntTrafoAllParam) General(obj *KinCfgJntTrafoParamGroup) *KinCfgJntTrafoParamGroup { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgJntTrafoParamGroup) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// all general parameter of this joint transformation -func KinCfgJntTrafoAllParamStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinCfgJntTrafoAllParamAddAxisAssignment(builder *flatbuffers.Builder, axisAssignment flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisAssignment), 0) -} -func KinCfgJntTrafoAllParamAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(groups), 0) -} -func KinCfgJntTrafoAllParamStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgJntTrafoAllParamAddGeneral(builder *flatbuffers.Builder, general flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(general), 0) -} -func KinCfgJntTrafoAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration parameter of a single joint transformation +type KinCfgJntTrafoAllParamT struct { + AxisAssignment *KinCfgJntTrafoAxisAssignmentT + Groups []*KinCfgJntTrafoParamGroupT + AxisOffsets *KinCfgJntTrafoAxisOffsetsT +} + +func (t *KinCfgJntTrafoAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axisAssignmentOffset := t.AxisAssignment.Pack(builder) + groupsOffset := flatbuffers.UOffsetT(0) + if t.Groups != nil { + groupsLength := len(t.Groups) + groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) + for j := 0; j < groupsLength; j++ { + groupsOffsets[j] = t.Groups[j].Pack(builder) + } + KinCfgJntTrafoAllParamStartGroupsVector(builder, groupsLength) + for j := groupsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupsOffsets[j]) + } + groupsOffset = builder.EndVector(groupsLength) + } + axisOffsetsOffset := t.AxisOffsets.Pack(builder) + KinCfgJntTrafoAllParamStart(builder) + KinCfgJntTrafoAllParamAddAxisAssignment(builder, axisAssignmentOffset) + KinCfgJntTrafoAllParamAddGroups(builder, groupsOffset) + KinCfgJntTrafoAllParamAddAxisOffsets(builder, axisOffsetsOffset) + return KinCfgJntTrafoAllParamEnd(builder) +} + +func (rcv *KinCfgJntTrafoAllParam) UnPackTo(t *KinCfgJntTrafoAllParamT) { + t.AxisAssignment = rcv.AxisAssignment(nil).UnPack() + groupsLength := rcv.GroupsLength() + t.Groups = make([]*KinCfgJntTrafoParamGroupT, groupsLength) + for j := 0; j < groupsLength; j++ { + x := KinCfgJntTrafoParamGroup{} + rcv.Groups(&x, j) + t.Groups[j] = x.UnPack() + } + t.AxisOffsets = rcv.AxisOffsets(nil).UnPack() +} + +func (rcv *KinCfgJntTrafoAllParam) UnPack() *KinCfgJntTrafoAllParamT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoAllParamT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoAllParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoAllParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoAllParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoAllParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// axis assignment +func (rcv *KinCfgJntTrafoAllParam) AxisAssignment(obj *KinCfgJntTrafoAxisAssignment) *KinCfgJntTrafoAxisAssignment { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgJntTrafoAxisAssignment) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// axis assignment +/// all configuration parameter groups of this joint transformation +func (rcv *KinCfgJntTrafoAllParam) Groups(obj *KinCfgJntTrafoParamGroup, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgJntTrafoAllParam) GroupsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// all configuration parameter groups of this joint transformation +/// axis zero point offsets +func (rcv *KinCfgJntTrafoAllParam) AxisOffsets(obj *KinCfgJntTrafoAxisOffsets) *KinCfgJntTrafoAxisOffsets { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgJntTrafoAxisOffsets) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// axis zero point offsets +func KinCfgJntTrafoAllParamStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCfgJntTrafoAllParamAddAxisAssignment(builder *flatbuffers.Builder, axisAssignment flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisAssignment), 0) +} +func KinCfgJntTrafoAllParamAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(groups), 0) +} +func KinCfgJntTrafoAllParamStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgJntTrafoAllParamAddAxisOffsets(builder *flatbuffers.Builder, axisOffsets flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(axisOffsets), 0) +} +func KinCfgJntTrafoAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllParamGrps.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllParamGrps.go new file mode 100644 index 0000000..63daa71 --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllParamGrps.go @@ -0,0 +1,111 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration parameter of a joint transformation +type KinCfgJntTrafoAllParamGrpsT struct { + Groups []*KinCfgJntTrafoParamGroupT +} + +func (t *KinCfgJntTrafoAllParamGrpsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + groupsOffset := flatbuffers.UOffsetT(0) + if t.Groups != nil { + groupsLength := len(t.Groups) + groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) + for j := 0; j < groupsLength; j++ { + groupsOffsets[j] = t.Groups[j].Pack(builder) + } + KinCfgJntTrafoAllParamGrpsStartGroupsVector(builder, groupsLength) + for j := groupsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupsOffsets[j]) + } + groupsOffset = builder.EndVector(groupsLength) + } + KinCfgJntTrafoAllParamGrpsStart(builder) + KinCfgJntTrafoAllParamGrpsAddGroups(builder, groupsOffset) + return KinCfgJntTrafoAllParamGrpsEnd(builder) +} + +func (rcv *KinCfgJntTrafoAllParamGrps) UnPackTo(t *KinCfgJntTrafoAllParamGrpsT) { + groupsLength := rcv.GroupsLength() + t.Groups = make([]*KinCfgJntTrafoParamGroupT, groupsLength) + for j := 0; j < groupsLength; j++ { + x := KinCfgJntTrafoParamGroup{} + rcv.Groups(&x, j) + t.Groups[j] = x.UnPack() + } +} + +func (rcv *KinCfgJntTrafoAllParamGrps) UnPack() *KinCfgJntTrafoAllParamGrpsT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoAllParamGrpsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoAllParamGrps struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoAllParamGrps(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllParamGrps { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoAllParamGrps{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoAllParamGrps(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllParamGrps { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoAllParamGrps{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoAllParamGrps) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoAllParamGrps) Table() flatbuffers.Table { + return rcv._tab +} + +/// all configuration parameter groups of this joint transformation +func (rcv *KinCfgJntTrafoAllParamGrps) Groups(obj *KinCfgJntTrafoParamGroup, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgJntTrafoAllParamGrps) GroupsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// all configuration parameter groups of this joint transformation +func KinCfgJntTrafoAllParamGrpsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgJntTrafoAllParamGrpsAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(groups), 0) +} +func KinCfgJntTrafoAllParamGrpsStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgJntTrafoAllParamGrpsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllSets.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllSets.go index 1bd6b47..b487642 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllSets.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAllSets.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration values of all joint transformation sets -type KinCfgJntTrafoAllSetsT struct { - AxsTrafoSets []*KinCfgJntTrafoSetT -} - -func (t *KinCfgJntTrafoAllSetsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsTrafoSetsOffset := flatbuffers.UOffsetT(0) - if t.AxsTrafoSets != nil { - axsTrafoSetsLength := len(t.AxsTrafoSets) - axsTrafoSetsOffsets := make([]flatbuffers.UOffsetT, axsTrafoSetsLength) - for j := 0; j < axsTrafoSetsLength; j++ { - axsTrafoSetsOffsets[j] = t.AxsTrafoSets[j].Pack(builder) - } - KinCfgJntTrafoAllSetsStartAxsTrafoSetsVector(builder, axsTrafoSetsLength) - for j := axsTrafoSetsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(axsTrafoSetsOffsets[j]) - } - axsTrafoSetsOffset = builder.EndVector(axsTrafoSetsLength) - } - KinCfgJntTrafoAllSetsStart(builder) - KinCfgJntTrafoAllSetsAddAxsTrafoSets(builder, axsTrafoSetsOffset) - return KinCfgJntTrafoAllSetsEnd(builder) -} - -func (rcv *KinCfgJntTrafoAllSets) UnPackTo(t *KinCfgJntTrafoAllSetsT) { - axsTrafoSetsLength := rcv.AxsTrafoSetsLength() - t.AxsTrafoSets = make([]*KinCfgJntTrafoSetT, axsTrafoSetsLength) - for j := 0; j < axsTrafoSetsLength; j++ { - x := KinCfgJntTrafoSet{} - rcv.AxsTrafoSets(&x, j) - t.AxsTrafoSets[j] = x.UnPack() - } -} - -func (rcv *KinCfgJntTrafoAllSets) UnPack() *KinCfgJntTrafoAllSetsT { - if rcv == nil { return nil } - t := &KinCfgJntTrafoAllSetsT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgJntTrafoAllSets struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgJntTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllSets { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgJntTrafoAllSets{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgJntTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllSets { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgJntTrafoAllSets{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgJntTrafoAllSets) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgJntTrafoAllSets) Table() flatbuffers.Table { - return rcv._tab -} - -/// configuration values of all joint transformation sets -func (rcv *KinCfgJntTrafoAllSets) AxsTrafoSets(obj *KinCfgJntTrafoSet, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgJntTrafoAllSets) AxsTrafoSetsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// configuration values of all joint transformation sets -func KinCfgJntTrafoAllSetsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCfgJntTrafoAllSetsAddAxsTrafoSets(builder *flatbuffers.Builder, axsTrafoSets flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsTrafoSets), 0) -} -func KinCfgJntTrafoAllSetsStartAxsTrafoSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgJntTrafoAllSetsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration values of all joint transformation sets +type KinCfgJntTrafoAllSetsT struct { + AxsTrafoSets []*KinCfgJntTrafoSetT +} + +func (t *KinCfgJntTrafoAllSetsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsTrafoSetsOffset := flatbuffers.UOffsetT(0) + if t.AxsTrafoSets != nil { + axsTrafoSetsLength := len(t.AxsTrafoSets) + axsTrafoSetsOffsets := make([]flatbuffers.UOffsetT, axsTrafoSetsLength) + for j := 0; j < axsTrafoSetsLength; j++ { + axsTrafoSetsOffsets[j] = t.AxsTrafoSets[j].Pack(builder) + } + KinCfgJntTrafoAllSetsStartAxsTrafoSetsVector(builder, axsTrafoSetsLength) + for j := axsTrafoSetsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(axsTrafoSetsOffsets[j]) + } + axsTrafoSetsOffset = builder.EndVector(axsTrafoSetsLength) + } + KinCfgJntTrafoAllSetsStart(builder) + KinCfgJntTrafoAllSetsAddAxsTrafoSets(builder, axsTrafoSetsOffset) + return KinCfgJntTrafoAllSetsEnd(builder) +} + +func (rcv *KinCfgJntTrafoAllSets) UnPackTo(t *KinCfgJntTrafoAllSetsT) { + axsTrafoSetsLength := rcv.AxsTrafoSetsLength() + t.AxsTrafoSets = make([]*KinCfgJntTrafoSetT, axsTrafoSetsLength) + for j := 0; j < axsTrafoSetsLength; j++ { + x := KinCfgJntTrafoSet{} + rcv.AxsTrafoSets(&x, j) + t.AxsTrafoSets[j] = x.UnPack() + } +} + +func (rcv *KinCfgJntTrafoAllSets) UnPack() *KinCfgJntTrafoAllSetsT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoAllSetsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoAllSets struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllSets { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoAllSets{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoAllSets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAllSets { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoAllSets{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoAllSets) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoAllSets) Table() flatbuffers.Table { + return rcv._tab +} + +/// configuration values of all joint transformation sets +func (rcv *KinCfgJntTrafoAllSets) AxsTrafoSets(obj *KinCfgJntTrafoSet, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgJntTrafoAllSets) AxsTrafoSetsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// configuration values of all joint transformation sets +func KinCfgJntTrafoAllSetsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgJntTrafoAllSetsAddAxsTrafoSets(builder *flatbuffers.Builder, axsTrafoSets flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsTrafoSets), 0) +} +func KinCfgJntTrafoAllSetsStartAxsTrafoSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgJntTrafoAllSetsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAxisAssignment.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAxisAssignment.go index 260bea5..83133f6 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAxisAssignment.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAxisAssignment.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a all axis assignments for a joint transformation -type KinCfgJntTrafoAxisAssignmentT struct { - Assignment []*KinCfgJntTrafoSingleAxisAssignmentT -} - -func (t *KinCfgJntTrafoAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - assignmentOffset := flatbuffers.UOffsetT(0) - if t.Assignment != nil { - assignmentLength := len(t.Assignment) - assignmentOffsets := make([]flatbuffers.UOffsetT, assignmentLength) - for j := 0; j < assignmentLength; j++ { - assignmentOffsets[j] = t.Assignment[j].Pack(builder) - } - KinCfgJntTrafoAxisAssignmentStartAssignmentVector(builder, assignmentLength) - for j := assignmentLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(assignmentOffsets[j]) - } - assignmentOffset = builder.EndVector(assignmentLength) - } - KinCfgJntTrafoAxisAssignmentStart(builder) - KinCfgJntTrafoAxisAssignmentAddAssignment(builder, assignmentOffset) - return KinCfgJntTrafoAxisAssignmentEnd(builder) -} - -func (rcv *KinCfgJntTrafoAxisAssignment) UnPackTo(t *KinCfgJntTrafoAxisAssignmentT) { - assignmentLength := rcv.AssignmentLength() - t.Assignment = make([]*KinCfgJntTrafoSingleAxisAssignmentT, assignmentLength) - for j := 0; j < assignmentLength; j++ { - x := KinCfgJntTrafoSingleAxisAssignment{} - rcv.Assignment(&x, j) - t.Assignment[j] = x.UnPack() - } -} - -func (rcv *KinCfgJntTrafoAxisAssignment) UnPack() *KinCfgJntTrafoAxisAssignmentT { - if rcv == nil { return nil } - t := &KinCfgJntTrafoAxisAssignmentT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgJntTrafoAxisAssignment struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgJntTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgJntTrafoAxisAssignment{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgJntTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgJntTrafoAxisAssignment{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgJntTrafoAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgJntTrafoAxisAssignment) Table() flatbuffers.Table { - return rcv._tab -} - -/// assignment as pairs of -func (rcv *KinCfgJntTrafoAxisAssignment) Assignment(obj *KinCfgJntTrafoSingleAxisAssignment, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgJntTrafoAxisAssignment) AssignmentLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// assignment as pairs of -func KinCfgJntTrafoAxisAssignmentStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCfgJntTrafoAxisAssignmentAddAssignment(builder *flatbuffers.Builder, assignment flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(assignment), 0) -} -func KinCfgJntTrafoAxisAssignmentStartAssignmentVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgJntTrafoAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a all axis assignments for a joint transformation +type KinCfgJntTrafoAxisAssignmentT struct { + Assignment []*KinCfgJntTrafoSingleAxisAssignmentT +} + +func (t *KinCfgJntTrafoAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + assignmentOffset := flatbuffers.UOffsetT(0) + if t.Assignment != nil { + assignmentLength := len(t.Assignment) + assignmentOffsets := make([]flatbuffers.UOffsetT, assignmentLength) + for j := 0; j < assignmentLength; j++ { + assignmentOffsets[j] = t.Assignment[j].Pack(builder) + } + KinCfgJntTrafoAxisAssignmentStartAssignmentVector(builder, assignmentLength) + for j := assignmentLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(assignmentOffsets[j]) + } + assignmentOffset = builder.EndVector(assignmentLength) + } + KinCfgJntTrafoAxisAssignmentStart(builder) + KinCfgJntTrafoAxisAssignmentAddAssignment(builder, assignmentOffset) + return KinCfgJntTrafoAxisAssignmentEnd(builder) +} + +func (rcv *KinCfgJntTrafoAxisAssignment) UnPackTo(t *KinCfgJntTrafoAxisAssignmentT) { + assignmentLength := rcv.AssignmentLength() + t.Assignment = make([]*KinCfgJntTrafoSingleAxisAssignmentT, assignmentLength) + for j := 0; j < assignmentLength; j++ { + x := KinCfgJntTrafoSingleAxisAssignment{} + rcv.Assignment(&x, j) + t.Assignment[j] = x.UnPack() + } +} + +func (rcv *KinCfgJntTrafoAxisAssignment) UnPack() *KinCfgJntTrafoAxisAssignmentT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoAxisAssignmentT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoAxisAssignment struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoAxisAssignment{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoAxisAssignment{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoAxisAssignment) Table() flatbuffers.Table { + return rcv._tab +} + +/// assignment as pairs of +func (rcv *KinCfgJntTrafoAxisAssignment) Assignment(obj *KinCfgJntTrafoSingleAxisAssignment, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgJntTrafoAxisAssignment) AssignmentLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// assignment as pairs of +func KinCfgJntTrafoAxisAssignmentStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgJntTrafoAxisAssignmentAddAssignment(builder *flatbuffers.Builder, assignment flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(assignment), 0) +} +func KinCfgJntTrafoAxisAssignmentStartAssignmentVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgJntTrafoAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAxisOffsets.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAxisOffsets.go new file mode 100644 index 0000000..706511d --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoAxisOffsets.go @@ -0,0 +1,111 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a all axis zero point offsets for a joint transformation +type KinCfgJntTrafoAxisOffsetsT struct { + Offsets []*KinCfgJntTrafoSingleAxisOffsetT +} + +func (t *KinCfgJntTrafoAxisOffsetsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + offsetsOffset := flatbuffers.UOffsetT(0) + if t.Offsets != nil { + offsetsLength := len(t.Offsets) + offsetsOffsets := make([]flatbuffers.UOffsetT, offsetsLength) + for j := 0; j < offsetsLength; j++ { + offsetsOffsets[j] = t.Offsets[j].Pack(builder) + } + KinCfgJntTrafoAxisOffsetsStartOffsetsVector(builder, offsetsLength) + for j := offsetsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(offsetsOffsets[j]) + } + offsetsOffset = builder.EndVector(offsetsLength) + } + KinCfgJntTrafoAxisOffsetsStart(builder) + KinCfgJntTrafoAxisOffsetsAddOffsets(builder, offsetsOffset) + return KinCfgJntTrafoAxisOffsetsEnd(builder) +} + +func (rcv *KinCfgJntTrafoAxisOffsets) UnPackTo(t *KinCfgJntTrafoAxisOffsetsT) { + offsetsLength := rcv.OffsetsLength() + t.Offsets = make([]*KinCfgJntTrafoSingleAxisOffsetT, offsetsLength) + for j := 0; j < offsetsLength; j++ { + x := KinCfgJntTrafoSingleAxisOffset{} + rcv.Offsets(&x, j) + t.Offsets[j] = x.UnPack() + } +} + +func (rcv *KinCfgJntTrafoAxisOffsets) UnPack() *KinCfgJntTrafoAxisOffsetsT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoAxisOffsetsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoAxisOffsets struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoAxisOffsets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAxisOffsets { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoAxisOffsets{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoAxisOffsets(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoAxisOffsets { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoAxisOffsets{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoAxisOffsets) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoAxisOffsets) Table() flatbuffers.Table { + return rcv._tab +} + +/// assignment as pairs of +func (rcv *KinCfgJntTrafoAxisOffsets) Offsets(obj *KinCfgJntTrafoSingleAxisOffset, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgJntTrafoAxisOffsets) OffsetsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// assignment as pairs of +func KinCfgJntTrafoAxisOffsetsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgJntTrafoAxisOffsetsAddOffsets(builder *flatbuffers.Builder, offsets flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(offsets), 0) +} +func KinCfgJntTrafoAxisOffsetsStartOffsetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgJntTrafoAxisOffsetsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoParamGroup.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoParamGroup.go index a7baa44..0945c14 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoParamGroup.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoParamGroup.go @@ -1,128 +1,128 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single parameter group of a joint transformation -type KinCfgJntTrafoParamGroupT struct { - Name string - Param []*KinCfgJntTrafoSingleParamT -} - -func (t *KinCfgJntTrafoParamGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - paramOffset := flatbuffers.UOffsetT(0) - if t.Param != nil { - paramLength := len(t.Param) - paramOffsets := make([]flatbuffers.UOffsetT, paramLength) - for j := 0; j < paramLength; j++ { - paramOffsets[j] = t.Param[j].Pack(builder) - } - KinCfgJntTrafoParamGroupStartParamVector(builder, paramLength) - for j := paramLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(paramOffsets[j]) - } - paramOffset = builder.EndVector(paramLength) - } - KinCfgJntTrafoParamGroupStart(builder) - KinCfgJntTrafoParamGroupAddName(builder, nameOffset) - KinCfgJntTrafoParamGroupAddParam(builder, paramOffset) - return KinCfgJntTrafoParamGroupEnd(builder) -} - -func (rcv *KinCfgJntTrafoParamGroup) UnPackTo(t *KinCfgJntTrafoParamGroupT) { - t.Name = string(rcv.Name()) - paramLength := rcv.ParamLength() - t.Param = make([]*KinCfgJntTrafoSingleParamT, paramLength) - for j := 0; j < paramLength; j++ { - x := KinCfgJntTrafoSingleParam{} - rcv.Param(&x, j) - t.Param[j] = x.UnPack() - } -} - -func (rcv *KinCfgJntTrafoParamGroup) UnPack() *KinCfgJntTrafoParamGroupT { - if rcv == nil { return nil } - t := &KinCfgJntTrafoParamGroupT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgJntTrafoParamGroup struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgJntTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoParamGroup { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgJntTrafoParamGroup{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgJntTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoParamGroup { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgJntTrafoParamGroup{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgJntTrafoParamGroup) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgJntTrafoParamGroup) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter group -func (rcv *KinCfgJntTrafoParamGroup) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter group -/// all configuration parameter of this group -func (rcv *KinCfgJntTrafoParamGroup) Param(obj *KinCfgJntTrafoSingleParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinCfgJntTrafoParamGroup) ParamLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// all configuration parameter of this group -func KinCfgJntTrafoParamGroupStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCfgJntTrafoParamGroupAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgJntTrafoParamGroupAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(param), 0) -} -func KinCfgJntTrafoParamGroupStartParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinCfgJntTrafoParamGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single parameter group of a joint transformation +type KinCfgJntTrafoParamGroupT struct { + Name string + Param []*KinCfgJntTrafoSingleParamT +} + +func (t *KinCfgJntTrafoParamGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + paramOffset := flatbuffers.UOffsetT(0) + if t.Param != nil { + paramLength := len(t.Param) + paramOffsets := make([]flatbuffers.UOffsetT, paramLength) + for j := 0; j < paramLength; j++ { + paramOffsets[j] = t.Param[j].Pack(builder) + } + KinCfgJntTrafoParamGroupStartParamVector(builder, paramLength) + for j := paramLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(paramOffsets[j]) + } + paramOffset = builder.EndVector(paramLength) + } + KinCfgJntTrafoParamGroupStart(builder) + KinCfgJntTrafoParamGroupAddName(builder, nameOffset) + KinCfgJntTrafoParamGroupAddParam(builder, paramOffset) + return KinCfgJntTrafoParamGroupEnd(builder) +} + +func (rcv *KinCfgJntTrafoParamGroup) UnPackTo(t *KinCfgJntTrafoParamGroupT) { + t.Name = string(rcv.Name()) + paramLength := rcv.ParamLength() + t.Param = make([]*KinCfgJntTrafoSingleParamT, paramLength) + for j := 0; j < paramLength; j++ { + x := KinCfgJntTrafoSingleParam{} + rcv.Param(&x, j) + t.Param[j] = x.UnPack() + } +} + +func (rcv *KinCfgJntTrafoParamGroup) UnPack() *KinCfgJntTrafoParamGroupT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoParamGroupT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoParamGroup struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoParamGroup { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoParamGroup{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoParamGroup(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoParamGroup { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoParamGroup{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoParamGroup) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoParamGroup) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter group +func (rcv *KinCfgJntTrafoParamGroup) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter group +/// all configuration parameter of this group +func (rcv *KinCfgJntTrafoParamGroup) Param(obj *KinCfgJntTrafoSingleParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinCfgJntTrafoParamGroup) ParamLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// all configuration parameter of this group +func KinCfgJntTrafoParamGroupStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCfgJntTrafoParamGroupAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgJntTrafoParamGroupAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(param), 0) +} +func KinCfgJntTrafoParamGroupStartParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinCfgJntTrafoParamGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSet.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSet.go index 8eceb09..febc06e 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSet.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSet.go @@ -1,117 +1,117 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single joint transformation set -type KinCfgJntTrafoSetT struct { - Name string - JntTrafo string - Param *KinCfgJntTrafoAllParamT -} - -func (t *KinCfgJntTrafoSetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - jntTrafoOffset := builder.CreateString(t.JntTrafo) - paramOffset := t.Param.Pack(builder) - KinCfgJntTrafoSetStart(builder) - KinCfgJntTrafoSetAddName(builder, nameOffset) - KinCfgJntTrafoSetAddJntTrafo(builder, jntTrafoOffset) - KinCfgJntTrafoSetAddParam(builder, paramOffset) - return KinCfgJntTrafoSetEnd(builder) -} - -func (rcv *KinCfgJntTrafoSet) UnPackTo(t *KinCfgJntTrafoSetT) { - t.Name = string(rcv.Name()) - t.JntTrafo = string(rcv.JntTrafo()) - t.Param = rcv.Param(nil).UnPack() -} - -func (rcv *KinCfgJntTrafoSet) UnPack() *KinCfgJntTrafoSetT { - if rcv == nil { return nil } - t := &KinCfgJntTrafoSetT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgJntTrafoSet struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgJntTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSet { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgJntTrafoSet{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgJntTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSet { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgJntTrafoSet{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgJntTrafoSet) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgJntTrafoSet) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the joint transformation set -func (rcv *KinCfgJntTrafoSet) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the joint transformation set -/// name of the joint transformation -func (rcv *KinCfgJntTrafoSet) JntTrafo() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the joint transformation -/// configuration parameter of the joint transformation -func (rcv *KinCfgJntTrafoSet) Param(obj *KinCfgJntTrafoAllParam) *KinCfgJntTrafoAllParam { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgJntTrafoAllParam) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration parameter of the joint transformation -func KinCfgJntTrafoSetStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinCfgJntTrafoSetAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgJntTrafoSetAddJntTrafo(builder *flatbuffers.Builder, jntTrafo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(jntTrafo), 0) -} -func KinCfgJntTrafoSetAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(param), 0) -} -func KinCfgJntTrafoSetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single joint transformation set +type KinCfgJntTrafoSetT struct { + Name string + JntTrafo string + Param *KinCfgJntTrafoAllParamT +} + +func (t *KinCfgJntTrafoSetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + jntTrafoOffset := builder.CreateString(t.JntTrafo) + paramOffset := t.Param.Pack(builder) + KinCfgJntTrafoSetStart(builder) + KinCfgJntTrafoSetAddName(builder, nameOffset) + KinCfgJntTrafoSetAddJntTrafo(builder, jntTrafoOffset) + KinCfgJntTrafoSetAddParam(builder, paramOffset) + return KinCfgJntTrafoSetEnd(builder) +} + +func (rcv *KinCfgJntTrafoSet) UnPackTo(t *KinCfgJntTrafoSetT) { + t.Name = string(rcv.Name()) + t.JntTrafo = string(rcv.JntTrafo()) + t.Param = rcv.Param(nil).UnPack() +} + +func (rcv *KinCfgJntTrafoSet) UnPack() *KinCfgJntTrafoSetT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoSetT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoSet struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSet { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoSet{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoSet(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSet { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoSet{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoSet) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoSet) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the joint transformation set +func (rcv *KinCfgJntTrafoSet) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the joint transformation set +/// name of the joint transformation +func (rcv *KinCfgJntTrafoSet) JntTrafo() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the joint transformation +/// configuration parameter of the joint transformation +func (rcv *KinCfgJntTrafoSet) Param(obj *KinCfgJntTrafoAllParam) *KinCfgJntTrafoAllParam { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgJntTrafoAllParam) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration parameter of the joint transformation +func KinCfgJntTrafoSetStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCfgJntTrafoSetAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgJntTrafoSetAddJntTrafo(builder *flatbuffers.Builder, jntTrafo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(jntTrafo), 0) +} +func KinCfgJntTrafoSetAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(param), 0) +} +func KinCfgJntTrafoSetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleAxisAssignment.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleAxisAssignment.go index e91133a..9282ccf 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleAxisAssignment.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleAxisAssignment.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single axis assignment for a joint transformation -type KinCfgJntTrafoSingleAxisAssignmentT struct { - AxisName string - IndexACS byte -} - -func (t *KinCfgJntTrafoSingleAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axisNameOffset := builder.CreateString(t.AxisName) - KinCfgJntTrafoSingleAxisAssignmentStart(builder) - KinCfgJntTrafoSingleAxisAssignmentAddAxisName(builder, axisNameOffset) - KinCfgJntTrafoSingleAxisAssignmentAddIndexACS(builder, t.IndexACS) - return KinCfgJntTrafoSingleAxisAssignmentEnd(builder) -} - -func (rcv *KinCfgJntTrafoSingleAxisAssignment) UnPackTo(t *KinCfgJntTrafoSingleAxisAssignmentT) { - t.AxisName = string(rcv.AxisName()) - t.IndexACS = rcv.IndexACS() -} - -func (rcv *KinCfgJntTrafoSingleAxisAssignment) UnPack() *KinCfgJntTrafoSingleAxisAssignmentT { - if rcv == nil { return nil } - t := &KinCfgJntTrafoSingleAxisAssignmentT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgJntTrafoSingleAxisAssignment struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgJntTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgJntTrafoSingleAxisAssignment{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgJntTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleAxisAssignment { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgJntTrafoSingleAxisAssignment{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgJntTrafoSingleAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgJntTrafoSingleAxisAssignment) Table() flatbuffers.Table { - return rcv._tab -} - -/// axis name referring to the joint transformation -func (rcv *KinCfgJntTrafoSingleAxisAssignment) AxisName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// axis name referring to the joint transformation -/// index of the ACS array -func (rcv *KinCfgJntTrafoSingleAxisAssignment) IndexACS() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -/// index of the ACS array -func (rcv *KinCfgJntTrafoSingleAxisAssignment) MutateIndexACS(n byte) bool { - return rcv._tab.MutateByteSlot(6, n) -} - -func KinCfgJntTrafoSingleAxisAssignmentStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCfgJntTrafoSingleAxisAssignmentAddAxisName(builder *flatbuffers.Builder, axisName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisName), 0) -} -func KinCfgJntTrafoSingleAxisAssignmentAddIndexACS(builder *flatbuffers.Builder, indexACS byte) { - builder.PrependByteSlot(1, indexACS, 0) -} -func KinCfgJntTrafoSingleAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single axis assignment for a joint transformation +type KinCfgJntTrafoSingleAxisAssignmentT struct { + AxisName string + IndexACS byte +} + +func (t *KinCfgJntTrafoSingleAxisAssignmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axisNameOffset := builder.CreateString(t.AxisName) + KinCfgJntTrafoSingleAxisAssignmentStart(builder) + KinCfgJntTrafoSingleAxisAssignmentAddAxisName(builder, axisNameOffset) + KinCfgJntTrafoSingleAxisAssignmentAddIndexACS(builder, t.IndexACS) + return KinCfgJntTrafoSingleAxisAssignmentEnd(builder) +} + +func (rcv *KinCfgJntTrafoSingleAxisAssignment) UnPackTo(t *KinCfgJntTrafoSingleAxisAssignmentT) { + t.AxisName = string(rcv.AxisName()) + t.IndexACS = rcv.IndexACS() +} + +func (rcv *KinCfgJntTrafoSingleAxisAssignment) UnPack() *KinCfgJntTrafoSingleAxisAssignmentT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoSingleAxisAssignmentT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoSingleAxisAssignment struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoSingleAxisAssignment{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoSingleAxisAssignment(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleAxisAssignment { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoSingleAxisAssignment{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoSingleAxisAssignment) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoSingleAxisAssignment) Table() flatbuffers.Table { + return rcv._tab +} + +/// axis name referring to the joint transformation +func (rcv *KinCfgJntTrafoSingleAxisAssignment) AxisName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// axis name referring to the joint transformation +/// index of the ACS array +func (rcv *KinCfgJntTrafoSingleAxisAssignment) IndexACS() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +/// index of the ACS array +func (rcv *KinCfgJntTrafoSingleAxisAssignment) MutateIndexACS(n byte) bool { + return rcv._tab.MutateByteSlot(6, n) +} + +func KinCfgJntTrafoSingleAxisAssignmentStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCfgJntTrafoSingleAxisAssignmentAddAxisName(builder *flatbuffers.Builder, axisName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisName), 0) +} +func KinCfgJntTrafoSingleAxisAssignmentAddIndexACS(builder *flatbuffers.Builder, indexACS byte) { + builder.PrependByteSlot(1, indexACS, 0) +} +func KinCfgJntTrafoSingleAxisAssignmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleAxisOffset.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleAxisOffset.go new file mode 100644 index 0000000..0ae194b --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleAxisOffset.go @@ -0,0 +1,117 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single axis zero point offset for a joint transformation +type KinCfgJntTrafoSingleAxisOffsetT struct { + AxisName string + ZeroOffset float64 + ZeroOffsetUnit string +} + +func (t *KinCfgJntTrafoSingleAxisOffsetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axisNameOffset := builder.CreateString(t.AxisName) + zeroOffsetUnitOffset := builder.CreateString(t.ZeroOffsetUnit) + KinCfgJntTrafoSingleAxisOffsetStart(builder) + KinCfgJntTrafoSingleAxisOffsetAddAxisName(builder, axisNameOffset) + KinCfgJntTrafoSingleAxisOffsetAddZeroOffset(builder, t.ZeroOffset) + KinCfgJntTrafoSingleAxisOffsetAddZeroOffsetUnit(builder, zeroOffsetUnitOffset) + return KinCfgJntTrafoSingleAxisOffsetEnd(builder) +} + +func (rcv *KinCfgJntTrafoSingleAxisOffset) UnPackTo(t *KinCfgJntTrafoSingleAxisOffsetT) { + t.AxisName = string(rcv.AxisName()) + t.ZeroOffset = rcv.ZeroOffset() + t.ZeroOffsetUnit = string(rcv.ZeroOffsetUnit()) +} + +func (rcv *KinCfgJntTrafoSingleAxisOffset) UnPack() *KinCfgJntTrafoSingleAxisOffsetT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoSingleAxisOffsetT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoSingleAxisOffset struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoSingleAxisOffset(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleAxisOffset { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoSingleAxisOffset{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoSingleAxisOffset(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleAxisOffset { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoSingleAxisOffset{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoSingleAxisOffset) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoSingleAxisOffset) Table() flatbuffers.Table { + return rcv._tab +} + +/// axis object name as configured in the ctrlX MOTION +func (rcv *KinCfgJntTrafoSingleAxisOffset) AxisName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// axis object name as configured in the ctrlX MOTION +/// zero point offset of the axis (is used, when the axis is grouped in the kinematics and used as trafo axis in the joint transformation) +/// offset is subtracted from the axis position in the forward transformation before it is given to the joint transformation +func (rcv *KinCfgJntTrafoSingleAxisOffset) ZeroOffset() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// zero point offset of the axis (is used, when the axis is grouped in the kinematics and used as trafo axis in the joint transformation) +/// offset is subtracted from the axis position in the forward transformation before it is given to the joint transformation +func (rcv *KinCfgJntTrafoSingleAxisOffset) MutateZeroOffset(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// unit of zero point offset +func (rcv *KinCfgJntTrafoSingleAxisOffset) ZeroOffsetUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of zero point offset +func KinCfgJntTrafoSingleAxisOffsetStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCfgJntTrafoSingleAxisOffsetAddAxisName(builder *flatbuffers.Builder, axisName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axisName), 0) +} +func KinCfgJntTrafoSingleAxisOffsetAddZeroOffset(builder *flatbuffers.Builder, zeroOffset float64) { + builder.PrependFloat64Slot(1, zeroOffset, 0.0) +} +func KinCfgJntTrafoSingleAxisOffsetAddZeroOffsetUnit(builder *flatbuffers.Builder, zeroOffsetUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(zeroOffsetUnit), 0) +} +func KinCfgJntTrafoSingleAxisOffsetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleParam.go b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleParam.go index cb13bce..28d6fef 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgJntTrafoSingleParam.go @@ -1,135 +1,152 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single parameter of a joint transformation -type KinCfgJntTrafoSingleParamT struct { - Name string - ValueDouble float64 - ValueInt int64 - ValueString string -} - -func (t *KinCfgJntTrafoSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - valueStringOffset := builder.CreateString(t.ValueString) - KinCfgJntTrafoSingleParamStart(builder) - KinCfgJntTrafoSingleParamAddName(builder, nameOffset) - KinCfgJntTrafoSingleParamAddValueDouble(builder, t.ValueDouble) - KinCfgJntTrafoSingleParamAddValueInt(builder, t.ValueInt) - KinCfgJntTrafoSingleParamAddValueString(builder, valueStringOffset) - return KinCfgJntTrafoSingleParamEnd(builder) -} - -func (rcv *KinCfgJntTrafoSingleParam) UnPackTo(t *KinCfgJntTrafoSingleParamT) { - t.Name = string(rcv.Name()) - t.ValueDouble = rcv.ValueDouble() - t.ValueInt = rcv.ValueInt() - t.ValueString = string(rcv.ValueString()) -} - -func (rcv *KinCfgJntTrafoSingleParam) UnPack() *KinCfgJntTrafoSingleParamT { - if rcv == nil { return nil } - t := &KinCfgJntTrafoSingleParamT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgJntTrafoSingleParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgJntTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgJntTrafoSingleParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgJntTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgJntTrafoSingleParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgJntTrafoSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgJntTrafoSingleParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter -func (rcv *KinCfgJntTrafoSingleParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter -/// value of the parameter (when it's a double value) -func (rcv *KinCfgJntTrafoSingleParam) ValueDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// value of the parameter (when it's a double value) -func (rcv *KinCfgJntTrafoSingleParam) MutateValueDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// value of the parameter (when it's a integer value) -func (rcv *KinCfgJntTrafoSingleParam) ValueInt() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -/// value of the parameter (when it's a integer value) -func (rcv *KinCfgJntTrafoSingleParam) MutateValueInt(n int64) bool { - return rcv._tab.MutateInt64Slot(8, n) -} - -/// value of the parameter (when it's a string value) -func (rcv *KinCfgJntTrafoSingleParam) ValueString() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// value of the parameter (when it's a string value) -func KinCfgJntTrafoSingleParamStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCfgJntTrafoSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinCfgJntTrafoSingleParamAddValueDouble(builder *flatbuffers.Builder, valueDouble float64) { - builder.PrependFloat64Slot(1, valueDouble, 0.0) -} -func KinCfgJntTrafoSingleParamAddValueInt(builder *flatbuffers.Builder, valueInt int64) { - builder.PrependInt64Slot(2, valueInt, 0) -} -func KinCfgJntTrafoSingleParamAddValueString(builder *flatbuffers.Builder, valueString flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(valueString), 0) -} -func KinCfgJntTrafoSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single parameter of a joint transformation +type KinCfgJntTrafoSingleParamT struct { + Name string + ValueDouble float64 + ValueInt int64 + ValueString string + Unit string +} + +func (t *KinCfgJntTrafoSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueStringOffset := builder.CreateString(t.ValueString) + unitOffset := builder.CreateString(t.Unit) + KinCfgJntTrafoSingleParamStart(builder) + KinCfgJntTrafoSingleParamAddName(builder, nameOffset) + KinCfgJntTrafoSingleParamAddValueDouble(builder, t.ValueDouble) + KinCfgJntTrafoSingleParamAddValueInt(builder, t.ValueInt) + KinCfgJntTrafoSingleParamAddValueString(builder, valueStringOffset) + KinCfgJntTrafoSingleParamAddUnit(builder, unitOffset) + return KinCfgJntTrafoSingleParamEnd(builder) +} + +func (rcv *KinCfgJntTrafoSingleParam) UnPackTo(t *KinCfgJntTrafoSingleParamT) { + t.Name = string(rcv.Name()) + t.ValueDouble = rcv.ValueDouble() + t.ValueInt = rcv.ValueInt() + t.ValueString = string(rcv.ValueString()) + t.Unit = string(rcv.Unit()) +} + +func (rcv *KinCfgJntTrafoSingleParam) UnPack() *KinCfgJntTrafoSingleParamT { + if rcv == nil { return nil } + t := &KinCfgJntTrafoSingleParamT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgJntTrafoSingleParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgJntTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgJntTrafoSingleParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgJntTrafoSingleParam(buf []byte, offset flatbuffers.UOffsetT) *KinCfgJntTrafoSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgJntTrafoSingleParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgJntTrafoSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgJntTrafoSingleParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter +func (rcv *KinCfgJntTrafoSingleParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter +/// value of the parameter (when it's a double value) +func (rcv *KinCfgJntTrafoSingleParam) ValueDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// value of the parameter (when it's a double value) +func (rcv *KinCfgJntTrafoSingleParam) MutateValueDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// value of the parameter (when it's a integer value) +func (rcv *KinCfgJntTrafoSingleParam) ValueInt() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +/// value of the parameter (when it's a integer value) +func (rcv *KinCfgJntTrafoSingleParam) MutateValueInt(n int64) bool { + return rcv._tab.MutateInt64Slot(8, n) +} + +/// value of the parameter (when it's a string value) +func (rcv *KinCfgJntTrafoSingleParam) ValueString() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// value of the parameter (when it's a string value) +/// unit of the parameter +func (rcv *KinCfgJntTrafoSingleParam) Unit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the parameter +func KinCfgJntTrafoSingleParamStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func KinCfgJntTrafoSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinCfgJntTrafoSingleParamAddValueDouble(builder *flatbuffers.Builder, valueDouble float64) { + builder.PrependFloat64Slot(1, valueDouble, 0.0) +} +func KinCfgJntTrafoSingleParamAddValueInt(builder *flatbuffers.Builder, valueInt int64) { + builder.PrependInt64Slot(2, valueInt, 0) +} +func KinCfgJntTrafoSingleParamAddValueString(builder *flatbuffers.Builder, valueString flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(valueString), 0) +} +func KinCfgJntTrafoSingleParamAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(unit), 0) +} +func KinCfgJntTrafoSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgLimits.go b/pkg/fbs/motion/core/fbtypes/KinCfgLimits.go index 7d1a83c..dfb91c2 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgLimits.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgLimits.go @@ -1,246 +1,246 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// all configured limits of this kinematics -type KinCfgLimitsT struct { - Vel float64 - Acc float64 - Dec float64 - JrkAcc float64 - JrkDec float64 - VelUnit string - AccUnit string - DecUnit string - JrkAccUnit string - JrkDecUnit string -} - -func (t *KinCfgLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - velUnitOffset := builder.CreateString(t.VelUnit) - accUnitOffset := builder.CreateString(t.AccUnit) - decUnitOffset := builder.CreateString(t.DecUnit) - jrkAccUnitOffset := builder.CreateString(t.JrkAccUnit) - jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) - KinCfgLimitsStart(builder) - KinCfgLimitsAddVel(builder, t.Vel) - KinCfgLimitsAddAcc(builder, t.Acc) - KinCfgLimitsAddDec(builder, t.Dec) - KinCfgLimitsAddJrkAcc(builder, t.JrkAcc) - KinCfgLimitsAddJrkDec(builder, t.JrkDec) - KinCfgLimitsAddVelUnit(builder, velUnitOffset) - KinCfgLimitsAddAccUnit(builder, accUnitOffset) - KinCfgLimitsAddDecUnit(builder, decUnitOffset) - KinCfgLimitsAddJrkAccUnit(builder, jrkAccUnitOffset) - KinCfgLimitsAddJrkDecUnit(builder, jrkDecUnitOffset) - return KinCfgLimitsEnd(builder) -} - -func (rcv *KinCfgLimits) UnPackTo(t *KinCfgLimitsT) { - t.Vel = rcv.Vel() - t.Acc = rcv.Acc() - t.Dec = rcv.Dec() - t.JrkAcc = rcv.JrkAcc() - t.JrkDec = rcv.JrkDec() - t.VelUnit = string(rcv.VelUnit()) - t.AccUnit = string(rcv.AccUnit()) - t.DecUnit = string(rcv.DecUnit()) - t.JrkAccUnit = string(rcv.JrkAccUnit()) - t.JrkDecUnit = string(rcv.JrkDecUnit()) -} - -func (rcv *KinCfgLimits) UnPack() *KinCfgLimitsT { - if rcv == nil { return nil } - t := &KinCfgLimitsT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgLimits struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgLimits { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgLimits{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgLimits { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgLimits{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgLimits) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgLimits) Table() flatbuffers.Table { - return rcv._tab -} - -/// path velocity limit (should be greater than zero) -func (rcv *KinCfgLimits) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// path velocity limit (should be greater than zero) -func (rcv *KinCfgLimits) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// path acceleration limit (should be greater than zero) -func (rcv *KinCfgLimits) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// path acceleration limit (should be greater than zero) -func (rcv *KinCfgLimits) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// path deceleration limit (should be greater than zero) -func (rcv *KinCfgLimits) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// path deceleration limit (should be greater than zero) -func (rcv *KinCfgLimits) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// path acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *KinCfgLimits) JrkAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// path acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *KinCfgLimits) MutateJrkAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// path deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *KinCfgLimits) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// path deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) -func (rcv *KinCfgLimits) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -/// unit of vel -func (rcv *KinCfgLimits) VelUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of vel -/// unit of acc -func (rcv *KinCfgLimits) AccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of acc -/// unit of dec -func (rcv *KinCfgLimits) DecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of dec -/// unit of jrkAcc -func (rcv *KinCfgLimits) JrkAccUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of jrkAcc -/// unit of jrkDec -func (rcv *KinCfgLimits) JrkDecUnit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of jrkDec -func KinCfgLimitsStart(builder *flatbuffers.Builder) { - builder.StartObject(10) -} -func KinCfgLimitsAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(0, vel, 0.0) -} -func KinCfgLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(1, acc, 0.0) -} -func KinCfgLimitsAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(2, dec, 0.0) -} -func KinCfgLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { - builder.PrependFloat64Slot(3, jrkAcc, 0.0) -} -func KinCfgLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(4, jrkDec, 0.0) -} -func KinCfgLimitsAddVelUnit(builder *flatbuffers.Builder, velUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(velUnit), 0) -} -func KinCfgLimitsAddAccUnit(builder *flatbuffers.Builder, accUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(accUnit), 0) -} -func KinCfgLimitsAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(decUnit), 0) -} -func KinCfgLimitsAddJrkAccUnit(builder *flatbuffers.Builder, jrkAccUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(jrkAccUnit), 0) -} -func KinCfgLimitsAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(jrkDecUnit), 0) -} -func KinCfgLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// all configured limits of this kinematics +type KinCfgLimitsT struct { + Vel float64 + Acc float64 + Dec float64 + JrkAcc float64 + JrkDec float64 + VelUnit string + AccUnit string + DecUnit string + JrkAccUnit string + JrkDecUnit string +} + +func (t *KinCfgLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + velUnitOffset := builder.CreateString(t.VelUnit) + accUnitOffset := builder.CreateString(t.AccUnit) + decUnitOffset := builder.CreateString(t.DecUnit) + jrkAccUnitOffset := builder.CreateString(t.JrkAccUnit) + jrkDecUnitOffset := builder.CreateString(t.JrkDecUnit) + KinCfgLimitsStart(builder) + KinCfgLimitsAddVel(builder, t.Vel) + KinCfgLimitsAddAcc(builder, t.Acc) + KinCfgLimitsAddDec(builder, t.Dec) + KinCfgLimitsAddJrkAcc(builder, t.JrkAcc) + KinCfgLimitsAddJrkDec(builder, t.JrkDec) + KinCfgLimitsAddVelUnit(builder, velUnitOffset) + KinCfgLimitsAddAccUnit(builder, accUnitOffset) + KinCfgLimitsAddDecUnit(builder, decUnitOffset) + KinCfgLimitsAddJrkAccUnit(builder, jrkAccUnitOffset) + KinCfgLimitsAddJrkDecUnit(builder, jrkDecUnitOffset) + return KinCfgLimitsEnd(builder) +} + +func (rcv *KinCfgLimits) UnPackTo(t *KinCfgLimitsT) { + t.Vel = rcv.Vel() + t.Acc = rcv.Acc() + t.Dec = rcv.Dec() + t.JrkAcc = rcv.JrkAcc() + t.JrkDec = rcv.JrkDec() + t.VelUnit = string(rcv.VelUnit()) + t.AccUnit = string(rcv.AccUnit()) + t.DecUnit = string(rcv.DecUnit()) + t.JrkAccUnit = string(rcv.JrkAccUnit()) + t.JrkDecUnit = string(rcv.JrkDecUnit()) +} + +func (rcv *KinCfgLimits) UnPack() *KinCfgLimitsT { + if rcv == nil { return nil } + t := &KinCfgLimitsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgLimits struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgLimits { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgLimits{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgLimits { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgLimits{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgLimits) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgLimits) Table() flatbuffers.Table { + return rcv._tab +} + +/// path velocity limit (should be greater than zero) +func (rcv *KinCfgLimits) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// path velocity limit (should be greater than zero) +func (rcv *KinCfgLimits) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// path acceleration limit (should be greater than zero) +func (rcv *KinCfgLimits) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// path acceleration limit (should be greater than zero) +func (rcv *KinCfgLimits) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// path deceleration limit (should be greater than zero) +func (rcv *KinCfgLimits) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// path deceleration limit (should be greater than zero) +func (rcv *KinCfgLimits) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// path acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *KinCfgLimits) JrkAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// path acceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *KinCfgLimits) MutateJrkAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// path deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *KinCfgLimits) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// path deceleration jerk limit (should be greater than zero OR zero for not jerk limited motion) +func (rcv *KinCfgLimits) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +/// unit of vel +func (rcv *KinCfgLimits) VelUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of vel +/// unit of acc +func (rcv *KinCfgLimits) AccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of acc +/// unit of dec +func (rcv *KinCfgLimits) DecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of dec +/// unit of jrkAcc +func (rcv *KinCfgLimits) JrkAccUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of jrkAcc +/// unit of jrkDec +func (rcv *KinCfgLimits) JrkDecUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of jrkDec +func KinCfgLimitsStart(builder *flatbuffers.Builder) { + builder.StartObject(10) +} +func KinCfgLimitsAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(0, vel, 0.0) +} +func KinCfgLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(1, acc, 0.0) +} +func KinCfgLimitsAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(2, dec, 0.0) +} +func KinCfgLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { + builder.PrependFloat64Slot(3, jrkAcc, 0.0) +} +func KinCfgLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(4, jrkDec, 0.0) +} +func KinCfgLimitsAddVelUnit(builder *flatbuffers.Builder, velUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(velUnit), 0) +} +func KinCfgLimitsAddAccUnit(builder *flatbuffers.Builder, accUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(accUnit), 0) +} +func KinCfgLimitsAddDecUnit(builder *flatbuffers.Builder, decUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(decUnit), 0) +} +func KinCfgLimitsAddJrkAccUnit(builder *flatbuffers.Builder, jrkAccUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(jrkAccUnit), 0) +} +func KinCfgLimitsAddJrkDecUnit(builder *flatbuffers.Builder, jrkDecUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(jrkDecUnit), 0) +} +func KinCfgLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgPrepLimits.go b/pkg/fbs/motion/core/fbtypes/KinCfgPrepLimits.go index e0bf3a2..99456c5 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCfgPrepLimits.go +++ b/pkg/fbs/motion/core/fbtypes/KinCfgPrepLimits.go @@ -1,81 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// preparation limits for kinematics -type KinCfgPrepLimitsT struct { - MaxCmdsInBuffer uint64 -} - -func (t *KinCfgPrepLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - KinCfgPrepLimitsStart(builder) - KinCfgPrepLimitsAddMaxCmdsInBuffer(builder, t.MaxCmdsInBuffer) - return KinCfgPrepLimitsEnd(builder) -} - -func (rcv *KinCfgPrepLimits) UnPackTo(t *KinCfgPrepLimitsT) { - t.MaxCmdsInBuffer = rcv.MaxCmdsInBuffer() -} - -func (rcv *KinCfgPrepLimits) UnPack() *KinCfgPrepLimitsT { - if rcv == nil { return nil } - t := &KinCfgPrepLimitsT{} - rcv.UnPackTo(t) - return t -} - -type KinCfgPrepLimits struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCfgPrepLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgPrepLimits { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCfgPrepLimits{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCfgPrepLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgPrepLimits { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCfgPrepLimits{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCfgPrepLimits) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCfgPrepLimits) Table() flatbuffers.Table { - return rcv._tab -} - -/// maximum number of commands in buffer -func (rcv *KinCfgPrepLimits) MaxCmdsInBuffer() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -/// maximum number of commands in buffer -func (rcv *KinCfgPrepLimits) MutateMaxCmdsInBuffer(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func KinCfgPrepLimitsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCfgPrepLimitsAddMaxCmdsInBuffer(builder *flatbuffers.Builder, maxCmdsInBuffer uint64) { - builder.PrependUint64Slot(0, maxCmdsInBuffer, 0) -} -func KinCfgPrepLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// preparation limits for kinematics +type KinCfgPrepLimitsT struct { + MaxCmdsInBuffer uint64 +} + +func (t *KinCfgPrepLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + KinCfgPrepLimitsStart(builder) + KinCfgPrepLimitsAddMaxCmdsInBuffer(builder, t.MaxCmdsInBuffer) + return KinCfgPrepLimitsEnd(builder) +} + +func (rcv *KinCfgPrepLimits) UnPackTo(t *KinCfgPrepLimitsT) { + t.MaxCmdsInBuffer = rcv.MaxCmdsInBuffer() +} + +func (rcv *KinCfgPrepLimits) UnPack() *KinCfgPrepLimitsT { + if rcv == nil { return nil } + t := &KinCfgPrepLimitsT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgPrepLimits struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgPrepLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgPrepLimits { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgPrepLimits{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgPrepLimits(buf []byte, offset flatbuffers.UOffsetT) *KinCfgPrepLimits { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgPrepLimits{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgPrepLimits) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgPrepLimits) Table() flatbuffers.Table { + return rcv._tab +} + +/// maximum number of commands in buffer +func (rcv *KinCfgPrepLimits) MaxCmdsInBuffer() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// maximum number of commands in buffer +func (rcv *KinCfgPrepLimits) MutateMaxCmdsInBuffer(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func KinCfgPrepLimitsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCfgPrepLimitsAddMaxCmdsInBuffer(builder *flatbuffers.Builder, maxCmdsInBuffer uint64) { + builder.PrependUint64Slot(0, maxCmdsInBuffer, 0) +} +func KinCfgPrepLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCfgRotToLinConversion.go b/pkg/fbs/motion/core/fbtypes/KinCfgRotToLinConversion.go new file mode 100644 index 0000000..0d55873 --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/KinCfgRotToLinConversion.go @@ -0,0 +1,115 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// common configuration of orientation. Conversion factor for the relation between linear values and rotation values. +type KinCfgRotToLinConversionT struct { + Factor float64 + UnitLin string + UnitRot string +} + +func (t *KinCfgRotToLinConversionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + unitLinOffset := builder.CreateString(t.UnitLin) + unitRotOffset := builder.CreateString(t.UnitRot) + KinCfgRotToLinConversionStart(builder) + KinCfgRotToLinConversionAddFactor(builder, t.Factor) + KinCfgRotToLinConversionAddUnitLin(builder, unitLinOffset) + KinCfgRotToLinConversionAddUnitRot(builder, unitRotOffset) + return KinCfgRotToLinConversionEnd(builder) +} + +func (rcv *KinCfgRotToLinConversion) UnPackTo(t *KinCfgRotToLinConversionT) { + t.Factor = rcv.Factor() + t.UnitLin = string(rcv.UnitLin()) + t.UnitRot = string(rcv.UnitRot()) +} + +func (rcv *KinCfgRotToLinConversion) UnPack() *KinCfgRotToLinConversionT { + if rcv == nil { return nil } + t := &KinCfgRotToLinConversionT{} + rcv.UnPackTo(t) + return t +} + +type KinCfgRotToLinConversion struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCfgRotToLinConversion(buf []byte, offset flatbuffers.UOffsetT) *KinCfgRotToLinConversion { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCfgRotToLinConversion{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCfgRotToLinConversion(buf []byte, offset flatbuffers.UOffsetT) *KinCfgRotToLinConversion { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCfgRotToLinConversion{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCfgRotToLinConversion) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCfgRotToLinConversion) Table() flatbuffers.Table { + return rcv._tab +} + +/// factor = (linear value)/(rotational value) +func (rcv *KinCfgRotToLinConversion) Factor() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// factor = (linear value)/(rotational value) +func (rcv *KinCfgRotToLinConversion) MutateFactor(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// unit for linear +func (rcv *KinCfgRotToLinConversion) UnitLin() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit for linear +/// unit for rotation +func (rcv *KinCfgRotToLinConversion) UnitRot() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit for rotation +func KinCfgRotToLinConversionStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCfgRotToLinConversionAddFactor(builder *flatbuffers.Builder, factor float64) { + builder.PrependFloat64Slot(0, factor, 0.0) +} +func KinCfgRotToLinConversionAddUnitLin(builder *flatbuffers.Builder, unitLin flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(unitLin), 0) +} +func KinCfgRotToLinConversionAddUnitRot(builder *flatbuffers.Builder, unitRot flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unitRot), 0) +} +func KinCfgRotToLinConversionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdAbortData.go b/pkg/fbs/motion/core/fbtypes/KinCmdAbortData.go index aa729ab..a34717b 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdAbortData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdAbortData.go @@ -1,81 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Command data for kinAbort command and kinInterrupt command -type KinCmdAbortDataT struct { - Type BrakeLimit -} - -func (t *KinCmdAbortDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - KinCmdAbortDataStart(builder) - KinCmdAbortDataAddType(builder, t.Type) - return KinCmdAbortDataEnd(builder) -} - -func (rcv *KinCmdAbortData) UnPackTo(t *KinCmdAbortDataT) { - t.Type = rcv.Type() -} - -func (rcv *KinCmdAbortData) UnPack() *KinCmdAbortDataT { - if rcv == nil { return nil } - t := &KinCmdAbortDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdAbortData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdAbortData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdAbortData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdAbortData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdAbortData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdAbortData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdAbortData) Table() flatbuffers.Table { - return rcv._tab -} - -/// dynamic limits of the deceleration ramp (default is "soft stop") -func (rcv *KinCmdAbortData) Type() BrakeLimit { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return BrakeLimit(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// dynamic limits of the deceleration ramp (default is "soft stop") -func (rcv *KinCmdAbortData) MutateType(n BrakeLimit) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func KinCmdAbortDataStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinCmdAbortDataAddType(builder *flatbuffers.Builder, type_ BrakeLimit) { - builder.PrependInt8Slot(0, int8(type_), 0) -} -func KinCmdAbortDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Command data for kinAbort command and kinInterrupt command +type KinCmdAbortDataT struct { + Type BrakeLimit +} + +func (t *KinCmdAbortDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + KinCmdAbortDataStart(builder) + KinCmdAbortDataAddType(builder, t.Type) + return KinCmdAbortDataEnd(builder) +} + +func (rcv *KinCmdAbortData) UnPackTo(t *KinCmdAbortDataT) { + t.Type = rcv.Type() +} + +func (rcv *KinCmdAbortData) UnPack() *KinCmdAbortDataT { + if rcv == nil { return nil } + t := &KinCmdAbortDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdAbortData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdAbortData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdAbortData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdAbortData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdAbortData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdAbortData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdAbortData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdAbortData) Table() flatbuffers.Table { + return rcv._tab +} + +/// dynamic limits of the deceleration ramp (default is "soft stop") +func (rcv *KinCmdAbortData) Type() BrakeLimit { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return BrakeLimit(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// dynamic limits of the deceleration ramp (default is "soft stop") +func (rcv *KinCmdAbortData) MutateType(n BrakeLimit) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func KinCmdAbortDataStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinCmdAbortDataAddType(builder *flatbuffers.Builder, type_ BrakeLimit) { + builder.PrependInt8Slot(0, int8(type_), 0) +} +func KinCmdAbortDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdContourData.go b/pkg/fbs/motion/core/fbtypes/KinCmdContourData.go index acc1d9a..4eeb3ef 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdContourData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdContourData.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the contour command for a kinematics -type KinCmdContourDataT struct { - IsStart bool - PrepCmds uint32 -} - -func (t *KinCmdContourDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - KinCmdContourDataStart(builder) - KinCmdContourDataAddIsStart(builder, t.IsStart) - KinCmdContourDataAddPrepCmds(builder, t.PrepCmds) - return KinCmdContourDataEnd(builder) -} - -func (rcv *KinCmdContourData) UnPackTo(t *KinCmdContourDataT) { - t.IsStart = rcv.IsStart() - t.PrepCmds = rcv.PrepCmds() -} - -func (rcv *KinCmdContourData) UnPack() *KinCmdContourDataT { - if rcv == nil { return nil } - t := &KinCmdContourDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdContourData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdContourData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdContourData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdContourData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdContourData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdContourData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdContourData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdContourData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdContourData) Table() flatbuffers.Table { - return rcv._tab -} - -/// is this the start of the contour? -func (rcv *KinCmdContourData) IsStart() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -/// is this the start of the contour? -func (rcv *KinCmdContourData) MutateIsStart(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -/// set the number of commands that should be prepared completely (only relevant when isStart=true) -func (rcv *KinCmdContourData) PrepCmds() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// set the number of commands that should be prepared completely (only relevant when isStart=true) -func (rcv *KinCmdContourData) MutatePrepCmds(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func KinCmdContourDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCmdContourDataAddIsStart(builder *flatbuffers.Builder, isStart bool) { - builder.PrependBoolSlot(0, isStart, true) -} -func KinCmdContourDataAddPrepCmds(builder *flatbuffers.Builder, prepCmds uint32) { - builder.PrependUint32Slot(1, prepCmds, 0) -} -func KinCmdContourDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the contour command for a kinematics +type KinCmdContourDataT struct { + IsStart bool + PrepCmds uint32 +} + +func (t *KinCmdContourDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + KinCmdContourDataStart(builder) + KinCmdContourDataAddIsStart(builder, t.IsStart) + KinCmdContourDataAddPrepCmds(builder, t.PrepCmds) + return KinCmdContourDataEnd(builder) +} + +func (rcv *KinCmdContourData) UnPackTo(t *KinCmdContourDataT) { + t.IsStart = rcv.IsStart() + t.PrepCmds = rcv.PrepCmds() +} + +func (rcv *KinCmdContourData) UnPack() *KinCmdContourDataT { + if rcv == nil { return nil } + t := &KinCmdContourDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdContourData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdContourData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdContourData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdContourData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdContourData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdContourData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdContourData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdContourData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdContourData) Table() flatbuffers.Table { + return rcv._tab +} + +/// is this the start of the contour? +func (rcv *KinCmdContourData) IsStart() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +/// is this the start of the contour? +func (rcv *KinCmdContourData) MutateIsStart(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// set the number of commands that should be prepared completely (only relevant when isStart=true) +func (rcv *KinCmdContourData) PrepCmds() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// set the number of commands that should be prepared completely (only relevant when isStart=true) +func (rcv *KinCmdContourData) MutatePrepCmds(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func KinCmdContourDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCmdContourDataAddIsStart(builder *flatbuffers.Builder, isStart bool) { + builder.PrependBoolSlot(0, isStart, true) +} +func KinCmdContourDataAddPrepCmds(builder *flatbuffers.Builder, prepCmds uint32) { + builder.PrependUint32Slot(1, prepCmds, 0) +} +func KinCmdContourDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdJogData.go b/pkg/fbs/motion/core/fbtypes/KinCmdJogData.go index da6b574..0142c6f 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdJogData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdJogData.go @@ -1,170 +1,170 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the jog commands for a kinematics -type KinCmdJogDataT struct { - JogDir []float64 - CoordSys string - JogIncrement float64 - Lim *DynamicLimitsT -} - -func (t *KinCmdJogDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - jogDirOffset := flatbuffers.UOffsetT(0) - if t.JogDir != nil { - jogDirLength := len(t.JogDir) - KinCmdJogDataStartJogDirVector(builder, jogDirLength) - for j := jogDirLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.JogDir[j]) - } - jogDirOffset = builder.EndVector(jogDirLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - limOffset := t.Lim.Pack(builder) - KinCmdJogDataStart(builder) - KinCmdJogDataAddJogDir(builder, jogDirOffset) - KinCmdJogDataAddCoordSys(builder, coordSysOffset) - KinCmdJogDataAddJogIncrement(builder, t.JogIncrement) - KinCmdJogDataAddLim(builder, limOffset) - return KinCmdJogDataEnd(builder) -} - -func (rcv *KinCmdJogData) UnPackTo(t *KinCmdJogDataT) { - jogDirLength := rcv.JogDirLength() - t.JogDir = make([]float64, jogDirLength) - for j := 0; j < jogDirLength; j++ { - t.JogDir[j] = rcv.JogDir(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.JogIncrement = rcv.JogIncrement() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *KinCmdJogData) UnPack() *KinCmdJogDataT { - if rcv == nil { return nil } - t := &KinCmdJogDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdJogData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdJogData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdJogData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdJogData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdJogData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdJogData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdJogData) Table() flatbuffers.Table { - return rcv._tab -} - -/// jog direction as a vector -func (rcv *KinCmdJogData) JogDir(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCmdJogData) JogDirLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// jog direction as a vector -func (rcv *KinCmdJogData) MutateJogDir(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// coordSys for jog direction vector -func (rcv *KinCmdJogData) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordSys for jog direction vector -/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) -func (rcv *KinCmdJogData) JogIncrement() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) -func (rcv *KinCmdJogData) MutateJogIncrement(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// dynamic limits for the motion of this command -func (rcv *KinCmdJogData) Lim(obj *DynamicLimits) *DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -func KinCmdJogDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCmdJogDataAddJogDir(builder *flatbuffers.Builder, jogDir flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(jogDir), 0) -} -func KinCmdJogDataStartJogDirVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCmdJogDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) -} -func KinCmdJogDataAddJogIncrement(builder *flatbuffers.Builder, jogIncrement float64) { - builder.PrependFloat64Slot(2, jogIncrement, 0.0) -} -func KinCmdJogDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) -} -func KinCmdJogDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the jog commands for a kinematics +type KinCmdJogDataT struct { + JogDir []float64 + CoordSys string + JogIncrement float64 + Lim *DynamicLimitsT +} + +func (t *KinCmdJogDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + jogDirOffset := flatbuffers.UOffsetT(0) + if t.JogDir != nil { + jogDirLength := len(t.JogDir) + KinCmdJogDataStartJogDirVector(builder, jogDirLength) + for j := jogDirLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.JogDir[j]) + } + jogDirOffset = builder.EndVector(jogDirLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + limOffset := t.Lim.Pack(builder) + KinCmdJogDataStart(builder) + KinCmdJogDataAddJogDir(builder, jogDirOffset) + KinCmdJogDataAddCoordSys(builder, coordSysOffset) + KinCmdJogDataAddJogIncrement(builder, t.JogIncrement) + KinCmdJogDataAddLim(builder, limOffset) + return KinCmdJogDataEnd(builder) +} + +func (rcv *KinCmdJogData) UnPackTo(t *KinCmdJogDataT) { + jogDirLength := rcv.JogDirLength() + t.JogDir = make([]float64, jogDirLength) + for j := 0; j < jogDirLength; j++ { + t.JogDir[j] = rcv.JogDir(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.JogIncrement = rcv.JogIncrement() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *KinCmdJogData) UnPack() *KinCmdJogDataT { + if rcv == nil { return nil } + t := &KinCmdJogDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdJogData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdJogData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdJogData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdJogData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdJogData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdJogData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdJogData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdJogData) Table() flatbuffers.Table { + return rcv._tab +} + +/// jog direction as a vector +func (rcv *KinCmdJogData) JogDir(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCmdJogData) JogDirLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// jog direction as a vector +func (rcv *KinCmdJogData) MutateJogDir(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// coordSys for jog direction vector +func (rcv *KinCmdJogData) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordSys for jog direction vector +/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) +func (rcv *KinCmdJogData) JogIncrement() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// jog increment (must be zero for continuous jogging, must be a positive value for incremantal jogging) +func (rcv *KinCmdJogData) MutateJogIncrement(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// dynamic limits for the motion of this command +func (rcv *KinCmdJogData) Lim(obj *DynamicLimits) *DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +func KinCmdJogDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCmdJogDataAddJogDir(builder *flatbuffers.Builder, jogDir flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(jogDir), 0) +} +func KinCmdJogDataStartJogDirVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCmdJogDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) +} +func KinCmdJogDataAddJogIncrement(builder *flatbuffers.Builder, jogIncrement float64) { + builder.PrependFloat64Slot(2, jogIncrement, 0.0) +} +func KinCmdJogDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) +} +func KinCmdJogDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdMoveData.go b/pkg/fbs/motion/core/fbtypes/KinCmdMoveData.go index 7b667c6..98a138c 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdMoveData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdMoveData.go @@ -1,170 +1,170 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the move linear commands for a kinematics -type KinCmdMoveDataT struct { - KinPos []float64 - CoordSys string - Lim *DynamicLimitsT - Buffered bool -} - -func (t *KinCmdMoveDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - kinPosOffset := flatbuffers.UOffsetT(0) - if t.KinPos != nil { - kinPosLength := len(t.KinPos) - KinCmdMoveDataStartKinPosVector(builder, kinPosLength) - for j := kinPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.KinPos[j]) - } - kinPosOffset = builder.EndVector(kinPosLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - limOffset := t.Lim.Pack(builder) - KinCmdMoveDataStart(builder) - KinCmdMoveDataAddKinPos(builder, kinPosOffset) - KinCmdMoveDataAddCoordSys(builder, coordSysOffset) - KinCmdMoveDataAddLim(builder, limOffset) - KinCmdMoveDataAddBuffered(builder, t.Buffered) - return KinCmdMoveDataEnd(builder) -} - -func (rcv *KinCmdMoveData) UnPackTo(t *KinCmdMoveDataT) { - kinPosLength := rcv.KinPosLength() - t.KinPos = make([]float64, kinPosLength) - for j := 0; j < kinPosLength; j++ { - t.KinPos[j] = rcv.KinPos(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.Lim = rcv.Lim(nil).UnPack() - t.Buffered = rcv.Buffered() -} - -func (rcv *KinCmdMoveData) UnPack() *KinCmdMoveDataT { - if rcv == nil { return nil } - t := &KinCmdMoveDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdMoveData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdMoveData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdMoveData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdMoveData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdMoveData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdMoveData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdMoveData) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target position (or increment for relative position command) -func (rcv *KinCmdMoveData) KinPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCmdMoveData) KinPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// commanded target position (or increment for relative position command) -func (rcv *KinCmdMoveData) MutateKinPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// coordSys for commanded target position -func (rcv *KinCmdMoveData) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordSys for commanded target position -/// dynamic limits for the motion of this command -func (rcv *KinCmdMoveData) Lim(obj *DynamicLimits) *DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -/// should this be a buffered command? -func (rcv *KinCmdMoveData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -/// should this be a buffered command? -func (rcv *KinCmdMoveData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func KinCmdMoveDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCmdMoveDataAddKinPos(builder *flatbuffers.Builder, kinPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinPos), 0) -} -func KinCmdMoveDataStartKinPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCmdMoveDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) -} -func KinCmdMoveDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) -} -func KinCmdMoveDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(3, buffered, true) -} -func KinCmdMoveDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the move linear commands for a kinematics +type KinCmdMoveDataT struct { + KinPos []float64 + CoordSys string + Lim *DynamicLimitsT + Buffered bool +} + +func (t *KinCmdMoveDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + kinPosOffset := flatbuffers.UOffsetT(0) + if t.KinPos != nil { + kinPosLength := len(t.KinPos) + KinCmdMoveDataStartKinPosVector(builder, kinPosLength) + for j := kinPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.KinPos[j]) + } + kinPosOffset = builder.EndVector(kinPosLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + limOffset := t.Lim.Pack(builder) + KinCmdMoveDataStart(builder) + KinCmdMoveDataAddKinPos(builder, kinPosOffset) + KinCmdMoveDataAddCoordSys(builder, coordSysOffset) + KinCmdMoveDataAddLim(builder, limOffset) + KinCmdMoveDataAddBuffered(builder, t.Buffered) + return KinCmdMoveDataEnd(builder) +} + +func (rcv *KinCmdMoveData) UnPackTo(t *KinCmdMoveDataT) { + kinPosLength := rcv.KinPosLength() + t.KinPos = make([]float64, kinPosLength) + for j := 0; j < kinPosLength; j++ { + t.KinPos[j] = rcv.KinPos(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.Lim = rcv.Lim(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *KinCmdMoveData) UnPack() *KinCmdMoveDataT { + if rcv == nil { return nil } + t := &KinCmdMoveDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdMoveData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdMoveData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdMoveData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdMoveData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdMoveData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdMoveData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdMoveData) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target position (or increment for relative position command) +func (rcv *KinCmdMoveData) KinPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCmdMoveData) KinPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// commanded target position (or increment for relative position command) +func (rcv *KinCmdMoveData) MutateKinPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// coordSys for commanded target position +func (rcv *KinCmdMoveData) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordSys for commanded target position +/// dynamic limits for the motion of this command +func (rcv *KinCmdMoveData) Lim(obj *DynamicLimits) *DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +/// should this be a buffered command? +func (rcv *KinCmdMoveData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +/// should this be a buffered command? +func (rcv *KinCmdMoveData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func KinCmdMoveDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCmdMoveDataAddKinPos(builder *flatbuffers.Builder, kinPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinPos), 0) +} +func KinCmdMoveDataStartKinPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCmdMoveDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) +} +func KinCmdMoveDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) +} +func KinCmdMoveDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(3, buffered, true) +} +func KinCmdMoveDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectAsyncData.go b/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectAsyncData.go index 056c1f0..a2d0b1d 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectAsyncData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectAsyncData.go @@ -1,170 +1,170 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the move direct asynchronous command for a kinematics -type KinCmdMoveDirectAsyncDataT struct { - KinPos []float64 - CoordSys string - DynLimFactors *DynamicLimitsT - Buffered bool -} - -func (t *KinCmdMoveDirectAsyncDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - kinPosOffset := flatbuffers.UOffsetT(0) - if t.KinPos != nil { - kinPosLength := len(t.KinPos) - KinCmdMoveDirectAsyncDataStartKinPosVector(builder, kinPosLength) - for j := kinPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.KinPos[j]) - } - kinPosOffset = builder.EndVector(kinPosLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - dynLimFactorsOffset := t.DynLimFactors.Pack(builder) - KinCmdMoveDirectAsyncDataStart(builder) - KinCmdMoveDirectAsyncDataAddKinPos(builder, kinPosOffset) - KinCmdMoveDirectAsyncDataAddCoordSys(builder, coordSysOffset) - KinCmdMoveDirectAsyncDataAddDynLimFactors(builder, dynLimFactorsOffset) - KinCmdMoveDirectAsyncDataAddBuffered(builder, t.Buffered) - return KinCmdMoveDirectAsyncDataEnd(builder) -} - -func (rcv *KinCmdMoveDirectAsyncData) UnPackTo(t *KinCmdMoveDirectAsyncDataT) { - kinPosLength := rcv.KinPosLength() - t.KinPos = make([]float64, kinPosLength) - for j := 0; j < kinPosLength; j++ { - t.KinPos[j] = rcv.KinPos(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.DynLimFactors = rcv.DynLimFactors(nil).UnPack() - t.Buffered = rcv.Buffered() -} - -func (rcv *KinCmdMoveDirectAsyncData) UnPack() *KinCmdMoveDirectAsyncDataT { - if rcv == nil { return nil } - t := &KinCmdMoveDirectAsyncDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdMoveDirectAsyncData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdMoveDirectAsyncData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectAsyncData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdMoveDirectAsyncData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdMoveDirectAsyncData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectAsyncData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdMoveDirectAsyncData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdMoveDirectAsyncData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdMoveDirectAsyncData) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target position (or increment for relative position command) -func (rcv *KinCmdMoveDirectAsyncData) KinPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCmdMoveDirectAsyncData) KinPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// commanded target position (or increment for relative position command) -func (rcv *KinCmdMoveDirectAsyncData) MutateKinPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// coordSys for commanded target position -func (rcv *KinCmdMoveDirectAsyncData) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordSys for commanded target position -/// dynamic limits factors -func (rcv *KinCmdMoveDirectAsyncData) DynLimFactors(obj *DynamicLimits) *DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits factors -/// should this be a buffered command? -func (rcv *KinCmdMoveDirectAsyncData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -/// should this be a buffered command? -func (rcv *KinCmdMoveDirectAsyncData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func KinCmdMoveDirectAsyncDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCmdMoveDirectAsyncDataAddKinPos(builder *flatbuffers.Builder, kinPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinPos), 0) -} -func KinCmdMoveDirectAsyncDataStartKinPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCmdMoveDirectAsyncDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) -} -func KinCmdMoveDirectAsyncDataAddDynLimFactors(builder *flatbuffers.Builder, dynLimFactors flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dynLimFactors), 0) -} -func KinCmdMoveDirectAsyncDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(3, buffered, true) -} -func KinCmdMoveDirectAsyncDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the move direct asynchronous command for a kinematics +type KinCmdMoveDirectAsyncDataT struct { + KinPos []float64 + CoordSys string + DynLimFactors *DynamicLimitsT + Buffered bool +} + +func (t *KinCmdMoveDirectAsyncDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + kinPosOffset := flatbuffers.UOffsetT(0) + if t.KinPos != nil { + kinPosLength := len(t.KinPos) + KinCmdMoveDirectAsyncDataStartKinPosVector(builder, kinPosLength) + for j := kinPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.KinPos[j]) + } + kinPosOffset = builder.EndVector(kinPosLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + dynLimFactorsOffset := t.DynLimFactors.Pack(builder) + KinCmdMoveDirectAsyncDataStart(builder) + KinCmdMoveDirectAsyncDataAddKinPos(builder, kinPosOffset) + KinCmdMoveDirectAsyncDataAddCoordSys(builder, coordSysOffset) + KinCmdMoveDirectAsyncDataAddDynLimFactors(builder, dynLimFactorsOffset) + KinCmdMoveDirectAsyncDataAddBuffered(builder, t.Buffered) + return KinCmdMoveDirectAsyncDataEnd(builder) +} + +func (rcv *KinCmdMoveDirectAsyncData) UnPackTo(t *KinCmdMoveDirectAsyncDataT) { + kinPosLength := rcv.KinPosLength() + t.KinPos = make([]float64, kinPosLength) + for j := 0; j < kinPosLength; j++ { + t.KinPos[j] = rcv.KinPos(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.DynLimFactors = rcv.DynLimFactors(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *KinCmdMoveDirectAsyncData) UnPack() *KinCmdMoveDirectAsyncDataT { + if rcv == nil { return nil } + t := &KinCmdMoveDirectAsyncDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdMoveDirectAsyncData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdMoveDirectAsyncData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectAsyncData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdMoveDirectAsyncData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdMoveDirectAsyncData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectAsyncData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdMoveDirectAsyncData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdMoveDirectAsyncData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdMoveDirectAsyncData) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target position (or increment for relative position command) +func (rcv *KinCmdMoveDirectAsyncData) KinPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCmdMoveDirectAsyncData) KinPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// commanded target position (or increment for relative position command) +func (rcv *KinCmdMoveDirectAsyncData) MutateKinPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// coordSys for commanded target position +func (rcv *KinCmdMoveDirectAsyncData) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordSys for commanded target position +/// dynamic limits factors +func (rcv *KinCmdMoveDirectAsyncData) DynLimFactors(obj *DynamicLimits) *DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits factors +/// should this be a buffered command? +func (rcv *KinCmdMoveDirectAsyncData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +/// should this be a buffered command? +func (rcv *KinCmdMoveDirectAsyncData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func KinCmdMoveDirectAsyncDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCmdMoveDirectAsyncDataAddKinPos(builder *flatbuffers.Builder, kinPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinPos), 0) +} +func KinCmdMoveDirectAsyncDataStartKinPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCmdMoveDirectAsyncDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) +} +func KinCmdMoveDirectAsyncDataAddDynLimFactors(builder *flatbuffers.Builder, dynLimFactors flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(dynLimFactors), 0) +} +func KinCmdMoveDirectAsyncDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(3, buffered, true) +} +func KinCmdMoveDirectAsyncDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectData.go b/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectData.go index 1f5fd12..acb23a2 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdMoveDirectData.go @@ -1,148 +1,148 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the move direct commands for a kinematics -type KinCmdMoveDirectDataT struct { - KinPos []float64 - CoordSys string - Buffered bool -} - -func (t *KinCmdMoveDirectDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - kinPosOffset := flatbuffers.UOffsetT(0) - if t.KinPos != nil { - kinPosLength := len(t.KinPos) - KinCmdMoveDirectDataStartKinPosVector(builder, kinPosLength) - for j := kinPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.KinPos[j]) - } - kinPosOffset = builder.EndVector(kinPosLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - KinCmdMoveDirectDataStart(builder) - KinCmdMoveDirectDataAddKinPos(builder, kinPosOffset) - KinCmdMoveDirectDataAddCoordSys(builder, coordSysOffset) - KinCmdMoveDirectDataAddBuffered(builder, t.Buffered) - return KinCmdMoveDirectDataEnd(builder) -} - -func (rcv *KinCmdMoveDirectData) UnPackTo(t *KinCmdMoveDirectDataT) { - kinPosLength := rcv.KinPosLength() - t.KinPos = make([]float64, kinPosLength) - for j := 0; j < kinPosLength; j++ { - t.KinPos[j] = rcv.KinPos(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.Buffered = rcv.Buffered() -} - -func (rcv *KinCmdMoveDirectData) UnPack() *KinCmdMoveDirectDataT { - if rcv == nil { return nil } - t := &KinCmdMoveDirectDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdMoveDirectData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdMoveDirectData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdMoveDirectData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdMoveDirectData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdMoveDirectData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdMoveDirectData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdMoveDirectData) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target position (or increment for relative position command) -func (rcv *KinCmdMoveDirectData) KinPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCmdMoveDirectData) KinPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// commanded target position (or increment for relative position command) -func (rcv *KinCmdMoveDirectData) MutateKinPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// coordSys for commanded target position -func (rcv *KinCmdMoveDirectData) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordSys for commanded target position -/// should this be a buffered command? -func (rcv *KinCmdMoveDirectData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -/// should this be a buffered command? -func (rcv *KinCmdMoveDirectData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func KinCmdMoveDirectDataStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinCmdMoveDirectDataAddKinPos(builder *flatbuffers.Builder, kinPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinPos), 0) -} -func KinCmdMoveDirectDataStartKinPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCmdMoveDirectDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) -} -func KinCmdMoveDirectDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(2, buffered, true) -} -func KinCmdMoveDirectDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the move direct commands for a kinematics +type KinCmdMoveDirectDataT struct { + KinPos []float64 + CoordSys string + Buffered bool +} + +func (t *KinCmdMoveDirectDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + kinPosOffset := flatbuffers.UOffsetT(0) + if t.KinPos != nil { + kinPosLength := len(t.KinPos) + KinCmdMoveDirectDataStartKinPosVector(builder, kinPosLength) + for j := kinPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.KinPos[j]) + } + kinPosOffset = builder.EndVector(kinPosLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + KinCmdMoveDirectDataStart(builder) + KinCmdMoveDirectDataAddKinPos(builder, kinPosOffset) + KinCmdMoveDirectDataAddCoordSys(builder, coordSysOffset) + KinCmdMoveDirectDataAddBuffered(builder, t.Buffered) + return KinCmdMoveDirectDataEnd(builder) +} + +func (rcv *KinCmdMoveDirectData) UnPackTo(t *KinCmdMoveDirectDataT) { + kinPosLength := rcv.KinPosLength() + t.KinPos = make([]float64, kinPosLength) + for j := 0; j < kinPosLength; j++ { + t.KinPos[j] = rcv.KinPos(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.Buffered = rcv.Buffered() +} + +func (rcv *KinCmdMoveDirectData) UnPack() *KinCmdMoveDirectDataT { + if rcv == nil { return nil } + t := &KinCmdMoveDirectDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdMoveDirectData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdMoveDirectData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdMoveDirectData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdMoveDirectData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdMoveDirectData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdMoveDirectData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdMoveDirectData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdMoveDirectData) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target position (or increment for relative position command) +func (rcv *KinCmdMoveDirectData) KinPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCmdMoveDirectData) KinPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// commanded target position (or increment for relative position command) +func (rcv *KinCmdMoveDirectData) MutateKinPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// coordSys for commanded target position +func (rcv *KinCmdMoveDirectData) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordSys for commanded target position +/// should this be a buffered command? +func (rcv *KinCmdMoveDirectData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +/// should this be a buffered command? +func (rcv *KinCmdMoveDirectData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func KinCmdMoveDirectDataStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCmdMoveDirectDataAddKinPos(builder *flatbuffers.Builder, kinPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(kinPos), 0) +} +func KinCmdMoveDirectDataStartKinPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCmdMoveDirectDataAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSys), 0) +} +func KinCmdMoveDirectDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(2, buffered, true) +} +func KinCmdMoveDirectDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdOptAxsDynLimData.go b/pkg/fbs/motion/core/fbtypes/KinCmdOptAxsDynLimData.go index 07923e6..e65332b 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdOptAxsDynLimData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdOptAxsDynLimData.go @@ -1,102 +1,102 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command option SafeArea (monitoring of safe zones and work areas) for kinematics -type KinCmdOptAxsDynLimDataT struct { - AxsName string - Lim *DynamicLimitsT -} - -func (t *KinCmdOptAxsDynLimDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsNameOffset := builder.CreateString(t.AxsName) - limOffset := t.Lim.Pack(builder) - KinCmdOptAxsDynLimDataStart(builder) - KinCmdOptAxsDynLimDataAddAxsName(builder, axsNameOffset) - KinCmdOptAxsDynLimDataAddLim(builder, limOffset) - return KinCmdOptAxsDynLimDataEnd(builder) -} - -func (rcv *KinCmdOptAxsDynLimData) UnPackTo(t *KinCmdOptAxsDynLimDataT) { - t.AxsName = string(rcv.AxsName()) - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *KinCmdOptAxsDynLimData) UnPack() *KinCmdOptAxsDynLimDataT { - if rcv == nil { return nil } - t := &KinCmdOptAxsDynLimDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdOptAxsDynLimData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdOptAxsDynLimData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptAxsDynLimData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdOptAxsDynLimData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdOptAxsDynLimData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptAxsDynLimData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdOptAxsDynLimData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdOptAxsDynLimData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdOptAxsDynLimData) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the kinematics axis, that dynamic limits should be reduced -func (rcv *KinCmdOptAxsDynLimData) AxsName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the kinematics axis, that dynamic limits should be reduced -/// dynamic limits for the following motion commands for this axis (optional) -/// leave it out to disable the command option -func (rcv *KinCmdOptAxsDynLimData) Lim(obj *DynamicLimits) *DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the following motion commands for this axis (optional) -/// leave it out to disable the command option -func KinCmdOptAxsDynLimDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCmdOptAxsDynLimDataAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) -} -func KinCmdOptAxsDynLimDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(lim), 0) -} -func KinCmdOptAxsDynLimDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command option SafeArea (monitoring of safe zones and work areas) for kinematics +type KinCmdOptAxsDynLimDataT struct { + AxsName string + Lim *DynamicLimitsT +} + +func (t *KinCmdOptAxsDynLimDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsNameOffset := builder.CreateString(t.AxsName) + limOffset := t.Lim.Pack(builder) + KinCmdOptAxsDynLimDataStart(builder) + KinCmdOptAxsDynLimDataAddAxsName(builder, axsNameOffset) + KinCmdOptAxsDynLimDataAddLim(builder, limOffset) + return KinCmdOptAxsDynLimDataEnd(builder) +} + +func (rcv *KinCmdOptAxsDynLimData) UnPackTo(t *KinCmdOptAxsDynLimDataT) { + t.AxsName = string(rcv.AxsName()) + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *KinCmdOptAxsDynLimData) UnPack() *KinCmdOptAxsDynLimDataT { + if rcv == nil { return nil } + t := &KinCmdOptAxsDynLimDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdOptAxsDynLimData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdOptAxsDynLimData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptAxsDynLimData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdOptAxsDynLimData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdOptAxsDynLimData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptAxsDynLimData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdOptAxsDynLimData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdOptAxsDynLimData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdOptAxsDynLimData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the kinematics axis, that dynamic limits should be reduced +func (rcv *KinCmdOptAxsDynLimData) AxsName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the kinematics axis, that dynamic limits should be reduced +/// dynamic limits for the following motion commands for this axis (optional) +/// leave it out to disable the command option +func (rcv *KinCmdOptAxsDynLimData) Lim(obj *DynamicLimits) *DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the following motion commands for this axis (optional) +/// leave it out to disable the command option +func KinCmdOptAxsDynLimDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCmdOptAxsDynLimDataAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) +} +func KinCmdOptAxsDynLimDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(lim), 0) +} +func KinCmdOptAxsDynLimDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdOptBlendData.go b/pkg/fbs/motion/core/fbtypes/KinCmdOptBlendData.go index 972684b..d58e345 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdOptBlendData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdOptBlendData.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command option blending for kinematics -type KinCmdOptBlendDataT struct { - PermType string - Dist1 float64 - Dist2 float64 -} - -func (t *KinCmdOptBlendDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - KinCmdOptBlendDataStart(builder) - KinCmdOptBlendDataAddPermType(builder, permTypeOffset) - KinCmdOptBlendDataAddDist1(builder, t.Dist1) - KinCmdOptBlendDataAddDist2(builder, t.Dist2) - return KinCmdOptBlendDataEnd(builder) -} - -func (rcv *KinCmdOptBlendData) UnPackTo(t *KinCmdOptBlendDataT) { - t.PermType = string(rcv.PermType()) - t.Dist1 = rcv.Dist1() - t.Dist2 = rcv.Dist2() -} - -func (rcv *KinCmdOptBlendData) UnPack() *KinCmdOptBlendDataT { - if rcv == nil { return nil } - t := &KinCmdOptBlendDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdOptBlendData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdOptBlendData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptBlendData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdOptBlendData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdOptBlendData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptBlendData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdOptBlendData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdOptBlendData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdOptBlendData) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "Once") -func (rcv *KinCmdOptBlendData) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "Once") -/// distance D1 (refer to the manual, should be greater than zero) -func (rcv *KinCmdOptBlendData) Dist1() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// distance D1 (refer to the manual, should be greater than zero) -func (rcv *KinCmdOptBlendData) MutateDist1(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// distance D2 (refer to the manual, should be greater than zero) -func (rcv *KinCmdOptBlendData) Dist2() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// distance D2 (refer to the manual, should be greater than zero) -func (rcv *KinCmdOptBlendData) MutateDist2(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func KinCmdOptBlendDataStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinCmdOptBlendDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func KinCmdOptBlendDataAddDist1(builder *flatbuffers.Builder, dist1 float64) { - builder.PrependFloat64Slot(1, dist1, 0.0) -} -func KinCmdOptBlendDataAddDist2(builder *flatbuffers.Builder, dist2 float64) { - builder.PrependFloat64Slot(2, dist2, 0.0) -} -func KinCmdOptBlendDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command option blending for kinematics +type KinCmdOptBlendDataT struct { + PermType string + Dist1 float64 + Dist2 float64 +} + +func (t *KinCmdOptBlendDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + KinCmdOptBlendDataStart(builder) + KinCmdOptBlendDataAddPermType(builder, permTypeOffset) + KinCmdOptBlendDataAddDist1(builder, t.Dist1) + KinCmdOptBlendDataAddDist2(builder, t.Dist2) + return KinCmdOptBlendDataEnd(builder) +} + +func (rcv *KinCmdOptBlendData) UnPackTo(t *KinCmdOptBlendDataT) { + t.PermType = string(rcv.PermType()) + t.Dist1 = rcv.Dist1() + t.Dist2 = rcv.Dist2() +} + +func (rcv *KinCmdOptBlendData) UnPack() *KinCmdOptBlendDataT { + if rcv == nil { return nil } + t := &KinCmdOptBlendDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdOptBlendData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdOptBlendData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptBlendData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdOptBlendData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdOptBlendData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptBlendData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdOptBlendData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdOptBlendData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdOptBlendData) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "Once") +func (rcv *KinCmdOptBlendData) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "Once") +/// distance D1 (refer to the manual, should be greater than zero) +func (rcv *KinCmdOptBlendData) Dist1() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// distance D1 (refer to the manual, should be greater than zero) +func (rcv *KinCmdOptBlendData) MutateDist1(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// distance D2 (refer to the manual, should be greater than zero) +func (rcv *KinCmdOptBlendData) Dist2() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// distance D2 (refer to the manual, should be greater than zero) +func (rcv *KinCmdOptBlendData) MutateDist2(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func KinCmdOptBlendDataStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinCmdOptBlendDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func KinCmdOptBlendDataAddDist1(builder *flatbuffers.Builder, dist1 float64) { + builder.PrependFloat64Slot(1, dist1, 0.0) +} +func KinCmdOptBlendDataAddDist2(builder *flatbuffers.Builder, dist2 float64) { + builder.PrependFloat64Slot(2, dist2, 0.0) +} +func KinCmdOptBlendDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdOptFeedGroupData.go b/pkg/fbs/motion/core/fbtypes/KinCmdOptFeedGroupData.go index 8eea4c0..4a3339f 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdOptFeedGroupData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdOptFeedGroupData.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command option FeedGroup (modify the resulting path parameter based on a given feedGroup) for kinematics -type KinCmdOptFeedGroupDataT struct { - PermType string - Type FeedGroup -} - -func (t *KinCmdOptFeedGroupDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - KinCmdOptFeedGroupDataStart(builder) - KinCmdOptFeedGroupDataAddPermType(builder, permTypeOffset) - KinCmdOptFeedGroupDataAddType(builder, t.Type) - return KinCmdOptFeedGroupDataEnd(builder) -} - -func (rcv *KinCmdOptFeedGroupData) UnPackTo(t *KinCmdOptFeedGroupDataT) { - t.PermType = string(rcv.PermType()) - t.Type = rcv.Type() -} - -func (rcv *KinCmdOptFeedGroupData) UnPack() *KinCmdOptFeedGroupDataT { - if rcv == nil { return nil } - t := &KinCmdOptFeedGroupDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdOptFeedGroupData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdOptFeedGroupData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptFeedGroupData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdOptFeedGroupData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdOptFeedGroupData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptFeedGroupData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdOptFeedGroupData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdOptFeedGroupData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdOptFeedGroupData) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "PermOn") -func (rcv *KinCmdOptFeedGroupData) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "PermOn") -/// name of the feedGroup that should be used to define the path parameter (default FG_XYZ) -/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" -func (rcv *KinCmdOptFeedGroupData) Type() FeedGroup { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return FeedGroup(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// name of the feedGroup that should be used to define the path parameter (default FG_XYZ) -/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" -func (rcv *KinCmdOptFeedGroupData) MutateType(n FeedGroup) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func KinCmdOptFeedGroupDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCmdOptFeedGroupDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func KinCmdOptFeedGroupDataAddType(builder *flatbuffers.Builder, type_ FeedGroup) { - builder.PrependInt8Slot(1, int8(type_), 0) -} -func KinCmdOptFeedGroupDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command option FeedGroup (modify the resulting path parameter based on a given feedGroup) for kinematics +type KinCmdOptFeedGroupDataT struct { + PermType string + Type FeedGroup +} + +func (t *KinCmdOptFeedGroupDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + KinCmdOptFeedGroupDataStart(builder) + KinCmdOptFeedGroupDataAddPermType(builder, permTypeOffset) + KinCmdOptFeedGroupDataAddType(builder, t.Type) + return KinCmdOptFeedGroupDataEnd(builder) +} + +func (rcv *KinCmdOptFeedGroupData) UnPackTo(t *KinCmdOptFeedGroupDataT) { + t.PermType = string(rcv.PermType()) + t.Type = rcv.Type() +} + +func (rcv *KinCmdOptFeedGroupData) UnPack() *KinCmdOptFeedGroupDataT { + if rcv == nil { return nil } + t := &KinCmdOptFeedGroupDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdOptFeedGroupData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdOptFeedGroupData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptFeedGroupData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdOptFeedGroupData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdOptFeedGroupData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptFeedGroupData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdOptFeedGroupData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdOptFeedGroupData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdOptFeedGroupData) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "PermOn") +func (rcv *KinCmdOptFeedGroupData) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "PermOn") +/// name of the feedGroup that should be used to define the path parameter (default FG_XYZ) +/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" +func (rcv *KinCmdOptFeedGroupData) Type() FeedGroup { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return FeedGroup(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// name of the feedGroup that should be used to define the path parameter (default FG_XYZ) +/// possible feedGroups are: "FG_XYZ", "FG_XYZ_O", "FG_XYZ_A", "FG_XYZ_O_A" +func (rcv *KinCmdOptFeedGroupData) MutateType(n FeedGroup) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func KinCmdOptFeedGroupDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCmdOptFeedGroupDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func KinCmdOptFeedGroupDataAddType(builder *flatbuffers.Builder, type_ FeedGroup) { + builder.PrependInt8Slot(1, int8(type_), 0) +} +func KinCmdOptFeedGroupDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdOptMCSData.go b/pkg/fbs/motion/core/fbtypes/KinCmdOptMCSData.go index 80ab9f0..37d10f4 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdOptMCSData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdOptMCSData.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command option MCS (machine coordinate system a.k.a. joint transformation) for kinematics -type KinCmdOptMCSDataT struct { - PermType string - SetName string -} - -func (t *KinCmdOptMCSDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - setNameOffset := builder.CreateString(t.SetName) - KinCmdOptMCSDataStart(builder) - KinCmdOptMCSDataAddPermType(builder, permTypeOffset) - KinCmdOptMCSDataAddSetName(builder, setNameOffset) - return KinCmdOptMCSDataEnd(builder) -} - -func (rcv *KinCmdOptMCSData) UnPackTo(t *KinCmdOptMCSDataT) { - t.PermType = string(rcv.PermType()) - t.SetName = string(rcv.SetName()) -} - -func (rcv *KinCmdOptMCSData) UnPack() *KinCmdOptMCSDataT { - if rcv == nil { return nil } - t := &KinCmdOptMCSDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdOptMCSData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdOptMCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptMCSData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdOptMCSData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdOptMCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptMCSData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdOptMCSData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdOptMCSData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdOptMCSData) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "PermOn") -func (rcv *KinCmdOptMCSData) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "PermOn") -/// name of the joint transformation set that should become active -func (rcv *KinCmdOptMCSData) SetName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the joint transformation set that should become active -func KinCmdOptMCSDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCmdOptMCSDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func KinCmdOptMCSDataAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) -} -func KinCmdOptMCSDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command option MCS (machine coordinate system a.k.a. joint transformation) for kinematics +type KinCmdOptMCSDataT struct { + PermType string + SetName string +} + +func (t *KinCmdOptMCSDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + setNameOffset := builder.CreateString(t.SetName) + KinCmdOptMCSDataStart(builder) + KinCmdOptMCSDataAddPermType(builder, permTypeOffset) + KinCmdOptMCSDataAddSetName(builder, setNameOffset) + return KinCmdOptMCSDataEnd(builder) +} + +func (rcv *KinCmdOptMCSData) UnPackTo(t *KinCmdOptMCSDataT) { + t.PermType = string(rcv.PermType()) + t.SetName = string(rcv.SetName()) +} + +func (rcv *KinCmdOptMCSData) UnPack() *KinCmdOptMCSDataT { + if rcv == nil { return nil } + t := &KinCmdOptMCSDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdOptMCSData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdOptMCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptMCSData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdOptMCSData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdOptMCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptMCSData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdOptMCSData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdOptMCSData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdOptMCSData) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "PermOn") +func (rcv *KinCmdOptMCSData) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "PermOn") +/// name of the joint transformation set that should become active +func (rcv *KinCmdOptMCSData) SetName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the joint transformation set that should become active +func KinCmdOptMCSDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCmdOptMCSDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func KinCmdOptMCSDataAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) +} +func KinCmdOptMCSDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdOptPCSData.go b/pkg/fbs/motion/core/fbtypes/KinCmdOptPCSData.go index ff603a5..1231ac9 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdOptPCSData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdOptPCSData.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command option PCS (product coordinate system) for kinematics -type KinCmdOptPCSDataT struct { - PermType string - SetName string -} - -func (t *KinCmdOptPCSDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - setNameOffset := builder.CreateString(t.SetName) - KinCmdOptPCSDataStart(builder) - KinCmdOptPCSDataAddPermType(builder, permTypeOffset) - KinCmdOptPCSDataAddSetName(builder, setNameOffset) - return KinCmdOptPCSDataEnd(builder) -} - -func (rcv *KinCmdOptPCSData) UnPackTo(t *KinCmdOptPCSDataT) { - t.PermType = string(rcv.PermType()) - t.SetName = string(rcv.SetName()) -} - -func (rcv *KinCmdOptPCSData) UnPack() *KinCmdOptPCSDataT { - if rcv == nil { return nil } - t := &KinCmdOptPCSDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdOptPCSData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdOptPCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPCSData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdOptPCSData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdOptPCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPCSData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdOptPCSData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdOptPCSData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdOptPCSData) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "PermOn") -func (rcv *KinCmdOptPCSData) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "PermOn") -/// name of the set/group that should become active -func (rcv *KinCmdOptPCSData) SetName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the set/group that should become active -func KinCmdOptPCSDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCmdOptPCSDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func KinCmdOptPCSDataAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) -} -func KinCmdOptPCSDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command option PCS (product coordinate system) for kinematics +type KinCmdOptPCSDataT struct { + PermType string + SetName string +} + +func (t *KinCmdOptPCSDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + setNameOffset := builder.CreateString(t.SetName) + KinCmdOptPCSDataStart(builder) + KinCmdOptPCSDataAddPermType(builder, permTypeOffset) + KinCmdOptPCSDataAddSetName(builder, setNameOffset) + return KinCmdOptPCSDataEnd(builder) +} + +func (rcv *KinCmdOptPCSData) UnPackTo(t *KinCmdOptPCSDataT) { + t.PermType = string(rcv.PermType()) + t.SetName = string(rcv.SetName()) +} + +func (rcv *KinCmdOptPCSData) UnPack() *KinCmdOptPCSDataT { + if rcv == nil { return nil } + t := &KinCmdOptPCSDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdOptPCSData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdOptPCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPCSData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdOptPCSData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdOptPCSData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPCSData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdOptPCSData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdOptPCSData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdOptPCSData) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "PermOn") +func (rcv *KinCmdOptPCSData) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "PermOn") +/// name of the set/group that should become active +func (rcv *KinCmdOptPCSData) SetName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the set/group that should become active +func KinCmdOptPCSDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCmdOptPCSDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func KinCmdOptPCSDataAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) +} +func KinCmdOptPCSDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdOptPolyTransData.go b/pkg/fbs/motion/core/fbtypes/KinCmdOptPolyTransData.go index d11f3b4..3656113 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdOptPolyTransData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdOptPolyTransData.go @@ -1,144 +1,144 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command option PolyTrans (inserting polynomial commands between successively move commands) for kinematics -type KinCmdOptPolyTransDataT struct { - PermType string - Dist1 float64 - Dist2 float64 - Eps float64 -} - -func (t *KinCmdOptPolyTransDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - KinCmdOptPolyTransDataStart(builder) - KinCmdOptPolyTransDataAddPermType(builder, permTypeOffset) - KinCmdOptPolyTransDataAddDist1(builder, t.Dist1) - KinCmdOptPolyTransDataAddDist2(builder, t.Dist2) - KinCmdOptPolyTransDataAddEps(builder, t.Eps) - return KinCmdOptPolyTransDataEnd(builder) -} - -func (rcv *KinCmdOptPolyTransData) UnPackTo(t *KinCmdOptPolyTransDataT) { - t.PermType = string(rcv.PermType()) - t.Dist1 = rcv.Dist1() - t.Dist2 = rcv.Dist2() - t.Eps = rcv.Eps() -} - -func (rcv *KinCmdOptPolyTransData) UnPack() *KinCmdOptPolyTransDataT { - if rcv == nil { return nil } - t := &KinCmdOptPolyTransDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdOptPolyTransData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdOptPolyTransData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPolyTransData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdOptPolyTransData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdOptPolyTransData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPolyTransData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdOptPolyTransData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdOptPolyTransData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdOptPolyTransData) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "PermOn") -func (rcv *KinCmdOptPolyTransData) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "PermOn") -/// optional distance D1 (distance to shorten the start of the precorner, must be greater than zero) -/// when dist1 is greater then zero, also dist2 must be greater than zero; eps must not be set in this case (or equal zero) -func (rcv *KinCmdOptPolyTransData) Dist1() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// optional distance D1 (distance to shorten the start of the precorner, must be greater than zero) -/// when dist1 is greater then zero, also dist2 must be greater than zero; eps must not be set in this case (or equal zero) -func (rcv *KinCmdOptPolyTransData) MutateDist1(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// optional distance D2 (distance to shorten the start of the postcorner, must be greater than zero) -/// when dist2 is greater then zero, also dist1 must be greater than zero; eps must not be set in this case (or equal zero) -func (rcv *KinCmdOptPolyTransData) Dist2() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// optional distance D2 (distance to shorten the start of the postcorner, must be greater than zero) -/// when dist2 is greater then zero, also dist1 must be greater than zero; eps must not be set in this case (or equal zero) -func (rcv *KinCmdOptPolyTransData) MutateDist2(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// optional distance EPS (maximum permissible tolerance eps, must be greater than zero) -/// when eps is greater then zero, than dist1 and dist2 should not be set (or equal zero) -func (rcv *KinCmdOptPolyTransData) Eps() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// optional distance EPS (maximum permissible tolerance eps, must be greater than zero) -/// when eps is greater then zero, than dist1 and dist2 should not be set (or equal zero) -func (rcv *KinCmdOptPolyTransData) MutateEps(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func KinCmdOptPolyTransDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCmdOptPolyTransDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func KinCmdOptPolyTransDataAddDist1(builder *flatbuffers.Builder, dist1 float64) { - builder.PrependFloat64Slot(1, dist1, 0.0) -} -func KinCmdOptPolyTransDataAddDist2(builder *flatbuffers.Builder, dist2 float64) { - builder.PrependFloat64Slot(2, dist2, 0.0) -} -func KinCmdOptPolyTransDataAddEps(builder *flatbuffers.Builder, eps float64) { - builder.PrependFloat64Slot(3, eps, 0.0) -} -func KinCmdOptPolyTransDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command option PolyTrans (inserting polynomial commands between successively move commands) for kinematics +type KinCmdOptPolyTransDataT struct { + PermType string + Dist1 float64 + Dist2 float64 + Eps float64 +} + +func (t *KinCmdOptPolyTransDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + KinCmdOptPolyTransDataStart(builder) + KinCmdOptPolyTransDataAddPermType(builder, permTypeOffset) + KinCmdOptPolyTransDataAddDist1(builder, t.Dist1) + KinCmdOptPolyTransDataAddDist2(builder, t.Dist2) + KinCmdOptPolyTransDataAddEps(builder, t.Eps) + return KinCmdOptPolyTransDataEnd(builder) +} + +func (rcv *KinCmdOptPolyTransData) UnPackTo(t *KinCmdOptPolyTransDataT) { + t.PermType = string(rcv.PermType()) + t.Dist1 = rcv.Dist1() + t.Dist2 = rcv.Dist2() + t.Eps = rcv.Eps() +} + +func (rcv *KinCmdOptPolyTransData) UnPack() *KinCmdOptPolyTransDataT { + if rcv == nil { return nil } + t := &KinCmdOptPolyTransDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdOptPolyTransData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdOptPolyTransData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPolyTransData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdOptPolyTransData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdOptPolyTransData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptPolyTransData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdOptPolyTransData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdOptPolyTransData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdOptPolyTransData) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "PermOn") +func (rcv *KinCmdOptPolyTransData) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "PermOn") +/// optional distance D1 (distance to shorten the start of the precorner, must be greater than zero) +/// when dist1 is greater then zero, also dist2 must be greater than zero; eps must not be set in this case (or equal zero) +func (rcv *KinCmdOptPolyTransData) Dist1() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// optional distance D1 (distance to shorten the start of the precorner, must be greater than zero) +/// when dist1 is greater then zero, also dist2 must be greater than zero; eps must not be set in this case (or equal zero) +func (rcv *KinCmdOptPolyTransData) MutateDist1(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// optional distance D2 (distance to shorten the start of the postcorner, must be greater than zero) +/// when dist2 is greater then zero, also dist1 must be greater than zero; eps must not be set in this case (or equal zero) +func (rcv *KinCmdOptPolyTransData) Dist2() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// optional distance D2 (distance to shorten the start of the postcorner, must be greater than zero) +/// when dist2 is greater then zero, also dist1 must be greater than zero; eps must not be set in this case (or equal zero) +func (rcv *KinCmdOptPolyTransData) MutateDist2(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// optional distance EPS (maximum permissible tolerance eps, must be greater than zero) +/// when eps is greater then zero, than dist1 and dist2 should not be set (or equal zero) +func (rcv *KinCmdOptPolyTransData) Eps() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// optional distance EPS (maximum permissible tolerance eps, must be greater than zero) +/// when eps is greater then zero, than dist1 and dist2 should not be set (or equal zero) +func (rcv *KinCmdOptPolyTransData) MutateEps(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func KinCmdOptPolyTransDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCmdOptPolyTransDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func KinCmdOptPolyTransDataAddDist1(builder *flatbuffers.Builder, dist1 float64) { + builder.PrependFloat64Slot(1, dist1, 0.0) +} +func KinCmdOptPolyTransDataAddDist2(builder *flatbuffers.Builder, dist2 float64) { + builder.PrependFloat64Slot(2, dist2, 0.0) +} +func KinCmdOptPolyTransDataAddEps(builder *flatbuffers.Builder, eps float64) { + builder.PrependFloat64Slot(3, eps, 0.0) +} +func KinCmdOptPolyTransDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdOptSafeAreaData.go b/pkg/fbs/motion/core/fbtypes/KinCmdOptSafeAreaData.go index db29bc5..e26bb21 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdOptSafeAreaData.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdOptSafeAreaData.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command option SafeArea (monitoring of safe zones and work areas) for kinematics -type KinCmdOptSafeAreaDataT struct { - PermType string - SafeArea string -} - -func (t *KinCmdOptSafeAreaDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - safeAreaOffset := builder.CreateString(t.SafeArea) - KinCmdOptSafeAreaDataStart(builder) - KinCmdOptSafeAreaDataAddPermType(builder, permTypeOffset) - KinCmdOptSafeAreaDataAddSafeArea(builder, safeAreaOffset) - return KinCmdOptSafeAreaDataEnd(builder) -} - -func (rcv *KinCmdOptSafeAreaData) UnPackTo(t *KinCmdOptSafeAreaDataT) { - t.PermType = string(rcv.PermType()) - t.SafeArea = string(rcv.SafeArea()) -} - -func (rcv *KinCmdOptSafeAreaData) UnPack() *KinCmdOptSafeAreaDataT { - if rcv == nil { return nil } - t := &KinCmdOptSafeAreaDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdOptSafeAreaData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdOptSafeAreaData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptSafeAreaData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdOptSafeAreaData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdOptSafeAreaData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptSafeAreaData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdOptSafeAreaData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdOptSafeAreaData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdOptSafeAreaData) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "PermOn") -func (rcv *KinCmdOptSafeAreaData) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "PermOn") -/// name of the safe zone or work area that should become active/disabled as set in the configuration -func (rcv *KinCmdOptSafeAreaData) SafeArea() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the safe zone or work area that should become active/disabled as set in the configuration -func KinCmdOptSafeAreaDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinCmdOptSafeAreaDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func KinCmdOptSafeAreaDataAddSafeArea(builder *flatbuffers.Builder, safeArea flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(safeArea), 0) -} -func KinCmdOptSafeAreaDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command option SafeArea (monitoring of safe zones and work areas) for kinematics +type KinCmdOptSafeAreaDataT struct { + PermType string + SafeArea string +} + +func (t *KinCmdOptSafeAreaDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + safeAreaOffset := builder.CreateString(t.SafeArea) + KinCmdOptSafeAreaDataStart(builder) + KinCmdOptSafeAreaDataAddPermType(builder, permTypeOffset) + KinCmdOptSafeAreaDataAddSafeArea(builder, safeAreaOffset) + return KinCmdOptSafeAreaDataEnd(builder) +} + +func (rcv *KinCmdOptSafeAreaData) UnPackTo(t *KinCmdOptSafeAreaDataT) { + t.PermType = string(rcv.PermType()) + t.SafeArea = string(rcv.SafeArea()) +} + +func (rcv *KinCmdOptSafeAreaData) UnPack() *KinCmdOptSafeAreaDataT { + if rcv == nil { return nil } + t := &KinCmdOptSafeAreaDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdOptSafeAreaData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdOptSafeAreaData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptSafeAreaData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdOptSafeAreaData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdOptSafeAreaData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdOptSafeAreaData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdOptSafeAreaData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdOptSafeAreaData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdOptSafeAreaData) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "PermOn") +func (rcv *KinCmdOptSafeAreaData) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "PermOn") +/// name of the safe zone or work area that should become active/disabled as set in the configuration +func (rcv *KinCmdOptSafeAreaData) SafeArea() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the safe zone or work area that should become active/disabled as set in the configuration +func KinCmdOptSafeAreaDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinCmdOptSafeAreaDataAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func KinCmdOptSafeAreaDataAddSafeArea(builder *flatbuffers.Builder, safeArea flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(safeArea), 0) +} +func KinCmdOptSafeAreaDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCmdValues.go b/pkg/fbs/motion/core/fbtypes/KinCmdValues.go index 91bb2d1..5874f8e 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCmdValues.go +++ b/pkg/fbs/motion/core/fbtypes/KinCmdValues.go @@ -1,192 +1,192 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters and data of the active command -type KinCmdValuesT struct { - TargetPos []float64 - Lim *DynamicLimitsStateT - CoordSys string - CmdId uint64 - Src *CmdSourceT -} - -func (t *KinCmdValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - targetPosOffset := flatbuffers.UOffsetT(0) - if t.TargetPos != nil { - targetPosLength := len(t.TargetPos) - KinCmdValuesStartTargetPosVector(builder, targetPosLength) - for j := targetPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.TargetPos[j]) - } - targetPosOffset = builder.EndVector(targetPosLength) - } - limOffset := t.Lim.Pack(builder) - coordSysOffset := builder.CreateString(t.CoordSys) - srcOffset := t.Src.Pack(builder) - KinCmdValuesStart(builder) - KinCmdValuesAddTargetPos(builder, targetPosOffset) - KinCmdValuesAddLim(builder, limOffset) - KinCmdValuesAddCoordSys(builder, coordSysOffset) - KinCmdValuesAddCmdId(builder, t.CmdId) - KinCmdValuesAddSrc(builder, srcOffset) - return KinCmdValuesEnd(builder) -} - -func (rcv *KinCmdValues) UnPackTo(t *KinCmdValuesT) { - targetPosLength := rcv.TargetPosLength() - t.TargetPos = make([]float64, targetPosLength) - for j := 0; j < targetPosLength; j++ { - t.TargetPos[j] = rcv.TargetPos(j) - } - t.Lim = rcv.Lim(nil).UnPack() - t.CoordSys = string(rcv.CoordSys()) - t.CmdId = rcv.CmdId() - t.Src = rcv.Src(nil).UnPack() -} - -func (rcv *KinCmdValues) UnPack() *KinCmdValuesT { - if rcv == nil { return nil } - t := &KinCmdValuesT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdValues struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdValues(buf []byte, offset flatbuffers.UOffsetT) *KinCmdValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdValues(buf []byte, offset flatbuffers.UOffsetT) *KinCmdValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdValues) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target position as vector -func (rcv *KinCmdValues) TargetPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCmdValues) TargetPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// commanded target position as vector -func (rcv *KinCmdValues) MutateTargetPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// dynamic limits for the motion of this command -func (rcv *KinCmdValues) Lim(obj *DynamicLimitsState) *DynamicLimitsState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(DynamicLimitsState) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -/// coordinate system of the target position -func (rcv *KinCmdValues) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordinate system of the target position -/// command ID of the active command -func (rcv *KinCmdValues) CmdId() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -/// command ID of the active command -func (rcv *KinCmdValues) MutateCmdId(n uint64) bool { - return rcv._tab.MutateUint64Slot(10, n) -} - -/// command source (by which interface was this command inserted into the system (e.g. "PLC")) -func (rcv *KinCmdValues) Src(obj *CmdSource) *CmdSource { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdSource) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// command source (by which interface was this command inserted into the system (e.g. "PLC")) -func KinCmdValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func KinCmdValuesAddTargetPos(builder *flatbuffers.Builder, targetPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(targetPos), 0) -} -func KinCmdValuesStartTargetPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCmdValuesAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(lim), 0) -} -func KinCmdValuesAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) -} -func KinCmdValuesAddCmdId(builder *flatbuffers.Builder, cmdId uint64) { - builder.PrependUint64Slot(3, cmdId, 0) -} -func KinCmdValuesAddSrc(builder *flatbuffers.Builder, src flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(src), 0) -} -func KinCmdValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters and data of the active command +type KinCmdValuesT struct { + TargetPos []float64 + Lim *DynamicLimitsStateT + CoordSys string + CmdId uint64 + Src *CmdSourceT +} + +func (t *KinCmdValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + targetPosOffset := flatbuffers.UOffsetT(0) + if t.TargetPos != nil { + targetPosLength := len(t.TargetPos) + KinCmdValuesStartTargetPosVector(builder, targetPosLength) + for j := targetPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.TargetPos[j]) + } + targetPosOffset = builder.EndVector(targetPosLength) + } + limOffset := t.Lim.Pack(builder) + coordSysOffset := builder.CreateString(t.CoordSys) + srcOffset := t.Src.Pack(builder) + KinCmdValuesStart(builder) + KinCmdValuesAddTargetPos(builder, targetPosOffset) + KinCmdValuesAddLim(builder, limOffset) + KinCmdValuesAddCoordSys(builder, coordSysOffset) + KinCmdValuesAddCmdId(builder, t.CmdId) + KinCmdValuesAddSrc(builder, srcOffset) + return KinCmdValuesEnd(builder) +} + +func (rcv *KinCmdValues) UnPackTo(t *KinCmdValuesT) { + targetPosLength := rcv.TargetPosLength() + t.TargetPos = make([]float64, targetPosLength) + for j := 0; j < targetPosLength; j++ { + t.TargetPos[j] = rcv.TargetPos(j) + } + t.Lim = rcv.Lim(nil).UnPack() + t.CoordSys = string(rcv.CoordSys()) + t.CmdId = rcv.CmdId() + t.Src = rcv.Src(nil).UnPack() +} + +func (rcv *KinCmdValues) UnPack() *KinCmdValuesT { + if rcv == nil { return nil } + t := &KinCmdValuesT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdValues struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdValues(buf []byte, offset flatbuffers.UOffsetT) *KinCmdValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdValues(buf []byte, offset flatbuffers.UOffsetT) *KinCmdValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target position as vector +func (rcv *KinCmdValues) TargetPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCmdValues) TargetPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// commanded target position as vector +func (rcv *KinCmdValues) MutateTargetPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// dynamic limits for the motion of this command +func (rcv *KinCmdValues) Lim(obj *DynamicLimitsState) *DynamicLimitsState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(DynamicLimitsState) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +/// coordinate system of the target position +func (rcv *KinCmdValues) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordinate system of the target position +/// command ID of the active command +func (rcv *KinCmdValues) CmdId() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// command ID of the active command +func (rcv *KinCmdValues) MutateCmdId(n uint64) bool { + return rcv._tab.MutateUint64Slot(10, n) +} + +/// command source (by which interface was this command inserted into the system (e.g. "PLC")) +func (rcv *KinCmdValues) Src(obj *CmdSource) *CmdSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdSource) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// command source (by which interface was this command inserted into the system (e.g. "PLC")) +func KinCmdValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func KinCmdValuesAddTargetPos(builder *flatbuffers.Builder, targetPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(targetPos), 0) +} +func KinCmdValuesStartTargetPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCmdValuesAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(lim), 0) +} +func KinCmdValuesAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) +} +func KinCmdValuesAddCmdId(builder *flatbuffers.Builder, cmdId uint64) { + builder.PrependUint64Slot(3, cmdId, 0) +} +func KinCmdValuesAddSrc(builder *flatbuffers.Builder, src flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(src), 0) +} +func KinCmdValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinCoordTransform.go b/pkg/fbs/motion/core/fbtypes/KinCoordTransform.go index cd2b5ad..0727763 100644 --- a/pkg/fbs/motion/core/fbtypes/KinCoordTransform.go +++ b/pkg/fbs/motion/core/fbtypes/KinCoordTransform.go @@ -1,195 +1,195 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// coordinate transformation based on the currently active transformations of the kinematics -type KinCoordTransformT struct { - InPos []float64 - InCoordSys string - OutPos []float64 - OutCoordSys string -} - -func (t *KinCoordTransformT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - inPosOffset := flatbuffers.UOffsetT(0) - if t.InPos != nil { - inPosLength := len(t.InPos) - KinCoordTransformStartInPosVector(builder, inPosLength) - for j := inPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.InPos[j]) - } - inPosOffset = builder.EndVector(inPosLength) - } - inCoordSysOffset := builder.CreateString(t.InCoordSys) - outPosOffset := flatbuffers.UOffsetT(0) - if t.OutPos != nil { - outPosLength := len(t.OutPos) - KinCoordTransformStartOutPosVector(builder, outPosLength) - for j := outPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.OutPos[j]) - } - outPosOffset = builder.EndVector(outPosLength) - } - outCoordSysOffset := builder.CreateString(t.OutCoordSys) - KinCoordTransformStart(builder) - KinCoordTransformAddInPos(builder, inPosOffset) - KinCoordTransformAddInCoordSys(builder, inCoordSysOffset) - KinCoordTransformAddOutPos(builder, outPosOffset) - KinCoordTransformAddOutCoordSys(builder, outCoordSysOffset) - return KinCoordTransformEnd(builder) -} - -func (rcv *KinCoordTransform) UnPackTo(t *KinCoordTransformT) { - inPosLength := rcv.InPosLength() - t.InPos = make([]float64, inPosLength) - for j := 0; j < inPosLength; j++ { - t.InPos[j] = rcv.InPos(j) - } - t.InCoordSys = string(rcv.InCoordSys()) - outPosLength := rcv.OutPosLength() - t.OutPos = make([]float64, outPosLength) - for j := 0; j < outPosLength; j++ { - t.OutPos[j] = rcv.OutPos(j) - } - t.OutCoordSys = string(rcv.OutCoordSys()) -} - -func (rcv *KinCoordTransform) UnPack() *KinCoordTransformT { - if rcv == nil { return nil } - t := &KinCoordTransformT{} - rcv.UnPackTo(t) - return t -} - -type KinCoordTransform struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *KinCoordTransform { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCoordTransform{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *KinCoordTransform { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCoordTransform{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCoordTransform) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCoordTransform) Table() flatbuffers.Table { - return rcv._tab -} - -/// input coordinates -func (rcv *KinCoordTransform) InPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCoordTransform) InPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// input coordinates -func (rcv *KinCoordTransform) MutateInPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// coordinate system of the input coordinates (default is "PCS") -func (rcv *KinCoordTransform) InCoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordinate system of the input coordinates (default is "PCS") -/// output coordinates, should be left out in the request -func (rcv *KinCoordTransform) OutPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCoordTransform) OutPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// output coordinates, should be left out in the request -func (rcv *KinCoordTransform) MutateOutPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// coordinate system of the output coordinate (default is "ACS") -func (rcv *KinCoordTransform) OutCoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordinate system of the output coordinate (default is "ACS") -func KinCoordTransformStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCoordTransformAddInPos(builder *flatbuffers.Builder, inPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(inPos), 0) -} -func KinCoordTransformStartInPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCoordTransformAddInCoordSys(builder *flatbuffers.Builder, inCoordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(inCoordSys), 0) -} -func KinCoordTransformAddOutPos(builder *flatbuffers.Builder, outPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(outPos), 0) -} -func KinCoordTransformStartOutPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCoordTransformAddOutCoordSys(builder *flatbuffers.Builder, outCoordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(outCoordSys), 0) -} -func KinCoordTransformEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// coordinate transformation based on the currently active transformations of the kinematics +type KinCoordTransformT struct { + InPos []float64 + InCoordSys string + OutPos []float64 + OutCoordSys string +} + +func (t *KinCoordTransformT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + inPosOffset := flatbuffers.UOffsetT(0) + if t.InPos != nil { + inPosLength := len(t.InPos) + KinCoordTransformStartInPosVector(builder, inPosLength) + for j := inPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.InPos[j]) + } + inPosOffset = builder.EndVector(inPosLength) + } + inCoordSysOffset := builder.CreateString(t.InCoordSys) + outPosOffset := flatbuffers.UOffsetT(0) + if t.OutPos != nil { + outPosLength := len(t.OutPos) + KinCoordTransformStartOutPosVector(builder, outPosLength) + for j := outPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.OutPos[j]) + } + outPosOffset = builder.EndVector(outPosLength) + } + outCoordSysOffset := builder.CreateString(t.OutCoordSys) + KinCoordTransformStart(builder) + KinCoordTransformAddInPos(builder, inPosOffset) + KinCoordTransformAddInCoordSys(builder, inCoordSysOffset) + KinCoordTransformAddOutPos(builder, outPosOffset) + KinCoordTransformAddOutCoordSys(builder, outCoordSysOffset) + return KinCoordTransformEnd(builder) +} + +func (rcv *KinCoordTransform) UnPackTo(t *KinCoordTransformT) { + inPosLength := rcv.InPosLength() + t.InPos = make([]float64, inPosLength) + for j := 0; j < inPosLength; j++ { + t.InPos[j] = rcv.InPos(j) + } + t.InCoordSys = string(rcv.InCoordSys()) + outPosLength := rcv.OutPosLength() + t.OutPos = make([]float64, outPosLength) + for j := 0; j < outPosLength; j++ { + t.OutPos[j] = rcv.OutPos(j) + } + t.OutCoordSys = string(rcv.OutCoordSys()) +} + +func (rcv *KinCoordTransform) UnPack() *KinCoordTransformT { + if rcv == nil { return nil } + t := &KinCoordTransformT{} + rcv.UnPackTo(t) + return t +} + +type KinCoordTransform struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *KinCoordTransform { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCoordTransform{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *KinCoordTransform { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCoordTransform{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCoordTransform) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCoordTransform) Table() flatbuffers.Table { + return rcv._tab +} + +/// input coordinates +func (rcv *KinCoordTransform) InPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCoordTransform) InPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// input coordinates +func (rcv *KinCoordTransform) MutateInPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// coordinate system of the input coordinates (default is "PCS") +func (rcv *KinCoordTransform) InCoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordinate system of the input coordinates (default is "PCS") +/// output coordinates, should be left out in the request +func (rcv *KinCoordTransform) OutPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCoordTransform) OutPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// output coordinates, should be left out in the request +func (rcv *KinCoordTransform) MutateOutPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// coordinate system of the output coordinate (default is "ACS") +func (rcv *KinCoordTransform) OutCoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordinate system of the output coordinate (default is "ACS") +func KinCoordTransformStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCoordTransformAddInPos(builder *flatbuffers.Builder, inPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(inPos), 0) +} +func KinCoordTransformStartInPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCoordTransformAddInCoordSys(builder *flatbuffers.Builder, inCoordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(inCoordSys), 0) +} +func KinCoordTransformAddOutPos(builder *flatbuffers.Builder, outPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(outPos), 0) +} +func KinCoordTransformStartOutPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCoordTransformAddOutCoordSys(builder *flatbuffers.Builder, outCoordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(outCoordSys), 0) +} +func KinCoordTransformEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinGeoCfg.go b/pkg/fbs/motion/core/fbtypes/KinGeoCfg.go index ef2d26e..49df6dd 100644 --- a/pkg/fbs/motion/core/fbtypes/KinGeoCfg.go +++ b/pkg/fbs/motion/core/fbtypes/KinGeoCfg.go @@ -1,83 +1,83 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// common configuration of orientation -type KinGeoCfgT struct { - Orientation *KinOriCfgT -} - -func (t *KinGeoCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - orientationOffset := t.Orientation.Pack(builder) - KinGeoCfgStart(builder) - KinGeoCfgAddOrientation(builder, orientationOffset) - return KinGeoCfgEnd(builder) -} - -func (rcv *KinGeoCfg) UnPackTo(t *KinGeoCfgT) { - t.Orientation = rcv.Orientation(nil).UnPack() -} - -func (rcv *KinGeoCfg) UnPack() *KinGeoCfgT { - if rcv == nil { return nil } - t := &KinGeoCfgT{} - rcv.UnPackTo(t) - return t -} - -type KinGeoCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsKinGeoCfg(buf []byte, offset flatbuffers.UOffsetT) *KinGeoCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinGeoCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinGeoCfg(buf []byte, offset flatbuffers.UOffsetT) *KinGeoCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinGeoCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinGeoCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinGeoCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// orientation config -func (rcv *KinGeoCfg) Orientation(obj *KinOriCfg) *KinOriCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinOriCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// orientation config -func KinGeoCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinGeoCfgAddOrientation(builder *flatbuffers.Builder, orientation flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(orientation), 0) -} -func KinGeoCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// common configuration of orientation +type KinGeoCfgT struct { + Orientation *KinOriCfgT +} + +func (t *KinGeoCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + orientationOffset := t.Orientation.Pack(builder) + KinGeoCfgStart(builder) + KinGeoCfgAddOrientation(builder, orientationOffset) + return KinGeoCfgEnd(builder) +} + +func (rcv *KinGeoCfg) UnPackTo(t *KinGeoCfgT) { + t.Orientation = rcv.Orientation(nil).UnPack() +} + +func (rcv *KinGeoCfg) UnPack() *KinGeoCfgT { + if rcv == nil { return nil } + t := &KinGeoCfgT{} + rcv.UnPackTo(t) + return t +} + +type KinGeoCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsKinGeoCfg(buf []byte, offset flatbuffers.UOffsetT) *KinGeoCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinGeoCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinGeoCfg(buf []byte, offset flatbuffers.UOffsetT) *KinGeoCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinGeoCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinGeoCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinGeoCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// orientation config +func (rcv *KinGeoCfg) Orientation(obj *KinOriCfg) *KinOriCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinOriCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// orientation config +func KinGeoCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinGeoCfgAddOrientation(builder *flatbuffers.Builder, orientation flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(orientation), 0) +} +func KinGeoCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinIpoValues.go b/pkg/fbs/motion/core/fbtypes/KinIpoValues.go index 0b92822..85b673f 100644 --- a/pkg/fbs/motion/core/fbtypes/KinIpoValues.go +++ b/pkg/fbs/motion/core/fbtypes/KinIpoValues.go @@ -1,267 +1,267 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// currently interpolated values -type KinIpoValuesT struct { - IpoPos []float64 - IpoVel float64 - IpoAcc float64 - IpoJrk float64 - IpoPosUnits []string - IpoVelUnits string - IpoAccUnits string - IpoJrkUnits string -} - -func (t *KinIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - ipoPosOffset := flatbuffers.UOffsetT(0) - if t.IpoPos != nil { - ipoPosLength := len(t.IpoPos) - KinIpoValuesStartIpoPosVector(builder, ipoPosLength) - for j := ipoPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.IpoPos[j]) - } - ipoPosOffset = builder.EndVector(ipoPosLength) - } - ipoPosUnitsOffset := flatbuffers.UOffsetT(0) - if t.IpoPosUnits != nil { - ipoPosUnitsLength := len(t.IpoPosUnits) - ipoPosUnitsOffsets := make([]flatbuffers.UOffsetT, ipoPosUnitsLength) - for j := 0; j < ipoPosUnitsLength; j++ { - ipoPosUnitsOffsets[j] = builder.CreateString(t.IpoPosUnits[j]) - } - KinIpoValuesStartIpoPosUnitsVector(builder, ipoPosUnitsLength) - for j := ipoPosUnitsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(ipoPosUnitsOffsets[j]) - } - ipoPosUnitsOffset = builder.EndVector(ipoPosUnitsLength) - } - ipoVelUnitsOffset := builder.CreateString(t.IpoVelUnits) - ipoAccUnitsOffset := builder.CreateString(t.IpoAccUnits) - ipoJrkUnitsOffset := builder.CreateString(t.IpoJrkUnits) - KinIpoValuesStart(builder) - KinIpoValuesAddIpoPos(builder, ipoPosOffset) - KinIpoValuesAddIpoVel(builder, t.IpoVel) - KinIpoValuesAddIpoAcc(builder, t.IpoAcc) - KinIpoValuesAddIpoJrk(builder, t.IpoJrk) - KinIpoValuesAddIpoPosUnits(builder, ipoPosUnitsOffset) - KinIpoValuesAddIpoVelUnits(builder, ipoVelUnitsOffset) - KinIpoValuesAddIpoAccUnits(builder, ipoAccUnitsOffset) - KinIpoValuesAddIpoJrkUnits(builder, ipoJrkUnitsOffset) - return KinIpoValuesEnd(builder) -} - -func (rcv *KinIpoValues) UnPackTo(t *KinIpoValuesT) { - ipoPosLength := rcv.IpoPosLength() - t.IpoPos = make([]float64, ipoPosLength) - for j := 0; j < ipoPosLength; j++ { - t.IpoPos[j] = rcv.IpoPos(j) - } - t.IpoVel = rcv.IpoVel() - t.IpoAcc = rcv.IpoAcc() - t.IpoJrk = rcv.IpoJrk() - ipoPosUnitsLength := rcv.IpoPosUnitsLength() - t.IpoPosUnits = make([]string, ipoPosUnitsLength) - for j := 0; j < ipoPosUnitsLength; j++ { - t.IpoPosUnits[j] = string(rcv.IpoPosUnits(j)) - } - t.IpoVelUnits = string(rcv.IpoVelUnits()) - t.IpoAccUnits = string(rcv.IpoAccUnits()) - t.IpoJrkUnits = string(rcv.IpoJrkUnits()) -} - -func (rcv *KinIpoValues) UnPack() *KinIpoValuesT { - if rcv == nil { return nil } - t := &KinIpoValuesT{} - rcv.UnPackTo(t) - return t -} - -type KinIpoValues struct { - _tab flatbuffers.Table -} - -func GetRootAsKinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *KinIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinIpoValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *KinIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinIpoValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinIpoValues) Table() flatbuffers.Table { - return rcv._tab -} - -/// currently interpolated position -func (rcv *KinIpoValues) IpoPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinIpoValues) IpoPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// currently interpolated position -func (rcv *KinIpoValues) MutateIpoPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// currently interpolated velocity -func (rcv *KinIpoValues) IpoVel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// currently interpolated velocity -func (rcv *KinIpoValues) MutateIpoVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// currently interpolated acceleration -func (rcv *KinIpoValues) IpoAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// currently interpolated acceleration -func (rcv *KinIpoValues) MutateIpoAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// currently interpolated jerk -func (rcv *KinIpoValues) IpoJrk() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// currently interpolated jerk -func (rcv *KinIpoValues) MutateIpoJrk(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// units of the currently interpolated position -func (rcv *KinIpoValues) IpoPosUnits(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *KinIpoValues) IpoPosUnitsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// units of the currently interpolated position -/// unit of the currently interpolated velocity -func (rcv *KinIpoValues) IpoVelUnits() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the currently interpolated velocity -/// unit of the currently interpolated acceleration -func (rcv *KinIpoValues) IpoAccUnits() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the currently interpolated acceleration -/// unit of the currently interpolated jerk -func (rcv *KinIpoValues) IpoJrkUnits() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the currently interpolated jerk -func KinIpoValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func KinIpoValuesAddIpoPos(builder *flatbuffers.Builder, ipoPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(ipoPos), 0) -} -func KinIpoValuesStartIpoPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinIpoValuesAddIpoVel(builder *flatbuffers.Builder, ipoVel float64) { - builder.PrependFloat64Slot(1, ipoVel, 0.0) -} -func KinIpoValuesAddIpoAcc(builder *flatbuffers.Builder, ipoAcc float64) { - builder.PrependFloat64Slot(2, ipoAcc, 0.0) -} -func KinIpoValuesAddIpoJrk(builder *flatbuffers.Builder, ipoJrk float64) { - builder.PrependFloat64Slot(3, ipoJrk, 0.0) -} -func KinIpoValuesAddIpoPosUnits(builder *flatbuffers.Builder, ipoPosUnits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(ipoPosUnits), 0) -} -func KinIpoValuesStartIpoPosUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinIpoValuesAddIpoVelUnits(builder *flatbuffers.Builder, ipoVelUnits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(ipoVelUnits), 0) -} -func KinIpoValuesAddIpoAccUnits(builder *flatbuffers.Builder, ipoAccUnits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(ipoAccUnits), 0) -} -func KinIpoValuesAddIpoJrkUnits(builder *flatbuffers.Builder, ipoJrkUnits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(ipoJrkUnits), 0) -} -func KinIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// currently interpolated values +type KinIpoValuesT struct { + IpoPos []float64 + IpoVel float64 + IpoAcc float64 + IpoJrk float64 + IpoPosUnits []string + IpoVelUnits string + IpoAccUnits string + IpoJrkUnits string +} + +func (t *KinIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + ipoPosOffset := flatbuffers.UOffsetT(0) + if t.IpoPos != nil { + ipoPosLength := len(t.IpoPos) + KinIpoValuesStartIpoPosVector(builder, ipoPosLength) + for j := ipoPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.IpoPos[j]) + } + ipoPosOffset = builder.EndVector(ipoPosLength) + } + ipoPosUnitsOffset := flatbuffers.UOffsetT(0) + if t.IpoPosUnits != nil { + ipoPosUnitsLength := len(t.IpoPosUnits) + ipoPosUnitsOffsets := make([]flatbuffers.UOffsetT, ipoPosUnitsLength) + for j := 0; j < ipoPosUnitsLength; j++ { + ipoPosUnitsOffsets[j] = builder.CreateString(t.IpoPosUnits[j]) + } + KinIpoValuesStartIpoPosUnitsVector(builder, ipoPosUnitsLength) + for j := ipoPosUnitsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(ipoPosUnitsOffsets[j]) + } + ipoPosUnitsOffset = builder.EndVector(ipoPosUnitsLength) + } + ipoVelUnitsOffset := builder.CreateString(t.IpoVelUnits) + ipoAccUnitsOffset := builder.CreateString(t.IpoAccUnits) + ipoJrkUnitsOffset := builder.CreateString(t.IpoJrkUnits) + KinIpoValuesStart(builder) + KinIpoValuesAddIpoPos(builder, ipoPosOffset) + KinIpoValuesAddIpoVel(builder, t.IpoVel) + KinIpoValuesAddIpoAcc(builder, t.IpoAcc) + KinIpoValuesAddIpoJrk(builder, t.IpoJrk) + KinIpoValuesAddIpoPosUnits(builder, ipoPosUnitsOffset) + KinIpoValuesAddIpoVelUnits(builder, ipoVelUnitsOffset) + KinIpoValuesAddIpoAccUnits(builder, ipoAccUnitsOffset) + KinIpoValuesAddIpoJrkUnits(builder, ipoJrkUnitsOffset) + return KinIpoValuesEnd(builder) +} + +func (rcv *KinIpoValues) UnPackTo(t *KinIpoValuesT) { + ipoPosLength := rcv.IpoPosLength() + t.IpoPos = make([]float64, ipoPosLength) + for j := 0; j < ipoPosLength; j++ { + t.IpoPos[j] = rcv.IpoPos(j) + } + t.IpoVel = rcv.IpoVel() + t.IpoAcc = rcv.IpoAcc() + t.IpoJrk = rcv.IpoJrk() + ipoPosUnitsLength := rcv.IpoPosUnitsLength() + t.IpoPosUnits = make([]string, ipoPosUnitsLength) + for j := 0; j < ipoPosUnitsLength; j++ { + t.IpoPosUnits[j] = string(rcv.IpoPosUnits(j)) + } + t.IpoVelUnits = string(rcv.IpoVelUnits()) + t.IpoAccUnits = string(rcv.IpoAccUnits()) + t.IpoJrkUnits = string(rcv.IpoJrkUnits()) +} + +func (rcv *KinIpoValues) UnPack() *KinIpoValuesT { + if rcv == nil { return nil } + t := &KinIpoValuesT{} + rcv.UnPackTo(t) + return t +} + +type KinIpoValues struct { + _tab flatbuffers.Table +} + +func GetRootAsKinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *KinIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinIpoValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *KinIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinIpoValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinIpoValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// currently interpolated position +func (rcv *KinIpoValues) IpoPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinIpoValues) IpoPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// currently interpolated position +func (rcv *KinIpoValues) MutateIpoPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// currently interpolated velocity +func (rcv *KinIpoValues) IpoVel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently interpolated velocity +func (rcv *KinIpoValues) MutateIpoVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// currently interpolated acceleration +func (rcv *KinIpoValues) IpoAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently interpolated acceleration +func (rcv *KinIpoValues) MutateIpoAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// currently interpolated jerk +func (rcv *KinIpoValues) IpoJrk() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently interpolated jerk +func (rcv *KinIpoValues) MutateIpoJrk(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// units of the currently interpolated position +func (rcv *KinIpoValues) IpoPosUnits(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *KinIpoValues) IpoPosUnitsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// units of the currently interpolated position +/// unit of the currently interpolated velocity +func (rcv *KinIpoValues) IpoVelUnits() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the currently interpolated velocity +/// unit of the currently interpolated acceleration +func (rcv *KinIpoValues) IpoAccUnits() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the currently interpolated acceleration +/// unit of the currently interpolated jerk +func (rcv *KinIpoValues) IpoJrkUnits() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the currently interpolated jerk +func KinIpoValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func KinIpoValuesAddIpoPos(builder *flatbuffers.Builder, ipoPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(ipoPos), 0) +} +func KinIpoValuesStartIpoPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinIpoValuesAddIpoVel(builder *flatbuffers.Builder, ipoVel float64) { + builder.PrependFloat64Slot(1, ipoVel, 0.0) +} +func KinIpoValuesAddIpoAcc(builder *flatbuffers.Builder, ipoAcc float64) { + builder.PrependFloat64Slot(2, ipoAcc, 0.0) +} +func KinIpoValuesAddIpoJrk(builder *flatbuffers.Builder, ipoJrk float64) { + builder.PrependFloat64Slot(3, ipoJrk, 0.0) +} +func KinIpoValuesAddIpoPosUnits(builder *flatbuffers.Builder, ipoPosUnits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(ipoPosUnits), 0) +} +func KinIpoValuesStartIpoPosUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinIpoValuesAddIpoVelUnits(builder *flatbuffers.Builder, ipoVelUnits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(ipoVelUnits), 0) +} +func KinIpoValuesAddIpoAccUnits(builder *flatbuffers.Builder, ipoAccUnits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(ipoAccUnits), 0) +} +func KinIpoValuesAddIpoJrkUnits(builder *flatbuffers.Builder, ipoJrkUnits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(ipoJrkUnits), 0) +} +func KinIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinOriCfg.go b/pkg/fbs/motion/core/fbtypes/KinOriCfg.go index 5e23ac9..d166bc3 100644 --- a/pkg/fbs/motion/core/fbtypes/KinOriCfg.go +++ b/pkg/fbs/motion/core/fbtypes/KinOriCfg.go @@ -1,127 +1,149 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// common configuration of orientation -type KinOriCfgT struct { - EffectiveRadius *KinOriRadiusT - Lim *KinCfgLimitsT - Units *UnitCfgObjT -} - -func (t *KinOriCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - effectiveRadiusOffset := t.EffectiveRadius.Pack(builder) - limOffset := t.Lim.Pack(builder) - unitsOffset := t.Units.Pack(builder) - KinOriCfgStart(builder) - KinOriCfgAddEffectiveRadius(builder, effectiveRadiusOffset) - KinOriCfgAddLim(builder, limOffset) - KinOriCfgAddUnits(builder, unitsOffset) - return KinOriCfgEnd(builder) -} - -func (rcv *KinOriCfg) UnPackTo(t *KinOriCfgT) { - t.EffectiveRadius = rcv.EffectiveRadius(nil).UnPack() - t.Lim = rcv.Lim(nil).UnPack() - t.Units = rcv.Units(nil).UnPack() -} - -func (rcv *KinOriCfg) UnPack() *KinOriCfgT { - if rcv == nil { return nil } - t := &KinOriCfgT{} - rcv.UnPackTo(t) - return t -} - -type KinOriCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsKinOriCfg(buf []byte, offset flatbuffers.UOffsetT) *KinOriCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinOriCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinOriCfg(buf []byte, offset flatbuffers.UOffsetT) *KinOriCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinOriCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinOriCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinOriCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// orientation radius -func (rcv *KinOriCfg) EffectiveRadius(obj *KinOriRadius) *KinOriRadius { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinOriRadius) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// orientation radius -/// max orientation vel -func (rcv *KinOriCfg) Lim(obj *KinCfgLimits) *KinCfgLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinCfgLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// max orientation vel -/// general orientation unit configuration of this kinematics -func (rcv *KinOriCfg) Units(obj *UnitCfgObj) *UnitCfgObj { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(UnitCfgObj) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// general orientation unit configuration of this kinematics -func KinOriCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinOriCfgAddEffectiveRadius(builder *flatbuffers.Builder, effectiveRadius flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(effectiveRadius), 0) -} -func KinOriCfgAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(lim), 0) -} -func KinOriCfgAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(units), 0) -} -func KinOriCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// common configuration of orientation +type KinOriCfgT struct { + EffectiveRadius *KinOriRadiusT + Lim *KinCfgLimitsT + Units *UnitCfgObjT + RotToLinConversion *KinCfgRotToLinConversionT +} + +func (t *KinOriCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + effectiveRadiusOffset := t.EffectiveRadius.Pack(builder) + limOffset := t.Lim.Pack(builder) + unitsOffset := t.Units.Pack(builder) + rotToLinConversionOffset := t.RotToLinConversion.Pack(builder) + KinOriCfgStart(builder) + KinOriCfgAddEffectiveRadius(builder, effectiveRadiusOffset) + KinOriCfgAddLim(builder, limOffset) + KinOriCfgAddUnits(builder, unitsOffset) + KinOriCfgAddRotToLinConversion(builder, rotToLinConversionOffset) + return KinOriCfgEnd(builder) +} + +func (rcv *KinOriCfg) UnPackTo(t *KinOriCfgT) { + t.EffectiveRadius = rcv.EffectiveRadius(nil).UnPack() + t.Lim = rcv.Lim(nil).UnPack() + t.Units = rcv.Units(nil).UnPack() + t.RotToLinConversion = rcv.RotToLinConversion(nil).UnPack() +} + +func (rcv *KinOriCfg) UnPack() *KinOriCfgT { + if rcv == nil { return nil } + t := &KinOriCfgT{} + rcv.UnPackTo(t) + return t +} + +type KinOriCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsKinOriCfg(buf []byte, offset flatbuffers.UOffsetT) *KinOriCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinOriCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinOriCfg(buf []byte, offset flatbuffers.UOffsetT) *KinOriCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinOriCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinOriCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinOriCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// DEPRECATED; Do not use! Values in this structure are ignored. +func (rcv *KinOriCfg) EffectiveRadius(obj *KinOriRadius) *KinOriRadius { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinOriRadius) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// DEPRECATED; Do not use! Values in this structure are ignored. +/// max orientation vel +func (rcv *KinOriCfg) Lim(obj *KinCfgLimits) *KinCfgLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// max orientation vel +/// general orientation unit configuration of this kinematics +func (rcv *KinOriCfg) Units(obj *UnitCfgObj) *UnitCfgObj { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(UnitCfgObj) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// general orientation unit configuration of this kinematics +/// Rotation to Linear conversion factor +func (rcv *KinOriCfg) RotToLinConversion(obj *KinCfgRotToLinConversion) *KinCfgRotToLinConversion { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinCfgRotToLinConversion) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Rotation to Linear conversion factor +func KinOriCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinOriCfgAddEffectiveRadius(builder *flatbuffers.Builder, effectiveRadius flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(effectiveRadius), 0) +} +func KinOriCfgAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(lim), 0) +} +func KinOriCfgAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(units), 0) +} +func KinOriCfgAddRotToLinConversion(builder *flatbuffers.Builder, rotToLinConversion flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(rotToLinConversion), 0) +} +func KinOriCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinOriRadius.go b/pkg/fbs/motion/core/fbtypes/KinOriRadius.go index 943980f..7bd6472 100644 --- a/pkg/fbs/motion/core/fbtypes/KinOriRadius.go +++ b/pkg/fbs/motion/core/fbtypes/KinOriRadius.go @@ -1,115 +1,116 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// common configuration of orientation. Effective radius as factor for the relation between position to orientation. -type KinOriRadiusT struct { - Radius float64 - UnitLin string - UnitRot string -} - -func (t *KinOriRadiusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - unitLinOffset := builder.CreateString(t.UnitLin) - unitRotOffset := builder.CreateString(t.UnitRot) - KinOriRadiusStart(builder) - KinOriRadiusAddRadius(builder, t.Radius) - KinOriRadiusAddUnitLin(builder, unitLinOffset) - KinOriRadiusAddUnitRot(builder, unitRotOffset) - return KinOriRadiusEnd(builder) -} - -func (rcv *KinOriRadius) UnPackTo(t *KinOriRadiusT) { - t.Radius = rcv.Radius() - t.UnitLin = string(rcv.UnitLin()) - t.UnitRot = string(rcv.UnitRot()) -} - -func (rcv *KinOriRadius) UnPack() *KinOriRadiusT { - if rcv == nil { return nil } - t := &KinOriRadiusT{} - rcv.UnPackTo(t) - return t -} - -type KinOriRadius struct { - _tab flatbuffers.Table -} - -func GetRootAsKinOriRadius(buf []byte, offset flatbuffers.UOffsetT) *KinOriRadius { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinOriRadius{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinOriRadius(buf []byte, offset flatbuffers.UOffsetT) *KinOriRadius { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinOriRadius{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinOriRadius) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinOriRadius) Table() flatbuffers.Table { - return rcv._tab -} - -/// radius = (linear value)/(rotational value) -func (rcv *KinOriRadius) Radius() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// radius = (linear value)/(rotational value) -func (rcv *KinOriRadius) MutateRadius(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// unit for linear -func (rcv *KinOriRadius) UnitLin() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit for linear -/// unit for rotation -func (rcv *KinOriRadius) UnitRot() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit for rotation -func KinOriRadiusStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinOriRadiusAddRadius(builder *flatbuffers.Builder, radius float64) { - builder.PrependFloat64Slot(0, radius, 0.0) -} -func KinOriRadiusAddUnitLin(builder *flatbuffers.Builder, unitLin flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(unitLin), 0) -} -func KinOriRadiusAddUnitRot(builder *flatbuffers.Builder, unitRot flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unitRot), 0) -} -func KinOriRadiusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// DEPRECATED; Do not use! Values in this structure are ignored. +/// common configuration of orientation. Effective radius as factor for the relation between position to orientation. +type KinOriRadiusT struct { + Radius float64 + UnitLin string + UnitRot string +} + +func (t *KinOriRadiusT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + unitLinOffset := builder.CreateString(t.UnitLin) + unitRotOffset := builder.CreateString(t.UnitRot) + KinOriRadiusStart(builder) + KinOriRadiusAddRadius(builder, t.Radius) + KinOriRadiusAddUnitLin(builder, unitLinOffset) + KinOriRadiusAddUnitRot(builder, unitRotOffset) + return KinOriRadiusEnd(builder) +} + +func (rcv *KinOriRadius) UnPackTo(t *KinOriRadiusT) { + t.Radius = rcv.Radius() + t.UnitLin = string(rcv.UnitLin()) + t.UnitRot = string(rcv.UnitRot()) +} + +func (rcv *KinOriRadius) UnPack() *KinOriRadiusT { + if rcv == nil { return nil } + t := &KinOriRadiusT{} + rcv.UnPackTo(t) + return t +} + +type KinOriRadius struct { + _tab flatbuffers.Table +} + +func GetRootAsKinOriRadius(buf []byte, offset flatbuffers.UOffsetT) *KinOriRadius { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinOriRadius{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinOriRadius(buf []byte, offset flatbuffers.UOffsetT) *KinOriRadius { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinOriRadius{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinOriRadius) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinOriRadius) Table() flatbuffers.Table { + return rcv._tab +} + +/// radius = (linear value)/(rotational value) +func (rcv *KinOriRadius) Radius() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// radius = (linear value)/(rotational value) +func (rcv *KinOriRadius) MutateRadius(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// unit for linear +func (rcv *KinOriRadius) UnitLin() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit for linear +/// unit for rotation +func (rcv *KinOriRadius) UnitRot() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit for rotation +func KinOriRadiusStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func KinOriRadiusAddRadius(builder *flatbuffers.Builder, radius float64) { + builder.PrependFloat64Slot(0, radius, 0.0) +} +func KinOriRadiusAddUnitLin(builder *flatbuffers.Builder, unitLin flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(unitLin), 0) +} +func KinOriRadiusAddUnitRot(builder *flatbuffers.Builder, unitRot flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unitRot), 0) +} +func KinOriRadiusEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinPosValues.go b/pkg/fbs/motion/core/fbtypes/KinPosValues.go index 7a7d9a8..faa9c6a 100644 --- a/pkg/fbs/motion/core/fbtypes/KinPosValues.go +++ b/pkg/fbs/motion/core/fbtypes/KinPosValues.go @@ -1,156 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// position of a kinematics -type KinPosValuesT struct { - Pos []float64 - Units []string -} - -func (t *KinPosValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - posOffset := flatbuffers.UOffsetT(0) - if t.Pos != nil { - posLength := len(t.Pos) - KinPosValuesStartPosVector(builder, posLength) - for j := posLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Pos[j]) - } - posOffset = builder.EndVector(posLength) - } - unitsOffset := flatbuffers.UOffsetT(0) - if t.Units != nil { - unitsLength := len(t.Units) - unitsOffsets := make([]flatbuffers.UOffsetT, unitsLength) - for j := 0; j < unitsLength; j++ { - unitsOffsets[j] = builder.CreateString(t.Units[j]) - } - KinPosValuesStartUnitsVector(builder, unitsLength) - for j := unitsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(unitsOffsets[j]) - } - unitsOffset = builder.EndVector(unitsLength) - } - KinPosValuesStart(builder) - KinPosValuesAddPos(builder, posOffset) - KinPosValuesAddUnits(builder, unitsOffset) - return KinPosValuesEnd(builder) -} - -func (rcv *KinPosValues) UnPackTo(t *KinPosValuesT) { - posLength := rcv.PosLength() - t.Pos = make([]float64, posLength) - for j := 0; j < posLength; j++ { - t.Pos[j] = rcv.Pos(j) - } - unitsLength := rcv.UnitsLength() - t.Units = make([]string, unitsLength) - for j := 0; j < unitsLength; j++ { - t.Units[j] = string(rcv.Units(j)) - } -} - -func (rcv *KinPosValues) UnPack() *KinPosValuesT { - if rcv == nil { return nil } - t := &KinPosValuesT{} - rcv.UnPackTo(t) - return t -} - -type KinPosValues struct { - _tab flatbuffers.Table -} - -func GetRootAsKinPosValues(buf []byte, offset flatbuffers.UOffsetT) *KinPosValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinPosValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinPosValues(buf []byte, offset flatbuffers.UOffsetT) *KinPosValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinPosValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinPosValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinPosValues) Table() flatbuffers.Table { - return rcv._tab -} - -/// array of 16 positions -func (rcv *KinPosValues) Pos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinPosValues) PosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// array of 16 positions -func (rcv *KinPosValues) MutatePos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// units of the 16 positions -func (rcv *KinPosValues) Units(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *KinPosValues) UnitsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// units of the 16 positions -func KinPosValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinPosValuesAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pos), 0) -} -func KinPosValuesStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinPosValuesAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(units), 0) -} -func KinPosValuesStartUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinPosValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// position of a kinematics +type KinPosValuesT struct { + Pos []float64 + Units []string +} + +func (t *KinPosValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + posOffset := flatbuffers.UOffsetT(0) + if t.Pos != nil { + posLength := len(t.Pos) + KinPosValuesStartPosVector(builder, posLength) + for j := posLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Pos[j]) + } + posOffset = builder.EndVector(posLength) + } + unitsOffset := flatbuffers.UOffsetT(0) + if t.Units != nil { + unitsLength := len(t.Units) + unitsOffsets := make([]flatbuffers.UOffsetT, unitsLength) + for j := 0; j < unitsLength; j++ { + unitsOffsets[j] = builder.CreateString(t.Units[j]) + } + KinPosValuesStartUnitsVector(builder, unitsLength) + for j := unitsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(unitsOffsets[j]) + } + unitsOffset = builder.EndVector(unitsLength) + } + KinPosValuesStart(builder) + KinPosValuesAddPos(builder, posOffset) + KinPosValuesAddUnits(builder, unitsOffset) + return KinPosValuesEnd(builder) +} + +func (rcv *KinPosValues) UnPackTo(t *KinPosValuesT) { + posLength := rcv.PosLength() + t.Pos = make([]float64, posLength) + for j := 0; j < posLength; j++ { + t.Pos[j] = rcv.Pos(j) + } + unitsLength := rcv.UnitsLength() + t.Units = make([]string, unitsLength) + for j := 0; j < unitsLength; j++ { + t.Units[j] = string(rcv.Units(j)) + } +} + +func (rcv *KinPosValues) UnPack() *KinPosValuesT { + if rcv == nil { return nil } + t := &KinPosValuesT{} + rcv.UnPackTo(t) + return t +} + +type KinPosValues struct { + _tab flatbuffers.Table +} + +func GetRootAsKinPosValues(buf []byte, offset flatbuffers.UOffsetT) *KinPosValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinPosValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinPosValues(buf []byte, offset flatbuffers.UOffsetT) *KinPosValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinPosValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinPosValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinPosValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// array of 16 positions +func (rcv *KinPosValues) Pos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinPosValues) PosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// array of 16 positions +func (rcv *KinPosValues) MutatePos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// units of the 16 positions +func (rcv *KinPosValues) Units(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *KinPosValues) UnitsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// units of the 16 positions +func KinPosValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinPosValuesAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pos), 0) +} +func KinPosValuesStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinPosValuesAddUnits(builder *flatbuffers.Builder, units flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(units), 0) +} +func KinPosValuesStartUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinPosValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoData.go b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoData.go index ddf5273..b7308df 100644 --- a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoData.go +++ b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoData.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of all registered joint transformations when reading all data of implemented joint transformations -type KinStateJntTrafoDataT struct { - JntTrafoData []*KinStateJntTrafoDataSingleT -} - -func (t *KinStateJntTrafoDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - jntTrafoDataOffset := flatbuffers.UOffsetT(0) - if t.JntTrafoData != nil { - jntTrafoDataLength := len(t.JntTrafoData) - jntTrafoDataOffsets := make([]flatbuffers.UOffsetT, jntTrafoDataLength) - for j := 0; j < jntTrafoDataLength; j++ { - jntTrafoDataOffsets[j] = t.JntTrafoData[j].Pack(builder) - } - KinStateJntTrafoDataStartJntTrafoDataVector(builder, jntTrafoDataLength) - for j := jntTrafoDataLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(jntTrafoDataOffsets[j]) - } - jntTrafoDataOffset = builder.EndVector(jntTrafoDataLength) - } - KinStateJntTrafoDataStart(builder) - KinStateJntTrafoDataAddJntTrafoData(builder, jntTrafoDataOffset) - return KinStateJntTrafoDataEnd(builder) -} - -func (rcv *KinStateJntTrafoData) UnPackTo(t *KinStateJntTrafoDataT) { - jntTrafoDataLength := rcv.JntTrafoDataLength() - t.JntTrafoData = make([]*KinStateJntTrafoDataSingleT, jntTrafoDataLength) - for j := 0; j < jntTrafoDataLength; j++ { - x := KinStateJntTrafoDataSingle{} - rcv.JntTrafoData(&x, j) - t.JntTrafoData[j] = x.UnPack() - } -} - -func (rcv *KinStateJntTrafoData) UnPack() *KinStateJntTrafoDataT { - if rcv == nil { return nil } - t := &KinStateJntTrafoDataT{} - rcv.UnPackTo(t) - return t -} - -type KinStateJntTrafoData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinStateJntTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinStateJntTrafoData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinStateJntTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinStateJntTrafoData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinStateJntTrafoData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinStateJntTrafoData) Table() flatbuffers.Table { - return rcv._tab -} - -/// data of all registered joint transformations -func (rcv *KinStateJntTrafoData) JntTrafoData(obj *KinStateJntTrafoDataSingle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinStateJntTrafoData) JntTrafoDataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// data of all registered joint transformations -func KinStateJntTrafoDataStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func KinStateJntTrafoDataAddJntTrafoData(builder *flatbuffers.Builder, jntTrafoData flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(jntTrafoData), 0) -} -func KinStateJntTrafoDataStartJntTrafoDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinStateJntTrafoDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of all registered joint transformations when reading all data of implemented joint transformations +type KinStateJntTrafoDataT struct { + JntTrafoData []*KinStateJntTrafoDataSingleT +} + +func (t *KinStateJntTrafoDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + jntTrafoDataOffset := flatbuffers.UOffsetT(0) + if t.JntTrafoData != nil { + jntTrafoDataLength := len(t.JntTrafoData) + jntTrafoDataOffsets := make([]flatbuffers.UOffsetT, jntTrafoDataLength) + for j := 0; j < jntTrafoDataLength; j++ { + jntTrafoDataOffsets[j] = t.JntTrafoData[j].Pack(builder) + } + KinStateJntTrafoDataStartJntTrafoDataVector(builder, jntTrafoDataLength) + for j := jntTrafoDataLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(jntTrafoDataOffsets[j]) + } + jntTrafoDataOffset = builder.EndVector(jntTrafoDataLength) + } + KinStateJntTrafoDataStart(builder) + KinStateJntTrafoDataAddJntTrafoData(builder, jntTrafoDataOffset) + return KinStateJntTrafoDataEnd(builder) +} + +func (rcv *KinStateJntTrafoData) UnPackTo(t *KinStateJntTrafoDataT) { + jntTrafoDataLength := rcv.JntTrafoDataLength() + t.JntTrafoData = make([]*KinStateJntTrafoDataSingleT, jntTrafoDataLength) + for j := 0; j < jntTrafoDataLength; j++ { + x := KinStateJntTrafoDataSingle{} + rcv.JntTrafoData(&x, j) + t.JntTrafoData[j] = x.UnPack() + } +} + +func (rcv *KinStateJntTrafoData) UnPack() *KinStateJntTrafoDataT { + if rcv == nil { return nil } + t := &KinStateJntTrafoDataT{} + rcv.UnPackTo(t) + return t +} + +type KinStateJntTrafoData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinStateJntTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinStateJntTrafoData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinStateJntTrafoData(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinStateJntTrafoData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinStateJntTrafoData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinStateJntTrafoData) Table() flatbuffers.Table { + return rcv._tab +} + +/// data of all registered joint transformations +func (rcv *KinStateJntTrafoData) JntTrafoData(obj *KinStateJntTrafoDataSingle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinStateJntTrafoData) JntTrafoDataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// data of all registered joint transformations +func KinStateJntTrafoDataStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func KinStateJntTrafoDataAddJntTrafoData(builder *flatbuffers.Builder, jntTrafoData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(jntTrafoData), 0) +} +func KinStateJntTrafoDataStartJntTrafoDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinStateJntTrafoDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataAllParam.go b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataAllParam.go index 796f667..053c05c 100644 --- a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataAllParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataAllParam.go @@ -1,161 +1,161 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single configuration parameter of an joint transformation when reading all data of an implemented joint transformation -type KinStateJntTrafoDataAllParamT struct { - ReqAxes []*KinStateJntTrafoDataReqAxisT - Parameter []*KinStateJntTrafoDataParamT -} - -func (t *KinStateJntTrafoDataAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - reqAxesOffset := flatbuffers.UOffsetT(0) - if t.ReqAxes != nil { - reqAxesLength := len(t.ReqAxes) - reqAxesOffsets := make([]flatbuffers.UOffsetT, reqAxesLength) - for j := 0; j < reqAxesLength; j++ { - reqAxesOffsets[j] = t.ReqAxes[j].Pack(builder) - } - KinStateJntTrafoDataAllParamStartReqAxesVector(builder, reqAxesLength) - for j := reqAxesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(reqAxesOffsets[j]) - } - reqAxesOffset = builder.EndVector(reqAxesLength) - } - parameterOffset := flatbuffers.UOffsetT(0) - if t.Parameter != nil { - parameterLength := len(t.Parameter) - parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) - for j := 0; j < parameterLength; j++ { - parameterOffsets[j] = t.Parameter[j].Pack(builder) - } - KinStateJntTrafoDataAllParamStartParameterVector(builder, parameterLength) - for j := parameterLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(parameterOffsets[j]) - } - parameterOffset = builder.EndVector(parameterLength) - } - KinStateJntTrafoDataAllParamStart(builder) - KinStateJntTrafoDataAllParamAddReqAxes(builder, reqAxesOffset) - KinStateJntTrafoDataAllParamAddParameter(builder, parameterOffset) - return KinStateJntTrafoDataAllParamEnd(builder) -} - -func (rcv *KinStateJntTrafoDataAllParam) UnPackTo(t *KinStateJntTrafoDataAllParamT) { - reqAxesLength := rcv.ReqAxesLength() - t.ReqAxes = make([]*KinStateJntTrafoDataReqAxisT, reqAxesLength) - for j := 0; j < reqAxesLength; j++ { - x := KinStateJntTrafoDataReqAxis{} - rcv.ReqAxes(&x, j) - t.ReqAxes[j] = x.UnPack() - } - parameterLength := rcv.ParameterLength() - t.Parameter = make([]*KinStateJntTrafoDataParamT, parameterLength) - for j := 0; j < parameterLength; j++ { - x := KinStateJntTrafoDataParam{} - rcv.Parameter(&x, j) - t.Parameter[j] = x.UnPack() - } -} - -func (rcv *KinStateJntTrafoDataAllParam) UnPack() *KinStateJntTrafoDataAllParamT { - if rcv == nil { return nil } - t := &KinStateJntTrafoDataAllParamT{} - rcv.UnPackTo(t) - return t -} - -type KinStateJntTrafoDataAllParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinStateJntTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataAllParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinStateJntTrafoDataAllParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinStateJntTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataAllParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinStateJntTrafoDataAllParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinStateJntTrafoDataAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinStateJntTrafoDataAllParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// Information of all required axes of this joint transformation -func (rcv *KinStateJntTrafoDataAllParam) ReqAxes(obj *KinStateJntTrafoDataReqAxis, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinStateJntTrafoDataAllParam) ReqAxesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Information of all required axes of this joint transformation -/// Vector of all configuration parameters of the joint transformation -func (rcv *KinStateJntTrafoDataAllParam) Parameter(obj *KinStateJntTrafoDataParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *KinStateJntTrafoDataAllParam) ParameterLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Vector of all configuration parameters of the joint transformation -func KinStateJntTrafoDataAllParamStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func KinStateJntTrafoDataAllParamAddReqAxes(builder *flatbuffers.Builder, reqAxes flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(reqAxes), 0) -} -func KinStateJntTrafoDataAllParamStartReqAxesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinStateJntTrafoDataAllParamAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(parameter), 0) -} -func KinStateJntTrafoDataAllParamStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinStateJntTrafoDataAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single configuration parameter of an joint transformation when reading all data of an implemented joint transformation +type KinStateJntTrafoDataAllParamT struct { + ReqAxes []*KinStateJntTrafoDataReqAxisT + Parameter []*KinStateJntTrafoDataParamT +} + +func (t *KinStateJntTrafoDataAllParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + reqAxesOffset := flatbuffers.UOffsetT(0) + if t.ReqAxes != nil { + reqAxesLength := len(t.ReqAxes) + reqAxesOffsets := make([]flatbuffers.UOffsetT, reqAxesLength) + for j := 0; j < reqAxesLength; j++ { + reqAxesOffsets[j] = t.ReqAxes[j].Pack(builder) + } + KinStateJntTrafoDataAllParamStartReqAxesVector(builder, reqAxesLength) + for j := reqAxesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(reqAxesOffsets[j]) + } + reqAxesOffset = builder.EndVector(reqAxesLength) + } + parameterOffset := flatbuffers.UOffsetT(0) + if t.Parameter != nil { + parameterLength := len(t.Parameter) + parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) + for j := 0; j < parameterLength; j++ { + parameterOffsets[j] = t.Parameter[j].Pack(builder) + } + KinStateJntTrafoDataAllParamStartParameterVector(builder, parameterLength) + for j := parameterLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(parameterOffsets[j]) + } + parameterOffset = builder.EndVector(parameterLength) + } + KinStateJntTrafoDataAllParamStart(builder) + KinStateJntTrafoDataAllParamAddReqAxes(builder, reqAxesOffset) + KinStateJntTrafoDataAllParamAddParameter(builder, parameterOffset) + return KinStateJntTrafoDataAllParamEnd(builder) +} + +func (rcv *KinStateJntTrafoDataAllParam) UnPackTo(t *KinStateJntTrafoDataAllParamT) { + reqAxesLength := rcv.ReqAxesLength() + t.ReqAxes = make([]*KinStateJntTrafoDataReqAxisT, reqAxesLength) + for j := 0; j < reqAxesLength; j++ { + x := KinStateJntTrafoDataReqAxis{} + rcv.ReqAxes(&x, j) + t.ReqAxes[j] = x.UnPack() + } + parameterLength := rcv.ParameterLength() + t.Parameter = make([]*KinStateJntTrafoDataParamT, parameterLength) + for j := 0; j < parameterLength; j++ { + x := KinStateJntTrafoDataParam{} + rcv.Parameter(&x, j) + t.Parameter[j] = x.UnPack() + } +} + +func (rcv *KinStateJntTrafoDataAllParam) UnPack() *KinStateJntTrafoDataAllParamT { + if rcv == nil { return nil } + t := &KinStateJntTrafoDataAllParamT{} + rcv.UnPackTo(t) + return t +} + +type KinStateJntTrafoDataAllParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinStateJntTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataAllParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinStateJntTrafoDataAllParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinStateJntTrafoDataAllParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataAllParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinStateJntTrafoDataAllParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinStateJntTrafoDataAllParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinStateJntTrafoDataAllParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// Information of all required axes of this joint transformation +func (rcv *KinStateJntTrafoDataAllParam) ReqAxes(obj *KinStateJntTrafoDataReqAxis, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinStateJntTrafoDataAllParam) ReqAxesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Information of all required axes of this joint transformation +/// Vector of all configuration parameters of the joint transformation +func (rcv *KinStateJntTrafoDataAllParam) Parameter(obj *KinStateJntTrafoDataParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *KinStateJntTrafoDataAllParam) ParameterLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Vector of all configuration parameters of the joint transformation +func KinStateJntTrafoDataAllParamStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func KinStateJntTrafoDataAllParamAddReqAxes(builder *flatbuffers.Builder, reqAxes flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(reqAxes), 0) +} +func KinStateJntTrafoDataAllParamStartReqAxesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinStateJntTrafoDataAllParamAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(parameter), 0) +} +func KinStateJntTrafoDataAllParamStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinStateJntTrafoDataAllParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataParam.go b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataParam.go index 04054df..ea597e6 100644 --- a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataParam.go +++ b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataParam.go @@ -1,245 +1,245 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single configuration parameter of a joint transformation when reading all data of an implemented joint transformation -type KinStateJntTrafoDataParamT struct { - Name string - Description string - Image string - DocRef string - Group string - UnitValueType string - UnitObjType string - Values []string - Type VarType -} - -func (t *KinStateJntTrafoDataParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - descriptionOffset := builder.CreateString(t.Description) - imageOffset := builder.CreateString(t.Image) - docRefOffset := builder.CreateString(t.DocRef) - groupOffset := builder.CreateString(t.Group) - unitValueTypeOffset := builder.CreateString(t.UnitValueType) - unitObjTypeOffset := builder.CreateString(t.UnitObjType) - valuesOffset := flatbuffers.UOffsetT(0) - if t.Values != nil { - valuesLength := len(t.Values) - valuesOffsets := make([]flatbuffers.UOffsetT, valuesLength) - for j := 0; j < valuesLength; j++ { - valuesOffsets[j] = builder.CreateString(t.Values[j]) - } - KinStateJntTrafoDataParamStartValuesVector(builder, valuesLength) - for j := valuesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(valuesOffsets[j]) - } - valuesOffset = builder.EndVector(valuesLength) - } - KinStateJntTrafoDataParamStart(builder) - KinStateJntTrafoDataParamAddName(builder, nameOffset) - KinStateJntTrafoDataParamAddDescription(builder, descriptionOffset) - KinStateJntTrafoDataParamAddImage(builder, imageOffset) - KinStateJntTrafoDataParamAddDocRef(builder, docRefOffset) - KinStateJntTrafoDataParamAddGroup(builder, groupOffset) - KinStateJntTrafoDataParamAddUnitValueType(builder, unitValueTypeOffset) - KinStateJntTrafoDataParamAddUnitObjType(builder, unitObjTypeOffset) - KinStateJntTrafoDataParamAddValues(builder, valuesOffset) - KinStateJntTrafoDataParamAddType(builder, t.Type) - return KinStateJntTrafoDataParamEnd(builder) -} - -func (rcv *KinStateJntTrafoDataParam) UnPackTo(t *KinStateJntTrafoDataParamT) { - t.Name = string(rcv.Name()) - t.Description = string(rcv.Description()) - t.Image = string(rcv.Image()) - t.DocRef = string(rcv.DocRef()) - t.Group = string(rcv.Group()) - t.UnitValueType = string(rcv.UnitValueType()) - t.UnitObjType = string(rcv.UnitObjType()) - valuesLength := rcv.ValuesLength() - t.Values = make([]string, valuesLength) - for j := 0; j < valuesLength; j++ { - t.Values[j] = string(rcv.Values(j)) - } - t.Type = rcv.Type() -} - -func (rcv *KinStateJntTrafoDataParam) UnPack() *KinStateJntTrafoDataParamT { - if rcv == nil { return nil } - t := &KinStateJntTrafoDataParamT{} - rcv.UnPackTo(t) - return t -} - -type KinStateJntTrafoDataParam struct { - _tab flatbuffers.Table -} - -func GetRootAsKinStateJntTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinStateJntTrafoDataParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinStateJntTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinStateJntTrafoDataParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinStateJntTrafoDataParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinStateJntTrafoDataParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// Name of the parameter -func (rcv *KinStateJntTrafoDataParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Name of the parameter -/// Description of the parameter -func (rcv *KinStateJntTrafoDataParam) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Description of the parameter -/// Image (link) of the parameter -func (rcv *KinStateJntTrafoDataParam) Image() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Image (link) of the parameter -/// Reference to the documentation of the parameter -func (rcv *KinStateJntTrafoDataParam) DocRef() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Reference to the documentation of the parameter -/// Group of the parameter (might be empty, when this parameter is not part of a group) -func (rcv *KinStateJntTrafoDataParam) Group() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Group of the parameter (might be empty, when this parameter is not part of a group) -/// Expected unit value type of the parameter (can be empty for unitless parameters) -func (rcv *KinStateJntTrafoDataParam) UnitValueType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Expected unit value type of the parameter (can be empty for unitless parameters) -/// Expected unit object type of the parameter (can be empty for unitless parameters; "linear" or "rotational" else) -func (rcv *KinStateJntTrafoDataParam) UnitObjType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Expected unit object type of the parameter (can be empty for unitless parameters; "linear" or "rotational" else) -/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) -func (rcv *KinStateJntTrafoDataParam) Values(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *KinStateJntTrafoDataParam) ValuesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) -/// Type of the variable -func (rcv *KinStateJntTrafoDataParam) Type() VarType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return VarType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -/// Type of the variable -func (rcv *KinStateJntTrafoDataParam) MutateType(n VarType) bool { - return rcv._tab.MutateInt8Slot(20, int8(n)) -} - -func KinStateJntTrafoDataParamStart(builder *flatbuffers.Builder) { - builder.StartObject(9) -} -func KinStateJntTrafoDataParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinStateJntTrafoDataParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) -} -func KinStateJntTrafoDataParamAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(image), 0) -} -func KinStateJntTrafoDataParamAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(docRef), 0) -} -func KinStateJntTrafoDataParamAddGroup(builder *flatbuffers.Builder, group flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(group), 0) -} -func KinStateJntTrafoDataParamAddUnitValueType(builder *flatbuffers.Builder, unitValueType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(unitValueType), 0) -} -func KinStateJntTrafoDataParamAddUnitObjType(builder *flatbuffers.Builder, unitObjType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(unitObjType), 0) -} -func KinStateJntTrafoDataParamAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(values), 0) -} -func KinStateJntTrafoDataParamStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func KinStateJntTrafoDataParamAddType(builder *flatbuffers.Builder, type_ VarType) { - builder.PrependInt8Slot(8, int8(type_), 1) -} -func KinStateJntTrafoDataParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single configuration parameter of a joint transformation when reading all data of an implemented joint transformation +type KinStateJntTrafoDataParamT struct { + Name string + Description string + Image string + DocRef string + Group string + UnitValueType string + UnitObjType string + Values []string + Type VarType +} + +func (t *KinStateJntTrafoDataParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + imageOffset := builder.CreateString(t.Image) + docRefOffset := builder.CreateString(t.DocRef) + groupOffset := builder.CreateString(t.Group) + unitValueTypeOffset := builder.CreateString(t.UnitValueType) + unitObjTypeOffset := builder.CreateString(t.UnitObjType) + valuesOffset := flatbuffers.UOffsetT(0) + if t.Values != nil { + valuesLength := len(t.Values) + valuesOffsets := make([]flatbuffers.UOffsetT, valuesLength) + for j := 0; j < valuesLength; j++ { + valuesOffsets[j] = builder.CreateString(t.Values[j]) + } + KinStateJntTrafoDataParamStartValuesVector(builder, valuesLength) + for j := valuesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(valuesOffsets[j]) + } + valuesOffset = builder.EndVector(valuesLength) + } + KinStateJntTrafoDataParamStart(builder) + KinStateJntTrafoDataParamAddName(builder, nameOffset) + KinStateJntTrafoDataParamAddDescription(builder, descriptionOffset) + KinStateJntTrafoDataParamAddImage(builder, imageOffset) + KinStateJntTrafoDataParamAddDocRef(builder, docRefOffset) + KinStateJntTrafoDataParamAddGroup(builder, groupOffset) + KinStateJntTrafoDataParamAddUnitValueType(builder, unitValueTypeOffset) + KinStateJntTrafoDataParamAddUnitObjType(builder, unitObjTypeOffset) + KinStateJntTrafoDataParamAddValues(builder, valuesOffset) + KinStateJntTrafoDataParamAddType(builder, t.Type) + return KinStateJntTrafoDataParamEnd(builder) +} + +func (rcv *KinStateJntTrafoDataParam) UnPackTo(t *KinStateJntTrafoDataParamT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + t.Image = string(rcv.Image()) + t.DocRef = string(rcv.DocRef()) + t.Group = string(rcv.Group()) + t.UnitValueType = string(rcv.UnitValueType()) + t.UnitObjType = string(rcv.UnitObjType()) + valuesLength := rcv.ValuesLength() + t.Values = make([]string, valuesLength) + for j := 0; j < valuesLength; j++ { + t.Values[j] = string(rcv.Values(j)) + } + t.Type = rcv.Type() +} + +func (rcv *KinStateJntTrafoDataParam) UnPack() *KinStateJntTrafoDataParamT { + if rcv == nil { return nil } + t := &KinStateJntTrafoDataParamT{} + rcv.UnPackTo(t) + return t +} + +type KinStateJntTrafoDataParam struct { + _tab flatbuffers.Table +} + +func GetRootAsKinStateJntTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinStateJntTrafoDataParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinStateJntTrafoDataParam(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinStateJntTrafoDataParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinStateJntTrafoDataParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinStateJntTrafoDataParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of the parameter +func (rcv *KinStateJntTrafoDataParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the parameter +/// Description of the parameter +func (rcv *KinStateJntTrafoDataParam) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Description of the parameter +/// Image (link) of the parameter +func (rcv *KinStateJntTrafoDataParam) Image() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Image (link) of the parameter +/// Reference to the documentation of the parameter +func (rcv *KinStateJntTrafoDataParam) DocRef() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Reference to the documentation of the parameter +/// Group of the parameter (might be empty, when this parameter is not part of a group) +func (rcv *KinStateJntTrafoDataParam) Group() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Group of the parameter (might be empty, when this parameter is not part of a group) +/// Expected unit value type of the parameter (can be empty for unitless parameters) +func (rcv *KinStateJntTrafoDataParam) UnitValueType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Expected unit value type of the parameter (can be empty for unitless parameters) +/// Expected unit object type of the parameter (can be empty for unitless parameters; "linear" or "rotational" else) +func (rcv *KinStateJntTrafoDataParam) UnitObjType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Expected unit object type of the parameter (can be empty for unitless parameters; "linear" or "rotational" else) +/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) +func (rcv *KinStateJntTrafoDataParam) Values(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *KinStateJntTrafoDataParam) ValuesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Valid values for the parameter (when it's a string parameter and a kind of enumeration, else empty) +/// Type of the variable +func (rcv *KinStateJntTrafoDataParam) Type() VarType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return VarType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Type of the variable +func (rcv *KinStateJntTrafoDataParam) MutateType(n VarType) bool { + return rcv._tab.MutateInt8Slot(20, int8(n)) +} + +func KinStateJntTrafoDataParamStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func KinStateJntTrafoDataParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinStateJntTrafoDataParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func KinStateJntTrafoDataParamAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(image), 0) +} +func KinStateJntTrafoDataParamAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(docRef), 0) +} +func KinStateJntTrafoDataParamAddGroup(builder *flatbuffers.Builder, group flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(group), 0) +} +func KinStateJntTrafoDataParamAddUnitValueType(builder *flatbuffers.Builder, unitValueType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(unitValueType), 0) +} +func KinStateJntTrafoDataParamAddUnitObjType(builder *flatbuffers.Builder, unitObjType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(unitObjType), 0) +} +func KinStateJntTrafoDataParamAddValues(builder *flatbuffers.Builder, values flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(values), 0) +} +func KinStateJntTrafoDataParamStartValuesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func KinStateJntTrafoDataParamAddType(builder *flatbuffers.Builder, type_ VarType) { + builder.PrependInt8Slot(8, int8(type_), 1) +} +func KinStateJntTrafoDataParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxis.go b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxis.go index aec38aa..2f8ec84 100644 --- a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxis.go +++ b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxis.go @@ -1,118 +1,169 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single entry of a required axis of a joint transformation when reading all data of an implemented joint transformation -type KinStateJntTrafoDataReqAxisT struct { - Name string - Type KinStateJntTrafoDataReqAxisType - Mandatory bool -} - -func (t *KinStateJntTrafoDataReqAxisT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - KinStateJntTrafoDataReqAxisStart(builder) - KinStateJntTrafoDataReqAxisAddName(builder, nameOffset) - KinStateJntTrafoDataReqAxisAddType(builder, t.Type) - KinStateJntTrafoDataReqAxisAddMandatory(builder, t.Mandatory) - return KinStateJntTrafoDataReqAxisEnd(builder) -} - -func (rcv *KinStateJntTrafoDataReqAxis) UnPackTo(t *KinStateJntTrafoDataReqAxisT) { - t.Name = string(rcv.Name()) - t.Type = rcv.Type() - t.Mandatory = rcv.Mandatory() -} - -func (rcv *KinStateJntTrafoDataReqAxis) UnPack() *KinStateJntTrafoDataReqAxisT { - if rcv == nil { return nil } - t := &KinStateJntTrafoDataReqAxisT{} - rcv.UnPackTo(t) - return t -} - -type KinStateJntTrafoDataReqAxis struct { - _tab flatbuffers.Table -} - -func GetRootAsKinStateJntTrafoDataReqAxis(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataReqAxis { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinStateJntTrafoDataReqAxis{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinStateJntTrafoDataReqAxis(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataReqAxis { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinStateJntTrafoDataReqAxis{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinStateJntTrafoDataReqAxis) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinStateJntTrafoDataReqAxis) Table() flatbuffers.Table { - return rcv._tab -} - -/// Name of the axis (as used in the joint transformation) -func (rcv *KinStateJntTrafoDataReqAxis) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Name of the axis (as used in the joint transformation) -/// Type of the axis (linear, rotational, any) -func (rcv *KinStateJntTrafoDataReqAxis) Type() KinStateJntTrafoDataReqAxisType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return KinStateJntTrafoDataReqAxisType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// Type of the axis (linear, rotational, any) -func (rcv *KinStateJntTrafoDataReqAxis) MutateType(n KinStateJntTrafoDataReqAxisType) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -/// Is this axis mandatory? -func (rcv *KinStateJntTrafoDataReqAxis) Mandatory() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// Is this axis mandatory? -func (rcv *KinStateJntTrafoDataReqAxis) MutateMandatory(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func KinStateJntTrafoDataReqAxisStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func KinStateJntTrafoDataReqAxisAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func KinStateJntTrafoDataReqAxisAddType(builder *flatbuffers.Builder, type_ KinStateJntTrafoDataReqAxisType) { - builder.PrependInt8Slot(1, int8(type_), 0) -} -func KinStateJntTrafoDataReqAxisAddMandatory(builder *flatbuffers.Builder, mandatory bool) { - builder.PrependBoolSlot(2, mandatory, false) -} -func KinStateJntTrafoDataReqAxisEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single entry of a required axis of a joint transformation when reading all data of an implemented joint transformation +type KinStateJntTrafoDataReqAxisT struct { + Name string + Description string + Image string + DocRef string + Type KinStateJntTrafoDataReqAxisType + Mandatory bool +} + +func (t *KinStateJntTrafoDataReqAxisT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + imageOffset := builder.CreateString(t.Image) + docRefOffset := builder.CreateString(t.DocRef) + KinStateJntTrafoDataReqAxisStart(builder) + KinStateJntTrafoDataReqAxisAddName(builder, nameOffset) + KinStateJntTrafoDataReqAxisAddDescription(builder, descriptionOffset) + KinStateJntTrafoDataReqAxisAddImage(builder, imageOffset) + KinStateJntTrafoDataReqAxisAddDocRef(builder, docRefOffset) + KinStateJntTrafoDataReqAxisAddType(builder, t.Type) + KinStateJntTrafoDataReqAxisAddMandatory(builder, t.Mandatory) + return KinStateJntTrafoDataReqAxisEnd(builder) +} + +func (rcv *KinStateJntTrafoDataReqAxis) UnPackTo(t *KinStateJntTrafoDataReqAxisT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + t.Image = string(rcv.Image()) + t.DocRef = string(rcv.DocRef()) + t.Type = rcv.Type() + t.Mandatory = rcv.Mandatory() +} + +func (rcv *KinStateJntTrafoDataReqAxis) UnPack() *KinStateJntTrafoDataReqAxisT { + if rcv == nil { return nil } + t := &KinStateJntTrafoDataReqAxisT{} + rcv.UnPackTo(t) + return t +} + +type KinStateJntTrafoDataReqAxis struct { + _tab flatbuffers.Table +} + +func GetRootAsKinStateJntTrafoDataReqAxis(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataReqAxis { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinStateJntTrafoDataReqAxis{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinStateJntTrafoDataReqAxis(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataReqAxis { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinStateJntTrafoDataReqAxis{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinStateJntTrafoDataReqAxis) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinStateJntTrafoDataReqAxis) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of the axis (as used in the joint transformation) +func (rcv *KinStateJntTrafoDataReqAxis) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the axis (as used in the joint transformation) +/// Description of the axis +func (rcv *KinStateJntTrafoDataReqAxis) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Description of the axis +/// Image (link) of the axis +func (rcv *KinStateJntTrafoDataReqAxis) Image() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Image (link) of the axis +/// Reference to the documentation of the axis +func (rcv *KinStateJntTrafoDataReqAxis) DocRef() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Reference to the documentation of the axis +/// Type of the axis (linear, rotational, any) +func (rcv *KinStateJntTrafoDataReqAxis) Type() KinStateJntTrafoDataReqAxisType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return KinStateJntTrafoDataReqAxisType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Type of the axis (linear, rotational, any) +func (rcv *KinStateJntTrafoDataReqAxis) MutateType(n KinStateJntTrafoDataReqAxisType) bool { + return rcv._tab.MutateInt8Slot(12, int8(n)) +} + +/// Is this axis mandatory? +func (rcv *KinStateJntTrafoDataReqAxis) Mandatory() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// Is this axis mandatory? +func (rcv *KinStateJntTrafoDataReqAxis) MutateMandatory(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func KinStateJntTrafoDataReqAxisStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func KinStateJntTrafoDataReqAxisAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func KinStateJntTrafoDataReqAxisAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func KinStateJntTrafoDataReqAxisAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(image), 0) +} +func KinStateJntTrafoDataReqAxisAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(docRef), 0) +} +func KinStateJntTrafoDataReqAxisAddType(builder *flatbuffers.Builder, type_ KinStateJntTrafoDataReqAxisType) { + builder.PrependInt8Slot(4, int8(type_), 0) +} +func KinStateJntTrafoDataReqAxisAddMandatory(builder *flatbuffers.Builder, mandatory bool) { + builder.PrependBoolSlot(5, mandatory, false) +} +func KinStateJntTrafoDataReqAxisEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxisType.go b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxisType.go index f6721d3..a47e5c4 100644 --- a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxisType.go +++ b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataReqAxisType.go @@ -1,36 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// type of a required axis -type KinStateJntTrafoDataReqAxisType int8 - -const ( - /// any kind of axis is okay - KinStateJntTrafoDataReqAxisTypeANY KinStateJntTrafoDataReqAxisType = 0 - ///< a linear axis is requested - KinStateJntTrafoDataReqAxisTypeLINEAR KinStateJntTrafoDataReqAxisType = 1 - /// a rotational axis is requested - KinStateJntTrafoDataReqAxisTypeROTATIONAL KinStateJntTrafoDataReqAxisType = 2 -) - -var EnumNamesKinStateJntTrafoDataReqAxisType = map[KinStateJntTrafoDataReqAxisType]string{ - KinStateJntTrafoDataReqAxisTypeANY: "ANY", - KinStateJntTrafoDataReqAxisTypeLINEAR: "LINEAR", - KinStateJntTrafoDataReqAxisTypeROTATIONAL: "ROTATIONAL", -} - -var EnumValuesKinStateJntTrafoDataReqAxisType = map[string]KinStateJntTrafoDataReqAxisType{ - "ANY": KinStateJntTrafoDataReqAxisTypeANY, - "LINEAR": KinStateJntTrafoDataReqAxisTypeLINEAR, - "ROTATIONAL": KinStateJntTrafoDataReqAxisTypeROTATIONAL, -} - -func (v KinStateJntTrafoDataReqAxisType) String() string { - if s, ok := EnumNamesKinStateJntTrafoDataReqAxisType[v]; ok { - return s - } - return "KinStateJntTrafoDataReqAxisType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of a required axis +type KinStateJntTrafoDataReqAxisType int8 + +const ( + /// any kind of axis is okay + KinStateJntTrafoDataReqAxisTypeANY KinStateJntTrafoDataReqAxisType = 0 + ///< a linear axis is requested + KinStateJntTrafoDataReqAxisTypeLINEAR KinStateJntTrafoDataReqAxisType = 1 + /// a rotational axis is requested + KinStateJntTrafoDataReqAxisTypeROTATIONAL KinStateJntTrafoDataReqAxisType = 2 +) + +var EnumNamesKinStateJntTrafoDataReqAxisType = map[KinStateJntTrafoDataReqAxisType]string{ + KinStateJntTrafoDataReqAxisTypeANY: "ANY", + KinStateJntTrafoDataReqAxisTypeLINEAR: "LINEAR", + KinStateJntTrafoDataReqAxisTypeROTATIONAL: "ROTATIONAL", +} + +var EnumValuesKinStateJntTrafoDataReqAxisType = map[string]KinStateJntTrafoDataReqAxisType{ + "ANY": KinStateJntTrafoDataReqAxisTypeANY, + "LINEAR": KinStateJntTrafoDataReqAxisTypeLINEAR, + "ROTATIONAL": KinStateJntTrafoDataReqAxisTypeROTATIONAL, +} + +func (v KinStateJntTrafoDataReqAxisType) String() string { + if s, ok := EnumNamesKinStateJntTrafoDataReqAxisType[v]; ok { + return s + } + return "KinStateJntTrafoDataReqAxisType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataSingle.go b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataSingle.go index f3379e8..00bfe1d 100644 --- a/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataSingle.go +++ b/pkg/fbs/motion/core/fbtypes/KinStateJntTrafoDataSingle.go @@ -1,205 +1,205 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// data of a single registered joint transformation when reading all data of an implemented joint transformation -type KinStateJntTrafoDataSingleT struct { - Id string - Name string - Description string - Image string - DocRef string - Version string - Pow POWType - Parameters *KinStateJntTrafoDataAllParamT -} - -func (t *KinStateJntTrafoDataSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - idOffset := builder.CreateString(t.Id) - nameOffset := builder.CreateString(t.Name) - descriptionOffset := builder.CreateString(t.Description) - imageOffset := builder.CreateString(t.Image) - docRefOffset := builder.CreateString(t.DocRef) - versionOffset := builder.CreateString(t.Version) - parametersOffset := t.Parameters.Pack(builder) - KinStateJntTrafoDataSingleStart(builder) - KinStateJntTrafoDataSingleAddId(builder, idOffset) - KinStateJntTrafoDataSingleAddName(builder, nameOffset) - KinStateJntTrafoDataSingleAddDescription(builder, descriptionOffset) - KinStateJntTrafoDataSingleAddImage(builder, imageOffset) - KinStateJntTrafoDataSingleAddDocRef(builder, docRefOffset) - KinStateJntTrafoDataSingleAddVersion(builder, versionOffset) - KinStateJntTrafoDataSingleAddPow(builder, t.Pow) - KinStateJntTrafoDataSingleAddParameters(builder, parametersOffset) - return KinStateJntTrafoDataSingleEnd(builder) -} - -func (rcv *KinStateJntTrafoDataSingle) UnPackTo(t *KinStateJntTrafoDataSingleT) { - t.Id = string(rcv.Id()) - t.Name = string(rcv.Name()) - t.Description = string(rcv.Description()) - t.Image = string(rcv.Image()) - t.DocRef = string(rcv.DocRef()) - t.Version = string(rcv.Version()) - t.Pow = rcv.Pow() - t.Parameters = rcv.Parameters(nil).UnPack() -} - -func (rcv *KinStateJntTrafoDataSingle) UnPack() *KinStateJntTrafoDataSingleT { - if rcv == nil { return nil } - t := &KinStateJntTrafoDataSingleT{} - rcv.UnPackTo(t) - return t -} - -type KinStateJntTrafoDataSingle struct { - _tab flatbuffers.Table -} - -func GetRootAsKinStateJntTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataSingle { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinStateJntTrafoDataSingle{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinStateJntTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataSingle { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinStateJntTrafoDataSingle{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinStateJntTrafoDataSingle) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinStateJntTrafoDataSingle) Table() flatbuffers.Table { - return rcv._tab -} - -/// ID of the joint transformation (to be used in the MCS set) -func (rcv *KinStateJntTrafoDataSingle) Id() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// ID of the joint transformation (to be used in the MCS set) -/// Name of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Name of the joint transformation -/// Description of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Description of the joint transformation -/// Image (link) of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) Image() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Image (link) of the joint transformation -/// Reference to the documentation of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) DocRef() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Reference to the documentation of the joint transformation -/// Version string of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Version string of the joint transformation -/// Point of work of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) Pow() POWType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return POWType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 1 -} - -/// Point of work of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) MutatePow(n POWType) bool { - return rcv._tab.MutateInt8Slot(16, int8(n)) -} - -/// All configuration parameters of the joint transformation -func (rcv *KinStateJntTrafoDataSingle) Parameters(obj *KinStateJntTrafoDataAllParam) *KinStateJntTrafoDataAllParam { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(KinStateJntTrafoDataAllParam) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// All configuration parameters of the joint transformation -func KinStateJntTrafoDataSingleStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func KinStateJntTrafoDataSingleAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) -} -func KinStateJntTrafoDataSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) -} -func KinStateJntTrafoDataSingleAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(description), 0) -} -func KinStateJntTrafoDataSingleAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(image), 0) -} -func KinStateJntTrafoDataSingleAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(docRef), 0) -} -func KinStateJntTrafoDataSingleAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(version), 0) -} -func KinStateJntTrafoDataSingleAddPow(builder *flatbuffers.Builder, pow POWType) { - builder.PrependInt8Slot(6, int8(pow), 1) -} -func KinStateJntTrafoDataSingleAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(parameters), 0) -} -func KinStateJntTrafoDataSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of a single registered joint transformation when reading all data of an implemented joint transformation +type KinStateJntTrafoDataSingleT struct { + Id string + Name string + Description string + Image string + DocRef string + Version string + Pow POWType + Parameters *KinStateJntTrafoDataAllParamT +} + +func (t *KinStateJntTrafoDataSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + idOffset := builder.CreateString(t.Id) + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + imageOffset := builder.CreateString(t.Image) + docRefOffset := builder.CreateString(t.DocRef) + versionOffset := builder.CreateString(t.Version) + parametersOffset := t.Parameters.Pack(builder) + KinStateJntTrafoDataSingleStart(builder) + KinStateJntTrafoDataSingleAddId(builder, idOffset) + KinStateJntTrafoDataSingleAddName(builder, nameOffset) + KinStateJntTrafoDataSingleAddDescription(builder, descriptionOffset) + KinStateJntTrafoDataSingleAddImage(builder, imageOffset) + KinStateJntTrafoDataSingleAddDocRef(builder, docRefOffset) + KinStateJntTrafoDataSingleAddVersion(builder, versionOffset) + KinStateJntTrafoDataSingleAddPow(builder, t.Pow) + KinStateJntTrafoDataSingleAddParameters(builder, parametersOffset) + return KinStateJntTrafoDataSingleEnd(builder) +} + +func (rcv *KinStateJntTrafoDataSingle) UnPackTo(t *KinStateJntTrafoDataSingleT) { + t.Id = string(rcv.Id()) + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + t.Image = string(rcv.Image()) + t.DocRef = string(rcv.DocRef()) + t.Version = string(rcv.Version()) + t.Pow = rcv.Pow() + t.Parameters = rcv.Parameters(nil).UnPack() +} + +func (rcv *KinStateJntTrafoDataSingle) UnPack() *KinStateJntTrafoDataSingleT { + if rcv == nil { return nil } + t := &KinStateJntTrafoDataSingleT{} + rcv.UnPackTo(t) + return t +} + +type KinStateJntTrafoDataSingle struct { + _tab flatbuffers.Table +} + +func GetRootAsKinStateJntTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataSingle { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinStateJntTrafoDataSingle{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinStateJntTrafoDataSingle(buf []byte, offset flatbuffers.UOffsetT) *KinStateJntTrafoDataSingle { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinStateJntTrafoDataSingle{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinStateJntTrafoDataSingle) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinStateJntTrafoDataSingle) Table() flatbuffers.Table { + return rcv._tab +} + +/// ID of the joint transformation (to be used in the MCS set) +func (rcv *KinStateJntTrafoDataSingle) Id() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// ID of the joint transformation (to be used in the MCS set) +/// Name of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the joint transformation +/// Description of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Description of the joint transformation +/// Image (link) of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) Image() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Image (link) of the joint transformation +/// Reference to the documentation of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) DocRef() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Reference to the documentation of the joint transformation +/// Version string of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Version string of the joint transformation +/// Point of work of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) Pow() POWType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return POWType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// Point of work of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) MutatePow(n POWType) bool { + return rcv._tab.MutateInt8Slot(16, int8(n)) +} + +/// All configuration parameters of the joint transformation +func (rcv *KinStateJntTrafoDataSingle) Parameters(obj *KinStateJntTrafoDataAllParam) *KinStateJntTrafoDataAllParam { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(KinStateJntTrafoDataAllParam) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// All configuration parameters of the joint transformation +func KinStateJntTrafoDataSingleStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func KinStateJntTrafoDataSingleAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(id), 0) +} +func KinStateJntTrafoDataSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(name), 0) +} +func KinStateJntTrafoDataSingleAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(description), 0) +} +func KinStateJntTrafoDataSingleAddImage(builder *flatbuffers.Builder, image flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(image), 0) +} +func KinStateJntTrafoDataSingleAddDocRef(builder *flatbuffers.Builder, docRef flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(docRef), 0) +} +func KinStateJntTrafoDataSingleAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(version), 0) +} +func KinStateJntTrafoDataSingleAddPow(builder *flatbuffers.Builder, pow POWType) { + builder.PrependInt8Slot(6, int8(pow), 1) +} +func KinStateJntTrafoDataSingleAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(parameters), 0) +} +func KinStateJntTrafoDataSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/POWType.go b/pkg/fbs/motion/core/fbtypes/POWType.go index 456bff4..cc3001a 100644 --- a/pkg/fbs/motion/core/fbtypes/POWType.go +++ b/pkg/fbs/motion/core/fbtypes/POWType.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type POWType int8 - -const ( - POWTypeBASE POWType = 1 - POWTypeORIENTATION POWType = 2 - POWTypeADDITIONAL POWType = 3 -) - -var EnumNamesPOWType = map[POWType]string{ - POWTypeBASE: "BASE", - POWTypeORIENTATION: "ORIENTATION", - POWTypeADDITIONAL: "ADDITIONAL", -} - -var EnumValuesPOWType = map[string]POWType{ - "BASE": POWTypeBASE, - "ORIENTATION": POWTypeORIENTATION, - "ADDITIONAL": POWTypeADDITIONAL, -} - -func (v POWType) String() string { - if s, ok := EnumNamesPOWType[v]; ok { - return s - } - return "POWType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type POWType int8 + +const ( + POWTypeBASE POWType = 1 + POWTypeORIENTATION POWType = 2 + POWTypeADDITIONAL POWType = 3 +) + +var EnumNamesPOWType = map[POWType]string{ + POWTypeBASE: "BASE", + POWTypeORIENTATION: "ORIENTATION", + POWTypeADDITIONAL: "ADDITIONAL", +} + +var EnumValuesPOWType = map[string]POWType{ + "BASE": POWTypeBASE, + "ORIENTATION": POWTypeORIENTATION, + "ADDITIONAL": POWTypeADDITIONAL, +} + +func (v POWType) String() string { + if s, ok := EnumNamesPOWType[v]; ok { + return s + } + return "POWType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/ProbeActualValues.go b/pkg/fbs/motion/core/fbtypes/ProbeActualValues.go new file mode 100644 index 0000000..1d0a751 --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/ProbeActualValues.go @@ -0,0 +1,289 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// currently the actual values of the probe +type ProbeActualValuesT struct { + Valid bool + PosEdgeValue float64 + NegEdgeValue float64 + DifferValue float64 + DiffCount uint32 + PosEdgeCount uint32 + NegEdgeCount uint32 + MarksEdgeCount uint32 + Status string + PosEdgeValueUnit string + NegEdgeValueUnit string + DifferValueUnit string +} + +func (t *ProbeActualValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + statusOffset := builder.CreateString(t.Status) + posEdgeValueUnitOffset := builder.CreateString(t.PosEdgeValueUnit) + negEdgeValueUnitOffset := builder.CreateString(t.NegEdgeValueUnit) + differValueUnitOffset := builder.CreateString(t.DifferValueUnit) + ProbeActualValuesStart(builder) + ProbeActualValuesAddValid(builder, t.Valid) + ProbeActualValuesAddPosEdgeValue(builder, t.PosEdgeValue) + ProbeActualValuesAddNegEdgeValue(builder, t.NegEdgeValue) + ProbeActualValuesAddDifferValue(builder, t.DifferValue) + ProbeActualValuesAddDiffCount(builder, t.DiffCount) + ProbeActualValuesAddPosEdgeCount(builder, t.PosEdgeCount) + ProbeActualValuesAddNegEdgeCount(builder, t.NegEdgeCount) + ProbeActualValuesAddMarksEdgeCount(builder, t.MarksEdgeCount) + ProbeActualValuesAddStatus(builder, statusOffset) + ProbeActualValuesAddPosEdgeValueUnit(builder, posEdgeValueUnitOffset) + ProbeActualValuesAddNegEdgeValueUnit(builder, negEdgeValueUnitOffset) + ProbeActualValuesAddDifferValueUnit(builder, differValueUnitOffset) + return ProbeActualValuesEnd(builder) +} + +func (rcv *ProbeActualValues) UnPackTo(t *ProbeActualValuesT) { + t.Valid = rcv.Valid() + t.PosEdgeValue = rcv.PosEdgeValue() + t.NegEdgeValue = rcv.NegEdgeValue() + t.DifferValue = rcv.DifferValue() + t.DiffCount = rcv.DiffCount() + t.PosEdgeCount = rcv.PosEdgeCount() + t.NegEdgeCount = rcv.NegEdgeCount() + t.MarksEdgeCount = rcv.MarksEdgeCount() + t.Status = string(rcv.Status()) + t.PosEdgeValueUnit = string(rcv.PosEdgeValueUnit()) + t.NegEdgeValueUnit = string(rcv.NegEdgeValueUnit()) + t.DifferValueUnit = string(rcv.DifferValueUnit()) +} + +func (rcv *ProbeActualValues) UnPack() *ProbeActualValuesT { + if rcv == nil { return nil } + t := &ProbeActualValuesT{} + rcv.UnPackTo(t) + return t +} + +type ProbeActualValues struct { + _tab flatbuffers.Table +} + +func GetRootAsProbeActualValues(buf []byte, offset flatbuffers.UOffsetT) *ProbeActualValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ProbeActualValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProbeActualValues(buf []byte, offset flatbuffers.UOffsetT) *ProbeActualValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ProbeActualValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ProbeActualValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProbeActualValues) Table() flatbuffers.Table { + return rcv._tab +} + +/// currently the data of vaild +func (rcv *ProbeActualValues) Valid() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// currently the data of vaild +func (rcv *ProbeActualValues) MutateValid(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// currently positive edge value +func (rcv *ProbeActualValues) PosEdgeValue() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently positive edge value +func (rcv *ProbeActualValues) MutatePosEdgeValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// currently negative edge value +func (rcv *ProbeActualValues) NegEdgeValue() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently negative edge value +func (rcv *ProbeActualValues) MutateNegEdgeValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// currently difference of probe values +func (rcv *ProbeActualValues) DifferValue() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently difference of probe values +func (rcv *ProbeActualValues) MutateDifferValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// currently difference count +func (rcv *ProbeActualValues) DiffCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently difference count +func (rcv *ProbeActualValues) MutateDiffCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +/// currently positive edge count +func (rcv *ProbeActualValues) PosEdgeCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently positive edge count +func (rcv *ProbeActualValues) MutatePosEdgeCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +/// currently negative edge count +func (rcv *ProbeActualValues) NegEdgeCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently negative edge count +func (rcv *ProbeActualValues) MutateNegEdgeCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +/// currently marks edge count +func (rcv *ProbeActualValues) MarksEdgeCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently marks edge count +func (rcv *ProbeActualValues) MutateMarksEdgeCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +/// currently probe status +func (rcv *ProbeActualValues) Status() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// currently probe status +/// unit of the actual positive edge value +func (rcv *ProbeActualValues) PosEdgeValueUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual positive edge value +/// unit of the actual negative edge value +func (rcv *ProbeActualValues) NegEdgeValueUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual negative edge value +/// unit of the actual difference values +func (rcv *ProbeActualValues) DifferValueUnit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the actual difference values +func ProbeActualValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(12) +} +func ProbeActualValuesAddValid(builder *flatbuffers.Builder, valid bool) { + builder.PrependBoolSlot(0, valid, false) +} +func ProbeActualValuesAddPosEdgeValue(builder *flatbuffers.Builder, posEdgeValue float64) { + builder.PrependFloat64Slot(1, posEdgeValue, 0.0) +} +func ProbeActualValuesAddNegEdgeValue(builder *flatbuffers.Builder, negEdgeValue float64) { + builder.PrependFloat64Slot(2, negEdgeValue, 0.0) +} +func ProbeActualValuesAddDifferValue(builder *flatbuffers.Builder, differValue float64) { + builder.PrependFloat64Slot(3, differValue, 0.0) +} +func ProbeActualValuesAddDiffCount(builder *flatbuffers.Builder, diffCount uint32) { + builder.PrependUint32Slot(4, diffCount, 0) +} +func ProbeActualValuesAddPosEdgeCount(builder *flatbuffers.Builder, posEdgeCount uint32) { + builder.PrependUint32Slot(5, posEdgeCount, 0) +} +func ProbeActualValuesAddNegEdgeCount(builder *flatbuffers.Builder, negEdgeCount uint32) { + builder.PrependUint32Slot(6, negEdgeCount, 0) +} +func ProbeActualValuesAddMarksEdgeCount(builder *flatbuffers.Builder, marksEdgeCount uint32) { + builder.PrependUint32Slot(7, marksEdgeCount, 0) +} +func ProbeActualValuesAddStatus(builder *flatbuffers.Builder, status flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(status), 0) +} +func ProbeActualValuesAddPosEdgeValueUnit(builder *flatbuffers.Builder, posEdgeValueUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(9, flatbuffers.UOffsetT(posEdgeValueUnit), 0) +} +func ProbeActualValuesAddNegEdgeValueUnit(builder *flatbuffers.Builder, negEdgeValueUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(10, flatbuffers.UOffsetT(negEdgeValueUnit), 0) +} +func ProbeActualValuesAddDifferValueUnit(builder *flatbuffers.Builder, differValueUnit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(11, flatbuffers.UOffsetT(differValueUnit), 0) +} +func ProbeActualValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/ProbeCfgData.go b/pkg/fbs/motion/core/fbtypes/ProbeCfgData.go new file mode 100644 index 0000000..90c87a3 --- /dev/null +++ b/pkg/fbs/motion/core/fbtypes/ProbeCfgData.go @@ -0,0 +1,329 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of the axis probe +type ProbeCfgDataT struct { + MeasurSigSel string + MeasurType string + EvalEdgeType string + EvalDiffType string + ExpWindowEdgeEnable bool + ExpWindowStart float64 + ExpWindowEnd float64 + EnableMarkFailure bool + MaxNumOfMarkFailuer uint32 + TimeCompEnable bool + TimeCompPosEdge float64 + TimeCompNegEdge float64 + LvlMonitorActive bool + IsAutoActivated bool +} + +func (t *ProbeCfgDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + measurSigSelOffset := builder.CreateString(t.MeasurSigSel) + measurTypeOffset := builder.CreateString(t.MeasurType) + evalEdgeTypeOffset := builder.CreateString(t.EvalEdgeType) + evalDiffTypeOffset := builder.CreateString(t.EvalDiffType) + ProbeCfgDataStart(builder) + ProbeCfgDataAddMeasurSigSel(builder, measurSigSelOffset) + ProbeCfgDataAddMeasurType(builder, measurTypeOffset) + ProbeCfgDataAddEvalEdgeType(builder, evalEdgeTypeOffset) + ProbeCfgDataAddEvalDiffType(builder, evalDiffTypeOffset) + ProbeCfgDataAddExpWindowEdgeEnable(builder, t.ExpWindowEdgeEnable) + ProbeCfgDataAddExpWindowStart(builder, t.ExpWindowStart) + ProbeCfgDataAddExpWindowEnd(builder, t.ExpWindowEnd) + ProbeCfgDataAddEnableMarkFailure(builder, t.EnableMarkFailure) + ProbeCfgDataAddMaxNumOfMarkFailuer(builder, t.MaxNumOfMarkFailuer) + ProbeCfgDataAddTimeCompEnable(builder, t.TimeCompEnable) + ProbeCfgDataAddTimeCompPosEdge(builder, t.TimeCompPosEdge) + ProbeCfgDataAddTimeCompNegEdge(builder, t.TimeCompNegEdge) + ProbeCfgDataAddLvlMonitorActive(builder, t.LvlMonitorActive) + ProbeCfgDataAddIsAutoActivated(builder, t.IsAutoActivated) + return ProbeCfgDataEnd(builder) +} + +func (rcv *ProbeCfgData) UnPackTo(t *ProbeCfgDataT) { + t.MeasurSigSel = string(rcv.MeasurSigSel()) + t.MeasurType = string(rcv.MeasurType()) + t.EvalEdgeType = string(rcv.EvalEdgeType()) + t.EvalDiffType = string(rcv.EvalDiffType()) + t.ExpWindowEdgeEnable = rcv.ExpWindowEdgeEnable() + t.ExpWindowStart = rcv.ExpWindowStart() + t.ExpWindowEnd = rcv.ExpWindowEnd() + t.EnableMarkFailure = rcv.EnableMarkFailure() + t.MaxNumOfMarkFailuer = rcv.MaxNumOfMarkFailuer() + t.TimeCompEnable = rcv.TimeCompEnable() + t.TimeCompPosEdge = rcv.TimeCompPosEdge() + t.TimeCompNegEdge = rcv.TimeCompNegEdge() + t.LvlMonitorActive = rcv.LvlMonitorActive() + t.IsAutoActivated = rcv.IsAutoActivated() +} + +func (rcv *ProbeCfgData) UnPack() *ProbeCfgDataT { + if rcv == nil { return nil } + t := &ProbeCfgDataT{} + rcv.UnPackTo(t) + return t +} + +type ProbeCfgData struct { + _tab flatbuffers.Table +} + +func GetRootAsProbeCfgData(buf []byte, offset flatbuffers.UOffsetT) *ProbeCfgData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ProbeCfgData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsProbeCfgData(buf []byte, offset flatbuffers.UOffsetT) *ProbeCfgData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ProbeCfgData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ProbeCfgData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ProbeCfgData) Table() flatbuffers.Table { + return rcv._tab +} + +/// measuring signal select (e.g. "encoder1", "encoder2", "finetime") +func (rcv *ProbeCfgData) MeasurSigSel() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// measuring signal select (e.g. "encoder1", "encoder2", "finetime") +/// selection of measuring type (e.g. "continuous", "singleShot") +func (rcv *ProbeCfgData) MeasurType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// selection of measuring type (e.g. "continuous", "singleShot") +/// selection which edge is evaluated (e.g. "disabled", "posEdge", "negEdge", "posNeg") +func (rcv *ProbeCfgData) EvalEdgeType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// selection which edge is evaluated (e.g. "disabled", "posEdge", "negEdge", "posNeg") +/// probe difference measuring type (e.g. "disabled", "standard", "negToNeg", "posToNeg", "negToPos", "posToPos") +func (rcv *ProbeCfgData) EvalDiffType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// probe difference measuring type (e.g. "disabled", "standard", "negToNeg", "posToNeg", "negToPos", "posToPos") +/// enable of expectation window +func (rcv *ProbeCfgData) ExpWindowEdgeEnable() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// enable of expectation window +func (rcv *ProbeCfgData) MutateExpWindowEdgeEnable(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +/// start of the expectation window if the positive edge is evaluated +func (rcv *ProbeCfgData) ExpWindowStart() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// start of the expectation window if the positive edge is evaluated +func (rcv *ProbeCfgData) MutateExpWindowStart(n float64) bool { + return rcv._tab.MutateFloat64Slot(14, n) +} + +/// end of the expectation window if the positive edge is evaluated +func (rcv *ProbeCfgData) ExpWindowEnd() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// end of the expectation window if the positive edge is evaluated +func (rcv *ProbeCfgData) MutateExpWindowEnd(n float64) bool { + return rcv._tab.MutateFloat64Slot(16, n) +} + +/// enable lost mark check +func (rcv *ProbeCfgData) EnableMarkFailure() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// enable lost mark check +func (rcv *ProbeCfgData) MutateEnableMarkFailure(n bool) bool { + return rcv._tab.MutateBoolSlot(18, n) +} + +/// threshold for the registered number of marker failure +func (rcv *ProbeCfgData) MaxNumOfMarkFailuer() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// threshold for the registered number of marker failure +func (rcv *ProbeCfgData) MutateMaxNumOfMarkFailuer(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +/// probe dead time compensation enable +func (rcv *ProbeCfgData) TimeCompEnable() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// probe dead time compensation enable +func (rcv *ProbeCfgData) MutateTimeCompEnable(n bool) bool { + return rcv._tab.MutateBoolSlot(22, n) +} + +/// dead time compensation for the positive edge if evaluated +func (rcv *ProbeCfgData) TimeCompPosEdge() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// dead time compensation for the positive edge if evaluated +func (rcv *ProbeCfgData) MutateTimeCompPosEdge(n float64) bool { + return rcv._tab.MutateFloat64Slot(24, n) +} + +/// dead time compensation for the negative edge if evaluated +func (rcv *ProbeCfgData) TimeCompNegEdge() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// dead time compensation for the negative edge if evaluated +func (rcv *ProbeCfgData) MutateTimeCompNegEdge(n float64) bool { + return rcv._tab.MutateFloat64Slot(26, n) +} + +/// switch-on level monitoring active, only worked for drive based touch probe 1 +func (rcv *ProbeCfgData) LvlMonitorActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// switch-on level monitoring active, only worked for drive based touch probe 1 +func (rcv *ProbeCfgData) MutateLvlMonitorActive(n bool) bool { + return rcv._tab.MutateBoolSlot(28, n) +} + +/// probe auto activated after config +func (rcv *ProbeCfgData) IsAutoActivated() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// probe auto activated after config +func (rcv *ProbeCfgData) MutateIsAutoActivated(n bool) bool { + return rcv._tab.MutateBoolSlot(30, n) +} + +func ProbeCfgDataStart(builder *flatbuffers.Builder) { + builder.StartObject(14) +} +func ProbeCfgDataAddMeasurSigSel(builder *flatbuffers.Builder, measurSigSel flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(measurSigSel), 0) +} +func ProbeCfgDataAddMeasurType(builder *flatbuffers.Builder, measurType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(measurType), 0) +} +func ProbeCfgDataAddEvalEdgeType(builder *flatbuffers.Builder, evalEdgeType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(evalEdgeType), 0) +} +func ProbeCfgDataAddEvalDiffType(builder *flatbuffers.Builder, evalDiffType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(evalDiffType), 0) +} +func ProbeCfgDataAddExpWindowEdgeEnable(builder *flatbuffers.Builder, expWindowEdgeEnable bool) { + builder.PrependBoolSlot(4, expWindowEdgeEnable, false) +} +func ProbeCfgDataAddExpWindowStart(builder *flatbuffers.Builder, expWindowStart float64) { + builder.PrependFloat64Slot(5, expWindowStart, 0.0) +} +func ProbeCfgDataAddExpWindowEnd(builder *flatbuffers.Builder, expWindowEnd float64) { + builder.PrependFloat64Slot(6, expWindowEnd, 0.0) +} +func ProbeCfgDataAddEnableMarkFailure(builder *flatbuffers.Builder, enableMarkFailure bool) { + builder.PrependBoolSlot(7, enableMarkFailure, false) +} +func ProbeCfgDataAddMaxNumOfMarkFailuer(builder *flatbuffers.Builder, maxNumOfMarkFailuer uint32) { + builder.PrependUint32Slot(8, maxNumOfMarkFailuer, 0) +} +func ProbeCfgDataAddTimeCompEnable(builder *flatbuffers.Builder, timeCompEnable bool) { + builder.PrependBoolSlot(9, timeCompEnable, false) +} +func ProbeCfgDataAddTimeCompPosEdge(builder *flatbuffers.Builder, timeCompPosEdge float64) { + builder.PrependFloat64Slot(10, timeCompPosEdge, 0.0) +} +func ProbeCfgDataAddTimeCompNegEdge(builder *flatbuffers.Builder, timeCompNegEdge float64) { + builder.PrependFloat64Slot(11, timeCompNegEdge, 0.0) +} +func ProbeCfgDataAddLvlMonitorActive(builder *flatbuffers.Builder, lvlMonitorActive bool) { + builder.PrependBoolSlot(12, lvlMonitorActive, false) +} +func ProbeCfgDataAddIsAutoActivated(builder *flatbuffers.Builder, isAutoActivated bool) { + builder.PrependBoolSlot(13, isAutoActivated, false) +} +func ProbeCfgDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/RTInputsCfg.go b/pkg/fbs/motion/core/fbtypes/RTInputsCfg.go index f6cda40..6945cc8 100644 --- a/pkg/fbs/motion/core/fbtypes/RTInputsCfg.go +++ b/pkg/fbs/motion/core/fbtypes/RTInputsCfg.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// common configuration of real-time inputs -type RTInputsCfgT struct { - DoubleArraySize uint32 - Int64ArraySize uint32 -} - -func (t *RTInputsCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - RTInputsCfgStart(builder) - RTInputsCfgAddDoubleArraySize(builder, t.DoubleArraySize) - RTInputsCfgAddInt64ArraySize(builder, t.Int64ArraySize) - return RTInputsCfgEnd(builder) -} - -func (rcv *RTInputsCfg) UnPackTo(t *RTInputsCfgT) { - t.DoubleArraySize = rcv.DoubleArraySize() - t.Int64ArraySize = rcv.Int64ArraySize() -} - -func (rcv *RTInputsCfg) UnPack() *RTInputsCfgT { - if rcv == nil { return nil } - t := &RTInputsCfgT{} - rcv.UnPackTo(t) - return t -} - -type RTInputsCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsRTInputsCfg(buf []byte, offset flatbuffers.UOffsetT) *RTInputsCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &RTInputsCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsRTInputsCfg(buf []byte, offset flatbuffers.UOffsetT) *RTInputsCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &RTInputsCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *RTInputsCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *RTInputsCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// size of the double array -func (rcv *RTInputsCfg) DoubleArraySize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// size of the double array -func (rcv *RTInputsCfg) MutateDoubleArraySize(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// size of the int64 array -func (rcv *RTInputsCfg) Int64ArraySize() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// size of the int64 array -func (rcv *RTInputsCfg) MutateInt64ArraySize(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func RTInputsCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func RTInputsCfgAddDoubleArraySize(builder *flatbuffers.Builder, doubleArraySize uint32) { - builder.PrependUint32Slot(0, doubleArraySize, 0) -} -func RTInputsCfgAddInt64ArraySize(builder *flatbuffers.Builder, int64ArraySize uint32) { - builder.PrependUint32Slot(1, int64ArraySize, 0) -} -func RTInputsCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// common configuration of real-time inputs +type RTInputsCfgT struct { + DoubleArraySize uint32 + Int64ArraySize uint32 +} + +func (t *RTInputsCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + RTInputsCfgStart(builder) + RTInputsCfgAddDoubleArraySize(builder, t.DoubleArraySize) + RTInputsCfgAddInt64ArraySize(builder, t.Int64ArraySize) + return RTInputsCfgEnd(builder) +} + +func (rcv *RTInputsCfg) UnPackTo(t *RTInputsCfgT) { + t.DoubleArraySize = rcv.DoubleArraySize() + t.Int64ArraySize = rcv.Int64ArraySize() +} + +func (rcv *RTInputsCfg) UnPack() *RTInputsCfgT { + if rcv == nil { return nil } + t := &RTInputsCfgT{} + rcv.UnPackTo(t) + return t +} + +type RTInputsCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsRTInputsCfg(buf []byte, offset flatbuffers.UOffsetT) *RTInputsCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &RTInputsCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsRTInputsCfg(buf []byte, offset flatbuffers.UOffsetT) *RTInputsCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &RTInputsCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *RTInputsCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *RTInputsCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// size of the double array +func (rcv *RTInputsCfg) DoubleArraySize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// size of the double array +func (rcv *RTInputsCfg) MutateDoubleArraySize(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// size of the int64 array +func (rcv *RTInputsCfg) Int64ArraySize() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// size of the int64 array +func (rcv *RTInputsCfg) MutateInt64ArraySize(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func RTInputsCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func RTInputsCfgAddDoubleArraySize(builder *flatbuffers.Builder, doubleArraySize uint32) { + builder.PrependUint32Slot(0, doubleArraySize, 0) +} +func RTInputsCfgAddInt64ArraySize(builder *flatbuffers.Builder, int64ArraySize uint32) { + builder.PrependUint32Slot(1, int64ArraySize, 0) +} +func RTInputsCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SafeAreaType.go b/pkg/fbs/motion/core/fbtypes/SafeAreaType.go index 852b303..3ab7d99 100644 --- a/pkg/fbs/motion/core/fbtypes/SafeAreaType.go +++ b/pkg/fbs/motion/core/fbtypes/SafeAreaType.go @@ -1,36 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// type of the safe area -type SafeAreaType int8 - -const ( - /// its a safe area - SafeAreaTypeSAFE_AREA SafeAreaType = 0 - /// its an exclusive work area - SafeAreaTypeWORK_AREA_EXCL SafeAreaType = 1 - /// its an inclusive work area - SafeAreaTypeWORK_AREA_INCL SafeAreaType = 2 -) - -var EnumNamesSafeAreaType = map[SafeAreaType]string{ - SafeAreaTypeSAFE_AREA: "SAFE_AREA", - SafeAreaTypeWORK_AREA_EXCL: "WORK_AREA_EXCL", - SafeAreaTypeWORK_AREA_INCL: "WORK_AREA_INCL", -} - -var EnumValuesSafeAreaType = map[string]SafeAreaType{ - "SAFE_AREA": SafeAreaTypeSAFE_AREA, - "WORK_AREA_EXCL": SafeAreaTypeWORK_AREA_EXCL, - "WORK_AREA_INCL": SafeAreaTypeWORK_AREA_INCL, -} - -func (v SafeAreaType) String() string { - if s, ok := EnumNamesSafeAreaType[v]; ok { - return s - } - return "SafeAreaType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of the safe area +type SafeAreaType int8 + +const ( + /// its a safe area + SafeAreaTypeSAFE_AREA SafeAreaType = 0 + /// its an exclusive work area + SafeAreaTypeWORK_AREA_EXCL SafeAreaType = 1 + /// its an inclusive work area + SafeAreaTypeWORK_AREA_INCL SafeAreaType = 2 +) + +var EnumNamesSafeAreaType = map[SafeAreaType]string{ + SafeAreaTypeSAFE_AREA: "SAFE_AREA", + SafeAreaTypeWORK_AREA_EXCL: "WORK_AREA_EXCL", + SafeAreaTypeWORK_AREA_INCL: "WORK_AREA_INCL", +} + +var EnumValuesSafeAreaType = map[string]SafeAreaType{ + "SAFE_AREA": SafeAreaTypeSAFE_AREA, + "WORK_AREA_EXCL": SafeAreaTypeWORK_AREA_EXCL, + "WORK_AREA_INCL": SafeAreaTypeWORK_AREA_INCL, +} + +func (v SafeAreaType) String() string { + if s, ok := EnumNamesSafeAreaType[v]; ok { + return s + } + return "SafeAreaType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/SingleLicense.go b/pkg/fbs/motion/core/fbtypes/SingleLicense.go index 7e80cf8..92c5c4a 100644 --- a/pkg/fbs/motion/core/fbtypes/SingleLicense.go +++ b/pkg/fbs/motion/core/fbtypes/SingleLicense.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// information of a single acquired license -type SingleLicenseT struct { - Name string - Version string -} - -func (t *SingleLicenseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - versionOffset := builder.CreateString(t.Version) - SingleLicenseStart(builder) - SingleLicenseAddName(builder, nameOffset) - SingleLicenseAddVersion(builder, versionOffset) - return SingleLicenseEnd(builder) -} - -func (rcv *SingleLicense) UnPackTo(t *SingleLicenseT) { - t.Name = string(rcv.Name()) - t.Version = string(rcv.Version()) -} - -func (rcv *SingleLicense) UnPack() *SingleLicenseT { - if rcv == nil { return nil } - t := &SingleLicenseT{} - rcv.UnPackTo(t) - return t -} - -type SingleLicense struct { - _tab flatbuffers.Table -} - -func GetRootAsSingleLicense(buf []byte, offset flatbuffers.UOffsetT) *SingleLicense { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SingleLicense{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSingleLicense(buf []byte, offset flatbuffers.UOffsetT) *SingleLicense { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SingleLicense{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SingleLicense) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SingleLicense) Table() flatbuffers.Table { - return rcv._tab -} - -/// name (material number) of the license -func (rcv *SingleLicense) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name (material number) of the license -/// version number of the license -func (rcv *SingleLicense) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// version number of the license -func SingleLicenseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SingleLicenseAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func SingleLicenseAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) -} -func SingleLicenseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// information of a single acquired license +type SingleLicenseT struct { + Name string + Version string +} + +func (t *SingleLicenseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + versionOffset := builder.CreateString(t.Version) + SingleLicenseStart(builder) + SingleLicenseAddName(builder, nameOffset) + SingleLicenseAddVersion(builder, versionOffset) + return SingleLicenseEnd(builder) +} + +func (rcv *SingleLicense) UnPackTo(t *SingleLicenseT) { + t.Name = string(rcv.Name()) + t.Version = string(rcv.Version()) +} + +func (rcv *SingleLicense) UnPack() *SingleLicenseT { + if rcv == nil { return nil } + t := &SingleLicenseT{} + rcv.UnPackTo(t) + return t +} + +type SingleLicense struct { + _tab flatbuffers.Table +} + +func GetRootAsSingleLicense(buf []byte, offset flatbuffers.UOffsetT) *SingleLicense { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SingleLicense{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSingleLicense(buf []byte, offset flatbuffers.UOffsetT) *SingleLicense { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SingleLicense{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SingleLicense) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SingleLicense) Table() flatbuffers.Table { + return rcv._tab +} + +/// name (material number) of the license +func (rcv *SingleLicense) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name (material number) of the license +/// version number of the license +func (rcv *SingleLicense) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// version number of the license +func SingleLicenseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SingleLicenseAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func SingleLicenseAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) +} +func SingleLicenseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfg.go b/pkg/fbs/motion/core/fbtypes/SysCfg.go index 91ec57c..c698e65 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfg.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfg.go @@ -1,171 +1,171 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// general system configuration -type SysCfgT struct { - Pcs *SysCfgPcsAllT - Function *SysCfgFunctionT - Internal *SysCfgInternalT - SafeAreas *SysCfgSafeAreaAllT - RtInputs *RTInputsCfgT -} - -func (t *SysCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - pcsOffset := t.Pcs.Pack(builder) - functionOffset := t.Function.Pack(builder) - internalOffset := t.Internal.Pack(builder) - safeAreasOffset := t.SafeAreas.Pack(builder) - rtInputsOffset := t.RtInputs.Pack(builder) - SysCfgStart(builder) - SysCfgAddPcs(builder, pcsOffset) - SysCfgAddFunction(builder, functionOffset) - SysCfgAddInternal(builder, internalOffset) - SysCfgAddSafeAreas(builder, safeAreasOffset) - SysCfgAddRtInputs(builder, rtInputsOffset) - return SysCfgEnd(builder) -} - -func (rcv *SysCfg) UnPackTo(t *SysCfgT) { - t.Pcs = rcv.Pcs(nil).UnPack() - t.Function = rcv.Function(nil).UnPack() - t.Internal = rcv.Internal(nil).UnPack() - t.SafeAreas = rcv.SafeAreas(nil).UnPack() - t.RtInputs = rcv.RtInputs(nil).UnPack() -} - -func (rcv *SysCfg) UnPack() *SysCfgT { - if rcv == nil { return nil } - t := &SysCfgT{} - rcv.UnPackTo(t) - return t -} - -type SysCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfg(buf []byte, offset flatbuffers.UOffsetT) *SysCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfg(buf []byte, offset flatbuffers.UOffsetT) *SysCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// configuration of the product coordinate systems -func (rcv *SysCfg) Pcs(obj *SysCfgPcsAll) *SysCfgPcsAll { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SysCfgPcsAll) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of the product coordinate systems -/// system function configuration -func (rcv *SysCfg) Function(obj *SysCfgFunction) *SysCfgFunction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SysCfgFunction) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// system function configuration -/// internal system configuration -func (rcv *SysCfg) Internal(obj *SysCfgInternal) *SysCfgInternal { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SysCfgInternal) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// internal system configuration -/// configuration of the safe and work areas -func (rcv *SysCfg) SafeAreas(obj *SysCfgSafeAreaAll) *SysCfgSafeAreaAll { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(SysCfgSafeAreaAll) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of the safe and work areas -/// configuration of the real-time inputs of the kinematics -func (rcv *SysCfg) RtInputs(obj *RTInputsCfg) *RTInputsCfg { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(RTInputsCfg) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of the real-time inputs of the kinematics -func SysCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func SysCfgAddPcs(builder *flatbuffers.Builder, pcs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pcs), 0) -} -func SysCfgAddFunction(builder *flatbuffers.Builder, function flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(function), 0) -} -func SysCfgAddInternal(builder *flatbuffers.Builder, internal flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(internal), 0) -} -func SysCfgAddSafeAreas(builder *flatbuffers.Builder, safeAreas flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(safeAreas), 0) -} -func SysCfgAddRtInputs(builder *flatbuffers.Builder, rtInputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(rtInputs), 0) -} -func SysCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// general system configuration +type SysCfgT struct { + Pcs *SysCfgPcsAllT + Function *SysCfgFunctionT + Internal *SysCfgInternalT + SafeAreas *SysCfgSafeAreaAllT + RtInputs *RTInputsCfgT +} + +func (t *SysCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + pcsOffset := t.Pcs.Pack(builder) + functionOffset := t.Function.Pack(builder) + internalOffset := t.Internal.Pack(builder) + safeAreasOffset := t.SafeAreas.Pack(builder) + rtInputsOffset := t.RtInputs.Pack(builder) + SysCfgStart(builder) + SysCfgAddPcs(builder, pcsOffset) + SysCfgAddFunction(builder, functionOffset) + SysCfgAddInternal(builder, internalOffset) + SysCfgAddSafeAreas(builder, safeAreasOffset) + SysCfgAddRtInputs(builder, rtInputsOffset) + return SysCfgEnd(builder) +} + +func (rcv *SysCfg) UnPackTo(t *SysCfgT) { + t.Pcs = rcv.Pcs(nil).UnPack() + t.Function = rcv.Function(nil).UnPack() + t.Internal = rcv.Internal(nil).UnPack() + t.SafeAreas = rcv.SafeAreas(nil).UnPack() + t.RtInputs = rcv.RtInputs(nil).UnPack() +} + +func (rcv *SysCfg) UnPack() *SysCfgT { + if rcv == nil { return nil } + t := &SysCfgT{} + rcv.UnPackTo(t) + return t +} + +type SysCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfg(buf []byte, offset flatbuffers.UOffsetT) *SysCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfg(buf []byte, offset flatbuffers.UOffsetT) *SysCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// configuration of the product coordinate systems +func (rcv *SysCfg) Pcs(obj *SysCfgPcsAll) *SysCfgPcsAll { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SysCfgPcsAll) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of the product coordinate systems +/// system function configuration +func (rcv *SysCfg) Function(obj *SysCfgFunction) *SysCfgFunction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SysCfgFunction) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// system function configuration +/// internal system configuration +func (rcv *SysCfg) Internal(obj *SysCfgInternal) *SysCfgInternal { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SysCfgInternal) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// internal system configuration +/// configuration of the safe and work areas +func (rcv *SysCfg) SafeAreas(obj *SysCfgSafeAreaAll) *SysCfgSafeAreaAll { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(SysCfgSafeAreaAll) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of the safe and work areas +/// configuration of the real-time inputs of the kinematics +func (rcv *SysCfg) RtInputs(obj *RTInputsCfg) *RTInputsCfg { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(RTInputsCfg) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of the real-time inputs of the kinematics +func SysCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func SysCfgAddPcs(builder *flatbuffers.Builder, pcs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pcs), 0) +} +func SysCfgAddFunction(builder *flatbuffers.Builder, function flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(function), 0) +} +func SysCfgAddInternal(builder *flatbuffers.Builder, internal flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(internal), 0) +} +func SysCfgAddSafeAreas(builder *flatbuffers.Builder, safeAreas flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(safeAreas), 0) +} +func SysCfgAddRtInputs(builder *flatbuffers.Builder, rtInputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(rtInputs), 0) +} +func SysCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgFunction.go b/pkg/fbs/motion/core/fbtypes/SysCfgFunction.go index fd1890b..304b1be 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgFunction.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgFunction.go @@ -1,81 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// system function configuration items -type SysCfgFunctionT struct { - IgnoreAxisProfiles bool -} - -func (t *SysCfgFunctionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SysCfgFunctionStart(builder) - SysCfgFunctionAddIgnoreAxisProfiles(builder, t.IgnoreAxisProfiles) - return SysCfgFunctionEnd(builder) -} - -func (rcv *SysCfgFunction) UnPackTo(t *SysCfgFunctionT) { - t.IgnoreAxisProfiles = rcv.IgnoreAxisProfiles() -} - -func (rcv *SysCfgFunction) UnPack() *SysCfgFunctionT { - if rcv == nil { return nil } - t := &SysCfgFunctionT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgFunction struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgFunction(buf []byte, offset flatbuffers.UOffsetT) *SysCfgFunction { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgFunction{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgFunction(buf []byte, offset flatbuffers.UOffsetT) *SysCfgFunction { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgFunction{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgFunction) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgFunction) Table() flatbuffers.Table { - return rcv._tab -} - -/// ignore the configured axis profiles in BOOTING? -func (rcv *SysCfgFunction) IgnoreAxisProfiles() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// ignore the configured axis profiles in BOOTING? -func (rcv *SysCfgFunction) MutateIgnoreAxisProfiles(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func SysCfgFunctionStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SysCfgFunctionAddIgnoreAxisProfiles(builder *flatbuffers.Builder, ignoreAxisProfiles bool) { - builder.PrependBoolSlot(0, ignoreAxisProfiles, false) -} -func SysCfgFunctionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// system function configuration items +type SysCfgFunctionT struct { + IgnoreAxisProfiles bool +} + +func (t *SysCfgFunctionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SysCfgFunctionStart(builder) + SysCfgFunctionAddIgnoreAxisProfiles(builder, t.IgnoreAxisProfiles) + return SysCfgFunctionEnd(builder) +} + +func (rcv *SysCfgFunction) UnPackTo(t *SysCfgFunctionT) { + t.IgnoreAxisProfiles = rcv.IgnoreAxisProfiles() +} + +func (rcv *SysCfgFunction) UnPack() *SysCfgFunctionT { + if rcv == nil { return nil } + t := &SysCfgFunctionT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgFunction struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgFunction(buf []byte, offset flatbuffers.UOffsetT) *SysCfgFunction { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgFunction{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgFunction(buf []byte, offset flatbuffers.UOffsetT) *SysCfgFunction { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgFunction{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgFunction) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgFunction) Table() flatbuffers.Table { + return rcv._tab +} + +/// ignore the configured axis profiles in BOOTING? +func (rcv *SysCfgFunction) IgnoreAxisProfiles() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// ignore the configured axis profiles in BOOTING? +func (rcv *SysCfgFunction) MutateIgnoreAxisProfiles(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func SysCfgFunctionStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SysCfgFunctionAddIgnoreAxisProfiles(builder *flatbuffers.Builder, ignoreAxisProfiles bool) { + builder.PrependBoolSlot(0, ignoreAxisProfiles, false) +} +func SysCfgFunctionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgInternal.go b/pkg/fbs/motion/core/fbtypes/SysCfgInternal.go index 5b03798..7de1722 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgInternal.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgInternal.go @@ -1,141 +1,141 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// internal system configuration items -type SysCfgInternalT struct { - Save bool - UseIpoIVAJ bool - TimeMeasurement bool - DriveResetTimeout float64 -} - -func (t *SysCfgInternalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SysCfgInternalStart(builder) - SysCfgInternalAddSave(builder, t.Save) - SysCfgInternalAddUseIpoIVAJ(builder, t.UseIpoIVAJ) - SysCfgInternalAddTimeMeasurement(builder, t.TimeMeasurement) - SysCfgInternalAddDriveResetTimeout(builder, t.DriveResetTimeout) - return SysCfgInternalEnd(builder) -} - -func (rcv *SysCfgInternal) UnPackTo(t *SysCfgInternalT) { - t.Save = rcv.Save() - t.UseIpoIVAJ = rcv.UseIpoIVAJ() - t.TimeMeasurement = rcv.TimeMeasurement() - t.DriveResetTimeout = rcv.DriveResetTimeout() -} - -func (rcv *SysCfgInternal) UnPack() *SysCfgInternalT { - if rcv == nil { return nil } - t := &SysCfgInternalT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgInternal struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgInternal(buf []byte, offset flatbuffers.UOffsetT) *SysCfgInternal { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgInternal{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgInternal(buf []byte, offset flatbuffers.UOffsetT) *SysCfgInternal { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgInternal{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgInternal) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgInternal) Table() flatbuffers.Table { - return rcv._tab -} - -/// save the internal system configuration items also, when saving the system config to file? -func (rcv *SysCfgInternal) Save() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// save the internal system configuration items also, when saving the system config to file? -func (rcv *SysCfgInternal) MutateSave(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -/// use the new ipo IVAJ? -func (rcv *SysCfgInternal) UseIpoIVAJ() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// use the new ipo IVAJ? -func (rcv *SysCfgInternal) MutateUseIpoIVAJ(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -/// enable time measurement? -func (rcv *SysCfgInternal) TimeMeasurement() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// enable time measurement? -func (rcv *SysCfgInternal) MutateTimeMeasurement(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -/// Change the timeout for the drive reset -func (rcv *SysCfgInternal) DriveResetTimeout() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 4.0 -} - -/// Change the timeout for the drive reset -func (rcv *SysCfgInternal) MutateDriveResetTimeout(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func SysCfgInternalStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SysCfgInternalAddSave(builder *flatbuffers.Builder, save bool) { - builder.PrependBoolSlot(0, save, false) -} -func SysCfgInternalAddUseIpoIVAJ(builder *flatbuffers.Builder, useIpoIVAJ bool) { - builder.PrependBoolSlot(1, useIpoIVAJ, false) -} -func SysCfgInternalAddTimeMeasurement(builder *flatbuffers.Builder, timeMeasurement bool) { - builder.PrependBoolSlot(2, timeMeasurement, false) -} -func SysCfgInternalAddDriveResetTimeout(builder *flatbuffers.Builder, driveResetTimeout float64) { - builder.PrependFloat64Slot(3, driveResetTimeout, 4.0) -} -func SysCfgInternalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// internal system configuration items +type SysCfgInternalT struct { + Save bool + UseIpoIVAJ bool + TimeMeasurement bool + DriveResetTimeout float64 +} + +func (t *SysCfgInternalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SysCfgInternalStart(builder) + SysCfgInternalAddSave(builder, t.Save) + SysCfgInternalAddUseIpoIVAJ(builder, t.UseIpoIVAJ) + SysCfgInternalAddTimeMeasurement(builder, t.TimeMeasurement) + SysCfgInternalAddDriveResetTimeout(builder, t.DriveResetTimeout) + return SysCfgInternalEnd(builder) +} + +func (rcv *SysCfgInternal) UnPackTo(t *SysCfgInternalT) { + t.Save = rcv.Save() + t.UseIpoIVAJ = rcv.UseIpoIVAJ() + t.TimeMeasurement = rcv.TimeMeasurement() + t.DriveResetTimeout = rcv.DriveResetTimeout() +} + +func (rcv *SysCfgInternal) UnPack() *SysCfgInternalT { + if rcv == nil { return nil } + t := &SysCfgInternalT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgInternal struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgInternal(buf []byte, offset flatbuffers.UOffsetT) *SysCfgInternal { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgInternal{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgInternal(buf []byte, offset flatbuffers.UOffsetT) *SysCfgInternal { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgInternal{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgInternal) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgInternal) Table() flatbuffers.Table { + return rcv._tab +} + +/// save the internal system configuration items also, when saving the system config to file? +func (rcv *SysCfgInternal) Save() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// save the internal system configuration items also, when saving the system config to file? +func (rcv *SysCfgInternal) MutateSave(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// use the new ipo IVAJ? +func (rcv *SysCfgInternal) UseIpoIVAJ() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// use the new ipo IVAJ? +func (rcv *SysCfgInternal) MutateUseIpoIVAJ(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// enable time measurement? +func (rcv *SysCfgInternal) TimeMeasurement() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// enable time measurement? +func (rcv *SysCfgInternal) MutateTimeMeasurement(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +/// Change the timeout for the drive reset +func (rcv *SysCfgInternal) DriveResetTimeout() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 4.0 +} + +/// Change the timeout for the drive reset +func (rcv *SysCfgInternal) MutateDriveResetTimeout(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func SysCfgInternalStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SysCfgInternalAddSave(builder *flatbuffers.Builder, save bool) { + builder.PrependBoolSlot(0, save, false) +} +func SysCfgInternalAddUseIpoIVAJ(builder *flatbuffers.Builder, useIpoIVAJ bool) { + builder.PrependBoolSlot(1, useIpoIVAJ, false) +} +func SysCfgInternalAddTimeMeasurement(builder *flatbuffers.Builder, timeMeasurement bool) { + builder.PrependBoolSlot(2, timeMeasurement, false) +} +func SysCfgInternalAddDriveResetTimeout(builder *flatbuffers.Builder, driveResetTimeout float64) { + builder.PrependFloat64Slot(3, driveResetTimeout, 4.0) +} +func SysCfgInternalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgPcsAll.go b/pkg/fbs/motion/core/fbtypes/SysCfgPcsAll.go index 1a41ec6..b8b96e9 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgPcsAll.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgPcsAll.go @@ -1,161 +1,161 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of the product coordinate system of this kinematics -type SysCfgPcsAllT struct { - Sets []*SysCfgPcsSetT - Groups []*SysCfgPcsGroupT -} - -func (t *SysCfgPcsAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - setsOffset := flatbuffers.UOffsetT(0) - if t.Sets != nil { - setsLength := len(t.Sets) - setsOffsets := make([]flatbuffers.UOffsetT, setsLength) - for j := 0; j < setsLength; j++ { - setsOffsets[j] = t.Sets[j].Pack(builder) - } - SysCfgPcsAllStartSetsVector(builder, setsLength) - for j := setsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(setsOffsets[j]) - } - setsOffset = builder.EndVector(setsLength) - } - groupsOffset := flatbuffers.UOffsetT(0) - if t.Groups != nil { - groupsLength := len(t.Groups) - groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) - for j := 0; j < groupsLength; j++ { - groupsOffsets[j] = t.Groups[j].Pack(builder) - } - SysCfgPcsAllStartGroupsVector(builder, groupsLength) - for j := groupsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(groupsOffsets[j]) - } - groupsOffset = builder.EndVector(groupsLength) - } - SysCfgPcsAllStart(builder) - SysCfgPcsAllAddSets(builder, setsOffset) - SysCfgPcsAllAddGroups(builder, groupsOffset) - return SysCfgPcsAllEnd(builder) -} - -func (rcv *SysCfgPcsAll) UnPackTo(t *SysCfgPcsAllT) { - setsLength := rcv.SetsLength() - t.Sets = make([]*SysCfgPcsSetT, setsLength) - for j := 0; j < setsLength; j++ { - x := SysCfgPcsSet{} - rcv.Sets(&x, j) - t.Sets[j] = x.UnPack() - } - groupsLength := rcv.GroupsLength() - t.Groups = make([]*SysCfgPcsGroupT, groupsLength) - for j := 0; j < groupsLength; j++ { - x := SysCfgPcsGroup{} - rcv.Groups(&x, j) - t.Groups[j] = x.UnPack() - } -} - -func (rcv *SysCfgPcsAll) UnPack() *SysCfgPcsAllT { - if rcv == nil { return nil } - t := &SysCfgPcsAllT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgPcsAll struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgPcsAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgPcsAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgPcsAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgPcsAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgPcsAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgPcsAll) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all configured PCS sets -func (rcv *SysCfgPcsAll) Sets(obj *SysCfgPcsSet, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SysCfgPcsAll) SetsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all configured PCS sets -/// vector of all configured PCS groups -func (rcv *SysCfgPcsAll) Groups(obj *SysCfgPcsGroup, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SysCfgPcsAll) GroupsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all configured PCS groups -func SysCfgPcsAllStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SysCfgPcsAllAddSets(builder *flatbuffers.Builder, sets flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(sets), 0) -} -func SysCfgPcsAllStartSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgPcsAllAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(groups), 0) -} -func SysCfgPcsAllStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgPcsAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of the product coordinate system of this kinematics +type SysCfgPcsAllT struct { + Sets []*SysCfgPcsSetT + Groups []*SysCfgPcsGroupT +} + +func (t *SysCfgPcsAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + setsOffset := flatbuffers.UOffsetT(0) + if t.Sets != nil { + setsLength := len(t.Sets) + setsOffsets := make([]flatbuffers.UOffsetT, setsLength) + for j := 0; j < setsLength; j++ { + setsOffsets[j] = t.Sets[j].Pack(builder) + } + SysCfgPcsAllStartSetsVector(builder, setsLength) + for j := setsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(setsOffsets[j]) + } + setsOffset = builder.EndVector(setsLength) + } + groupsOffset := flatbuffers.UOffsetT(0) + if t.Groups != nil { + groupsLength := len(t.Groups) + groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) + for j := 0; j < groupsLength; j++ { + groupsOffsets[j] = t.Groups[j].Pack(builder) + } + SysCfgPcsAllStartGroupsVector(builder, groupsLength) + for j := groupsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupsOffsets[j]) + } + groupsOffset = builder.EndVector(groupsLength) + } + SysCfgPcsAllStart(builder) + SysCfgPcsAllAddSets(builder, setsOffset) + SysCfgPcsAllAddGroups(builder, groupsOffset) + return SysCfgPcsAllEnd(builder) +} + +func (rcv *SysCfgPcsAll) UnPackTo(t *SysCfgPcsAllT) { + setsLength := rcv.SetsLength() + t.Sets = make([]*SysCfgPcsSetT, setsLength) + for j := 0; j < setsLength; j++ { + x := SysCfgPcsSet{} + rcv.Sets(&x, j) + t.Sets[j] = x.UnPack() + } + groupsLength := rcv.GroupsLength() + t.Groups = make([]*SysCfgPcsGroupT, groupsLength) + for j := 0; j < groupsLength; j++ { + x := SysCfgPcsGroup{} + rcv.Groups(&x, j) + t.Groups[j] = x.UnPack() + } +} + +func (rcv *SysCfgPcsAll) UnPack() *SysCfgPcsAllT { + if rcv == nil { return nil } + t := &SysCfgPcsAllT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgPcsAll struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgPcsAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgPcsAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgPcsAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgPcsAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgPcsAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgPcsAll) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all configured PCS sets +func (rcv *SysCfgPcsAll) Sets(obj *SysCfgPcsSet, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SysCfgPcsAll) SetsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all configured PCS sets +/// vector of all configured PCS groups +func (rcv *SysCfgPcsAll) Groups(obj *SysCfgPcsGroup, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SysCfgPcsAll) GroupsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all configured PCS groups +func SysCfgPcsAllStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SysCfgPcsAllAddSets(builder *flatbuffers.Builder, sets flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(sets), 0) +} +func SysCfgPcsAllStartSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgPcsAllAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(groups), 0) +} +func SysCfgPcsAllStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgPcsAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgPcsGroup.go b/pkg/fbs/motion/core/fbtypes/SysCfgPcsGroup.go index 7033b1e..0f6e363 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgPcsGroup.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgPcsGroup.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single group of sets for a product coordinate system -type SysCfgPcsGroupT struct { - GroupName string - Sets []string -} - -func (t *SysCfgPcsGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - groupNameOffset := builder.CreateString(t.GroupName) - setsOffset := flatbuffers.UOffsetT(0) - if t.Sets != nil { - setsLength := len(t.Sets) - setsOffsets := make([]flatbuffers.UOffsetT, setsLength) - for j := 0; j < setsLength; j++ { - setsOffsets[j] = builder.CreateString(t.Sets[j]) - } - SysCfgPcsGroupStartSetsVector(builder, setsLength) - for j := setsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(setsOffsets[j]) - } - setsOffset = builder.EndVector(setsLength) - } - SysCfgPcsGroupStart(builder) - SysCfgPcsGroupAddGroupName(builder, groupNameOffset) - SysCfgPcsGroupAddSets(builder, setsOffset) - return SysCfgPcsGroupEnd(builder) -} - -func (rcv *SysCfgPcsGroup) UnPackTo(t *SysCfgPcsGroupT) { - t.GroupName = string(rcv.GroupName()) - setsLength := rcv.SetsLength() - t.Sets = make([]string, setsLength) - for j := 0; j < setsLength; j++ { - t.Sets[j] = string(rcv.Sets(j)) - } -} - -func (rcv *SysCfgPcsGroup) UnPack() *SysCfgPcsGroupT { - if rcv == nil { return nil } - t := &SysCfgPcsGroupT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgPcsGroup struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgPcsGroup(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsGroup { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgPcsGroup{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgPcsGroup(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsGroup { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgPcsGroup{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgPcsGroup) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgPcsGroup) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the group (required for load/save) -func (rcv *SysCfgPcsGroup) GroupName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the group (required for load/save) -/// vector of PCS sets in this group (sequence matters!) -func (rcv *SysCfgPcsGroup) Sets(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SysCfgPcsGroup) SetsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of PCS sets in this group (sequence matters!) -func SysCfgPcsGroupStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func SysCfgPcsGroupAddGroupName(builder *flatbuffers.Builder, groupName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(groupName), 0) -} -func SysCfgPcsGroupAddSets(builder *flatbuffers.Builder, sets flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(sets), 0) -} -func SysCfgPcsGroupStartSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgPcsGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single group of sets for a product coordinate system +type SysCfgPcsGroupT struct { + GroupName string + Sets []string +} + +func (t *SysCfgPcsGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + groupNameOffset := builder.CreateString(t.GroupName) + setsOffset := flatbuffers.UOffsetT(0) + if t.Sets != nil { + setsLength := len(t.Sets) + setsOffsets := make([]flatbuffers.UOffsetT, setsLength) + for j := 0; j < setsLength; j++ { + setsOffsets[j] = builder.CreateString(t.Sets[j]) + } + SysCfgPcsGroupStartSetsVector(builder, setsLength) + for j := setsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(setsOffsets[j]) + } + setsOffset = builder.EndVector(setsLength) + } + SysCfgPcsGroupStart(builder) + SysCfgPcsGroupAddGroupName(builder, groupNameOffset) + SysCfgPcsGroupAddSets(builder, setsOffset) + return SysCfgPcsGroupEnd(builder) +} + +func (rcv *SysCfgPcsGroup) UnPackTo(t *SysCfgPcsGroupT) { + t.GroupName = string(rcv.GroupName()) + setsLength := rcv.SetsLength() + t.Sets = make([]string, setsLength) + for j := 0; j < setsLength; j++ { + t.Sets[j] = string(rcv.Sets(j)) + } +} + +func (rcv *SysCfgPcsGroup) UnPack() *SysCfgPcsGroupT { + if rcv == nil { return nil } + t := &SysCfgPcsGroupT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgPcsGroup struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgPcsGroup(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsGroup { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgPcsGroup{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgPcsGroup(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsGroup { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgPcsGroup{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgPcsGroup) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgPcsGroup) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the group (required for load/save) +func (rcv *SysCfgPcsGroup) GroupName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the group (required for load/save) +/// vector of PCS sets in this group (sequence matters!) +func (rcv *SysCfgPcsGroup) Sets(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SysCfgPcsGroup) SetsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of PCS sets in this group (sequence matters!) +func SysCfgPcsGroupStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func SysCfgPcsGroupAddGroupName(builder *flatbuffers.Builder, groupName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(groupName), 0) +} +func SysCfgPcsGroupAddSets(builder *flatbuffers.Builder, sets flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(sets), 0) +} +func SysCfgPcsGroupStartSetsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgPcsGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgPcsSet.go b/pkg/fbs/motion/core/fbtypes/SysCfgPcsSet.go index ae4509e..dc6d6a7 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgPcsSet.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgPcsSet.go @@ -1,383 +1,383 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single set for the product coordiate system of a kinematics -type SysCfgPcsSetT struct { - SetName string - OffsetXYZ []float64 - Orientation []float64 - OffsetAux []float64 - RelativeToPCS bool - OffsetXYZUnits []string - OrientationUnits []string - OffsetAuxUnits []string -} - -func (t *SysCfgPcsSetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - setNameOffset := builder.CreateString(t.SetName) - offsetXYZOffset := flatbuffers.UOffsetT(0) - if t.OffsetXYZ != nil { - offsetXYZLength := len(t.OffsetXYZ) - SysCfgPcsSetStartOffsetXYZVector(builder, offsetXYZLength) - for j := offsetXYZLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.OffsetXYZ[j]) - } - offsetXYZOffset = builder.EndVector(offsetXYZLength) - } - orientationOffset := flatbuffers.UOffsetT(0) - if t.Orientation != nil { - orientationLength := len(t.Orientation) - SysCfgPcsSetStartOrientationVector(builder, orientationLength) - for j := orientationLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Orientation[j]) - } - orientationOffset = builder.EndVector(orientationLength) - } - offsetAuxOffset := flatbuffers.UOffsetT(0) - if t.OffsetAux != nil { - offsetAuxLength := len(t.OffsetAux) - SysCfgPcsSetStartOffsetAuxVector(builder, offsetAuxLength) - for j := offsetAuxLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.OffsetAux[j]) - } - offsetAuxOffset = builder.EndVector(offsetAuxLength) - } - offsetXYZUnitsOffset := flatbuffers.UOffsetT(0) - if t.OffsetXYZUnits != nil { - offsetXYZUnitsLength := len(t.OffsetXYZUnits) - offsetXYZUnitsOffsets := make([]flatbuffers.UOffsetT, offsetXYZUnitsLength) - for j := 0; j < offsetXYZUnitsLength; j++ { - offsetXYZUnitsOffsets[j] = builder.CreateString(t.OffsetXYZUnits[j]) - } - SysCfgPcsSetStartOffsetXYZUnitsVector(builder, offsetXYZUnitsLength) - for j := offsetXYZUnitsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(offsetXYZUnitsOffsets[j]) - } - offsetXYZUnitsOffset = builder.EndVector(offsetXYZUnitsLength) - } - orientationUnitsOffset := flatbuffers.UOffsetT(0) - if t.OrientationUnits != nil { - orientationUnitsLength := len(t.OrientationUnits) - orientationUnitsOffsets := make([]flatbuffers.UOffsetT, orientationUnitsLength) - for j := 0; j < orientationUnitsLength; j++ { - orientationUnitsOffsets[j] = builder.CreateString(t.OrientationUnits[j]) - } - SysCfgPcsSetStartOrientationUnitsVector(builder, orientationUnitsLength) - for j := orientationUnitsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(orientationUnitsOffsets[j]) - } - orientationUnitsOffset = builder.EndVector(orientationUnitsLength) - } - offsetAuxUnitsOffset := flatbuffers.UOffsetT(0) - if t.OffsetAuxUnits != nil { - offsetAuxUnitsLength := len(t.OffsetAuxUnits) - offsetAuxUnitsOffsets := make([]flatbuffers.UOffsetT, offsetAuxUnitsLength) - for j := 0; j < offsetAuxUnitsLength; j++ { - offsetAuxUnitsOffsets[j] = builder.CreateString(t.OffsetAuxUnits[j]) - } - SysCfgPcsSetStartOffsetAuxUnitsVector(builder, offsetAuxUnitsLength) - for j := offsetAuxUnitsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(offsetAuxUnitsOffsets[j]) - } - offsetAuxUnitsOffset = builder.EndVector(offsetAuxUnitsLength) - } - SysCfgPcsSetStart(builder) - SysCfgPcsSetAddSetName(builder, setNameOffset) - SysCfgPcsSetAddOffsetXYZ(builder, offsetXYZOffset) - SysCfgPcsSetAddOrientation(builder, orientationOffset) - SysCfgPcsSetAddOffsetAux(builder, offsetAuxOffset) - SysCfgPcsSetAddRelativeToPCS(builder, t.RelativeToPCS) - SysCfgPcsSetAddOffsetXYZUnits(builder, offsetXYZUnitsOffset) - SysCfgPcsSetAddOrientationUnits(builder, orientationUnitsOffset) - SysCfgPcsSetAddOffsetAuxUnits(builder, offsetAuxUnitsOffset) - return SysCfgPcsSetEnd(builder) -} - -func (rcv *SysCfgPcsSet) UnPackTo(t *SysCfgPcsSetT) { - t.SetName = string(rcv.SetName()) - offsetXYZLength := rcv.OffsetXYZLength() - t.OffsetXYZ = make([]float64, offsetXYZLength) - for j := 0; j < offsetXYZLength; j++ { - t.OffsetXYZ[j] = rcv.OffsetXYZ(j) - } - orientationLength := rcv.OrientationLength() - t.Orientation = make([]float64, orientationLength) - for j := 0; j < orientationLength; j++ { - t.Orientation[j] = rcv.Orientation(j) - } - offsetAuxLength := rcv.OffsetAuxLength() - t.OffsetAux = make([]float64, offsetAuxLength) - for j := 0; j < offsetAuxLength; j++ { - t.OffsetAux[j] = rcv.OffsetAux(j) - } - t.RelativeToPCS = rcv.RelativeToPCS() - offsetXYZUnitsLength := rcv.OffsetXYZUnitsLength() - t.OffsetXYZUnits = make([]string, offsetXYZUnitsLength) - for j := 0; j < offsetXYZUnitsLength; j++ { - t.OffsetXYZUnits[j] = string(rcv.OffsetXYZUnits(j)) - } - orientationUnitsLength := rcv.OrientationUnitsLength() - t.OrientationUnits = make([]string, orientationUnitsLength) - for j := 0; j < orientationUnitsLength; j++ { - t.OrientationUnits[j] = string(rcv.OrientationUnits(j)) - } - offsetAuxUnitsLength := rcv.OffsetAuxUnitsLength() - t.OffsetAuxUnits = make([]string, offsetAuxUnitsLength) - for j := 0; j < offsetAuxUnitsLength; j++ { - t.OffsetAuxUnits[j] = string(rcv.OffsetAuxUnits(j)) - } -} - -func (rcv *SysCfgPcsSet) UnPack() *SysCfgPcsSetT { - if rcv == nil { return nil } - t := &SysCfgPcsSetT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgPcsSet struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgPcsSet(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsSet { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgPcsSet{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgPcsSet(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsSet { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgPcsSet{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgPcsSet) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgPcsSet) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the set (required for load/save) -func (rcv *SysCfgPcsSet) SetName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the set (required for load/save) -/// XYZ offsets (must be exactly three values) -func (rcv *SysCfgPcsSet) OffsetXYZ(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SysCfgPcsSet) OffsetXYZLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// XYZ offsets (must be exactly three values) -func (rcv *SysCfgPcsSet) MutateOffsetXYZ(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// rotation offsets as Euler angles ZY'Z'' (must be exactly three values) -func (rcv *SysCfgPcsSet) Orientation(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SysCfgPcsSet) OrientationLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// rotation offsets as Euler angles ZY'Z'' (must be exactly three values) -func (rcv *SysCfgPcsSet) MutateOrientation(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// offsets for auxilary axes (must be exactly 10 values) -func (rcv *SysCfgPcsSet) OffsetAux(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *SysCfgPcsSet) OffsetAuxLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// offsets for auxilary axes (must be exactly 10 values) -func (rcv *SysCfgPcsSet) MutateOffsetAux(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -/// is this set relative to an other pcs set? -func (rcv *SysCfgPcsSet) RelativeToPCS() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is this set relative to an other pcs set? -func (rcv *SysCfgPcsSet) MutateRelativeToPCS(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -/// Units for XYZ offsets (must be exactly three values) -func (rcv *SysCfgPcsSet) OffsetXYZUnits(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SysCfgPcsSet) OffsetXYZUnitsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Units for XYZ offsets (must be exactly three values) -/// Units for rotation offsets (must be exactly three values) -func (rcv *SysCfgPcsSet) OrientationUnits(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SysCfgPcsSet) OrientationUnitsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Units for rotation offsets (must be exactly three values) -/// Units for offsets for auxilary axes (must be exactly 10 values) -func (rcv *SysCfgPcsSet) OffsetAuxUnits(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *SysCfgPcsSet) OffsetAuxUnitsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// Units for offsets for auxilary axes (must be exactly 10 values) -func SysCfgPcsSetStart(builder *flatbuffers.Builder) { - builder.StartObject(8) -} -func SysCfgPcsSetAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(setName), 0) -} -func SysCfgPcsSetAddOffsetXYZ(builder *flatbuffers.Builder, offsetXYZ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(offsetXYZ), 0) -} -func SysCfgPcsSetStartOffsetXYZVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SysCfgPcsSetAddOrientation(builder *flatbuffers.Builder, orientation flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(orientation), 0) -} -func SysCfgPcsSetStartOrientationVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SysCfgPcsSetAddOffsetAux(builder *flatbuffers.Builder, offsetAux flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(offsetAux), 0) -} -func SysCfgPcsSetStartOffsetAuxVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func SysCfgPcsSetAddRelativeToPCS(builder *flatbuffers.Builder, relativeToPCS bool) { - builder.PrependBoolSlot(4, relativeToPCS, false) -} -func SysCfgPcsSetAddOffsetXYZUnits(builder *flatbuffers.Builder, offsetXYZUnits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(offsetXYZUnits), 0) -} -func SysCfgPcsSetStartOffsetXYZUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgPcsSetAddOrientationUnits(builder *flatbuffers.Builder, orientationUnits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(orientationUnits), 0) -} -func SysCfgPcsSetStartOrientationUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgPcsSetAddOffsetAuxUnits(builder *flatbuffers.Builder, offsetAuxUnits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(offsetAuxUnits), 0) -} -func SysCfgPcsSetStartOffsetAuxUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgPcsSetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single set for the product coordiate system of a kinematics +type SysCfgPcsSetT struct { + SetName string + OffsetXYZ []float64 + Orientation []float64 + OffsetAux []float64 + RelativeToPCS bool + OffsetXYZUnits []string + OrientationUnits []string + OffsetAuxUnits []string +} + +func (t *SysCfgPcsSetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + setNameOffset := builder.CreateString(t.SetName) + offsetXYZOffset := flatbuffers.UOffsetT(0) + if t.OffsetXYZ != nil { + offsetXYZLength := len(t.OffsetXYZ) + SysCfgPcsSetStartOffsetXYZVector(builder, offsetXYZLength) + for j := offsetXYZLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.OffsetXYZ[j]) + } + offsetXYZOffset = builder.EndVector(offsetXYZLength) + } + orientationOffset := flatbuffers.UOffsetT(0) + if t.Orientation != nil { + orientationLength := len(t.Orientation) + SysCfgPcsSetStartOrientationVector(builder, orientationLength) + for j := orientationLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Orientation[j]) + } + orientationOffset = builder.EndVector(orientationLength) + } + offsetAuxOffset := flatbuffers.UOffsetT(0) + if t.OffsetAux != nil { + offsetAuxLength := len(t.OffsetAux) + SysCfgPcsSetStartOffsetAuxVector(builder, offsetAuxLength) + for j := offsetAuxLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.OffsetAux[j]) + } + offsetAuxOffset = builder.EndVector(offsetAuxLength) + } + offsetXYZUnitsOffset := flatbuffers.UOffsetT(0) + if t.OffsetXYZUnits != nil { + offsetXYZUnitsLength := len(t.OffsetXYZUnits) + offsetXYZUnitsOffsets := make([]flatbuffers.UOffsetT, offsetXYZUnitsLength) + for j := 0; j < offsetXYZUnitsLength; j++ { + offsetXYZUnitsOffsets[j] = builder.CreateString(t.OffsetXYZUnits[j]) + } + SysCfgPcsSetStartOffsetXYZUnitsVector(builder, offsetXYZUnitsLength) + for j := offsetXYZUnitsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(offsetXYZUnitsOffsets[j]) + } + offsetXYZUnitsOffset = builder.EndVector(offsetXYZUnitsLength) + } + orientationUnitsOffset := flatbuffers.UOffsetT(0) + if t.OrientationUnits != nil { + orientationUnitsLength := len(t.OrientationUnits) + orientationUnitsOffsets := make([]flatbuffers.UOffsetT, orientationUnitsLength) + for j := 0; j < orientationUnitsLength; j++ { + orientationUnitsOffsets[j] = builder.CreateString(t.OrientationUnits[j]) + } + SysCfgPcsSetStartOrientationUnitsVector(builder, orientationUnitsLength) + for j := orientationUnitsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(orientationUnitsOffsets[j]) + } + orientationUnitsOffset = builder.EndVector(orientationUnitsLength) + } + offsetAuxUnitsOffset := flatbuffers.UOffsetT(0) + if t.OffsetAuxUnits != nil { + offsetAuxUnitsLength := len(t.OffsetAuxUnits) + offsetAuxUnitsOffsets := make([]flatbuffers.UOffsetT, offsetAuxUnitsLength) + for j := 0; j < offsetAuxUnitsLength; j++ { + offsetAuxUnitsOffsets[j] = builder.CreateString(t.OffsetAuxUnits[j]) + } + SysCfgPcsSetStartOffsetAuxUnitsVector(builder, offsetAuxUnitsLength) + for j := offsetAuxUnitsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(offsetAuxUnitsOffsets[j]) + } + offsetAuxUnitsOffset = builder.EndVector(offsetAuxUnitsLength) + } + SysCfgPcsSetStart(builder) + SysCfgPcsSetAddSetName(builder, setNameOffset) + SysCfgPcsSetAddOffsetXYZ(builder, offsetXYZOffset) + SysCfgPcsSetAddOrientation(builder, orientationOffset) + SysCfgPcsSetAddOffsetAux(builder, offsetAuxOffset) + SysCfgPcsSetAddRelativeToPCS(builder, t.RelativeToPCS) + SysCfgPcsSetAddOffsetXYZUnits(builder, offsetXYZUnitsOffset) + SysCfgPcsSetAddOrientationUnits(builder, orientationUnitsOffset) + SysCfgPcsSetAddOffsetAuxUnits(builder, offsetAuxUnitsOffset) + return SysCfgPcsSetEnd(builder) +} + +func (rcv *SysCfgPcsSet) UnPackTo(t *SysCfgPcsSetT) { + t.SetName = string(rcv.SetName()) + offsetXYZLength := rcv.OffsetXYZLength() + t.OffsetXYZ = make([]float64, offsetXYZLength) + for j := 0; j < offsetXYZLength; j++ { + t.OffsetXYZ[j] = rcv.OffsetXYZ(j) + } + orientationLength := rcv.OrientationLength() + t.Orientation = make([]float64, orientationLength) + for j := 0; j < orientationLength; j++ { + t.Orientation[j] = rcv.Orientation(j) + } + offsetAuxLength := rcv.OffsetAuxLength() + t.OffsetAux = make([]float64, offsetAuxLength) + for j := 0; j < offsetAuxLength; j++ { + t.OffsetAux[j] = rcv.OffsetAux(j) + } + t.RelativeToPCS = rcv.RelativeToPCS() + offsetXYZUnitsLength := rcv.OffsetXYZUnitsLength() + t.OffsetXYZUnits = make([]string, offsetXYZUnitsLength) + for j := 0; j < offsetXYZUnitsLength; j++ { + t.OffsetXYZUnits[j] = string(rcv.OffsetXYZUnits(j)) + } + orientationUnitsLength := rcv.OrientationUnitsLength() + t.OrientationUnits = make([]string, orientationUnitsLength) + for j := 0; j < orientationUnitsLength; j++ { + t.OrientationUnits[j] = string(rcv.OrientationUnits(j)) + } + offsetAuxUnitsLength := rcv.OffsetAuxUnitsLength() + t.OffsetAuxUnits = make([]string, offsetAuxUnitsLength) + for j := 0; j < offsetAuxUnitsLength; j++ { + t.OffsetAuxUnits[j] = string(rcv.OffsetAuxUnits(j)) + } +} + +func (rcv *SysCfgPcsSet) UnPack() *SysCfgPcsSetT { + if rcv == nil { return nil } + t := &SysCfgPcsSetT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgPcsSet struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgPcsSet(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsSet { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgPcsSet{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgPcsSet(buf []byte, offset flatbuffers.UOffsetT) *SysCfgPcsSet { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgPcsSet{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgPcsSet) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgPcsSet) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the set (required for load/save) +func (rcv *SysCfgPcsSet) SetName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the set (required for load/save) +/// XYZ offsets (must be exactly three values) +func (rcv *SysCfgPcsSet) OffsetXYZ(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SysCfgPcsSet) OffsetXYZLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// XYZ offsets (must be exactly three values) +func (rcv *SysCfgPcsSet) MutateOffsetXYZ(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// rotation offsets as Euler angles ZY'Z'' (must be exactly three values) +func (rcv *SysCfgPcsSet) Orientation(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SysCfgPcsSet) OrientationLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// rotation offsets as Euler angles ZY'Z'' (must be exactly three values) +func (rcv *SysCfgPcsSet) MutateOrientation(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// offsets for auxilary axes (must be exactly 10 values) +func (rcv *SysCfgPcsSet) OffsetAux(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SysCfgPcsSet) OffsetAuxLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// offsets for auxilary axes (must be exactly 10 values) +func (rcv *SysCfgPcsSet) MutateOffsetAux(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// is this set relative to an other pcs set? +func (rcv *SysCfgPcsSet) RelativeToPCS() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is this set relative to an other pcs set? +func (rcv *SysCfgPcsSet) MutateRelativeToPCS(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +/// Units for XYZ offsets (must be exactly three values) +func (rcv *SysCfgPcsSet) OffsetXYZUnits(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SysCfgPcsSet) OffsetXYZUnitsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Units for XYZ offsets (must be exactly three values) +/// Units for rotation offsets (must be exactly three values) +func (rcv *SysCfgPcsSet) OrientationUnits(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SysCfgPcsSet) OrientationUnitsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Units for rotation offsets (must be exactly three values) +/// Units for offsets for auxilary axes (must be exactly 10 values) +func (rcv *SysCfgPcsSet) OffsetAuxUnits(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *SysCfgPcsSet) OffsetAuxUnitsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// Units for offsets for auxilary axes (must be exactly 10 values) +func SysCfgPcsSetStart(builder *flatbuffers.Builder) { + builder.StartObject(8) +} +func SysCfgPcsSetAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(setName), 0) +} +func SysCfgPcsSetAddOffsetXYZ(builder *flatbuffers.Builder, offsetXYZ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(offsetXYZ), 0) +} +func SysCfgPcsSetStartOffsetXYZVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SysCfgPcsSetAddOrientation(builder *flatbuffers.Builder, orientation flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(orientation), 0) +} +func SysCfgPcsSetStartOrientationVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SysCfgPcsSetAddOffsetAux(builder *flatbuffers.Builder, offsetAux flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(offsetAux), 0) +} +func SysCfgPcsSetStartOffsetAuxVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SysCfgPcsSetAddRelativeToPCS(builder *flatbuffers.Builder, relativeToPCS bool) { + builder.PrependBoolSlot(4, relativeToPCS, false) +} +func SysCfgPcsSetAddOffsetXYZUnits(builder *flatbuffers.Builder, offsetXYZUnits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(offsetXYZUnits), 0) +} +func SysCfgPcsSetStartOffsetXYZUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgPcsSetAddOrientationUnits(builder *flatbuffers.Builder, orientationUnits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(orientationUnits), 0) +} +func SysCfgPcsSetStartOrientationUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgPcsSetAddOffsetAuxUnits(builder *flatbuffers.Builder, offsetAuxUnits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(7, flatbuffers.UOffsetT(offsetAuxUnits), 0) +} +func SysCfgPcsSetStartOffsetAuxUnitsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgPcsSetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgSafeArea.go b/pkg/fbs/motion/core/fbtypes/SysCfgSafeArea.go index e1cb3d9..add6d6b 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgSafeArea.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgSafeArea.go @@ -1,165 +1,165 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single safe area or work area -type SysCfgSafeAreaT struct { - Name string - CoordSystem string - Type SafeAreaType - Box []*SysCfgSafeAreaBoxT -} - -func (t *SysCfgSafeAreaT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - coordSystemOffset := builder.CreateString(t.CoordSystem) - boxOffset := flatbuffers.UOffsetT(0) - if t.Box != nil { - boxLength := len(t.Box) - boxOffsets := make([]flatbuffers.UOffsetT, boxLength) - for j := 0; j < boxLength; j++ { - boxOffsets[j] = t.Box[j].Pack(builder) - } - SysCfgSafeAreaStartBoxVector(builder, boxLength) - for j := boxLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(boxOffsets[j]) - } - boxOffset = builder.EndVector(boxLength) - } - SysCfgSafeAreaStart(builder) - SysCfgSafeAreaAddName(builder, nameOffset) - SysCfgSafeAreaAddCoordSystem(builder, coordSystemOffset) - SysCfgSafeAreaAddType(builder, t.Type) - SysCfgSafeAreaAddBox(builder, boxOffset) - return SysCfgSafeAreaEnd(builder) -} - -func (rcv *SysCfgSafeArea) UnPackTo(t *SysCfgSafeAreaT) { - t.Name = string(rcv.Name()) - t.CoordSystem = string(rcv.CoordSystem()) - t.Type = rcv.Type() - boxLength := rcv.BoxLength() - t.Box = make([]*SysCfgSafeAreaBoxT, boxLength) - for j := 0; j < boxLength; j++ { - x := SysCfgSafeAreaBox{} - rcv.Box(&x, j) - t.Box[j] = x.UnPack() - } -} - -func (rcv *SysCfgSafeArea) UnPack() *SysCfgSafeAreaT { - if rcv == nil { return nil } - t := &SysCfgSafeAreaT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgSafeArea struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgSafeArea(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeArea { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgSafeArea{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgSafeArea(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeArea { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgSafeArea{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgSafeArea) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgSafeArea) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the safe area (filled when reading; optional for writing [content is always ignored]) -func (rcv *SysCfgSafeArea) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the safe area (filled when reading; optional for writing [content is always ignored]) -/// coordinate system of the safe area (default is "MCS") -func (rcv *SysCfgSafeArea) CoordSystem() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// coordinate system of the safe area (default is "MCS") -/// type of the safe area (default is "safe area") -func (rcv *SysCfgSafeArea) Type() SafeAreaType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return SafeAreaType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// type of the safe area (default is "safe area") -func (rcv *SysCfgSafeArea) MutateType(n SafeAreaType) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -/// box data, that defines the borders of the safe area; should be exactly 16 (for ACS) or 3 for (MCS, WCS and PCS) -func (rcv *SysCfgSafeArea) Box(obj *SysCfgSafeAreaBox, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SysCfgSafeArea) BoxLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// box data, that defines the borders of the safe area; should be exactly 16 (for ACS) or 3 for (MCS, WCS and PCS) -func SysCfgSafeAreaStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SysCfgSafeAreaAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func SysCfgSafeAreaAddCoordSystem(builder *flatbuffers.Builder, coordSystem flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSystem), 0) -} -func SysCfgSafeAreaAddType(builder *flatbuffers.Builder, type_ SafeAreaType) { - builder.PrependInt8Slot(2, int8(type_), 0) -} -func SysCfgSafeAreaAddBox(builder *flatbuffers.Builder, box flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(box), 0) -} -func SysCfgSafeAreaStartBoxVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgSafeAreaEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single safe area or work area +type SysCfgSafeAreaT struct { + Name string + CoordSystem string + Type SafeAreaType + Box []*SysCfgSafeAreaBoxT +} + +func (t *SysCfgSafeAreaT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + coordSystemOffset := builder.CreateString(t.CoordSystem) + boxOffset := flatbuffers.UOffsetT(0) + if t.Box != nil { + boxLength := len(t.Box) + boxOffsets := make([]flatbuffers.UOffsetT, boxLength) + for j := 0; j < boxLength; j++ { + boxOffsets[j] = t.Box[j].Pack(builder) + } + SysCfgSafeAreaStartBoxVector(builder, boxLength) + for j := boxLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(boxOffsets[j]) + } + boxOffset = builder.EndVector(boxLength) + } + SysCfgSafeAreaStart(builder) + SysCfgSafeAreaAddName(builder, nameOffset) + SysCfgSafeAreaAddCoordSystem(builder, coordSystemOffset) + SysCfgSafeAreaAddType(builder, t.Type) + SysCfgSafeAreaAddBox(builder, boxOffset) + return SysCfgSafeAreaEnd(builder) +} + +func (rcv *SysCfgSafeArea) UnPackTo(t *SysCfgSafeAreaT) { + t.Name = string(rcv.Name()) + t.CoordSystem = string(rcv.CoordSystem()) + t.Type = rcv.Type() + boxLength := rcv.BoxLength() + t.Box = make([]*SysCfgSafeAreaBoxT, boxLength) + for j := 0; j < boxLength; j++ { + x := SysCfgSafeAreaBox{} + rcv.Box(&x, j) + t.Box[j] = x.UnPack() + } +} + +func (rcv *SysCfgSafeArea) UnPack() *SysCfgSafeAreaT { + if rcv == nil { return nil } + t := &SysCfgSafeAreaT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgSafeArea struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgSafeArea(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeArea { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgSafeArea{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgSafeArea(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeArea { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgSafeArea{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgSafeArea) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgSafeArea) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the safe area (filled when reading; optional for writing [content is always ignored]) +func (rcv *SysCfgSafeArea) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the safe area (filled when reading; optional for writing [content is always ignored]) +/// coordinate system of the safe area (default is "MCS") +func (rcv *SysCfgSafeArea) CoordSystem() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// coordinate system of the safe area (default is "MCS") +/// type of the safe area (default is "safe area") +func (rcv *SysCfgSafeArea) Type() SafeAreaType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return SafeAreaType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// type of the safe area (default is "safe area") +func (rcv *SysCfgSafeArea) MutateType(n SafeAreaType) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// box data, that defines the borders of the safe area; should be exactly 16 (for ACS) or 3 for (MCS, WCS and PCS) +func (rcv *SysCfgSafeArea) Box(obj *SysCfgSafeAreaBox, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SysCfgSafeArea) BoxLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// box data, that defines the borders of the safe area; should be exactly 16 (for ACS) or 3 for (MCS, WCS and PCS) +func SysCfgSafeAreaStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SysCfgSafeAreaAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func SysCfgSafeAreaAddCoordSystem(builder *flatbuffers.Builder, coordSystem flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSystem), 0) +} +func SysCfgSafeAreaAddType(builder *flatbuffers.Builder, type_ SafeAreaType) { + builder.PrependInt8Slot(2, int8(type_), 0) +} +func SysCfgSafeAreaAddBox(builder *flatbuffers.Builder, box flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(box), 0) +} +func SysCfgSafeAreaStartBoxVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgSafeAreaEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaAll.go b/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaAll.go index 6620b46..b5efefc 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaAll.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaAll.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of all safe areas and work areas for the whole motion system -type SysCfgSafeAreaAllT struct { - SafeAreas []*SysCfgSafeAreaT -} - -func (t *SysCfgSafeAreaAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - safeAreasOffset := flatbuffers.UOffsetT(0) - if t.SafeAreas != nil { - safeAreasLength := len(t.SafeAreas) - safeAreasOffsets := make([]flatbuffers.UOffsetT, safeAreasLength) - for j := 0; j < safeAreasLength; j++ { - safeAreasOffsets[j] = t.SafeAreas[j].Pack(builder) - } - SysCfgSafeAreaAllStartSafeAreasVector(builder, safeAreasLength) - for j := safeAreasLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(safeAreasOffsets[j]) - } - safeAreasOffset = builder.EndVector(safeAreasLength) - } - SysCfgSafeAreaAllStart(builder) - SysCfgSafeAreaAllAddSafeAreas(builder, safeAreasOffset) - return SysCfgSafeAreaAllEnd(builder) -} - -func (rcv *SysCfgSafeAreaAll) UnPackTo(t *SysCfgSafeAreaAllT) { - safeAreasLength := rcv.SafeAreasLength() - t.SafeAreas = make([]*SysCfgSafeAreaT, safeAreasLength) - for j := 0; j < safeAreasLength; j++ { - x := SysCfgSafeArea{} - rcv.SafeAreas(&x, j) - t.SafeAreas[j] = x.UnPack() - } -} - -func (rcv *SysCfgSafeAreaAll) UnPack() *SysCfgSafeAreaAllT { - if rcv == nil { return nil } - t := &SysCfgSafeAreaAllT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgSafeAreaAll struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgSafeAreaAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgSafeAreaAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgSafeAreaAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgSafeAreaAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgSafeAreaAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgSafeAreaAll) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all configured safe areas -func (rcv *SysCfgSafeAreaAll) SafeAreas(obj *SysCfgSafeArea, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *SysCfgSafeAreaAll) SafeAreasLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all configured safe areas -func SysCfgSafeAreaAllStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SysCfgSafeAreaAllAddSafeAreas(builder *flatbuffers.Builder, safeAreas flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(safeAreas), 0) -} -func SysCfgSafeAreaAllStartSafeAreasVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func SysCfgSafeAreaAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of all safe areas and work areas for the whole motion system +type SysCfgSafeAreaAllT struct { + SafeAreas []*SysCfgSafeAreaT +} + +func (t *SysCfgSafeAreaAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + safeAreasOffset := flatbuffers.UOffsetT(0) + if t.SafeAreas != nil { + safeAreasLength := len(t.SafeAreas) + safeAreasOffsets := make([]flatbuffers.UOffsetT, safeAreasLength) + for j := 0; j < safeAreasLength; j++ { + safeAreasOffsets[j] = t.SafeAreas[j].Pack(builder) + } + SysCfgSafeAreaAllStartSafeAreasVector(builder, safeAreasLength) + for j := safeAreasLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(safeAreasOffsets[j]) + } + safeAreasOffset = builder.EndVector(safeAreasLength) + } + SysCfgSafeAreaAllStart(builder) + SysCfgSafeAreaAllAddSafeAreas(builder, safeAreasOffset) + return SysCfgSafeAreaAllEnd(builder) +} + +func (rcv *SysCfgSafeAreaAll) UnPackTo(t *SysCfgSafeAreaAllT) { + safeAreasLength := rcv.SafeAreasLength() + t.SafeAreas = make([]*SysCfgSafeAreaT, safeAreasLength) + for j := 0; j < safeAreasLength; j++ { + x := SysCfgSafeArea{} + rcv.SafeAreas(&x, j) + t.SafeAreas[j] = x.UnPack() + } +} + +func (rcv *SysCfgSafeAreaAll) UnPack() *SysCfgSafeAreaAllT { + if rcv == nil { return nil } + t := &SysCfgSafeAreaAllT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgSafeAreaAll struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgSafeAreaAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgSafeAreaAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgSafeAreaAll(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgSafeAreaAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgSafeAreaAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgSafeAreaAll) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all configured safe areas +func (rcv *SysCfgSafeAreaAll) SafeAreas(obj *SysCfgSafeArea, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SysCfgSafeAreaAll) SafeAreasLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all configured safe areas +func SysCfgSafeAreaAllStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SysCfgSafeAreaAllAddSafeAreas(builder *flatbuffers.Builder, safeAreas flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(safeAreas), 0) +} +func SysCfgSafeAreaAllStartSafeAreasVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgSafeAreaAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaBox.go b/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaBox.go index b694f6a..9ad8184 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaBox.go +++ b/pkg/fbs/motion/core/fbtypes/SysCfgSafeAreaBox.go @@ -1,138 +1,138 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of the limits in a single dimension of the box of a single safe area -type SysCfgSafeAreaBoxT struct { - Min float64 - Max float64 - Unit string - Active bool -} - -func (t *SysCfgSafeAreaBoxT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - unitOffset := builder.CreateString(t.Unit) - SysCfgSafeAreaBoxStart(builder) - SysCfgSafeAreaBoxAddMin(builder, t.Min) - SysCfgSafeAreaBoxAddMax(builder, t.Max) - SysCfgSafeAreaBoxAddUnit(builder, unitOffset) - SysCfgSafeAreaBoxAddActive(builder, t.Active) - return SysCfgSafeAreaBoxEnd(builder) -} - -func (rcv *SysCfgSafeAreaBox) UnPackTo(t *SysCfgSafeAreaBoxT) { - t.Min = rcv.Min() - t.Max = rcv.Max() - t.Unit = string(rcv.Unit()) - t.Active = rcv.Active() -} - -func (rcv *SysCfgSafeAreaBox) UnPack() *SysCfgSafeAreaBoxT { - if rcv == nil { return nil } - t := &SysCfgSafeAreaBoxT{} - rcv.UnPackTo(t) - return t -} - -type SysCfgSafeAreaBox struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCfgSafeAreaBox(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaBox { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCfgSafeAreaBox{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCfgSafeAreaBox(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaBox { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCfgSafeAreaBox{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCfgSafeAreaBox) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCfgSafeAreaBox) Table() flatbuffers.Table { - return rcv._tab -} - -/// minimum limit in this dimension of the box -func (rcv *SysCfgSafeAreaBox) Min() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// minimum limit in this dimension of the box -func (rcv *SysCfgSafeAreaBox) MutateMin(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// maximum limit in this dimension of the box -func (rcv *SysCfgSafeAreaBox) Max() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// maximum limit in this dimension of the box -func (rcv *SysCfgSafeAreaBox) MutateMax(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// unit of min and max as configured -func (rcv *SysCfgSafeAreaBox) Unit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of min and max as configured -/// should this dimension being checked? -func (rcv *SysCfgSafeAreaBox) Active() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this dimension being checked? -func (rcv *SysCfgSafeAreaBox) MutateActive(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func SysCfgSafeAreaBoxStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SysCfgSafeAreaBoxAddMin(builder *flatbuffers.Builder, min float64) { - builder.PrependFloat64Slot(0, min, 0.0) -} -func SysCfgSafeAreaBoxAddMax(builder *flatbuffers.Builder, max float64) { - builder.PrependFloat64Slot(1, max, 0.0) -} -func SysCfgSafeAreaBoxAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unit), 0) -} -func SysCfgSafeAreaBoxAddActive(builder *flatbuffers.Builder, active bool) { - builder.PrependBoolSlot(3, active, false) -} -func SysCfgSafeAreaBoxEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of the limits in a single dimension of the box of a single safe area +type SysCfgSafeAreaBoxT struct { + Min float64 + Max float64 + Unit string + Active bool +} + +func (t *SysCfgSafeAreaBoxT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + unitOffset := builder.CreateString(t.Unit) + SysCfgSafeAreaBoxStart(builder) + SysCfgSafeAreaBoxAddMin(builder, t.Min) + SysCfgSafeAreaBoxAddMax(builder, t.Max) + SysCfgSafeAreaBoxAddUnit(builder, unitOffset) + SysCfgSafeAreaBoxAddActive(builder, t.Active) + return SysCfgSafeAreaBoxEnd(builder) +} + +func (rcv *SysCfgSafeAreaBox) UnPackTo(t *SysCfgSafeAreaBoxT) { + t.Min = rcv.Min() + t.Max = rcv.Max() + t.Unit = string(rcv.Unit()) + t.Active = rcv.Active() +} + +func (rcv *SysCfgSafeAreaBox) UnPack() *SysCfgSafeAreaBoxT { + if rcv == nil { return nil } + t := &SysCfgSafeAreaBoxT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgSafeAreaBox struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgSafeAreaBox(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaBox { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgSafeAreaBox{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgSafeAreaBox(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSafeAreaBox { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgSafeAreaBox{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgSafeAreaBox) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgSafeAreaBox) Table() flatbuffers.Table { + return rcv._tab +} + +/// minimum limit in this dimension of the box +func (rcv *SysCfgSafeAreaBox) Min() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// minimum limit in this dimension of the box +func (rcv *SysCfgSafeAreaBox) MutateMin(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// maximum limit in this dimension of the box +func (rcv *SysCfgSafeAreaBox) Max() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// maximum limit in this dimension of the box +func (rcv *SysCfgSafeAreaBox) MutateMax(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// unit of min and max as configured +func (rcv *SysCfgSafeAreaBox) Unit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of min and max as configured +/// should this dimension being checked? +func (rcv *SysCfgSafeAreaBox) Active() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this dimension being checked? +func (rcv *SysCfgSafeAreaBox) MutateActive(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func SysCfgSafeAreaBoxStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SysCfgSafeAreaBoxAddMin(builder *flatbuffers.Builder, min float64) { + builder.PrependFloat64Slot(0, min, 0.0) +} +func SysCfgSafeAreaBoxAddMax(builder *flatbuffers.Builder, max float64) { + builder.PrependFloat64Slot(1, max, 0.0) +} +func SysCfgSafeAreaBoxAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unit), 0) +} +func SysCfgSafeAreaBoxAddActive(builder *flatbuffers.Builder, active bool) { + builder.PrependBoolSlot(3, active, false) +} +func SysCfgSafeAreaBoxEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysCmdReset.go b/pkg/fbs/motion/core/fbtypes/SysCmdReset.go index c3439ed..8889b8a 100644 --- a/pkg/fbs/motion/core/fbtypes/SysCmdReset.go +++ b/pkg/fbs/motion/core/fbtypes/SysCmdReset.go @@ -1,81 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// request structure for the ResetAllMotionObjects nodes -type SysCmdResetT struct { - Type SysResetType -} - -func (t *SysCmdResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - SysCmdResetStart(builder) - SysCmdResetAddType(builder, t.Type) - return SysCmdResetEnd(builder) -} - -func (rcv *SysCmdReset) UnPackTo(t *SysCmdResetT) { - t.Type = rcv.Type() -} - -func (rcv *SysCmdReset) UnPack() *SysCmdResetT { - if rcv == nil { return nil } - t := &SysCmdResetT{} - rcv.UnPackTo(t) - return t -} - -type SysCmdReset struct { - _tab flatbuffers.Table -} - -func GetRootAsSysCmdReset(buf []byte, offset flatbuffers.UOffsetT) *SysCmdReset { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SysCmdReset{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSysCmdReset(buf []byte, offset flatbuffers.UOffsetT) *SysCmdReset { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SysCmdReset{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SysCmdReset) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SysCmdReset) Table() flatbuffers.Table { - return rcv._tab -} - -/// type of the system reset request -func (rcv *SysCmdReset) Type() SysResetType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return SysResetType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// type of the system reset request -func (rcv *SysCmdReset) MutateType(n SysResetType) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func SysCmdResetStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func SysCmdResetAddType(builder *flatbuffers.Builder, type_ SysResetType) { - builder.PrependInt8Slot(0, int8(type_), 0) -} -func SysCmdResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// request structure for the ResetAllMotionObjects nodes +type SysCmdResetT struct { + Type SysResetType +} + +func (t *SysCmdResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SysCmdResetStart(builder) + SysCmdResetAddType(builder, t.Type) + return SysCmdResetEnd(builder) +} + +func (rcv *SysCmdReset) UnPackTo(t *SysCmdResetT) { + t.Type = rcv.Type() +} + +func (rcv *SysCmdReset) UnPack() *SysCmdResetT { + if rcv == nil { return nil } + t := &SysCmdResetT{} + rcv.UnPackTo(t) + return t +} + +type SysCmdReset struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCmdReset(buf []byte, offset flatbuffers.UOffsetT) *SysCmdReset { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCmdReset{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCmdReset(buf []byte, offset flatbuffers.UOffsetT) *SysCmdReset { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCmdReset{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCmdReset) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCmdReset) Table() flatbuffers.Table { + return rcv._tab +} + +/// type of the system reset request +func (rcv *SysCmdReset) Type() SysResetType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return SysResetType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// type of the system reset request +func (rcv *SysCmdReset) MutateType(n SysResetType) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func SysCmdResetStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SysCmdResetAddType(builder *flatbuffers.Builder, type_ SysResetType) { + builder.PrependInt8Slot(0, int8(type_), 0) +} +func SysCmdResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/SysResetType.go b/pkg/fbs/motion/core/fbtypes/SysResetType.go index a1c00a8..e1806ad 100644 --- a/pkg/fbs/motion/core/fbtypes/SysResetType.go +++ b/pkg/fbs/motion/core/fbtypes/SysResetType.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// Type of the system reset request -type SysResetType int8 - -const ( - /// reset all motion objects, that are currently in an error state and have their error reaction finished - SysResetTypeResetAllMotionObjectsWithError SysResetType = 0 - /// reset all motion object (not yet supported) - SysResetTypeResetAllMotionObjects SysResetType = 1 -) - -var EnumNamesSysResetType = map[SysResetType]string{ - SysResetTypeResetAllMotionObjectsWithError: "ResetAllMotionObjectsWithError", - SysResetTypeResetAllMotionObjects: "ResetAllMotionObjects", -} - -var EnumValuesSysResetType = map[string]SysResetType{ - "ResetAllMotionObjectsWithError": SysResetTypeResetAllMotionObjectsWithError, - "ResetAllMotionObjects": SysResetTypeResetAllMotionObjects, -} - -func (v SysResetType) String() string { - if s, ok := EnumNamesSysResetType[v]; ok { - return s - } - return "SysResetType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// Type of the system reset request +type SysResetType int8 + +const ( + /// reset all motion objects, that are currently in an error state and have their error reaction finished + SysResetTypeResetAllMotionObjectsWithError SysResetType = 0 + /// reset all motion object (not yet supported) + SysResetTypeResetAllMotionObjects SysResetType = 1 +) + +var EnumNamesSysResetType = map[SysResetType]string{ + SysResetTypeResetAllMotionObjectsWithError: "ResetAllMotionObjectsWithError", + SysResetTypeResetAllMotionObjects: "ResetAllMotionObjects", +} + +var EnumValuesSysResetType = map[string]SysResetType{ + "ResetAllMotionObjectsWithError": SysResetTypeResetAllMotionObjectsWithError, + "ResetAllMotionObjects": SysResetTypeResetAllMotionObjects, +} + +func (v SysResetType) String() string { + if s, ok := EnumNamesSysResetType[v]; ok { + return s + } + return "SysResetType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/UnitCfgKin.go b/pkg/fbs/motion/core/fbtypes/UnitCfgKin.go index 038afc4..df9534b 100644 --- a/pkg/fbs/motion/core/fbtypes/UnitCfgKin.go +++ b/pkg/fbs/motion/core/fbtypes/UnitCfgKin.go @@ -1,156 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// General unit configuration for a kinematics object -type UnitCfgKinT struct { - Default []*UnitCfgObjSingleT - Position []string -} - -func (t *UnitCfgKinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - defaultOffset := flatbuffers.UOffsetT(0) - if t.Default != nil { - defaultLength := len(t.Default) - defaultOffsets := make([]flatbuffers.UOffsetT, defaultLength) - for j := 0; j < defaultLength; j++ { - defaultOffsets[j] = t.Default[j].Pack(builder) - } - UnitCfgKinStartDefaultVector(builder, defaultLength) - for j := defaultLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(defaultOffsets[j]) - } - defaultOffset = builder.EndVector(defaultLength) - } - positionOffset := flatbuffers.UOffsetT(0) - if t.Position != nil { - positionLength := len(t.Position) - positionOffsets := make([]flatbuffers.UOffsetT, positionLength) - for j := 0; j < positionLength; j++ { - positionOffsets[j] = builder.CreateString(t.Position[j]) - } - UnitCfgKinStartPositionVector(builder, positionLength) - for j := positionLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(positionOffsets[j]) - } - positionOffset = builder.EndVector(positionLength) - } - UnitCfgKinStart(builder) - UnitCfgKinAddDefault(builder, defaultOffset) - UnitCfgKinAddPosition(builder, positionOffset) - return UnitCfgKinEnd(builder) -} - -func (rcv *UnitCfgKin) UnPackTo(t *UnitCfgKinT) { - defaultLength := rcv.DefaultLength() - t.Default = make([]*UnitCfgObjSingleT, defaultLength) - for j := 0; j < defaultLength; j++ { - x := UnitCfgObjSingle{} - rcv.Default(&x, j) - t.Default[j] = x.UnPack() - } - positionLength := rcv.PositionLength() - t.Position = make([]string, positionLength) - for j := 0; j < positionLength; j++ { - t.Position[j] = string(rcv.Position(j)) - } -} - -func (rcv *UnitCfgKin) UnPack() *UnitCfgKinT { - if rcv == nil { return nil } - t := &UnitCfgKinT{} - rcv.UnPackTo(t) - return t -} - -type UnitCfgKin struct { - _tab flatbuffers.Table -} - -func GetRootAsUnitCfgKin(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgKin { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UnitCfgKin{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUnitCfgKin(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgKin { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UnitCfgKin{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UnitCfgKin) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UnitCfgKin) Table() flatbuffers.Table { - return rcv._tab -} - -/// default units -func (rcv *UnitCfgKin) Default(obj *UnitCfgObjSingle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *UnitCfgKin) DefaultLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// default units -/// position unit abbreviations (must be 16 entries) -func (rcv *UnitCfgKin) Position(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *UnitCfgKin) PositionLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// position unit abbreviations (must be 16 entries) -func UnitCfgKinStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func UnitCfgKinAddDefault(builder *flatbuffers.Builder, default_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(default_), 0) -} -func UnitCfgKinStartDefaultVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func UnitCfgKinAddPosition(builder *flatbuffers.Builder, position flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(position), 0) -} -func UnitCfgKinStartPositionVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func UnitCfgKinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// General unit configuration for a kinematics object +type UnitCfgKinT struct { + Default []*UnitCfgObjSingleT + Position []string +} + +func (t *UnitCfgKinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + defaultOffset := flatbuffers.UOffsetT(0) + if t.Default != nil { + defaultLength := len(t.Default) + defaultOffsets := make([]flatbuffers.UOffsetT, defaultLength) + for j := 0; j < defaultLength; j++ { + defaultOffsets[j] = t.Default[j].Pack(builder) + } + UnitCfgKinStartDefaultVector(builder, defaultLength) + for j := defaultLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(defaultOffsets[j]) + } + defaultOffset = builder.EndVector(defaultLength) + } + positionOffset := flatbuffers.UOffsetT(0) + if t.Position != nil { + positionLength := len(t.Position) + positionOffsets := make([]flatbuffers.UOffsetT, positionLength) + for j := 0; j < positionLength; j++ { + positionOffsets[j] = builder.CreateString(t.Position[j]) + } + UnitCfgKinStartPositionVector(builder, positionLength) + for j := positionLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(positionOffsets[j]) + } + positionOffset = builder.EndVector(positionLength) + } + UnitCfgKinStart(builder) + UnitCfgKinAddDefault(builder, defaultOffset) + UnitCfgKinAddPosition(builder, positionOffset) + return UnitCfgKinEnd(builder) +} + +func (rcv *UnitCfgKin) UnPackTo(t *UnitCfgKinT) { + defaultLength := rcv.DefaultLength() + t.Default = make([]*UnitCfgObjSingleT, defaultLength) + for j := 0; j < defaultLength; j++ { + x := UnitCfgObjSingle{} + rcv.Default(&x, j) + t.Default[j] = x.UnPack() + } + positionLength := rcv.PositionLength() + t.Position = make([]string, positionLength) + for j := 0; j < positionLength; j++ { + t.Position[j] = string(rcv.Position(j)) + } +} + +func (rcv *UnitCfgKin) UnPack() *UnitCfgKinT { + if rcv == nil { return nil } + t := &UnitCfgKinT{} + rcv.UnPackTo(t) + return t +} + +type UnitCfgKin struct { + _tab flatbuffers.Table +} + +func GetRootAsUnitCfgKin(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgKin { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UnitCfgKin{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUnitCfgKin(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgKin { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UnitCfgKin{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UnitCfgKin) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UnitCfgKin) Table() flatbuffers.Table { + return rcv._tab +} + +/// default units +func (rcv *UnitCfgKin) Default(obj *UnitCfgObjSingle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *UnitCfgKin) DefaultLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// default units +/// position unit abbreviations (must be 16 entries) +func (rcv *UnitCfgKin) Position(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *UnitCfgKin) PositionLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// position unit abbreviations (must be 16 entries) +func UnitCfgKinStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func UnitCfgKinAddDefault(builder *flatbuffers.Builder, default_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(default_), 0) +} +func UnitCfgKinStartDefaultVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func UnitCfgKinAddPosition(builder *flatbuffers.Builder, position flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(position), 0) +} +func UnitCfgKinStartPositionVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func UnitCfgKinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/UnitCfgObj.go b/pkg/fbs/motion/core/fbtypes/UnitCfgObj.go index 551e69f..eb650bb 100644 --- a/pkg/fbs/motion/core/fbtypes/UnitCfgObj.go +++ b/pkg/fbs/motion/core/fbtypes/UnitCfgObj.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// General unit configuration for a motion object -type UnitCfgObjT struct { - Default []*UnitCfgObjSingleT -} - -func (t *UnitCfgObjT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - defaultOffset := flatbuffers.UOffsetT(0) - if t.Default != nil { - defaultLength := len(t.Default) - defaultOffsets := make([]flatbuffers.UOffsetT, defaultLength) - for j := 0; j < defaultLength; j++ { - defaultOffsets[j] = t.Default[j].Pack(builder) - } - UnitCfgObjStartDefaultVector(builder, defaultLength) - for j := defaultLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(defaultOffsets[j]) - } - defaultOffset = builder.EndVector(defaultLength) - } - UnitCfgObjStart(builder) - UnitCfgObjAddDefault(builder, defaultOffset) - return UnitCfgObjEnd(builder) -} - -func (rcv *UnitCfgObj) UnPackTo(t *UnitCfgObjT) { - defaultLength := rcv.DefaultLength() - t.Default = make([]*UnitCfgObjSingleT, defaultLength) - for j := 0; j < defaultLength; j++ { - x := UnitCfgObjSingle{} - rcv.Default(&x, j) - t.Default[j] = x.UnPack() - } -} - -func (rcv *UnitCfgObj) UnPack() *UnitCfgObjT { - if rcv == nil { return nil } - t := &UnitCfgObjT{} - rcv.UnPackTo(t) - return t -} - -type UnitCfgObj struct { - _tab flatbuffers.Table -} - -func GetRootAsUnitCfgObj(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObj { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UnitCfgObj{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUnitCfgObj(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObj { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UnitCfgObj{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UnitCfgObj) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UnitCfgObj) Table() flatbuffers.Table { - return rcv._tab -} - -/// default units -func (rcv *UnitCfgObj) Default(obj *UnitCfgObjSingle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *UnitCfgObj) DefaultLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// default units -func UnitCfgObjStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func UnitCfgObjAddDefault(builder *flatbuffers.Builder, default_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(default_), 0) -} -func UnitCfgObjStartDefaultVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func UnitCfgObjEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// General unit configuration for a motion object +type UnitCfgObjT struct { + Default []*UnitCfgObjSingleT +} + +func (t *UnitCfgObjT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + defaultOffset := flatbuffers.UOffsetT(0) + if t.Default != nil { + defaultLength := len(t.Default) + defaultOffsets := make([]flatbuffers.UOffsetT, defaultLength) + for j := 0; j < defaultLength; j++ { + defaultOffsets[j] = t.Default[j].Pack(builder) + } + UnitCfgObjStartDefaultVector(builder, defaultLength) + for j := defaultLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(defaultOffsets[j]) + } + defaultOffset = builder.EndVector(defaultLength) + } + UnitCfgObjStart(builder) + UnitCfgObjAddDefault(builder, defaultOffset) + return UnitCfgObjEnd(builder) +} + +func (rcv *UnitCfgObj) UnPackTo(t *UnitCfgObjT) { + defaultLength := rcv.DefaultLength() + t.Default = make([]*UnitCfgObjSingleT, defaultLength) + for j := 0; j < defaultLength; j++ { + x := UnitCfgObjSingle{} + rcv.Default(&x, j) + t.Default[j] = x.UnPack() + } +} + +func (rcv *UnitCfgObj) UnPack() *UnitCfgObjT { + if rcv == nil { return nil } + t := &UnitCfgObjT{} + rcv.UnPackTo(t) + return t +} + +type UnitCfgObj struct { + _tab flatbuffers.Table +} + +func GetRootAsUnitCfgObj(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObj { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UnitCfgObj{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUnitCfgObj(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObj { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UnitCfgObj{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UnitCfgObj) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UnitCfgObj) Table() flatbuffers.Table { + return rcv._tab +} + +/// default units +func (rcv *UnitCfgObj) Default(obj *UnitCfgObjSingle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *UnitCfgObj) DefaultLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// default units +func UnitCfgObjStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func UnitCfgObjAddDefault(builder *flatbuffers.Builder, default_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(default_), 0) +} +func UnitCfgObjStartDefaultVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func UnitCfgObjEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/UnitCfgObjSingle.go b/pkg/fbs/motion/core/fbtypes/UnitCfgObjSingle.go index 15c865d..d5a1e0c 100644 --- a/pkg/fbs/motion/core/fbtypes/UnitCfgObjSingle.go +++ b/pkg/fbs/motion/core/fbtypes/UnitCfgObjSingle.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Single entry of the general unit configuration for a motion object -type UnitCfgObjSingleT struct { - ValueType string - Abbreviation string -} - -func (t *UnitCfgObjSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - valueTypeOffset := builder.CreateString(t.ValueType) - abbreviationOffset := builder.CreateString(t.Abbreviation) - UnitCfgObjSingleStart(builder) - UnitCfgObjSingleAddValueType(builder, valueTypeOffset) - UnitCfgObjSingleAddAbbreviation(builder, abbreviationOffset) - return UnitCfgObjSingleEnd(builder) -} - -func (rcv *UnitCfgObjSingle) UnPackTo(t *UnitCfgObjSingleT) { - t.ValueType = string(rcv.ValueType()) - t.Abbreviation = string(rcv.Abbreviation()) -} - -func (rcv *UnitCfgObjSingle) UnPack() *UnitCfgObjSingleT { - if rcv == nil { return nil } - t := &UnitCfgObjSingleT{} - rcv.UnPackTo(t) - return t -} - -type UnitCfgObjSingle struct { - _tab flatbuffers.Table -} - -func GetRootAsUnitCfgObjSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObjSingle { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UnitCfgObjSingle{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUnitCfgObjSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObjSingle { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UnitCfgObjSingle{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UnitCfgObjSingle) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UnitCfgObjSingle) Table() flatbuffers.Table { - return rcv._tab -} - -/// the unit value type of the entry (position, velocity, jerk, ...) -func (rcv *UnitCfgObjSingle) ValueType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// the unit value type of the entry (position, velocity, jerk, ...) -/// abbreviation of the unit (as it will being used in flatbuffers and files) -func (rcv *UnitCfgObjSingle) Abbreviation() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// abbreviation of the unit (as it will being used in flatbuffers and files) -func UnitCfgObjSingleStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func UnitCfgObjSingleAddValueType(builder *flatbuffers.Builder, valueType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(valueType), 0) -} -func UnitCfgObjSingleAddAbbreviation(builder *flatbuffers.Builder, abbreviation flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(abbreviation), 0) -} -func UnitCfgObjSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Single entry of the general unit configuration for a motion object +type UnitCfgObjSingleT struct { + ValueType string + Abbreviation string +} + +func (t *UnitCfgObjSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + valueTypeOffset := builder.CreateString(t.ValueType) + abbreviationOffset := builder.CreateString(t.Abbreviation) + UnitCfgObjSingleStart(builder) + UnitCfgObjSingleAddValueType(builder, valueTypeOffset) + UnitCfgObjSingleAddAbbreviation(builder, abbreviationOffset) + return UnitCfgObjSingleEnd(builder) +} + +func (rcv *UnitCfgObjSingle) UnPackTo(t *UnitCfgObjSingleT) { + t.ValueType = string(rcv.ValueType()) + t.Abbreviation = string(rcv.Abbreviation()) +} + +func (rcv *UnitCfgObjSingle) UnPack() *UnitCfgObjSingleT { + if rcv == nil { return nil } + t := &UnitCfgObjSingleT{} + rcv.UnPackTo(t) + return t +} + +type UnitCfgObjSingle struct { + _tab flatbuffers.Table +} + +func GetRootAsUnitCfgObjSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObjSingle { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UnitCfgObjSingle{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUnitCfgObjSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitCfgObjSingle { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UnitCfgObjSingle{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UnitCfgObjSingle) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UnitCfgObjSingle) Table() flatbuffers.Table { + return rcv._tab +} + +/// the unit value type of the entry (position, velocity, jerk, ...) +func (rcv *UnitCfgObjSingle) ValueType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// the unit value type of the entry (position, velocity, jerk, ...) +/// abbreviation of the unit (as it will being used in flatbuffers and files) +func (rcv *UnitCfgObjSingle) Abbreviation() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// abbreviation of the unit (as it will being used in flatbuffers and files) +func UnitCfgObjSingleStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func UnitCfgObjSingleAddValueType(builder *flatbuffers.Builder, valueType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(valueType), 0) +} +func UnitCfgObjSingleAddAbbreviation(builder *flatbuffers.Builder, abbreviation flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(abbreviation), 0) +} +func UnitCfgObjSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/UnitDataAll.go b/pkg/fbs/motion/core/fbtypes/UnitDataAll.go index 1d27fde..1cab641 100644 --- a/pkg/fbs/motion/core/fbtypes/UnitDataAll.go +++ b/pkg/fbs/motion/core/fbtypes/UnitDataAll.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Data of all supported units -type UnitDataAllT struct { - Supported []*UnitDataSingleT -} - -func (t *UnitDataAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - supportedOffset := flatbuffers.UOffsetT(0) - if t.Supported != nil { - supportedLength := len(t.Supported) - supportedOffsets := make([]flatbuffers.UOffsetT, supportedLength) - for j := 0; j < supportedLength; j++ { - supportedOffsets[j] = t.Supported[j].Pack(builder) - } - UnitDataAllStartSupportedVector(builder, supportedLength) - for j := supportedLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(supportedOffsets[j]) - } - supportedOffset = builder.EndVector(supportedLength) - } - UnitDataAllStart(builder) - UnitDataAllAddSupported(builder, supportedOffset) - return UnitDataAllEnd(builder) -} - -func (rcv *UnitDataAll) UnPackTo(t *UnitDataAllT) { - supportedLength := rcv.SupportedLength() - t.Supported = make([]*UnitDataSingleT, supportedLength) - for j := 0; j < supportedLength; j++ { - x := UnitDataSingle{} - rcv.Supported(&x, j) - t.Supported[j] = x.UnPack() - } -} - -func (rcv *UnitDataAll) UnPack() *UnitDataAllT { - if rcv == nil { return nil } - t := &UnitDataAllT{} - rcv.UnPackTo(t) - return t -} - -type UnitDataAll struct { - _tab flatbuffers.Table -} - -func GetRootAsUnitDataAll(buf []byte, offset flatbuffers.UOffsetT) *UnitDataAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UnitDataAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUnitDataAll(buf []byte, offset flatbuffers.UOffsetT) *UnitDataAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UnitDataAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UnitDataAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UnitDataAll) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all supported units -func (rcv *UnitDataAll) Supported(obj *UnitDataSingle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *UnitDataAll) SupportedLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all supported units -func UnitDataAllStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func UnitDataAllAddSupported(builder *flatbuffers.Builder, supported flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(supported), 0) -} -func UnitDataAllStartSupportedVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func UnitDataAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Data of all supported units +type UnitDataAllT struct { + Supported []*UnitDataSingleT +} + +func (t *UnitDataAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + supportedOffset := flatbuffers.UOffsetT(0) + if t.Supported != nil { + supportedLength := len(t.Supported) + supportedOffsets := make([]flatbuffers.UOffsetT, supportedLength) + for j := 0; j < supportedLength; j++ { + supportedOffsets[j] = t.Supported[j].Pack(builder) + } + UnitDataAllStartSupportedVector(builder, supportedLength) + for j := supportedLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(supportedOffsets[j]) + } + supportedOffset = builder.EndVector(supportedLength) + } + UnitDataAllStart(builder) + UnitDataAllAddSupported(builder, supportedOffset) + return UnitDataAllEnd(builder) +} + +func (rcv *UnitDataAll) UnPackTo(t *UnitDataAllT) { + supportedLength := rcv.SupportedLength() + t.Supported = make([]*UnitDataSingleT, supportedLength) + for j := 0; j < supportedLength; j++ { + x := UnitDataSingle{} + rcv.Supported(&x, j) + t.Supported[j] = x.UnPack() + } +} + +func (rcv *UnitDataAll) UnPack() *UnitDataAllT { + if rcv == nil { return nil } + t := &UnitDataAllT{} + rcv.UnPackTo(t) + return t +} + +type UnitDataAll struct { + _tab flatbuffers.Table +} + +func GetRootAsUnitDataAll(buf []byte, offset flatbuffers.UOffsetT) *UnitDataAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UnitDataAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUnitDataAll(buf []byte, offset flatbuffers.UOffsetT) *UnitDataAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UnitDataAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UnitDataAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UnitDataAll) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all supported units +func (rcv *UnitDataAll) Supported(obj *UnitDataSingle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *UnitDataAll) SupportedLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all supported units +func UnitDataAllStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func UnitDataAllAddSupported(builder *flatbuffers.Builder, supported flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(supported), 0) +} +func UnitDataAllStartSupportedVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func UnitDataAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/UnitDataSingle.go b/pkg/fbs/motion/core/fbtypes/UnitDataSingle.go index fb06e18..18afbb3 100644 --- a/pkg/fbs/motion/core/fbtypes/UnitDataSingle.go +++ b/pkg/fbs/motion/core/fbtypes/UnitDataSingle.go @@ -1,166 +1,166 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// informations of a single unit, that is supported by the system -type UnitDataSingleT struct { - Name string - UnitObjType string - UnitValueType string - Abbreviation string - AbbreviationURI string - IsDefault bool -} - -func (t *UnitDataSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - unitObjTypeOffset := builder.CreateString(t.UnitObjType) - unitValueTypeOffset := builder.CreateString(t.UnitValueType) - abbreviationOffset := builder.CreateString(t.Abbreviation) - abbreviationURIOffset := builder.CreateString(t.AbbreviationURI) - UnitDataSingleStart(builder) - UnitDataSingleAddName(builder, nameOffset) - UnitDataSingleAddUnitObjType(builder, unitObjTypeOffset) - UnitDataSingleAddUnitValueType(builder, unitValueTypeOffset) - UnitDataSingleAddAbbreviation(builder, abbreviationOffset) - UnitDataSingleAddAbbreviationURI(builder, abbreviationURIOffset) - UnitDataSingleAddIsDefault(builder, t.IsDefault) - return UnitDataSingleEnd(builder) -} - -func (rcv *UnitDataSingle) UnPackTo(t *UnitDataSingleT) { - t.Name = string(rcv.Name()) - t.UnitObjType = string(rcv.UnitObjType()) - t.UnitValueType = string(rcv.UnitValueType()) - t.Abbreviation = string(rcv.Abbreviation()) - t.AbbreviationURI = string(rcv.AbbreviationURI()) - t.IsDefault = rcv.IsDefault() -} - -func (rcv *UnitDataSingle) UnPack() *UnitDataSingleT { - if rcv == nil { return nil } - t := &UnitDataSingleT{} - rcv.UnPackTo(t) - return t -} - -type UnitDataSingle struct { - _tab flatbuffers.Table -} - -func GetRootAsUnitDataSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitDataSingle { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &UnitDataSingle{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUnitDataSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitDataSingle { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &UnitDataSingle{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *UnitDataSingle) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *UnitDataSingle) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the unit -func (rcv *UnitDataSingle) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the unit -/// unit object type (linear/rotational/any) -func (rcv *UnitDataSingle) UnitObjType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit object type (linear/rotational/any) -/// unit value type (position, velocity, force, time, ...) -func (rcv *UnitDataSingle) UnitValueType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit value type (position, velocity, force, time, ...) -/// abbreviation of the unit (as it will being used in flatbuffers and files) -func (rcv *UnitDataSingle) Abbreviation() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// abbreviation of the unit (as it will being used in flatbuffers and files) -/// URI abbreviation of the unit (as it will being used in datalayer paths) -func (rcv *UnitDataSingle) AbbreviationURI() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// URI abbreviation of the unit (as it will being used in datalayer paths) -/// is this a default value, that will be set, when the axis/kinematics is created? -func (rcv *UnitDataSingle) IsDefault() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is this a default value, that will be set, when the axis/kinematics is created? -func (rcv *UnitDataSingle) MutateIsDefault(n bool) bool { - return rcv._tab.MutateBoolSlot(14, n) -} - -func UnitDataSingleStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func UnitDataSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func UnitDataSingleAddUnitObjType(builder *flatbuffers.Builder, unitObjType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(unitObjType), 0) -} -func UnitDataSingleAddUnitValueType(builder *flatbuffers.Builder, unitValueType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unitValueType), 0) -} -func UnitDataSingleAddAbbreviation(builder *flatbuffers.Builder, abbreviation flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(abbreviation), 0) -} -func UnitDataSingleAddAbbreviationURI(builder *flatbuffers.Builder, abbreviationURI flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(abbreviationURI), 0) -} -func UnitDataSingleAddIsDefault(builder *flatbuffers.Builder, isDefault bool) { - builder.PrependBoolSlot(5, isDefault, false) -} -func UnitDataSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// informations of a single unit, that is supported by the system +type UnitDataSingleT struct { + Name string + UnitObjType string + UnitValueType string + Abbreviation string + AbbreviationURI string + IsDefault bool +} + +func (t *UnitDataSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + unitObjTypeOffset := builder.CreateString(t.UnitObjType) + unitValueTypeOffset := builder.CreateString(t.UnitValueType) + abbreviationOffset := builder.CreateString(t.Abbreviation) + abbreviationURIOffset := builder.CreateString(t.AbbreviationURI) + UnitDataSingleStart(builder) + UnitDataSingleAddName(builder, nameOffset) + UnitDataSingleAddUnitObjType(builder, unitObjTypeOffset) + UnitDataSingleAddUnitValueType(builder, unitValueTypeOffset) + UnitDataSingleAddAbbreviation(builder, abbreviationOffset) + UnitDataSingleAddAbbreviationURI(builder, abbreviationURIOffset) + UnitDataSingleAddIsDefault(builder, t.IsDefault) + return UnitDataSingleEnd(builder) +} + +func (rcv *UnitDataSingle) UnPackTo(t *UnitDataSingleT) { + t.Name = string(rcv.Name()) + t.UnitObjType = string(rcv.UnitObjType()) + t.UnitValueType = string(rcv.UnitValueType()) + t.Abbreviation = string(rcv.Abbreviation()) + t.AbbreviationURI = string(rcv.AbbreviationURI()) + t.IsDefault = rcv.IsDefault() +} + +func (rcv *UnitDataSingle) UnPack() *UnitDataSingleT { + if rcv == nil { return nil } + t := &UnitDataSingleT{} + rcv.UnPackTo(t) + return t +} + +type UnitDataSingle struct { + _tab flatbuffers.Table +} + +func GetRootAsUnitDataSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitDataSingle { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &UnitDataSingle{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUnitDataSingle(buf []byte, offset flatbuffers.UOffsetT) *UnitDataSingle { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &UnitDataSingle{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *UnitDataSingle) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *UnitDataSingle) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the unit +func (rcv *UnitDataSingle) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the unit +/// unit object type (linear/rotational/any) +func (rcv *UnitDataSingle) UnitObjType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit object type (linear/rotational/any) +/// unit value type (position, velocity, force, time, ...) +func (rcv *UnitDataSingle) UnitValueType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit value type (position, velocity, force, time, ...) +/// abbreviation of the unit (as it will being used in flatbuffers and files) +func (rcv *UnitDataSingle) Abbreviation() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// abbreviation of the unit (as it will being used in flatbuffers and files) +/// URI abbreviation of the unit (as it will being used in datalayer paths) +func (rcv *UnitDataSingle) AbbreviationURI() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// URI abbreviation of the unit (as it will being used in datalayer paths) +/// is this a default value, that will be set, when the axis/kinematics is created? +func (rcv *UnitDataSingle) IsDefault() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is this a default value, that will be set, when the axis/kinematics is created? +func (rcv *UnitDataSingle) MutateIsDefault(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func UnitDataSingleStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func UnitDataSingleAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func UnitDataSingleAddUnitObjType(builder *flatbuffers.Builder, unitObjType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(unitObjType), 0) +} +func UnitDataSingleAddUnitValueType(builder *flatbuffers.Builder, unitValueType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unitValueType), 0) +} +func UnitDataSingleAddAbbreviation(builder *flatbuffers.Builder, abbreviation flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(abbreviation), 0) +} +func UnitDataSingleAddAbbreviationURI(builder *flatbuffers.Builder, abbreviationURI flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(abbreviationURI), 0) +} +func UnitDataSingleAddIsDefault(builder *flatbuffers.Builder, isDefault bool) { + builder.PrependBoolSlot(5, isDefault, false) +} +func UnitDataSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/VarType.go b/pkg/fbs/motion/core/fbtypes/VarType.go index e3b3b7e..45fcc7c 100644 --- a/pkg/fbs/motion/core/fbtypes/VarType.go +++ b/pkg/fbs/motion/core/fbtypes/VarType.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type VarType int8 - -const ( - VarTypeDOUBLE VarType = 1 - VarTypeINTEGER VarType = 2 - VarTypeSTRING VarType = 3 -) - -var EnumNamesVarType = map[VarType]string{ - VarTypeDOUBLE: "DOUBLE", - VarTypeINTEGER: "INTEGER", - VarTypeSTRING: "STRING", -} - -var EnumValuesVarType = map[string]VarType{ - "DOUBLE": VarTypeDOUBLE, - "INTEGER": VarTypeINTEGER, - "STRING": VarTypeSTRING, -} - -func (v VarType) String() string { - if s, ok := EnumNamesVarType[v]; ok { - return s - } - return "VarType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type VarType int8 + +const ( + VarTypeDOUBLE VarType = 1 + VarTypeINTEGER VarType = 2 + VarTypeSTRING VarType = 3 +) + +var EnumNamesVarType = map[VarType]string{ + VarTypeDOUBLE: "DOUBLE", + VarTypeINTEGER: "INTEGER", + VarTypeSTRING: "STRING", +} + +var EnumValuesVarType = map[string]VarType{ + "DOUBLE": VarTypeDOUBLE, + "INTEGER": VarTypeINTEGER, + "STRING": VarTypeSTRING, +} + +func (v VarType) String() string { + if s, ok := EnumNamesVarType[v]; ok { + return s + } + return "VarType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/core/fbtypes/actCmdJobObjects.go b/pkg/fbs/motion/core/fbtypes/actCmdJobObjects.go index d874b7b..f199414 100644 --- a/pkg/fbs/motion/core/fbtypes/actCmdJobObjects.go +++ b/pkg/fbs/motion/core/fbtypes/actCmdJobObjects.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// get informations of a single active command -type actCmdJobObjectsT struct { - CmdName string - JobObjects []string -} - -func (t *actCmdJobObjectsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cmdNameOffset := builder.CreateString(t.CmdName) - jobObjectsOffset := flatbuffers.UOffsetT(0) - if t.JobObjects != nil { - jobObjectsLength := len(t.JobObjects) - jobObjectsOffsets := make([]flatbuffers.UOffsetT, jobObjectsLength) - for j := 0; j < jobObjectsLength; j++ { - jobObjectsOffsets[j] = builder.CreateString(t.JobObjects[j]) - } - actCmdJobObjectsStartJobObjectsVector(builder, jobObjectsLength) - for j := jobObjectsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(jobObjectsOffsets[j]) - } - jobObjectsOffset = builder.EndVector(jobObjectsLength) - } - actCmdJobObjectsStart(builder) - actCmdJobObjectsAddCmdName(builder, cmdNameOffset) - actCmdJobObjectsAddJobObjects(builder, jobObjectsOffset) - return actCmdJobObjectsEnd(builder) -} - -func (rcv *actCmdJobObjects) UnPackTo(t *actCmdJobObjectsT) { - t.CmdName = string(rcv.CmdName()) - jobObjectsLength := rcv.JobObjectsLength() - t.JobObjects = make([]string, jobObjectsLength) - for j := 0; j < jobObjectsLength; j++ { - t.JobObjects[j] = string(rcv.JobObjects(j)) - } -} - -func (rcv *actCmdJobObjects) UnPack() *actCmdJobObjectsT { - if rcv == nil { return nil } - t := &actCmdJobObjectsT{} - rcv.UnPackTo(t) - return t -} - -type actCmdJobObjects struct { - _tab flatbuffers.Table -} - -func GetRootAsactCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *actCmdJobObjects { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &actCmdJobObjects{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsactCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *actCmdJobObjects { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &actCmdJobObjects{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *actCmdJobObjects) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *actCmdJobObjects) Table() flatbuffers.Table { - return rcv._tab -} - -/// command type name (e.g. PosAbs) -func (rcv *actCmdJobObjects) CmdName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// command type name (e.g. PosAbs) -/// array of the strings of the jobObjects (including parameters) -func (rcv *actCmdJobObjects) JobObjects(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *actCmdJobObjects) JobObjectsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// array of the strings of the jobObjects (including parameters) -func actCmdJobObjectsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func actCmdJobObjectsAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdName), 0) -} -func actCmdJobObjectsAddJobObjects(builder *flatbuffers.Builder, jobObjects flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(jobObjects), 0) -} -func actCmdJobObjectsStartJobObjectsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func actCmdJobObjectsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// get informations of a single active command +type actCmdJobObjectsT struct { + CmdName string + JobObjects []string +} + +func (t *actCmdJobObjectsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cmdNameOffset := builder.CreateString(t.CmdName) + jobObjectsOffset := flatbuffers.UOffsetT(0) + if t.JobObjects != nil { + jobObjectsLength := len(t.JobObjects) + jobObjectsOffsets := make([]flatbuffers.UOffsetT, jobObjectsLength) + for j := 0; j < jobObjectsLength; j++ { + jobObjectsOffsets[j] = builder.CreateString(t.JobObjects[j]) + } + actCmdJobObjectsStartJobObjectsVector(builder, jobObjectsLength) + for j := jobObjectsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(jobObjectsOffsets[j]) + } + jobObjectsOffset = builder.EndVector(jobObjectsLength) + } + actCmdJobObjectsStart(builder) + actCmdJobObjectsAddCmdName(builder, cmdNameOffset) + actCmdJobObjectsAddJobObjects(builder, jobObjectsOffset) + return actCmdJobObjectsEnd(builder) +} + +func (rcv *actCmdJobObjects) UnPackTo(t *actCmdJobObjectsT) { + t.CmdName = string(rcv.CmdName()) + jobObjectsLength := rcv.JobObjectsLength() + t.JobObjects = make([]string, jobObjectsLength) + for j := 0; j < jobObjectsLength; j++ { + t.JobObjects[j] = string(rcv.JobObjects(j)) + } +} + +func (rcv *actCmdJobObjects) UnPack() *actCmdJobObjectsT { + if rcv == nil { return nil } + t := &actCmdJobObjectsT{} + rcv.UnPackTo(t) + return t +} + +type actCmdJobObjects struct { + _tab flatbuffers.Table +} + +func GetRootAsactCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *actCmdJobObjects { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &actCmdJobObjects{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsactCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *actCmdJobObjects { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &actCmdJobObjects{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *actCmdJobObjects) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *actCmdJobObjects) Table() flatbuffers.Table { + return rcv._tab +} + +/// command type name (e.g. PosAbs) +func (rcv *actCmdJobObjects) CmdName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// command type name (e.g. PosAbs) +/// array of the strings of the jobObjects (including parameters) +func (rcv *actCmdJobObjects) JobObjects(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *actCmdJobObjects) JobObjectsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// array of the strings of the jobObjects (including parameters) +func actCmdJobObjectsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func actCmdJobObjectsAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdName), 0) +} +func actCmdJobObjectsAddJobObjects(builder *flatbuffers.Builder, jobObjects flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(jobObjects), 0) +} +func actCmdJobObjectsStartJobObjectsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func actCmdJobObjectsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/allActCmdJobObjects.go b/pkg/fbs/motion/core/fbtypes/allActCmdJobObjects.go index ede261b..1d142bc 100644 --- a/pkg/fbs/motion/core/fbtypes/allActCmdJobObjects.go +++ b/pkg/fbs/motion/core/fbtypes/allActCmdJobObjects.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// get informations of all active commands of a single motion object -type allActCmdJobObjectsT struct { - Cmds []*actCmdJobObjectsT -} - -func (t *allActCmdJobObjectsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cmdsOffset := flatbuffers.UOffsetT(0) - if t.Cmds != nil { - cmdsLength := len(t.Cmds) - cmdsOffsets := make([]flatbuffers.UOffsetT, cmdsLength) - for j := 0; j < cmdsLength; j++ { - cmdsOffsets[j] = t.Cmds[j].Pack(builder) - } - allActCmdJobObjectsStartCmdsVector(builder, cmdsLength) - for j := cmdsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(cmdsOffsets[j]) - } - cmdsOffset = builder.EndVector(cmdsLength) - } - allActCmdJobObjectsStart(builder) - allActCmdJobObjectsAddCmds(builder, cmdsOffset) - return allActCmdJobObjectsEnd(builder) -} - -func (rcv *allActCmdJobObjects) UnPackTo(t *allActCmdJobObjectsT) { - cmdsLength := rcv.CmdsLength() - t.Cmds = make([]*actCmdJobObjectsT, cmdsLength) - for j := 0; j < cmdsLength; j++ { - x := actCmdJobObjects{} - rcv.Cmds(&x, j) - t.Cmds[j] = x.UnPack() - } -} - -func (rcv *allActCmdJobObjects) UnPack() *allActCmdJobObjectsT { - if rcv == nil { return nil } - t := &allActCmdJobObjectsT{} - rcv.UnPackTo(t) - return t -} - -type allActCmdJobObjects struct { - _tab flatbuffers.Table -} - -func GetRootAsallActCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *allActCmdJobObjects { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &allActCmdJobObjects{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsallActCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *allActCmdJobObjects { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &allActCmdJobObjects{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *allActCmdJobObjects) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *allActCmdJobObjects) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all command informations -func (rcv *allActCmdJobObjects) Cmds(obj *actCmdJobObjects, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *allActCmdJobObjects) CmdsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all command informations -func allActCmdJobObjectsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func allActCmdJobObjectsAddCmds(builder *flatbuffers.Builder, cmds flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmds), 0) -} -func allActCmdJobObjectsStartCmdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func allActCmdJobObjectsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// get informations of all active commands of a single motion object +type allActCmdJobObjectsT struct { + Cmds []*actCmdJobObjectsT +} + +func (t *allActCmdJobObjectsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cmdsOffset := flatbuffers.UOffsetT(0) + if t.Cmds != nil { + cmdsLength := len(t.Cmds) + cmdsOffsets := make([]flatbuffers.UOffsetT, cmdsLength) + for j := 0; j < cmdsLength; j++ { + cmdsOffsets[j] = t.Cmds[j].Pack(builder) + } + allActCmdJobObjectsStartCmdsVector(builder, cmdsLength) + for j := cmdsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(cmdsOffsets[j]) + } + cmdsOffset = builder.EndVector(cmdsLength) + } + allActCmdJobObjectsStart(builder) + allActCmdJobObjectsAddCmds(builder, cmdsOffset) + return allActCmdJobObjectsEnd(builder) +} + +func (rcv *allActCmdJobObjects) UnPackTo(t *allActCmdJobObjectsT) { + cmdsLength := rcv.CmdsLength() + t.Cmds = make([]*actCmdJobObjectsT, cmdsLength) + for j := 0; j < cmdsLength; j++ { + x := actCmdJobObjects{} + rcv.Cmds(&x, j) + t.Cmds[j] = x.UnPack() + } +} + +func (rcv *allActCmdJobObjects) UnPack() *allActCmdJobObjectsT { + if rcv == nil { return nil } + t := &allActCmdJobObjectsT{} + rcv.UnPackTo(t) + return t +} + +type allActCmdJobObjects struct { + _tab flatbuffers.Table +} + +func GetRootAsallActCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *allActCmdJobObjects { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &allActCmdJobObjects{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsallActCmdJobObjects(buf []byte, offset flatbuffers.UOffsetT) *allActCmdJobObjects { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &allActCmdJobObjects{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *allActCmdJobObjects) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *allActCmdJobObjects) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all command informations +func (rcv *allActCmdJobObjects) Cmds(obj *actCmdJobObjects, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *allActCmdJobObjects) CmdsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all command informations +func allActCmdJobObjectsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func allActCmdJobObjectsAddCmds(builder *flatbuffers.Builder, cmds flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmds), 0) +} +func allActCmdJobObjectsStartCmdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func allActCmdJobObjectsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/allDebugCmdInfo.go b/pkg/fbs/motion/core/fbtypes/allDebugCmdInfo.go index 29faebd..709307a 100644 --- a/pkg/fbs/motion/core/fbtypes/allDebugCmdInfo.go +++ b/pkg/fbs/motion/core/fbtypes/allDebugCmdInfo.go @@ -1,161 +1,161 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// get informations of all active commands and commands that were recently executed of a single motion object -type allDebugCmdInfoT struct { - MainCmds []*debugCmdInfoT - AddCmds []*debugCmdInfoT -} - -func (t *allDebugCmdInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - mainCmdsOffset := flatbuffers.UOffsetT(0) - if t.MainCmds != nil { - mainCmdsLength := len(t.MainCmds) - mainCmdsOffsets := make([]flatbuffers.UOffsetT, mainCmdsLength) - for j := 0; j < mainCmdsLength; j++ { - mainCmdsOffsets[j] = t.MainCmds[j].Pack(builder) - } - allDebugCmdInfoStartMainCmdsVector(builder, mainCmdsLength) - for j := mainCmdsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(mainCmdsOffsets[j]) - } - mainCmdsOffset = builder.EndVector(mainCmdsLength) - } - addCmdsOffset := flatbuffers.UOffsetT(0) - if t.AddCmds != nil { - addCmdsLength := len(t.AddCmds) - addCmdsOffsets := make([]flatbuffers.UOffsetT, addCmdsLength) - for j := 0; j < addCmdsLength; j++ { - addCmdsOffsets[j] = t.AddCmds[j].Pack(builder) - } - allDebugCmdInfoStartAddCmdsVector(builder, addCmdsLength) - for j := addCmdsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(addCmdsOffsets[j]) - } - addCmdsOffset = builder.EndVector(addCmdsLength) - } - allDebugCmdInfoStart(builder) - allDebugCmdInfoAddMainCmds(builder, mainCmdsOffset) - allDebugCmdInfoAddAddCmds(builder, addCmdsOffset) - return allDebugCmdInfoEnd(builder) -} - -func (rcv *allDebugCmdInfo) UnPackTo(t *allDebugCmdInfoT) { - mainCmdsLength := rcv.MainCmdsLength() - t.MainCmds = make([]*debugCmdInfoT, mainCmdsLength) - for j := 0; j < mainCmdsLength; j++ { - x := debugCmdInfo{} - rcv.MainCmds(&x, j) - t.MainCmds[j] = x.UnPack() - } - addCmdsLength := rcv.AddCmdsLength() - t.AddCmds = make([]*debugCmdInfoT, addCmdsLength) - for j := 0; j < addCmdsLength; j++ { - x := debugCmdInfo{} - rcv.AddCmds(&x, j) - t.AddCmds[j] = x.UnPack() - } -} - -func (rcv *allDebugCmdInfo) UnPack() *allDebugCmdInfoT { - if rcv == nil { return nil } - t := &allDebugCmdInfoT{} - rcv.UnPackTo(t) - return t -} - -type allDebugCmdInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsallDebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *allDebugCmdInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &allDebugCmdInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsallDebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *allDebugCmdInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &allDebugCmdInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *allDebugCmdInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *allDebugCmdInfo) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all main motion commands (starting with the most recent active command) -func (rcv *allDebugCmdInfo) MainCmds(obj *debugCmdInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *allDebugCmdInfo) MainCmdsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all main motion commands (starting with the most recent active command) -/// vector of all additional active motion commands -func (rcv *allDebugCmdInfo) AddCmds(obj *debugCmdInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *allDebugCmdInfo) AddCmdsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all additional active motion commands -func allDebugCmdInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func allDebugCmdInfoAddMainCmds(builder *flatbuffers.Builder, mainCmds flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainCmds), 0) -} -func allDebugCmdInfoStartMainCmdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func allDebugCmdInfoAddAddCmds(builder *flatbuffers.Builder, addCmds flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(addCmds), 0) -} -func allDebugCmdInfoStartAddCmdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func allDebugCmdInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// get informations of all active commands and commands that were recently executed of a single motion object +type allDebugCmdInfoT struct { + MainCmds []*debugCmdInfoT + AddCmds []*debugCmdInfoT +} + +func (t *allDebugCmdInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + mainCmdsOffset := flatbuffers.UOffsetT(0) + if t.MainCmds != nil { + mainCmdsLength := len(t.MainCmds) + mainCmdsOffsets := make([]flatbuffers.UOffsetT, mainCmdsLength) + for j := 0; j < mainCmdsLength; j++ { + mainCmdsOffsets[j] = t.MainCmds[j].Pack(builder) + } + allDebugCmdInfoStartMainCmdsVector(builder, mainCmdsLength) + for j := mainCmdsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(mainCmdsOffsets[j]) + } + mainCmdsOffset = builder.EndVector(mainCmdsLength) + } + addCmdsOffset := flatbuffers.UOffsetT(0) + if t.AddCmds != nil { + addCmdsLength := len(t.AddCmds) + addCmdsOffsets := make([]flatbuffers.UOffsetT, addCmdsLength) + for j := 0; j < addCmdsLength; j++ { + addCmdsOffsets[j] = t.AddCmds[j].Pack(builder) + } + allDebugCmdInfoStartAddCmdsVector(builder, addCmdsLength) + for j := addCmdsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(addCmdsOffsets[j]) + } + addCmdsOffset = builder.EndVector(addCmdsLength) + } + allDebugCmdInfoStart(builder) + allDebugCmdInfoAddMainCmds(builder, mainCmdsOffset) + allDebugCmdInfoAddAddCmds(builder, addCmdsOffset) + return allDebugCmdInfoEnd(builder) +} + +func (rcv *allDebugCmdInfo) UnPackTo(t *allDebugCmdInfoT) { + mainCmdsLength := rcv.MainCmdsLength() + t.MainCmds = make([]*debugCmdInfoT, mainCmdsLength) + for j := 0; j < mainCmdsLength; j++ { + x := debugCmdInfo{} + rcv.MainCmds(&x, j) + t.MainCmds[j] = x.UnPack() + } + addCmdsLength := rcv.AddCmdsLength() + t.AddCmds = make([]*debugCmdInfoT, addCmdsLength) + for j := 0; j < addCmdsLength; j++ { + x := debugCmdInfo{} + rcv.AddCmds(&x, j) + t.AddCmds[j] = x.UnPack() + } +} + +func (rcv *allDebugCmdInfo) UnPack() *allDebugCmdInfoT { + if rcv == nil { return nil } + t := &allDebugCmdInfoT{} + rcv.UnPackTo(t) + return t +} + +type allDebugCmdInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsallDebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *allDebugCmdInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &allDebugCmdInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsallDebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *allDebugCmdInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &allDebugCmdInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *allDebugCmdInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *allDebugCmdInfo) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all main motion commands (starting with the most recent active command) +func (rcv *allDebugCmdInfo) MainCmds(obj *debugCmdInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *allDebugCmdInfo) MainCmdsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all main motion commands (starting with the most recent active command) +/// vector of all additional active motion commands +func (rcv *allDebugCmdInfo) AddCmds(obj *debugCmdInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *allDebugCmdInfo) AddCmdsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all additional active motion commands +func allDebugCmdInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func allDebugCmdInfoAddMainCmds(builder *flatbuffers.Builder, mainCmds flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mainCmds), 0) +} +func allDebugCmdInfoStartMainCmdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func allDebugCmdInfoAddAddCmds(builder *flatbuffers.Builder, addCmds flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(addCmds), 0) +} +func allDebugCmdInfoStartAddCmdsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func allDebugCmdInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/debugCmdInfo.go b/pkg/fbs/motion/core/fbtypes/debugCmdInfo.go index db787ce..9b9b204 100644 --- a/pkg/fbs/motion/core/fbtypes/debugCmdInfo.go +++ b/pkg/fbs/motion/core/fbtypes/debugCmdInfo.go @@ -1,177 +1,177 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// get informations of a single active command -type debugCmdInfoT struct { - CmdName string - JobObjects []string - State string - CmdID uint64 - PrepLevel string -} - -func (t *debugCmdInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cmdNameOffset := builder.CreateString(t.CmdName) - jobObjectsOffset := flatbuffers.UOffsetT(0) - if t.JobObjects != nil { - jobObjectsLength := len(t.JobObjects) - jobObjectsOffsets := make([]flatbuffers.UOffsetT, jobObjectsLength) - for j := 0; j < jobObjectsLength; j++ { - jobObjectsOffsets[j] = builder.CreateString(t.JobObjects[j]) - } - debugCmdInfoStartJobObjectsVector(builder, jobObjectsLength) - for j := jobObjectsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(jobObjectsOffsets[j]) - } - jobObjectsOffset = builder.EndVector(jobObjectsLength) - } - stateOffset := builder.CreateString(t.State) - prepLevelOffset := builder.CreateString(t.PrepLevel) - debugCmdInfoStart(builder) - debugCmdInfoAddCmdName(builder, cmdNameOffset) - debugCmdInfoAddJobObjects(builder, jobObjectsOffset) - debugCmdInfoAddState(builder, stateOffset) - debugCmdInfoAddCmdID(builder, t.CmdID) - debugCmdInfoAddPrepLevel(builder, prepLevelOffset) - return debugCmdInfoEnd(builder) -} - -func (rcv *debugCmdInfo) UnPackTo(t *debugCmdInfoT) { - t.CmdName = string(rcv.CmdName()) - jobObjectsLength := rcv.JobObjectsLength() - t.JobObjects = make([]string, jobObjectsLength) - for j := 0; j < jobObjectsLength; j++ { - t.JobObjects[j] = string(rcv.JobObjects(j)) - } - t.State = string(rcv.State()) - t.CmdID = rcv.CmdID() - t.PrepLevel = string(rcv.PrepLevel()) -} - -func (rcv *debugCmdInfo) UnPack() *debugCmdInfoT { - if rcv == nil { return nil } - t := &debugCmdInfoT{} - rcv.UnPackTo(t) - return t -} - -type debugCmdInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsdebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *debugCmdInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &debugCmdInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsdebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *debugCmdInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &debugCmdInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *debugCmdInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *debugCmdInfo) Table() flatbuffers.Table { - return rcv._tab -} - -/// command type name (e.g. PosAbs) -func (rcv *debugCmdInfo) CmdName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// command type name (e.g. PosAbs) -/// array of the strings of the jobObjects (including parameters) -func (rcv *debugCmdInfo) JobObjects(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *debugCmdInfo) JobObjectsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// array of the strings of the jobObjects (including parameters) -/// command state as string -func (rcv *debugCmdInfo) State() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// command state as string -/// command ID -func (rcv *debugCmdInfo) CmdID() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -/// command ID -func (rcv *debugCmdInfo) MutateCmdID(n uint64) bool { - return rcv._tab.MutateUint64Slot(10, n) -} - -/// preparation level (in fact, a section name) -func (rcv *debugCmdInfo) PrepLevel() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// preparation level (in fact, a section name) -func debugCmdInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func debugCmdInfoAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdName), 0) -} -func debugCmdInfoAddJobObjects(builder *flatbuffers.Builder, jobObjects flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(jobObjects), 0) -} -func debugCmdInfoStartJobObjectsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func debugCmdInfoAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(state), 0) -} -func debugCmdInfoAddCmdID(builder *flatbuffers.Builder, cmdID uint64) { - builder.PrependUint64Slot(3, cmdID, 0) -} -func debugCmdInfoAddPrepLevel(builder *flatbuffers.Builder, prepLevel flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(prepLevel), 0) -} -func debugCmdInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// get informations of a single active command +type debugCmdInfoT struct { + CmdName string + JobObjects []string + State string + CmdID uint64 + PrepLevel string +} + +func (t *debugCmdInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cmdNameOffset := builder.CreateString(t.CmdName) + jobObjectsOffset := flatbuffers.UOffsetT(0) + if t.JobObjects != nil { + jobObjectsLength := len(t.JobObjects) + jobObjectsOffsets := make([]flatbuffers.UOffsetT, jobObjectsLength) + for j := 0; j < jobObjectsLength; j++ { + jobObjectsOffsets[j] = builder.CreateString(t.JobObjects[j]) + } + debugCmdInfoStartJobObjectsVector(builder, jobObjectsLength) + for j := jobObjectsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(jobObjectsOffsets[j]) + } + jobObjectsOffset = builder.EndVector(jobObjectsLength) + } + stateOffset := builder.CreateString(t.State) + prepLevelOffset := builder.CreateString(t.PrepLevel) + debugCmdInfoStart(builder) + debugCmdInfoAddCmdName(builder, cmdNameOffset) + debugCmdInfoAddJobObjects(builder, jobObjectsOffset) + debugCmdInfoAddState(builder, stateOffset) + debugCmdInfoAddCmdID(builder, t.CmdID) + debugCmdInfoAddPrepLevel(builder, prepLevelOffset) + return debugCmdInfoEnd(builder) +} + +func (rcv *debugCmdInfo) UnPackTo(t *debugCmdInfoT) { + t.CmdName = string(rcv.CmdName()) + jobObjectsLength := rcv.JobObjectsLength() + t.JobObjects = make([]string, jobObjectsLength) + for j := 0; j < jobObjectsLength; j++ { + t.JobObjects[j] = string(rcv.JobObjects(j)) + } + t.State = string(rcv.State()) + t.CmdID = rcv.CmdID() + t.PrepLevel = string(rcv.PrepLevel()) +} + +func (rcv *debugCmdInfo) UnPack() *debugCmdInfoT { + if rcv == nil { return nil } + t := &debugCmdInfoT{} + rcv.UnPackTo(t) + return t +} + +type debugCmdInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsdebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *debugCmdInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &debugCmdInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsdebugCmdInfo(buf []byte, offset flatbuffers.UOffsetT) *debugCmdInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &debugCmdInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *debugCmdInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *debugCmdInfo) Table() flatbuffers.Table { + return rcv._tab +} + +/// command type name (e.g. PosAbs) +func (rcv *debugCmdInfo) CmdName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// command type name (e.g. PosAbs) +/// array of the strings of the jobObjects (including parameters) +func (rcv *debugCmdInfo) JobObjects(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *debugCmdInfo) JobObjectsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// array of the strings of the jobObjects (including parameters) +/// command state as string +func (rcv *debugCmdInfo) State() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// command state as string +/// command ID +func (rcv *debugCmdInfo) CmdID() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +/// command ID +func (rcv *debugCmdInfo) MutateCmdID(n uint64) bool { + return rcv._tab.MutateUint64Slot(10, n) +} + +/// preparation level (in fact, a section name) +func (rcv *debugCmdInfo) PrepLevel() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// preparation level (in fact, a section name) +func debugCmdInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func debugCmdInfoAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdName), 0) +} +func debugCmdInfoAddJobObjects(builder *flatbuffers.Builder, jobObjects flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(jobObjects), 0) +} +func debugCmdInfoStartJobObjectsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func debugCmdInfoAddState(builder *flatbuffers.Builder, state flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(state), 0) +} +func debugCmdInfoAddCmdID(builder *flatbuffers.Builder, cmdID uint64) { + builder.PrependUint64Slot(3, cmdID, 0) +} +func debugCmdInfoAddPrepLevel(builder *flatbuffers.Builder, prepLevel flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(prepLevel), 0) +} +func debugCmdInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/core/fbtypes/dummyFbs.go b/pkg/fbs/motion/core/fbtypes/dummyFbs.go index ab97411..5203f81 100644 --- a/pkg/fbs/motion/core/fbtypes/dummyFbs.go +++ b/pkg/fbs/motion/core/fbtypes/dummyFbs.go @@ -1,178 +1,178 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// dummy flatbuffer for tests -type dummyFbsT struct { - DummyByte int8 - DummyStr string - DummyInt int32 - DummyDouble float64 - DummyDoublePtr []float64 -} - -func (t *dummyFbsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dummyStrOffset := builder.CreateString(t.DummyStr) - dummyDoublePtrOffset := flatbuffers.UOffsetT(0) - if t.DummyDoublePtr != nil { - dummyDoublePtrLength := len(t.DummyDoublePtr) - dummyFbsStartDummyDoublePtrVector(builder, dummyDoublePtrLength) - for j := dummyDoublePtrLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.DummyDoublePtr[j]) - } - dummyDoublePtrOffset = builder.EndVector(dummyDoublePtrLength) - } - dummyFbsStart(builder) - dummyFbsAddDummyByte(builder, t.DummyByte) - dummyFbsAddDummyStr(builder, dummyStrOffset) - dummyFbsAddDummyInt(builder, t.DummyInt) - dummyFbsAddDummyDouble(builder, t.DummyDouble) - dummyFbsAddDummyDoublePtr(builder, dummyDoublePtrOffset) - return dummyFbsEnd(builder) -} - -func (rcv *dummyFbs) UnPackTo(t *dummyFbsT) { - t.DummyByte = rcv.DummyByte() - t.DummyStr = string(rcv.DummyStr()) - t.DummyInt = rcv.DummyInt() - t.DummyDouble = rcv.DummyDouble() - dummyDoublePtrLength := rcv.DummyDoublePtrLength() - t.DummyDoublePtr = make([]float64, dummyDoublePtrLength) - for j := 0; j < dummyDoublePtrLength; j++ { - t.DummyDoublePtr[j] = rcv.DummyDoublePtr(j) - } -} - -func (rcv *dummyFbs) UnPack() *dummyFbsT { - if rcv == nil { return nil } - t := &dummyFbsT{} - rcv.UnPackTo(t) - return t -} - -type dummyFbs struct { - _tab flatbuffers.Table -} - -func GetRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &dummyFbs{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &dummyFbs{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *dummyFbs) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *dummyFbs) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *dummyFbs) DummyByte() int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *dummyFbs) MutateDummyByte(n int8) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -func (rcv *dummyFbs) DummyStr() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *dummyFbs) DummyInt() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *dummyFbs) MutateDummyInt(n int32) bool { - return rcv._tab.MutateInt32Slot(8, n) -} - -func (rcv *dummyFbs) DummyDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *dummyFbs) MutateDummyDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func (rcv *dummyFbs) DummyDoublePtr(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *dummyFbs) DummyDoublePtrLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *dummyFbs) MutateDummyDoublePtr(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func dummyFbsStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func dummyFbsAddDummyByte(builder *flatbuffers.Builder, dummyByte int8) { - builder.PrependInt8Slot(0, dummyByte, 0) -} -func dummyFbsAddDummyStr(builder *flatbuffers.Builder, dummyStr flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dummyStr), 0) -} -func dummyFbsAddDummyInt(builder *flatbuffers.Builder, dummyInt int32) { - builder.PrependInt32Slot(2, dummyInt, 0) -} -func dummyFbsAddDummyDouble(builder *flatbuffers.Builder, dummyDouble float64) { - builder.PrependFloat64Slot(3, dummyDouble, 0.0) -} -func dummyFbsAddDummyDoublePtr(builder *flatbuffers.Builder, dummyDoublePtr flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dummyDoublePtr), 0) -} -func dummyFbsStartDummyDoublePtrVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func dummyFbsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// dummy flatbuffer for tests +type dummyFbsT struct { + DummyByte int8 + DummyStr string + DummyInt int32 + DummyDouble float64 + DummyDoublePtr []float64 +} + +func (t *dummyFbsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dummyStrOffset := builder.CreateString(t.DummyStr) + dummyDoublePtrOffset := flatbuffers.UOffsetT(0) + if t.DummyDoublePtr != nil { + dummyDoublePtrLength := len(t.DummyDoublePtr) + dummyFbsStartDummyDoublePtrVector(builder, dummyDoublePtrLength) + for j := dummyDoublePtrLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.DummyDoublePtr[j]) + } + dummyDoublePtrOffset = builder.EndVector(dummyDoublePtrLength) + } + dummyFbsStart(builder) + dummyFbsAddDummyByte(builder, t.DummyByte) + dummyFbsAddDummyStr(builder, dummyStrOffset) + dummyFbsAddDummyInt(builder, t.DummyInt) + dummyFbsAddDummyDouble(builder, t.DummyDouble) + dummyFbsAddDummyDoublePtr(builder, dummyDoublePtrOffset) + return dummyFbsEnd(builder) +} + +func (rcv *dummyFbs) UnPackTo(t *dummyFbsT) { + t.DummyByte = rcv.DummyByte() + t.DummyStr = string(rcv.DummyStr()) + t.DummyInt = rcv.DummyInt() + t.DummyDouble = rcv.DummyDouble() + dummyDoublePtrLength := rcv.DummyDoublePtrLength() + t.DummyDoublePtr = make([]float64, dummyDoublePtrLength) + for j := 0; j < dummyDoublePtrLength; j++ { + t.DummyDoublePtr[j] = rcv.DummyDoublePtr(j) + } +} + +func (rcv *dummyFbs) UnPack() *dummyFbsT { + if rcv == nil { return nil } + t := &dummyFbsT{} + rcv.UnPackTo(t) + return t +} + +type dummyFbs struct { + _tab flatbuffers.Table +} + +func GetRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &dummyFbs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsdummyFbs(buf []byte, offset flatbuffers.UOffsetT) *dummyFbs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &dummyFbs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *dummyFbs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *dummyFbs) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *dummyFbs) DummyByte() int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt8(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *dummyFbs) MutateDummyByte(n int8) bool { + return rcv._tab.MutateInt8Slot(4, n) +} + +func (rcv *dummyFbs) DummyStr() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *dummyFbs) DummyInt() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *dummyFbs) MutateDummyInt(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +func (rcv *dummyFbs) DummyDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *dummyFbs) MutateDummyDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func (rcv *dummyFbs) DummyDoublePtr(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *dummyFbs) DummyDoublePtrLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *dummyFbs) MutateDummyDoublePtr(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func dummyFbsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func dummyFbsAddDummyByte(builder *flatbuffers.Builder, dummyByte int8) { + builder.PrependInt8Slot(0, dummyByte, 0) +} +func dummyFbsAddDummyStr(builder *flatbuffers.Builder, dummyStr flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dummyStr), 0) +} +func dummyFbsAddDummyInt(builder *flatbuffers.Builder, dummyInt int32) { + builder.PrependInt32Slot(2, dummyInt, 0) +} +func dummyFbsAddDummyDouble(builder *flatbuffers.Builder, dummyDouble float64) { + builder.PrependFloat64Slot(3, dummyDouble, 0.0) +} +func dummyFbsAddDummyDoublePtr(builder *flatbuffers.Builder, dummyDoublePtr flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dummyDoublePtr), 0) +} +func dummyFbsStartDummyDoublePtrVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func dummyFbsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/AxsCmdCtrlBasedHomingGantryData.go b/pkg/fbs/motion/ext/fbtypes/AxsCmdCtrlBasedHomingGantryData.go index 8541022..bd9bdef 100644 --- a/pkg/fbs/motion/ext/fbtypes/AxsCmdCtrlBasedHomingGantryData.go +++ b/pkg/fbs/motion/ext/fbtypes/AxsCmdCtrlBasedHomingGantryData.go @@ -1,105 +1,105 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of control based gantry homing -type AxsCmdCtrlBasedHomingGantryDataT struct { - HomingParam *HomingParamT - HomingSlaveParam *HomingSlaveParamAllT -} - -func (t *AxsCmdCtrlBasedHomingGantryDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - homingParamOffset := t.HomingParam.Pack(builder) - homingSlaveParamOffset := t.HomingSlaveParam.Pack(builder) - AxsCmdCtrlBasedHomingGantryDataStart(builder) - AxsCmdCtrlBasedHomingGantryDataAddHomingParam(builder, homingParamOffset) - AxsCmdCtrlBasedHomingGantryDataAddHomingSlaveParam(builder, homingSlaveParamOffset) - return AxsCmdCtrlBasedHomingGantryDataEnd(builder) -} - -func (rcv *AxsCmdCtrlBasedHomingGantryData) UnPackTo(t *AxsCmdCtrlBasedHomingGantryDataT) { - t.HomingParam = rcv.HomingParam(nil).UnPack() - t.HomingSlaveParam = rcv.HomingSlaveParam(nil).UnPack() -} - -func (rcv *AxsCmdCtrlBasedHomingGantryData) UnPack() *AxsCmdCtrlBasedHomingGantryDataT { - if rcv == nil { return nil } - t := &AxsCmdCtrlBasedHomingGantryDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdCtrlBasedHomingGantryData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdCtrlBasedHomingGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdCtrlBasedHomingGantryData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdCtrlBasedHomingGantryData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdCtrlBasedHomingGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdCtrlBasedHomingGantryData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdCtrlBasedHomingGantryData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdCtrlBasedHomingGantryData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdCtrlBasedHomingGantryData) Table() flatbuffers.Table { - return rcv._tab -} - -/// homing basic parameters -func (rcv *AxsCmdCtrlBasedHomingGantryData) HomingParam(obj *HomingParam) *HomingParam { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(HomingParam) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// homing basic parameters -/// slave axes parameters -func (rcv *AxsCmdCtrlBasedHomingGantryData) HomingSlaveParam(obj *HomingSlaveParamAll) *HomingSlaveParamAll { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(HomingSlaveParamAll) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// slave axes parameters -func AxsCmdCtrlBasedHomingGantryDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCmdCtrlBasedHomingGantryDataAddHomingParam(builder *flatbuffers.Builder, homingParam flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(homingParam), 0) -} -func AxsCmdCtrlBasedHomingGantryDataAddHomingSlaveParam(builder *flatbuffers.Builder, homingSlaveParam flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(homingSlaveParam), 0) -} -func AxsCmdCtrlBasedHomingGantryDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of control based gantry homing +type AxsCmdCtrlBasedHomingGantryDataT struct { + HomingParam *HomingParamT + HomingSlaveParam *HomingSlaveParamAllT +} + +func (t *AxsCmdCtrlBasedHomingGantryDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + homingParamOffset := t.HomingParam.Pack(builder) + homingSlaveParamOffset := t.HomingSlaveParam.Pack(builder) + AxsCmdCtrlBasedHomingGantryDataStart(builder) + AxsCmdCtrlBasedHomingGantryDataAddHomingParam(builder, homingParamOffset) + AxsCmdCtrlBasedHomingGantryDataAddHomingSlaveParam(builder, homingSlaveParamOffset) + return AxsCmdCtrlBasedHomingGantryDataEnd(builder) +} + +func (rcv *AxsCmdCtrlBasedHomingGantryData) UnPackTo(t *AxsCmdCtrlBasedHomingGantryDataT) { + t.HomingParam = rcv.HomingParam(nil).UnPack() + t.HomingSlaveParam = rcv.HomingSlaveParam(nil).UnPack() +} + +func (rcv *AxsCmdCtrlBasedHomingGantryData) UnPack() *AxsCmdCtrlBasedHomingGantryDataT { + if rcv == nil { return nil } + t := &AxsCmdCtrlBasedHomingGantryDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdCtrlBasedHomingGantryData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdCtrlBasedHomingGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdCtrlBasedHomingGantryData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdCtrlBasedHomingGantryData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdCtrlBasedHomingGantryData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdCtrlBasedHomingGantryData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdCtrlBasedHomingGantryData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdCtrlBasedHomingGantryData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdCtrlBasedHomingGantryData) Table() flatbuffers.Table { + return rcv._tab +} + +/// homing basic parameters +func (rcv *AxsCmdCtrlBasedHomingGantryData) HomingParam(obj *HomingParam) *HomingParam { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(HomingParam) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// homing basic parameters +/// slave axes parameters +func (rcv *AxsCmdCtrlBasedHomingGantryData) HomingSlaveParam(obj *HomingSlaveParamAll) *HomingSlaveParamAll { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(HomingSlaveParamAll) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// slave axes parameters +func AxsCmdCtrlBasedHomingGantryDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdCtrlBasedHomingGantryDataAddHomingParam(builder *flatbuffers.Builder, homingParam flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(homingParam), 0) +} +func AxsCmdCtrlBasedHomingGantryDataAddHomingSlaveParam(builder *flatbuffers.Builder, homingSlaveParam flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(homingSlaveParam), 0) +} +func AxsCmdCtrlBasedHomingGantryDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/AxsCmdFixedstopData.go b/pkg/fbs/motion/ext/fbtypes/AxsCmdFixedstopData.go index ff7e17d..a8b0d4a 100644 --- a/pkg/fbs/motion/ext/fbtypes/AxsCmdFixedstopData.go +++ b/pkg/fbs/motion/ext/fbtypes/AxsCmdFixedstopData.go @@ -1,145 +1,145 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - motion__core__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/core/fbtypes" -) - -/// parameters of the axis position commands -type AxsCmdFixedstopDataT struct { - Buffered bool - AxsPos float64 - MaxTrq float64 - Lim *motion__core__fbtypes.DynamicLimitsT -} - -func (t *AxsCmdFixedstopDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - limOffset := t.Lim.Pack(builder) - AxsCmdFixedstopDataStart(builder) - AxsCmdFixedstopDataAddBuffered(builder, t.Buffered) - AxsCmdFixedstopDataAddAxsPos(builder, t.AxsPos) - AxsCmdFixedstopDataAddMaxTrq(builder, t.MaxTrq) - AxsCmdFixedstopDataAddLim(builder, limOffset) - return AxsCmdFixedstopDataEnd(builder) -} - -func (rcv *AxsCmdFixedstopData) UnPackTo(t *AxsCmdFixedstopDataT) { - t.Buffered = rcv.Buffered() - t.AxsPos = rcv.AxsPos() - t.MaxTrq = rcv.MaxTrq() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *AxsCmdFixedstopData) UnPack() *AxsCmdFixedstopDataT { - if rcv == nil { return nil } - t := &AxsCmdFixedstopDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdFixedstopData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdFixedstopData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdFixedstopData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdFixedstopData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdFixedstopData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdFixedstopData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdFixedstopData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdFixedstopData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdFixedstopData) Table() flatbuffers.Table { - return rcv._tab -} - -/// buffered type for generic command -func (rcv *AxsCmdFixedstopData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// buffered type for generic command -func (rcv *AxsCmdFixedstopData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdFixedstopData) AxsPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdFixedstopData) MutateAxsPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// commanded force / torque limitiation -func (rcv *AxsCmdFixedstopData) MaxTrq() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded force / torque limitiation -func (rcv *AxsCmdFixedstopData) MutateMaxTrq(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// dynamic limits for the motion of this command -func (rcv *AxsCmdFixedstopData) Lim(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(motion__core__fbtypes.DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limits for the motion of this command -func AxsCmdFixedstopDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func AxsCmdFixedstopDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(0, buffered, false) -} -func AxsCmdFixedstopDataAddAxsPos(builder *flatbuffers.Builder, axsPos float64) { - builder.PrependFloat64Slot(1, axsPos, 0.0) -} -func AxsCmdFixedstopDataAddMaxTrq(builder *flatbuffers.Builder, maxTrq float64) { - builder.PrependFloat64Slot(2, maxTrq, 0.0) -} -func AxsCmdFixedstopDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) -} -func AxsCmdFixedstopDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + motion__core__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/core/fbtypes" +) + +/// parameters of the axis position commands +type AxsCmdFixedstopDataT struct { + Buffered bool + AxsPos float64 + MaxTrq float64 + Lim *motion__core__fbtypes.DynamicLimitsT +} + +func (t *AxsCmdFixedstopDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + limOffset := t.Lim.Pack(builder) + AxsCmdFixedstopDataStart(builder) + AxsCmdFixedstopDataAddBuffered(builder, t.Buffered) + AxsCmdFixedstopDataAddAxsPos(builder, t.AxsPos) + AxsCmdFixedstopDataAddMaxTrq(builder, t.MaxTrq) + AxsCmdFixedstopDataAddLim(builder, limOffset) + return AxsCmdFixedstopDataEnd(builder) +} + +func (rcv *AxsCmdFixedstopData) UnPackTo(t *AxsCmdFixedstopDataT) { + t.Buffered = rcv.Buffered() + t.AxsPos = rcv.AxsPos() + t.MaxTrq = rcv.MaxTrq() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *AxsCmdFixedstopData) UnPack() *AxsCmdFixedstopDataT { + if rcv == nil { return nil } + t := &AxsCmdFixedstopDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdFixedstopData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdFixedstopData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdFixedstopData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdFixedstopData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdFixedstopData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdFixedstopData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdFixedstopData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdFixedstopData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdFixedstopData) Table() flatbuffers.Table { + return rcv._tab +} + +/// buffered type for generic command +func (rcv *AxsCmdFixedstopData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// buffered type for generic command +func (rcv *AxsCmdFixedstopData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdFixedstopData) AxsPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdFixedstopData) MutateAxsPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// commanded force / torque limitiation +func (rcv *AxsCmdFixedstopData) MaxTrq() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded force / torque limitiation +func (rcv *AxsCmdFixedstopData) MutateMaxTrq(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// dynamic limits for the motion of this command +func (rcv *AxsCmdFixedstopData) Lim(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(motion__core__fbtypes.DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limits for the motion of this command +func AxsCmdFixedstopDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCmdFixedstopDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(0, buffered, false) +} +func AxsCmdFixedstopDataAddAxsPos(builder *flatbuffers.Builder, axsPos float64) { + builder.PrependFloat64Slot(1, axsPos, 0.0) +} +func AxsCmdFixedstopDataAddMaxTrq(builder *flatbuffers.Builder, maxTrq float64) { + builder.PrependFloat64Slot(2, maxTrq, 0.0) +} +func AxsCmdFixedstopDataAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) +} +func AxsCmdFixedstopDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/AxsCmdHomingData.go b/pkg/fbs/motion/ext/fbtypes/AxsCmdHomingData.go index b073617..295d269 100644 --- a/pkg/fbs/motion/ext/fbtypes/AxsCmdHomingData.go +++ b/pkg/fbs/motion/ext/fbtypes/AxsCmdHomingData.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis position commands -type AxsCmdHomingDataT struct { - Buffered bool - NewRefPos float64 -} - -func (t *AxsCmdHomingDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCmdHomingDataStart(builder) - AxsCmdHomingDataAddBuffered(builder, t.Buffered) - AxsCmdHomingDataAddNewRefPos(builder, t.NewRefPos) - return AxsCmdHomingDataEnd(builder) -} - -func (rcv *AxsCmdHomingData) UnPackTo(t *AxsCmdHomingDataT) { - t.Buffered = rcv.Buffered() - t.NewRefPos = rcv.NewRefPos() -} - -func (rcv *AxsCmdHomingData) UnPack() *AxsCmdHomingDataT { - if rcv == nil { return nil } - t := &AxsCmdHomingDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdHomingData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdHomingData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdHomingData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdHomingData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdHomingData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdHomingData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdHomingData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdHomingData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdHomingData) Table() flatbuffers.Table { - return rcv._tab -} - -/// buffered type for generic command -func (rcv *AxsCmdHomingData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// buffered type for generic command -func (rcv *AxsCmdHomingData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdHomingData) NewRefPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdHomingData) MutateNewRefPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func AxsCmdHomingDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCmdHomingDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(0, buffered, false) -} -func AxsCmdHomingDataAddNewRefPos(builder *flatbuffers.Builder, newRefPos float64) { - builder.PrependFloat64Slot(1, newRefPos, 0.0) -} -func AxsCmdHomingDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis position commands +type AxsCmdHomingDataT struct { + Buffered bool + NewRefPos float64 +} + +func (t *AxsCmdHomingDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCmdHomingDataStart(builder) + AxsCmdHomingDataAddBuffered(builder, t.Buffered) + AxsCmdHomingDataAddNewRefPos(builder, t.NewRefPos) + return AxsCmdHomingDataEnd(builder) +} + +func (rcv *AxsCmdHomingData) UnPackTo(t *AxsCmdHomingDataT) { + t.Buffered = rcv.Buffered() + t.NewRefPos = rcv.NewRefPos() +} + +func (rcv *AxsCmdHomingData) UnPack() *AxsCmdHomingDataT { + if rcv == nil { return nil } + t := &AxsCmdHomingDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdHomingData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdHomingData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdHomingData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdHomingData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdHomingData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdHomingData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdHomingData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdHomingData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdHomingData) Table() flatbuffers.Table { + return rcv._tab +} + +/// buffered type for generic command +func (rcv *AxsCmdHomingData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// buffered type for generic command +func (rcv *AxsCmdHomingData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdHomingData) NewRefPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdHomingData) MutateNewRefPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func AxsCmdHomingDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdHomingDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(0, buffered, false) +} +func AxsCmdHomingDataAddNewRefPos(builder *flatbuffers.Builder, newRefPos float64) { + builder.PrependFloat64Slot(1, newRefPos, 0.0) +} +func AxsCmdHomingDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/AxsCmdSetAbsPosData.go b/pkg/fbs/motion/ext/fbtypes/AxsCmdSetAbsPosData.go index 7aa7474..c42a12e 100644 --- a/pkg/fbs/motion/ext/fbtypes/AxsCmdSetAbsPosData.go +++ b/pkg/fbs/motion/ext/fbtypes/AxsCmdSetAbsPosData.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis position commands -type AxsCmdSetAbsPosDataT struct { - Buffered bool - AxsPos float64 -} - -func (t *AxsCmdSetAbsPosDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCmdSetAbsPosDataStart(builder) - AxsCmdSetAbsPosDataAddBuffered(builder, t.Buffered) - AxsCmdSetAbsPosDataAddAxsPos(builder, t.AxsPos) - return AxsCmdSetAbsPosDataEnd(builder) -} - -func (rcv *AxsCmdSetAbsPosData) UnPackTo(t *AxsCmdSetAbsPosDataT) { - t.Buffered = rcv.Buffered() - t.AxsPos = rcv.AxsPos() -} - -func (rcv *AxsCmdSetAbsPosData) UnPack() *AxsCmdSetAbsPosDataT { - if rcv == nil { return nil } - t := &AxsCmdSetAbsPosDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdSetAbsPosData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdSetAbsPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSetAbsPosData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdSetAbsPosData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdSetAbsPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSetAbsPosData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdSetAbsPosData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdSetAbsPosData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdSetAbsPosData) Table() flatbuffers.Table { - return rcv._tab -} - -/// buffered type for generic command -func (rcv *AxsCmdSetAbsPosData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// buffered type for generic command -func (rcv *AxsCmdSetAbsPosData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdSetAbsPosData) AxsPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target position (or increment for relative position command) -func (rcv *AxsCmdSetAbsPosData) MutateAxsPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func AxsCmdSetAbsPosDataStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCmdSetAbsPosDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(0, buffered, false) -} -func AxsCmdSetAbsPosDataAddAxsPos(builder *flatbuffers.Builder, axsPos float64) { - builder.PrependFloat64Slot(1, axsPos, 0.0) -} -func AxsCmdSetAbsPosDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis position commands +type AxsCmdSetAbsPosDataT struct { + Buffered bool + AxsPos float64 +} + +func (t *AxsCmdSetAbsPosDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCmdSetAbsPosDataStart(builder) + AxsCmdSetAbsPosDataAddBuffered(builder, t.Buffered) + AxsCmdSetAbsPosDataAddAxsPos(builder, t.AxsPos) + return AxsCmdSetAbsPosDataEnd(builder) +} + +func (rcv *AxsCmdSetAbsPosData) UnPackTo(t *AxsCmdSetAbsPosDataT) { + t.Buffered = rcv.Buffered() + t.AxsPos = rcv.AxsPos() +} + +func (rcv *AxsCmdSetAbsPosData) UnPack() *AxsCmdSetAbsPosDataT { + if rcv == nil { return nil } + t := &AxsCmdSetAbsPosDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdSetAbsPosData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdSetAbsPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSetAbsPosData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdSetAbsPosData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdSetAbsPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSetAbsPosData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdSetAbsPosData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdSetAbsPosData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdSetAbsPosData) Table() flatbuffers.Table { + return rcv._tab +} + +/// buffered type for generic command +func (rcv *AxsCmdSetAbsPosData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// buffered type for generic command +func (rcv *AxsCmdSetAbsPosData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdSetAbsPosData) AxsPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target position (or increment for relative position command) +func (rcv *AxsCmdSetAbsPosData) MutateAxsPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func AxsCmdSetAbsPosDataStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCmdSetAbsPosDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(0, buffered, false) +} +func AxsCmdSetAbsPosDataAddAxsPos(builder *flatbuffers.Builder, axsPos float64) { + builder.PrependFloat64Slot(1, axsPos, 0.0) +} +func AxsCmdSetAbsPosDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/CmdBufferType.go b/pkg/fbs/motion/ext/fbtypes/CmdBufferType.go index 2bbea95..6c24476 100644 --- a/pkg/fbs/motion/ext/fbtypes/CmdBufferType.go +++ b/pkg/fbs/motion/ext/fbtypes/CmdBufferType.go @@ -1,81 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameter defines the buffer type of generic command -type CmdBufferTypeT struct { - Buffered bool -} - -func (t *CmdBufferTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - CmdBufferTypeStart(builder) - CmdBufferTypeAddBuffered(builder, t.Buffered) - return CmdBufferTypeEnd(builder) -} - -func (rcv *CmdBufferType) UnPackTo(t *CmdBufferTypeT) { - t.Buffered = rcv.Buffered() -} - -func (rcv *CmdBufferType) UnPack() *CmdBufferTypeT { - if rcv == nil { return nil } - t := &CmdBufferTypeT{} - rcv.UnPackTo(t) - return t -} - -type CmdBufferType struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdBufferType(buf []byte, offset flatbuffers.UOffsetT) *CmdBufferType { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdBufferType{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdBufferType(buf []byte, offset flatbuffers.UOffsetT) *CmdBufferType { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdBufferType{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdBufferType) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdBufferType) Table() flatbuffers.Table { - return rcv._tab -} - -/// buffered type for generic command -func (rcv *CmdBufferType) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// buffered type for generic command -func (rcv *CmdBufferType) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func CmdBufferTypeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CmdBufferTypeAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(0, buffered, false) -} -func CmdBufferTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameter defines the buffer type of generic command +type CmdBufferTypeT struct { + Buffered bool +} + +func (t *CmdBufferTypeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CmdBufferTypeStart(builder) + CmdBufferTypeAddBuffered(builder, t.Buffered) + return CmdBufferTypeEnd(builder) +} + +func (rcv *CmdBufferType) UnPackTo(t *CmdBufferTypeT) { + t.Buffered = rcv.Buffered() +} + +func (rcv *CmdBufferType) UnPack() *CmdBufferTypeT { + if rcv == nil { return nil } + t := &CmdBufferTypeT{} + rcv.UnPackTo(t) + return t +} + +type CmdBufferType struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdBufferType(buf []byte, offset flatbuffers.UOffsetT) *CmdBufferType { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdBufferType{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdBufferType(buf []byte, offset flatbuffers.UOffsetT) *CmdBufferType { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdBufferType{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdBufferType) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdBufferType) Table() flatbuffers.Table { + return rcv._tab +} + +/// buffered type for generic command +func (rcv *CmdBufferType) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// buffered type for generic command +func (rcv *CmdBufferType) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func CmdBufferTypeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CmdBufferTypeAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(0, buffered, false) +} +func CmdBufferTypeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/HomingParam.go b/pkg/fbs/motion/ext/fbtypes/HomingParam.go index b862121..9300919 100644 --- a/pkg/fbs/motion/ext/fbtypes/HomingParam.go +++ b/pkg/fbs/motion/ext/fbtypes/HomingParam.go @@ -1,184 +1,184 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - motion__core__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/core/fbtypes" -) - -/// set of homing parameters -type HomingParamT struct { - NewRefPos float64 - TravelDisLim float64 - HomingDir string - RefType RefType - DynForward *motion__core__fbtypes.DynamicLimitsT - DynBackward *motion__core__fbtypes.DynamicLimitsT -} - -func (t *HomingParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - homingDirOffset := builder.CreateString(t.HomingDir) - dynForwardOffset := t.DynForward.Pack(builder) - dynBackwardOffset := t.DynBackward.Pack(builder) - HomingParamStart(builder) - HomingParamAddNewRefPos(builder, t.NewRefPos) - HomingParamAddTravelDisLim(builder, t.TravelDisLim) - HomingParamAddHomingDir(builder, homingDirOffset) - HomingParamAddRefType(builder, t.RefType) - HomingParamAddDynForward(builder, dynForwardOffset) - HomingParamAddDynBackward(builder, dynBackwardOffset) - return HomingParamEnd(builder) -} - -func (rcv *HomingParam) UnPackTo(t *HomingParamT) { - t.NewRefPos = rcv.NewRefPos() - t.TravelDisLim = rcv.TravelDisLim() - t.HomingDir = string(rcv.HomingDir()) - t.RefType = rcv.RefType() - t.DynForward = rcv.DynForward(nil).UnPack() - t.DynBackward = rcv.DynBackward(nil).UnPack() -} - -func (rcv *HomingParam) UnPack() *HomingParamT { - if rcv == nil { return nil } - t := &HomingParamT{} - rcv.UnPackTo(t) - return t -} - -type HomingParam struct { - _tab flatbuffers.Table -} - -func GetRootAsHomingParam(buf []byte, offset flatbuffers.UOffsetT) *HomingParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &HomingParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsHomingParam(buf []byte, offset flatbuffers.UOffsetT) *HomingParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &HomingParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *HomingParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *HomingParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// commanded target position (or increment for relative position command -func (rcv *HomingParam) NewRefPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// commanded target position (or increment for relative position command -func (rcv *HomingParam) MutateNewRefPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// max travel distance to search the reference switch -func (rcv *HomingParam) TravelDisLim() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// max travel distance to search the reference switch -func (rcv *HomingParam) MutateTravelDisLim(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// homing direction -func (rcv *HomingParam) HomingDir() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// homing direction -/// reference type to indicates set which position as the reference position -func (rcv *HomingParam) RefType() RefType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return RefType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// reference type to indicates set which position as the reference position -func (rcv *HomingParam) MutateRefType(n RefType) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -/// dynamic limit to search the reference switch(fast velocity) -func (rcv *HomingParam) DynForward(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(motion__core__fbtypes.DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limit to search the reference switch(fast velocity) -/// dynamic limit to move to reference switch(slow velocity) -func (rcv *HomingParam) DynBackward(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(motion__core__fbtypes.DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// dynamic limit to move to reference switch(slow velocity) -func HomingParamStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func HomingParamAddNewRefPos(builder *flatbuffers.Builder, newRefPos float64) { - builder.PrependFloat64Slot(0, newRefPos, 0.0) -} -func HomingParamAddTravelDisLim(builder *flatbuffers.Builder, travelDisLim float64) { - builder.PrependFloat64Slot(1, travelDisLim, 0.0) -} -func HomingParamAddHomingDir(builder *flatbuffers.Builder, homingDir flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(homingDir), 0) -} -func HomingParamAddRefType(builder *flatbuffers.Builder, refType RefType) { - builder.PrependInt8Slot(3, int8(refType), 0) -} -func HomingParamAddDynForward(builder *flatbuffers.Builder, dynForward flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dynForward), 0) -} -func HomingParamAddDynBackward(builder *flatbuffers.Builder, dynBackward flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(dynBackward), 0) -} -func HomingParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + motion__core__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/core/fbtypes" +) + +/// set of homing parameters +type HomingParamT struct { + NewRefPos float64 + TravelDisLim float64 + HomingDir string + RefType RefType + DynForward *motion__core__fbtypes.DynamicLimitsT + DynBackward *motion__core__fbtypes.DynamicLimitsT +} + +func (t *HomingParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + homingDirOffset := builder.CreateString(t.HomingDir) + dynForwardOffset := t.DynForward.Pack(builder) + dynBackwardOffset := t.DynBackward.Pack(builder) + HomingParamStart(builder) + HomingParamAddNewRefPos(builder, t.NewRefPos) + HomingParamAddTravelDisLim(builder, t.TravelDisLim) + HomingParamAddHomingDir(builder, homingDirOffset) + HomingParamAddRefType(builder, t.RefType) + HomingParamAddDynForward(builder, dynForwardOffset) + HomingParamAddDynBackward(builder, dynBackwardOffset) + return HomingParamEnd(builder) +} + +func (rcv *HomingParam) UnPackTo(t *HomingParamT) { + t.NewRefPos = rcv.NewRefPos() + t.TravelDisLim = rcv.TravelDisLim() + t.HomingDir = string(rcv.HomingDir()) + t.RefType = rcv.RefType() + t.DynForward = rcv.DynForward(nil).UnPack() + t.DynBackward = rcv.DynBackward(nil).UnPack() +} + +func (rcv *HomingParam) UnPack() *HomingParamT { + if rcv == nil { return nil } + t := &HomingParamT{} + rcv.UnPackTo(t) + return t +} + +type HomingParam struct { + _tab flatbuffers.Table +} + +func GetRootAsHomingParam(buf []byte, offset flatbuffers.UOffsetT) *HomingParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &HomingParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsHomingParam(buf []byte, offset flatbuffers.UOffsetT) *HomingParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &HomingParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *HomingParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *HomingParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// commanded target position (or increment for relative position command +func (rcv *HomingParam) NewRefPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// commanded target position (or increment for relative position command +func (rcv *HomingParam) MutateNewRefPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// max travel distance to search the reference switch +func (rcv *HomingParam) TravelDisLim() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// max travel distance to search the reference switch +func (rcv *HomingParam) MutateTravelDisLim(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// homing direction +func (rcv *HomingParam) HomingDir() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// homing direction +/// reference type to indicates set which position as the reference position +func (rcv *HomingParam) RefType() RefType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return RefType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// reference type to indicates set which position as the reference position +func (rcv *HomingParam) MutateRefType(n RefType) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +/// dynamic limit to search the reference switch(fast velocity) +func (rcv *HomingParam) DynForward(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(motion__core__fbtypes.DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limit to search the reference switch(fast velocity) +/// dynamic limit to move to reference switch(slow velocity) +func (rcv *HomingParam) DynBackward(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(motion__core__fbtypes.DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// dynamic limit to move to reference switch(slow velocity) +func HomingParamStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func HomingParamAddNewRefPos(builder *flatbuffers.Builder, newRefPos float64) { + builder.PrependFloat64Slot(0, newRefPos, 0.0) +} +func HomingParamAddTravelDisLim(builder *flatbuffers.Builder, travelDisLim float64) { + builder.PrependFloat64Slot(1, travelDisLim, 0.0) +} +func HomingParamAddHomingDir(builder *flatbuffers.Builder, homingDir flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(homingDir), 0) +} +func HomingParamAddRefType(builder *flatbuffers.Builder, refType RefType) { + builder.PrependInt8Slot(3, int8(refType), 0) +} +func HomingParamAddDynForward(builder *flatbuffers.Builder, dynForward flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dynForward), 0) +} +func HomingParamAddDynBackward(builder *flatbuffers.Builder, dynBackward flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(dynBackward), 0) +} +func HomingParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamAll.go b/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamAll.go index 79a95dc..08e10c2 100644 --- a/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamAll.go +++ b/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamAll.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of all slave axes parameters -type HomingSlaveParamAllT struct { - HomingSlaveParamAll []*HomingSlaveParamSingleT -} - -func (t *HomingSlaveParamAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - homingSlaveParamAllOffset := flatbuffers.UOffsetT(0) - if t.HomingSlaveParamAll != nil { - homingSlaveParamAllLength := len(t.HomingSlaveParamAll) - homingSlaveParamAllOffsets := make([]flatbuffers.UOffsetT, homingSlaveParamAllLength) - for j := 0; j < homingSlaveParamAllLength; j++ { - homingSlaveParamAllOffsets[j] = t.HomingSlaveParamAll[j].Pack(builder) - } - HomingSlaveParamAllStartHomingSlaveParamAllVector(builder, homingSlaveParamAllLength) - for j := homingSlaveParamAllLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(homingSlaveParamAllOffsets[j]) - } - homingSlaveParamAllOffset = builder.EndVector(homingSlaveParamAllLength) - } - HomingSlaveParamAllStart(builder) - HomingSlaveParamAllAddHomingSlaveParamAll(builder, homingSlaveParamAllOffset) - return HomingSlaveParamAllEnd(builder) -} - -func (rcv *HomingSlaveParamAll) UnPackTo(t *HomingSlaveParamAllT) { - homingSlaveParamAllLength := rcv.HomingSlaveParamAllLength() - t.HomingSlaveParamAll = make([]*HomingSlaveParamSingleT, homingSlaveParamAllLength) - for j := 0; j < homingSlaveParamAllLength; j++ { - x := HomingSlaveParamSingle{} - rcv.HomingSlaveParamAll(&x, j) - t.HomingSlaveParamAll[j] = x.UnPack() - } -} - -func (rcv *HomingSlaveParamAll) UnPack() *HomingSlaveParamAllT { - if rcv == nil { return nil } - t := &HomingSlaveParamAllT{} - rcv.UnPackTo(t) - return t -} - -type HomingSlaveParamAll struct { - _tab flatbuffers.Table -} - -func GetRootAsHomingSlaveParamAll(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &HomingSlaveParamAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsHomingSlaveParamAll(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &HomingSlaveParamAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *HomingSlaveParamAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *HomingSlaveParamAll) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all slave parameters -func (rcv *HomingSlaveParamAll) HomingSlaveParamAll(obj *HomingSlaveParamSingle, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *HomingSlaveParamAll) HomingSlaveParamAllLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all slave parameters -func HomingSlaveParamAllStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func HomingSlaveParamAllAddHomingSlaveParamAll(builder *flatbuffers.Builder, homingSlaveParamAll flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(homingSlaveParamAll), 0) -} -func HomingSlaveParamAllStartHomingSlaveParamAllVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func HomingSlaveParamAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of all slave axes parameters +type HomingSlaveParamAllT struct { + HomingSlaveParamAll []*HomingSlaveParamSingleT +} + +func (t *HomingSlaveParamAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + homingSlaveParamAllOffset := flatbuffers.UOffsetT(0) + if t.HomingSlaveParamAll != nil { + homingSlaveParamAllLength := len(t.HomingSlaveParamAll) + homingSlaveParamAllOffsets := make([]flatbuffers.UOffsetT, homingSlaveParamAllLength) + for j := 0; j < homingSlaveParamAllLength; j++ { + homingSlaveParamAllOffsets[j] = t.HomingSlaveParamAll[j].Pack(builder) + } + HomingSlaveParamAllStartHomingSlaveParamAllVector(builder, homingSlaveParamAllLength) + for j := homingSlaveParamAllLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(homingSlaveParamAllOffsets[j]) + } + homingSlaveParamAllOffset = builder.EndVector(homingSlaveParamAllLength) + } + HomingSlaveParamAllStart(builder) + HomingSlaveParamAllAddHomingSlaveParamAll(builder, homingSlaveParamAllOffset) + return HomingSlaveParamAllEnd(builder) +} + +func (rcv *HomingSlaveParamAll) UnPackTo(t *HomingSlaveParamAllT) { + homingSlaveParamAllLength := rcv.HomingSlaveParamAllLength() + t.HomingSlaveParamAll = make([]*HomingSlaveParamSingleT, homingSlaveParamAllLength) + for j := 0; j < homingSlaveParamAllLength; j++ { + x := HomingSlaveParamSingle{} + rcv.HomingSlaveParamAll(&x, j) + t.HomingSlaveParamAll[j] = x.UnPack() + } +} + +func (rcv *HomingSlaveParamAll) UnPack() *HomingSlaveParamAllT { + if rcv == nil { return nil } + t := &HomingSlaveParamAllT{} + rcv.UnPackTo(t) + return t +} + +type HomingSlaveParamAll struct { + _tab flatbuffers.Table +} + +func GetRootAsHomingSlaveParamAll(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &HomingSlaveParamAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsHomingSlaveParamAll(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &HomingSlaveParamAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *HomingSlaveParamAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *HomingSlaveParamAll) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all slave parameters +func (rcv *HomingSlaveParamAll) HomingSlaveParamAll(obj *HomingSlaveParamSingle, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *HomingSlaveParamAll) HomingSlaveParamAllLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all slave parameters +func HomingSlaveParamAllStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func HomingSlaveParamAllAddHomingSlaveParamAll(builder *flatbuffers.Builder, homingSlaveParamAll flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(homingSlaveParamAll), 0) +} +func HomingSlaveParamAllStartHomingSlaveParamAllVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func HomingSlaveParamAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamSingle.go b/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamSingle.go index f856a40..9be27f8 100644 --- a/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamSingle.go +++ b/pkg/fbs/motion/ext/fbtypes/HomingSlaveParamSingle.go @@ -1,121 +1,121 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -///slave axes parameter of control based gantry homing -type HomingSlaveParamSingleT struct { - SlaveId uint16 - NewRefPos float64 - MarkerSel RefMarkerSel -} - -func (t *HomingSlaveParamSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - HomingSlaveParamSingleStart(builder) - HomingSlaveParamSingleAddSlaveId(builder, t.SlaveId) - HomingSlaveParamSingleAddNewRefPos(builder, t.NewRefPos) - HomingSlaveParamSingleAddMarkerSel(builder, t.MarkerSel) - return HomingSlaveParamSingleEnd(builder) -} - -func (rcv *HomingSlaveParamSingle) UnPackTo(t *HomingSlaveParamSingleT) { - t.SlaveId = rcv.SlaveId() - t.NewRefPos = rcv.NewRefPos() - t.MarkerSel = rcv.MarkerSel() -} - -func (rcv *HomingSlaveParamSingle) UnPack() *HomingSlaveParamSingleT { - if rcv == nil { return nil } - t := &HomingSlaveParamSingleT{} - rcv.UnPackTo(t) - return t -} - -type HomingSlaveParamSingle struct { - _tab flatbuffers.Table -} - -func GetRootAsHomingSlaveParamSingle(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamSingle { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &HomingSlaveParamSingle{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsHomingSlaveParamSingle(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamSingle { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &HomingSlaveParamSingle{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *HomingSlaveParamSingle) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *HomingSlaveParamSingle) Table() flatbuffers.Table { - return rcv._tab -} - -///the id of slave axis -func (rcv *HomingSlaveParamSingle) SlaveId() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -///the id of slave axis -func (rcv *HomingSlaveParamSingle) MutateSlaveId(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -///commanded reference position of slave axis -func (rcv *HomingSlaveParamSingle) NewRefPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -///commanded reference position of slave axis -func (rcv *HomingSlaveParamSingle) MutateNewRefPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -///select which reference mark to set the reference position -func (rcv *HomingSlaveParamSingle) MarkerSel() RefMarkerSel { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return RefMarkerSel(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -///select which reference mark to set the reference position -func (rcv *HomingSlaveParamSingle) MutateMarkerSel(n RefMarkerSel) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func HomingSlaveParamSingleStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func HomingSlaveParamSingleAddSlaveId(builder *flatbuffers.Builder, slaveId uint16) { - builder.PrependUint16Slot(0, slaveId, 0) -} -func HomingSlaveParamSingleAddNewRefPos(builder *flatbuffers.Builder, newRefPos float64) { - builder.PrependFloat64Slot(1, newRefPos, 0.0) -} -func HomingSlaveParamSingleAddMarkerSel(builder *flatbuffers.Builder, markerSel RefMarkerSel) { - builder.PrependInt8Slot(2, int8(markerSel), 0) -} -func HomingSlaveParamSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +///slave axes parameter of control based gantry homing +type HomingSlaveParamSingleT struct { + SlaveId uint16 + NewRefPos float64 + MarkerSel RefMarkerSel +} + +func (t *HomingSlaveParamSingleT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + HomingSlaveParamSingleStart(builder) + HomingSlaveParamSingleAddSlaveId(builder, t.SlaveId) + HomingSlaveParamSingleAddNewRefPos(builder, t.NewRefPos) + HomingSlaveParamSingleAddMarkerSel(builder, t.MarkerSel) + return HomingSlaveParamSingleEnd(builder) +} + +func (rcv *HomingSlaveParamSingle) UnPackTo(t *HomingSlaveParamSingleT) { + t.SlaveId = rcv.SlaveId() + t.NewRefPos = rcv.NewRefPos() + t.MarkerSel = rcv.MarkerSel() +} + +func (rcv *HomingSlaveParamSingle) UnPack() *HomingSlaveParamSingleT { + if rcv == nil { return nil } + t := &HomingSlaveParamSingleT{} + rcv.UnPackTo(t) + return t +} + +type HomingSlaveParamSingle struct { + _tab flatbuffers.Table +} + +func GetRootAsHomingSlaveParamSingle(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamSingle { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &HomingSlaveParamSingle{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsHomingSlaveParamSingle(buf []byte, offset flatbuffers.UOffsetT) *HomingSlaveParamSingle { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &HomingSlaveParamSingle{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *HomingSlaveParamSingle) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *HomingSlaveParamSingle) Table() flatbuffers.Table { + return rcv._tab +} + +///the id of slave axis +func (rcv *HomingSlaveParamSingle) SlaveId() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +///the id of slave axis +func (rcv *HomingSlaveParamSingle) MutateSlaveId(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +///commanded reference position of slave axis +func (rcv *HomingSlaveParamSingle) NewRefPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +///commanded reference position of slave axis +func (rcv *HomingSlaveParamSingle) MutateNewRefPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +///select which reference mark to set the reference position +func (rcv *HomingSlaveParamSingle) MarkerSel() RefMarkerSel { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return RefMarkerSel(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +///select which reference mark to set the reference position +func (rcv *HomingSlaveParamSingle) MutateMarkerSel(n RefMarkerSel) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func HomingSlaveParamSingleStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func HomingSlaveParamSingleAddSlaveId(builder *flatbuffers.Builder, slaveId uint16) { + builder.PrependUint16Slot(0, slaveId, 0) +} +func HomingSlaveParamSingleAddNewRefPos(builder *flatbuffers.Builder, newRefPos float64) { + builder.PrependFloat64Slot(1, newRefPos, 0.0) +} +func HomingSlaveParamSingleAddMarkerSel(builder *flatbuffers.Builder, markerSel RefMarkerSel) { + builder.PrependInt8Slot(2, int8(markerSel), 0) +} +func HomingSlaveParamSingleEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/ext/fbtypes/RefMarkerSel.go b/pkg/fbs/motion/ext/fbtypes/RefMarkerSel.go index 6d20f14..1741ec8 100644 --- a/pkg/fbs/motion/ext/fbtypes/RefMarkerSel.go +++ b/pkg/fbs/motion/ext/fbtypes/RefMarkerSel.go @@ -1,29 +1,29 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type RefMarkerSel int8 - -const ( - RefMarkerSelMASTER_SWITCH RefMarkerSel = 0 - RefMarkerSelSELF_SWITCH RefMarkerSel = 1 -) - -var EnumNamesRefMarkerSel = map[RefMarkerSel]string{ - RefMarkerSelMASTER_SWITCH: "MASTER_SWITCH", - RefMarkerSelSELF_SWITCH: "SELF_SWITCH", -} - -var EnumValuesRefMarkerSel = map[string]RefMarkerSel{ - "MASTER_SWITCH": RefMarkerSelMASTER_SWITCH, - "SELF_SWITCH": RefMarkerSelSELF_SWITCH, -} - -func (v RefMarkerSel) String() string { - if s, ok := EnumNamesRefMarkerSel[v]; ok { - return s - } - return "RefMarkerSel(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type RefMarkerSel int8 + +const ( + RefMarkerSelMASTER_SWITCH RefMarkerSel = 0 + RefMarkerSelSELF_SWITCH RefMarkerSel = 1 +) + +var EnumNamesRefMarkerSel = map[RefMarkerSel]string{ + RefMarkerSelMASTER_SWITCH: "MASTER_SWITCH", + RefMarkerSelSELF_SWITCH: "SELF_SWITCH", +} + +var EnumValuesRefMarkerSel = map[string]RefMarkerSel{ + "MASTER_SWITCH": RefMarkerSelMASTER_SWITCH, + "SELF_SWITCH": RefMarkerSelSELF_SWITCH, +} + +func (v RefMarkerSel) String() string { + if s, ok := EnumNamesRefMarkerSel[v]; ok { + return s + } + return "RefMarkerSel(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/ext/fbtypes/RefMode.go b/pkg/fbs/motion/ext/fbtypes/RefMode.go new file mode 100644 index 0000000..de64094 --- /dev/null +++ b/pkg/fbs/motion/ext/fbtypes/RefMode.go @@ -0,0 +1,33 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// set new reference in driver or control or don't set new reference +type RefMode int8 + +const ( + RefModeSET_POS_DEVICE RefMode = 0 + RefModeSET_POS_PROFILE RefMode = 1 + RefModeSET_NONE RefMode = 2 +) + +var EnumNamesRefMode = map[RefMode]string{ + RefModeSET_POS_DEVICE: "SET_POS_DEVICE", + RefModeSET_POS_PROFILE: "SET_POS_PROFILE", + RefModeSET_NONE: "SET_NONE", +} + +var EnumValuesRefMode = map[string]RefMode{ + "SET_POS_DEVICE": RefModeSET_POS_DEVICE, + "SET_POS_PROFILE": RefModeSET_POS_PROFILE, + "SET_NONE": RefModeSET_NONE, +} + +func (v RefMode) String() string { + if s, ok := EnumNamesRefMode[v]; ok { + return s + } + return "RefMode(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/ext/fbtypes/RefType.go b/pkg/fbs/motion/ext/fbtypes/RefType.go index 07e6b2c..cf22af6 100644 --- a/pkg/fbs/motion/ext/fbtypes/RefType.go +++ b/pkg/fbs/motion/ext/fbtypes/RefType.go @@ -1,29 +1,29 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type RefType int8 - -const ( - RefTypeSTOPPED_POS RefType = 0 - RefTypeMARKER_POS RefType = 1 -) - -var EnumNamesRefType = map[RefType]string{ - RefTypeSTOPPED_POS: "STOPPED_POS", - RefTypeMARKER_POS: "MARKER_POS", -} - -var EnumValuesRefType = map[string]RefType{ - "STOPPED_POS": RefTypeSTOPPED_POS, - "MARKER_POS": RefTypeMARKER_POS, -} - -func (v RefType) String() string { - if s, ok := EnumNamesRefType[v]; ok { - return s - } - return "RefType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type RefType int8 + +const ( + RefTypeSTOPPED_POS RefType = 0 + RefTypeMARKER_POS RefType = 1 +) + +var EnumNamesRefType = map[RefType]string{ + RefTypeSTOPPED_POS: "STOPPED_POS", + RefTypeMARKER_POS: "MARKER_POS", +} + +var EnumValuesRefType = map[string]RefType{ + "STOPPED_POS": RefTypeSTOPPED_POS, + "MARKER_POS": RefTypeMARKER_POS, +} + +func (v RefType) String() string { + if s, ok := EnumNamesRefType[v]; ok { + return s + } + return "RefType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/somo/fbtypes/CmdJoin.go b/pkg/fbs/motion/somo/fbtypes/CmdJoin.go index af0c5cb..8e0e567 100644 --- a/pkg/fbs/motion/somo/fbtypes/CmdJoin.go +++ b/pkg/fbs/motion/somo/fbtypes/CmdJoin.go @@ -1,126 +1,126 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command join -type CmdJoinT struct { - Group []string - SyncStartNextCmd bool -} - -func (t *CmdJoinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - groupOffset := flatbuffers.UOffsetT(0) - if t.Group != nil { - groupLength := len(t.Group) - groupOffsets := make([]flatbuffers.UOffsetT, groupLength) - for j := 0; j < groupLength; j++ { - groupOffsets[j] = builder.CreateString(t.Group[j]) - } - CmdJoinStartGroupVector(builder, groupLength) - for j := groupLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(groupOffsets[j]) - } - groupOffset = builder.EndVector(groupLength) - } - CmdJoinStart(builder) - CmdJoinAddGroup(builder, groupOffset) - CmdJoinAddSyncStartNextCmd(builder, t.SyncStartNextCmd) - return CmdJoinEnd(builder) -} - -func (rcv *CmdJoin) UnPackTo(t *CmdJoinT) { - groupLength := rcv.GroupLength() - t.Group = make([]string, groupLength) - for j := 0; j < groupLength; j++ { - t.Group[j] = string(rcv.Group(j)) - } - t.SyncStartNextCmd = rcv.SyncStartNextCmd() -} - -func (rcv *CmdJoin) UnPack() *CmdJoinT { - if rcv == nil { return nil } - t := &CmdJoinT{} - rcv.UnPackTo(t) - return t -} - -type CmdJoin struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdJoin(buf []byte, offset flatbuffers.UOffsetT) *CmdJoin { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdJoin{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdJoin(buf []byte, offset flatbuffers.UOffsetT) *CmdJoin { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdJoin{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdJoin) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdJoin) Table() flatbuffers.Table { - return rcv._tab -} - -/// list of names of the motion objects in the join group -func (rcv *CmdJoin) Group(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *CmdJoin) GroupLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// list of names of the motion objects in the join group -/// should wait until there is a next command available to be executed? -func (rcv *CmdJoin) SyncStartNextCmd() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should wait until there is a next command available to be executed? -func (rcv *CmdJoin) MutateSyncStartNextCmd(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func CmdJoinStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdJoinAddGroup(builder *flatbuffers.Builder, group flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(group), 0) -} -func CmdJoinStartGroupVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CmdJoinAddSyncStartNextCmd(builder *flatbuffers.Builder, syncStartNextCmd bool) { - builder.PrependBoolSlot(1, syncStartNextCmd, false) -} -func CmdJoinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command join +type CmdJoinT struct { + Group []string + SyncStartNextCmd bool +} + +func (t *CmdJoinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + groupOffset := flatbuffers.UOffsetT(0) + if t.Group != nil { + groupLength := len(t.Group) + groupOffsets := make([]flatbuffers.UOffsetT, groupLength) + for j := 0; j < groupLength; j++ { + groupOffsets[j] = builder.CreateString(t.Group[j]) + } + CmdJoinStartGroupVector(builder, groupLength) + for j := groupLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupOffsets[j]) + } + groupOffset = builder.EndVector(groupLength) + } + CmdJoinStart(builder) + CmdJoinAddGroup(builder, groupOffset) + CmdJoinAddSyncStartNextCmd(builder, t.SyncStartNextCmd) + return CmdJoinEnd(builder) +} + +func (rcv *CmdJoin) UnPackTo(t *CmdJoinT) { + groupLength := rcv.GroupLength() + t.Group = make([]string, groupLength) + for j := 0; j < groupLength; j++ { + t.Group[j] = string(rcv.Group(j)) + } + t.SyncStartNextCmd = rcv.SyncStartNextCmd() +} + +func (rcv *CmdJoin) UnPack() *CmdJoinT { + if rcv == nil { return nil } + t := &CmdJoinT{} + rcv.UnPackTo(t) + return t +} + +type CmdJoin struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdJoin(buf []byte, offset flatbuffers.UOffsetT) *CmdJoin { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdJoin{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdJoin(buf []byte, offset flatbuffers.UOffsetT) *CmdJoin { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdJoin{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdJoin) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdJoin) Table() flatbuffers.Table { + return rcv._tab +} + +/// list of names of the motion objects in the join group +func (rcv *CmdJoin) Group(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *CmdJoin) GroupLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// list of names of the motion objects in the join group +/// should wait until there is a next command available to be executed? +func (rcv *CmdJoin) SyncStartNextCmd() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should wait until there is a next command available to be executed? +func (rcv *CmdJoin) MutateSyncStartNextCmd(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func CmdJoinStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdJoinAddGroup(builder *flatbuffers.Builder, group flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(group), 0) +} +func CmdJoinStartGroupVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CmdJoinAddSyncStartNextCmd(builder *flatbuffers.Builder, syncStartNextCmd bool) { + builder.PrependBoolSlot(1, syncStartNextCmd, false) +} +func CmdJoinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/somo/fbtypes/CmdOptionSetSignal.go b/pkg/fbs/motion/somo/fbtypes/CmdOptionSetSignal.go index 68739b8..8a44fc6 100644 --- a/pkg/fbs/motion/somo/fbtypes/CmdOptionSetSignal.go +++ b/pkg/fbs/motion/somo/fbtypes/CmdOptionSetSignal.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command wait for signal -type CmdOptionSetSignalT struct { - PermType string - SignalId uint32 -} - -func (t *CmdOptionSetSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - permTypeOffset := builder.CreateString(t.PermType) - CmdOptionSetSignalStart(builder) - CmdOptionSetSignalAddPermType(builder, permTypeOffset) - CmdOptionSetSignalAddSignalId(builder, t.SignalId) - return CmdOptionSetSignalEnd(builder) -} - -func (rcv *CmdOptionSetSignal) UnPackTo(t *CmdOptionSetSignalT) { - t.PermType = string(rcv.PermType()) - t.SignalId = rcv.SignalId() -} - -func (rcv *CmdOptionSetSignal) UnPack() *CmdOptionSetSignalT { - if rcv == nil { return nil } - t := &CmdOptionSetSignalT{} - rcv.UnPackTo(t) - return t -} - -type CmdOptionSetSignal struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOptionSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdOptionSetSignal { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOptionSetSignal{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOptionSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdOptionSetSignal { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOptionSetSignal{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOptionSetSignal) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOptionSetSignal) Table() flatbuffers.Table { - return rcv._tab -} - -/// permanent type (e.g. "Once") -func (rcv *CmdOptionSetSignal) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// permanent type (e.g. "Once") -/// signal Id -func (rcv *CmdOptionSetSignal) SignalId() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// signal Id -func (rcv *CmdOptionSetSignal) MutateSignalId(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func CmdOptionSetSignalStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdOptionSetSignalAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) -} -func CmdOptionSetSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { - builder.PrependUint32Slot(1, signalId, 0) -} -func CmdOptionSetSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command wait for signal +type CmdOptionSetSignalT struct { + PermType string + SignalId uint32 +} + +func (t *CmdOptionSetSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + permTypeOffset := builder.CreateString(t.PermType) + CmdOptionSetSignalStart(builder) + CmdOptionSetSignalAddPermType(builder, permTypeOffset) + CmdOptionSetSignalAddSignalId(builder, t.SignalId) + return CmdOptionSetSignalEnd(builder) +} + +func (rcv *CmdOptionSetSignal) UnPackTo(t *CmdOptionSetSignalT) { + t.PermType = string(rcv.PermType()) + t.SignalId = rcv.SignalId() +} + +func (rcv *CmdOptionSetSignal) UnPack() *CmdOptionSetSignalT { + if rcv == nil { return nil } + t := &CmdOptionSetSignalT{} + rcv.UnPackTo(t) + return t +} + +type CmdOptionSetSignal struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOptionSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdOptionSetSignal { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOptionSetSignal{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOptionSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdOptionSetSignal { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOptionSetSignal{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOptionSetSignal) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOptionSetSignal) Table() flatbuffers.Table { + return rcv._tab +} + +/// permanent type (e.g. "Once") +func (rcv *CmdOptionSetSignal) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// permanent type (e.g. "Once") +/// signal Id +func (rcv *CmdOptionSetSignal) SignalId() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// signal Id +func (rcv *CmdOptionSetSignal) MutateSignalId(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func CmdOptionSetSignalStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdOptionSetSignalAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(permType), 0) +} +func CmdOptionSetSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { + builder.PrependUint32Slot(1, signalId, 0) +} +func CmdOptionSetSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/somo/fbtypes/CmdResetSignal.go b/pkg/fbs/motion/somo/fbtypes/CmdResetSignal.go index 098584a..ff4194a 100644 --- a/pkg/fbs/motion/somo/fbtypes/CmdResetSignal.go +++ b/pkg/fbs/motion/somo/fbtypes/CmdResetSignal.go @@ -1,81 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command set signal -type CmdResetSignalT struct { - SignalId uint32 -} - -func (t *CmdResetSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - CmdResetSignalStart(builder) - CmdResetSignalAddSignalId(builder, t.SignalId) - return CmdResetSignalEnd(builder) -} - -func (rcv *CmdResetSignal) UnPackTo(t *CmdResetSignalT) { - t.SignalId = rcv.SignalId() -} - -func (rcv *CmdResetSignal) UnPack() *CmdResetSignalT { - if rcv == nil { return nil } - t := &CmdResetSignalT{} - rcv.UnPackTo(t) - return t -} - -type CmdResetSignal struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdResetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdResetSignal { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdResetSignal{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdResetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdResetSignal { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdResetSignal{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdResetSignal) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdResetSignal) Table() flatbuffers.Table { - return rcv._tab -} - -/// signal Id -func (rcv *CmdResetSignal) SignalId() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// signal Id -func (rcv *CmdResetSignal) MutateSignalId(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func CmdResetSignalStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CmdResetSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { - builder.PrependUint32Slot(0, signalId, 0) -} -func CmdResetSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command set signal +type CmdResetSignalT struct { + SignalId uint32 +} + +func (t *CmdResetSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CmdResetSignalStart(builder) + CmdResetSignalAddSignalId(builder, t.SignalId) + return CmdResetSignalEnd(builder) +} + +func (rcv *CmdResetSignal) UnPackTo(t *CmdResetSignalT) { + t.SignalId = rcv.SignalId() +} + +func (rcv *CmdResetSignal) UnPack() *CmdResetSignalT { + if rcv == nil { return nil } + t := &CmdResetSignalT{} + rcv.UnPackTo(t) + return t +} + +type CmdResetSignal struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdResetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdResetSignal { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdResetSignal{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdResetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdResetSignal { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdResetSignal{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdResetSignal) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdResetSignal) Table() flatbuffers.Table { + return rcv._tab +} + +/// signal Id +func (rcv *CmdResetSignal) SignalId() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// signal Id +func (rcv *CmdResetSignal) MutateSignalId(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func CmdResetSignalStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CmdResetSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { + builder.PrependUint32Slot(0, signalId, 0) +} +func CmdResetSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/somo/fbtypes/CmdSetSignal.go b/pkg/fbs/motion/somo/fbtypes/CmdSetSignal.go index 1bc3b6d..0c0d81e 100644 --- a/pkg/fbs/motion/somo/fbtypes/CmdSetSignal.go +++ b/pkg/fbs/motion/somo/fbtypes/CmdSetSignal.go @@ -1,81 +1,81 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command set signal -type CmdSetSignalT struct { - SignalId uint32 -} - -func (t *CmdSetSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - CmdSetSignalStart(builder) - CmdSetSignalAddSignalId(builder, t.SignalId) - return CmdSetSignalEnd(builder) -} - -func (rcv *CmdSetSignal) UnPackTo(t *CmdSetSignalT) { - t.SignalId = rcv.SignalId() -} - -func (rcv *CmdSetSignal) UnPack() *CmdSetSignalT { - if rcv == nil { return nil } - t := &CmdSetSignalT{} - rcv.UnPackTo(t) - return t -} - -type CmdSetSignal struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdSetSignal { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdSetSignal{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdSetSignal { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdSetSignal{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdSetSignal) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdSetSignal) Table() flatbuffers.Table { - return rcv._tab -} - -/// signal Id -func (rcv *CmdSetSignal) SignalId() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// signal Id -func (rcv *CmdSetSignal) MutateSignalId(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func CmdSetSignalStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CmdSetSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { - builder.PrependUint32Slot(0, signalId, 0) -} -func CmdSetSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command set signal +type CmdSetSignalT struct { + SignalId uint32 +} + +func (t *CmdSetSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CmdSetSignalStart(builder) + CmdSetSignalAddSignalId(builder, t.SignalId) + return CmdSetSignalEnd(builder) +} + +func (rcv *CmdSetSignal) UnPackTo(t *CmdSetSignalT) { + t.SignalId = rcv.SignalId() +} + +func (rcv *CmdSetSignal) UnPack() *CmdSetSignalT { + if rcv == nil { return nil } + t := &CmdSetSignalT{} + rcv.UnPackTo(t) + return t +} + +type CmdSetSignal struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdSetSignal { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdSetSignal{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdSetSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdSetSignal { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdSetSignal{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdSetSignal) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdSetSignal) Table() flatbuffers.Table { + return rcv._tab +} + +/// signal Id +func (rcv *CmdSetSignal) SignalId() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// signal Id +func (rcv *CmdSetSignal) MutateSignalId(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func CmdSetSignalStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CmdSetSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { + builder.PrependUint32Slot(0, signalId, 0) +} +func CmdSetSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/somo/fbtypes/CmdWaitForSignal.go b/pkg/fbs/motion/somo/fbtypes/CmdWaitForSignal.go index 673d5d1..ce859c4 100644 --- a/pkg/fbs/motion/somo/fbtypes/CmdWaitForSignal.go +++ b/pkg/fbs/motion/somo/fbtypes/CmdWaitForSignal.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters for the command wait for signal -type CmdWaitForSignalT struct { - SignalId uint32 - AutoReset bool -} - -func (t *CmdWaitForSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - CmdWaitForSignalStart(builder) - CmdWaitForSignalAddSignalId(builder, t.SignalId) - CmdWaitForSignalAddAutoReset(builder, t.AutoReset) - return CmdWaitForSignalEnd(builder) -} - -func (rcv *CmdWaitForSignal) UnPackTo(t *CmdWaitForSignalT) { - t.SignalId = rcv.SignalId() - t.AutoReset = rcv.AutoReset() -} - -func (rcv *CmdWaitForSignal) UnPack() *CmdWaitForSignalT { - if rcv == nil { return nil } - t := &CmdWaitForSignalT{} - rcv.UnPackTo(t) - return t -} - -type CmdWaitForSignal struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdWaitForSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdWaitForSignal { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdWaitForSignal{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdWaitForSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdWaitForSignal { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdWaitForSignal{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdWaitForSignal) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdWaitForSignal) Table() flatbuffers.Table { - return rcv._tab -} - -/// signal Id -func (rcv *CmdWaitForSignal) SignalId() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// signal Id -func (rcv *CmdWaitForSignal) MutateSignalId(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// automatically reset the signal -func (rcv *CmdWaitForSignal) AutoReset() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// automatically reset the signal -func (rcv *CmdWaitForSignal) MutateAutoReset(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func CmdWaitForSignalStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdWaitForSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { - builder.PrependUint32Slot(0, signalId, 0) -} -func CmdWaitForSignalAddAutoReset(builder *flatbuffers.Builder, autoReset bool) { - builder.PrependBoolSlot(1, autoReset, false) -} -func CmdWaitForSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters for the command wait for signal +type CmdWaitForSignalT struct { + SignalId uint32 + AutoReset bool +} + +func (t *CmdWaitForSignalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CmdWaitForSignalStart(builder) + CmdWaitForSignalAddSignalId(builder, t.SignalId) + CmdWaitForSignalAddAutoReset(builder, t.AutoReset) + return CmdWaitForSignalEnd(builder) +} + +func (rcv *CmdWaitForSignal) UnPackTo(t *CmdWaitForSignalT) { + t.SignalId = rcv.SignalId() + t.AutoReset = rcv.AutoReset() +} + +func (rcv *CmdWaitForSignal) UnPack() *CmdWaitForSignalT { + if rcv == nil { return nil } + t := &CmdWaitForSignalT{} + rcv.UnPackTo(t) + return t +} + +type CmdWaitForSignal struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdWaitForSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdWaitForSignal { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdWaitForSignal{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdWaitForSignal(buf []byte, offset flatbuffers.UOffsetT) *CmdWaitForSignal { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdWaitForSignal{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdWaitForSignal) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdWaitForSignal) Table() flatbuffers.Table { + return rcv._tab +} + +/// signal Id +func (rcv *CmdWaitForSignal) SignalId() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// signal Id +func (rcv *CmdWaitForSignal) MutateSignalId(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// automatically reset the signal +func (rcv *CmdWaitForSignal) AutoReset() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// automatically reset the signal +func (rcv *CmdWaitForSignal) MutateAutoReset(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func CmdWaitForSignalStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdWaitForSignalAddSignalId(builder *flatbuffers.Builder, signalId uint32) { + builder.PrependUint32Slot(0, signalId, 0) +} +func CmdWaitForSignalAddAutoReset(builder *flatbuffers.Builder, autoReset bool) { + builder.PrependBoolSlot(1, autoReset, false) +} +func CmdWaitForSignalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcPipeline.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcPipeline.go index a3609bb..e18f00d 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcPipeline.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcPipeline.go @@ -1,100 +1,100 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single calculation pipelines -type AxsCfgCalcPipelineT struct { - Name string - Steps *AxsCfgCalcStepAllT -} - -func (t *AxsCfgCalcPipelineT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - stepsOffset := t.Steps.Pack(builder) - AxsCfgCalcPipelineStart(builder) - AxsCfgCalcPipelineAddName(builder, nameOffset) - AxsCfgCalcPipelineAddSteps(builder, stepsOffset) - return AxsCfgCalcPipelineEnd(builder) -} - -func (rcv *AxsCfgCalcPipeline) UnPackTo(t *AxsCfgCalcPipelineT) { - t.Name = string(rcv.Name()) - t.Steps = rcv.Steps(nil).UnPack() -} - -func (rcv *AxsCfgCalcPipeline) UnPack() *AxsCfgCalcPipelineT { - if rcv == nil { return nil } - t := &AxsCfgCalcPipelineT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgCalcPipeline struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgCalcPipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcPipeline { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgCalcPipeline{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgCalcPipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcPipeline { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgCalcPipeline{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgCalcPipeline) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgCalcPipeline) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the calculation pipeline -func (rcv *AxsCfgCalcPipeline) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the calculation pipeline -/// configuration of all steps of calculation pipeline -func (rcv *AxsCfgCalcPipeline) Steps(obj *AxsCfgCalcStepAll) *AxsCfgCalcStepAll { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgCalcStepAll) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// configuration of all steps of calculation pipeline -func AxsCfgCalcPipelineStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCfgCalcPipelineAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func AxsCfgCalcPipelineAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(steps), 0) -} -func AxsCfgCalcPipelineEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single calculation pipelines +type AxsCfgCalcPipelineT struct { + Name string + Steps *AxsCfgCalcStepAllT +} + +func (t *AxsCfgCalcPipelineT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + stepsOffset := t.Steps.Pack(builder) + AxsCfgCalcPipelineStart(builder) + AxsCfgCalcPipelineAddName(builder, nameOffset) + AxsCfgCalcPipelineAddSteps(builder, stepsOffset) + return AxsCfgCalcPipelineEnd(builder) +} + +func (rcv *AxsCfgCalcPipeline) UnPackTo(t *AxsCfgCalcPipelineT) { + t.Name = string(rcv.Name()) + t.Steps = rcv.Steps(nil).UnPack() +} + +func (rcv *AxsCfgCalcPipeline) UnPack() *AxsCfgCalcPipelineT { + if rcv == nil { return nil } + t := &AxsCfgCalcPipelineT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgCalcPipeline struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgCalcPipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcPipeline { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgCalcPipeline{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgCalcPipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcPipeline { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgCalcPipeline{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgCalcPipeline) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgCalcPipeline) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the calculation pipeline +func (rcv *AxsCfgCalcPipeline) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the calculation pipeline +/// configuration of all steps of calculation pipeline +func (rcv *AxsCfgCalcPipeline) Steps(obj *AxsCfgCalcStepAll) *AxsCfgCalcStepAll { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgCalcStepAll) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// configuration of all steps of calculation pipeline +func AxsCfgCalcPipelineStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCfgCalcPipelineAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AxsCfgCalcPipelineAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(steps), 0) +} +func AxsCfgCalcPipelineEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStep.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStep.go index 7e7c182..4bbc4f3 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStep.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStep.go @@ -1,165 +1,165 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single calculation step -type AxsCfgCalcStepT struct { - StepID uint32 - Type string - Inputs []string - Parameter *AxsCfgCalcStepParamAllT -} - -func (t *AxsCfgCalcStepT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - typeOffset := builder.CreateString(t.Type) - inputsOffset := flatbuffers.UOffsetT(0) - if t.Inputs != nil { - inputsLength := len(t.Inputs) - inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) - for j := 0; j < inputsLength; j++ { - inputsOffsets[j] = builder.CreateString(t.Inputs[j]) - } - AxsCfgCalcStepStartInputsVector(builder, inputsLength) - for j := inputsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(inputsOffsets[j]) - } - inputsOffset = builder.EndVector(inputsLength) - } - parameterOffset := t.Parameter.Pack(builder) - AxsCfgCalcStepStart(builder) - AxsCfgCalcStepAddStepID(builder, t.StepID) - AxsCfgCalcStepAddType(builder, typeOffset) - AxsCfgCalcStepAddInputs(builder, inputsOffset) - AxsCfgCalcStepAddParameter(builder, parameterOffset) - return AxsCfgCalcStepEnd(builder) -} - -func (rcv *AxsCfgCalcStep) UnPackTo(t *AxsCfgCalcStepT) { - t.StepID = rcv.StepID() - t.Type = string(rcv.Type()) - inputsLength := rcv.InputsLength() - t.Inputs = make([]string, inputsLength) - for j := 0; j < inputsLength; j++ { - t.Inputs[j] = string(rcv.Inputs(j)) - } - t.Parameter = rcv.Parameter(nil).UnPack() -} - -func (rcv *AxsCfgCalcStep) UnPack() *AxsCfgCalcStepT { - if rcv == nil { return nil } - t := &AxsCfgCalcStepT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgCalcStep struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgCalcStep(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStep { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgCalcStep{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgCalcStep(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStep { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgCalcStep{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgCalcStep) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgCalcStep) Table() flatbuffers.Table { - return rcv._tab -} - -/// ID of the calculation step -func (rcv *AxsCfgCalcStep) StepID() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// ID of the calculation step -func (rcv *AxsCfgCalcStep) MutateStepID(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// Type string of the calculation step -func (rcv *AxsCfgCalcStep) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Type string of the calculation step -/// configuration of inputs of the calcStep; define from which step/master the inputs are taken -func (rcv *AxsCfgCalcStep) Inputs(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *AxsCfgCalcStep) InputsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// configuration of inputs of the calcStep; define from which step/master the inputs are taken -/// all parameter values of the calculation step -func (rcv *AxsCfgCalcStep) Parameter(obj *AxsCfgCalcStepParamAll) *AxsCfgCalcStepParamAll { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgCalcStepParamAll) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// all parameter values of the calculation step -func AxsCfgCalcStepStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func AxsCfgCalcStepAddStepID(builder *flatbuffers.Builder, stepID uint32) { - builder.PrependUint32Slot(0, stepID, 0) -} -func AxsCfgCalcStepAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) -} -func AxsCfgCalcStepAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) -} -func AxsCfgCalcStepStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsCfgCalcStepAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(parameter), 0) -} -func AxsCfgCalcStepEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single calculation step +type AxsCfgCalcStepT struct { + StepID uint32 + Type string + Inputs []string + Parameter *AxsCfgCalcStepParamAllT +} + +func (t *AxsCfgCalcStepT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + typeOffset := builder.CreateString(t.Type) + inputsOffset := flatbuffers.UOffsetT(0) + if t.Inputs != nil { + inputsLength := len(t.Inputs) + inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) + for j := 0; j < inputsLength; j++ { + inputsOffsets[j] = builder.CreateString(t.Inputs[j]) + } + AxsCfgCalcStepStartInputsVector(builder, inputsLength) + for j := inputsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(inputsOffsets[j]) + } + inputsOffset = builder.EndVector(inputsLength) + } + parameterOffset := t.Parameter.Pack(builder) + AxsCfgCalcStepStart(builder) + AxsCfgCalcStepAddStepID(builder, t.StepID) + AxsCfgCalcStepAddType(builder, typeOffset) + AxsCfgCalcStepAddInputs(builder, inputsOffset) + AxsCfgCalcStepAddParameter(builder, parameterOffset) + return AxsCfgCalcStepEnd(builder) +} + +func (rcv *AxsCfgCalcStep) UnPackTo(t *AxsCfgCalcStepT) { + t.StepID = rcv.StepID() + t.Type = string(rcv.Type()) + inputsLength := rcv.InputsLength() + t.Inputs = make([]string, inputsLength) + for j := 0; j < inputsLength; j++ { + t.Inputs[j] = string(rcv.Inputs(j)) + } + t.Parameter = rcv.Parameter(nil).UnPack() +} + +func (rcv *AxsCfgCalcStep) UnPack() *AxsCfgCalcStepT { + if rcv == nil { return nil } + t := &AxsCfgCalcStepT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgCalcStep struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgCalcStep(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStep { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgCalcStep{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgCalcStep(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStep { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgCalcStep{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgCalcStep) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgCalcStep) Table() flatbuffers.Table { + return rcv._tab +} + +/// ID of the calculation step +func (rcv *AxsCfgCalcStep) StepID() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// ID of the calculation step +func (rcv *AxsCfgCalcStep) MutateStepID(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// Type string of the calculation step +func (rcv *AxsCfgCalcStep) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Type string of the calculation step +/// configuration of inputs of the calcStep; define from which step/master the inputs are taken +func (rcv *AxsCfgCalcStep) Inputs(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *AxsCfgCalcStep) InputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// configuration of inputs of the calcStep; define from which step/master the inputs are taken +/// all parameter values of the calculation step +func (rcv *AxsCfgCalcStep) Parameter(obj *AxsCfgCalcStepParamAll) *AxsCfgCalcStepParamAll { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgCalcStepParamAll) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// all parameter values of the calculation step +func AxsCfgCalcStepStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCfgCalcStepAddStepID(builder *flatbuffers.Builder, stepID uint32) { + builder.PrependUint32Slot(0, stepID, 0) +} +func AxsCfgCalcStepAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) +} +func AxsCfgCalcStepAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) +} +func AxsCfgCalcStepStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsCfgCalcStepAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(parameter), 0) +} +func AxsCfgCalcStepEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepAll.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepAll.go index 5092f1d..b6852b3 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepAll.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepAll.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of all calculation steps of a single calculation pipeline -type AxsCfgCalcStepAllT struct { - Steps []*AxsCfgCalcStepT -} - -func (t *AxsCfgCalcStepAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - stepsOffset := flatbuffers.UOffsetT(0) - if t.Steps != nil { - stepsLength := len(t.Steps) - stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) - for j := 0; j < stepsLength; j++ { - stepsOffsets[j] = t.Steps[j].Pack(builder) - } - AxsCfgCalcStepAllStartStepsVector(builder, stepsLength) - for j := stepsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(stepsOffsets[j]) - } - stepsOffset = builder.EndVector(stepsLength) - } - AxsCfgCalcStepAllStart(builder) - AxsCfgCalcStepAllAddSteps(builder, stepsOffset) - return AxsCfgCalcStepAllEnd(builder) -} - -func (rcv *AxsCfgCalcStepAll) UnPackTo(t *AxsCfgCalcStepAllT) { - stepsLength := rcv.StepsLength() - t.Steps = make([]*AxsCfgCalcStepT, stepsLength) - for j := 0; j < stepsLength; j++ { - x := AxsCfgCalcStep{} - rcv.Steps(&x, j) - t.Steps[j] = x.UnPack() - } -} - -func (rcv *AxsCfgCalcStepAll) UnPack() *AxsCfgCalcStepAllT { - if rcv == nil { return nil } - t := &AxsCfgCalcStepAllT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgCalcStepAll struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgCalcStepAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgCalcStepAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgCalcStepAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgCalcStepAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgCalcStepAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgCalcStepAll) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all steps -func (rcv *AxsCfgCalcStepAll) Steps(obj *AxsCfgCalcStep, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AxsCfgCalcStepAll) StepsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all steps -func AxsCfgCalcStepAllStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsCfgCalcStepAllAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(steps), 0) -} -func AxsCfgCalcStepAllStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsCfgCalcStepAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of all calculation steps of a single calculation pipeline +type AxsCfgCalcStepAllT struct { + Steps []*AxsCfgCalcStepT +} + +func (t *AxsCfgCalcStepAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + stepsOffset := flatbuffers.UOffsetT(0) + if t.Steps != nil { + stepsLength := len(t.Steps) + stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) + for j := 0; j < stepsLength; j++ { + stepsOffsets[j] = t.Steps[j].Pack(builder) + } + AxsCfgCalcStepAllStartStepsVector(builder, stepsLength) + for j := stepsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(stepsOffsets[j]) + } + stepsOffset = builder.EndVector(stepsLength) + } + AxsCfgCalcStepAllStart(builder) + AxsCfgCalcStepAllAddSteps(builder, stepsOffset) + return AxsCfgCalcStepAllEnd(builder) +} + +func (rcv *AxsCfgCalcStepAll) UnPackTo(t *AxsCfgCalcStepAllT) { + stepsLength := rcv.StepsLength() + t.Steps = make([]*AxsCfgCalcStepT, stepsLength) + for j := 0; j < stepsLength; j++ { + x := AxsCfgCalcStep{} + rcv.Steps(&x, j) + t.Steps[j] = x.UnPack() + } +} + +func (rcv *AxsCfgCalcStepAll) UnPack() *AxsCfgCalcStepAllT { + if rcv == nil { return nil } + t := &AxsCfgCalcStepAllT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgCalcStepAll struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgCalcStepAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgCalcStepAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgCalcStepAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgCalcStepAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgCalcStepAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgCalcStepAll) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all steps +func (rcv *AxsCfgCalcStepAll) Steps(obj *AxsCfgCalcStep, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsCfgCalcStepAll) StepsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all steps +func AxsCfgCalcStepAllStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsCfgCalcStepAllAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(steps), 0) +} +func AxsCfgCalcStepAllStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsCfgCalcStepAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParam.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParam.go index 29d2aae..53a5732 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParam.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParam.go @@ -1,169 +1,169 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// a single parameter of a calculation step, when writing it, only name value and unit should be set. -type AxsCfgCalcStepParamT struct { - Name string - Value string - Unit string - Description string - Mandatory bool - Type ParameterType -} - -func (t *AxsCfgCalcStepParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - valueOffset := builder.CreateString(t.Value) - unitOffset := builder.CreateString(t.Unit) - descriptionOffset := builder.CreateString(t.Description) - AxsCfgCalcStepParamStart(builder) - AxsCfgCalcStepParamAddName(builder, nameOffset) - AxsCfgCalcStepParamAddValue(builder, valueOffset) - AxsCfgCalcStepParamAddUnit(builder, unitOffset) - AxsCfgCalcStepParamAddDescription(builder, descriptionOffset) - AxsCfgCalcStepParamAddMandatory(builder, t.Mandatory) - AxsCfgCalcStepParamAddType(builder, t.Type) - return AxsCfgCalcStepParamEnd(builder) -} - -func (rcv *AxsCfgCalcStepParam) UnPackTo(t *AxsCfgCalcStepParamT) { - t.Name = string(rcv.Name()) - t.Value = string(rcv.Value()) - t.Unit = string(rcv.Unit()) - t.Description = string(rcv.Description()) - t.Mandatory = rcv.Mandatory() - t.Type = rcv.Type() -} - -func (rcv *AxsCfgCalcStepParam) UnPack() *AxsCfgCalcStepParamT { - if rcv == nil { return nil } - t := &AxsCfgCalcStepParamT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgCalcStepParam struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgCalcStepParam(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgCalcStepParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgCalcStepParam(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgCalcStepParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgCalcStepParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgCalcStepParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter -func (rcv *AxsCfgCalcStepParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter -/// value of the parameter -func (rcv *AxsCfgCalcStepParam) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// value of the parameter -/// unit of the parameter -func (rcv *AxsCfgCalcStepParam) Unit() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// unit of the parameter -/// what the parameter of the calculation step does, only for reading -func (rcv *AxsCfgCalcStepParam) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// what the parameter of the calculation step does, only for reading -/// is this parameter mandatory, only for reading -func (rcv *AxsCfgCalcStepParam) Mandatory() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is this parameter mandatory, only for reading -func (rcv *AxsCfgCalcStepParam) MutateMandatory(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -/// type of the parameter, only for reading -func (rcv *AxsCfgCalcStepParam) Type() ParameterType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return ParameterType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// type of the parameter, only for reading -func (rcv *AxsCfgCalcStepParam) MutateType(n ParameterType) bool { - return rcv._tab.MutateInt8Slot(14, int8(n)) -} - -func AxsCfgCalcStepParamStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func AxsCfgCalcStepParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func AxsCfgCalcStepParamAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) -} -func AxsCfgCalcStepParamAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unit), 0) -} -func AxsCfgCalcStepParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(description), 0) -} -func AxsCfgCalcStepParamAddMandatory(builder *flatbuffers.Builder, mandatory bool) { - builder.PrependBoolSlot(4, mandatory, false) -} -func AxsCfgCalcStepParamAddType(builder *flatbuffers.Builder, type_ ParameterType) { - builder.PrependInt8Slot(5, int8(type_), 0) -} -func AxsCfgCalcStepParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// a single parameter of a calculation step, when writing it, only name value and unit should be set. +type AxsCfgCalcStepParamT struct { + Name string + Value string + Unit string + Description string + Mandatory bool + Type ParameterType +} + +func (t *AxsCfgCalcStepParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueOffset := builder.CreateString(t.Value) + unitOffset := builder.CreateString(t.Unit) + descriptionOffset := builder.CreateString(t.Description) + AxsCfgCalcStepParamStart(builder) + AxsCfgCalcStepParamAddName(builder, nameOffset) + AxsCfgCalcStepParamAddValue(builder, valueOffset) + AxsCfgCalcStepParamAddUnit(builder, unitOffset) + AxsCfgCalcStepParamAddDescription(builder, descriptionOffset) + AxsCfgCalcStepParamAddMandatory(builder, t.Mandatory) + AxsCfgCalcStepParamAddType(builder, t.Type) + return AxsCfgCalcStepParamEnd(builder) +} + +func (rcv *AxsCfgCalcStepParam) UnPackTo(t *AxsCfgCalcStepParamT) { + t.Name = string(rcv.Name()) + t.Value = string(rcv.Value()) + t.Unit = string(rcv.Unit()) + t.Description = string(rcv.Description()) + t.Mandatory = rcv.Mandatory() + t.Type = rcv.Type() +} + +func (rcv *AxsCfgCalcStepParam) UnPack() *AxsCfgCalcStepParamT { + if rcv == nil { return nil } + t := &AxsCfgCalcStepParamT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgCalcStepParam struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgCalcStepParam(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgCalcStepParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgCalcStepParam(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgCalcStepParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgCalcStepParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgCalcStepParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter +func (rcv *AxsCfgCalcStepParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter +/// value of the parameter +func (rcv *AxsCfgCalcStepParam) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// value of the parameter +/// unit of the parameter +func (rcv *AxsCfgCalcStepParam) Unit() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// unit of the parameter +/// what the parameter of the calculation step does, only for reading +func (rcv *AxsCfgCalcStepParam) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// what the parameter of the calculation step does, only for reading +/// is this parameter mandatory, only for reading +func (rcv *AxsCfgCalcStepParam) Mandatory() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is this parameter mandatory, only for reading +func (rcv *AxsCfgCalcStepParam) MutateMandatory(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +/// type of the parameter, only for reading +func (rcv *AxsCfgCalcStepParam) Type() ParameterType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return ParameterType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// type of the parameter, only for reading +func (rcv *AxsCfgCalcStepParam) MutateType(n ParameterType) bool { + return rcv._tab.MutateInt8Slot(14, int8(n)) +} + +func AxsCfgCalcStepParamStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func AxsCfgCalcStepParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AxsCfgCalcStepParamAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func AxsCfgCalcStepParamAddUnit(builder *flatbuffers.Builder, unit flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(unit), 0) +} +func AxsCfgCalcStepParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(description), 0) +} +func AxsCfgCalcStepParamAddMandatory(builder *flatbuffers.Builder, mandatory bool) { + builder.PrependBoolSlot(4, mandatory, false) +} +func AxsCfgCalcStepParamAddType(builder *flatbuffers.Builder, type_ ParameterType) { + builder.PrependInt8Slot(5, int8(type_), 0) +} +func AxsCfgCalcStepParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParamAll.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParamAll.go index fde036a..bf723fd 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParamAll.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgCalcStepParamAll.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of all parameters of a single calculation step -type AxsCfgCalcStepParamAllT struct { - Params []*AxsCfgCalcStepParamT -} - -func (t *AxsCfgCalcStepParamAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - paramsOffset := flatbuffers.UOffsetT(0) - if t.Params != nil { - paramsLength := len(t.Params) - paramsOffsets := make([]flatbuffers.UOffsetT, paramsLength) - for j := 0; j < paramsLength; j++ { - paramsOffsets[j] = t.Params[j].Pack(builder) - } - AxsCfgCalcStepParamAllStartParamsVector(builder, paramsLength) - for j := paramsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(paramsOffsets[j]) - } - paramsOffset = builder.EndVector(paramsLength) - } - AxsCfgCalcStepParamAllStart(builder) - AxsCfgCalcStepParamAllAddParams(builder, paramsOffset) - return AxsCfgCalcStepParamAllEnd(builder) -} - -func (rcv *AxsCfgCalcStepParamAll) UnPackTo(t *AxsCfgCalcStepParamAllT) { - paramsLength := rcv.ParamsLength() - t.Params = make([]*AxsCfgCalcStepParamT, paramsLength) - for j := 0; j < paramsLength; j++ { - x := AxsCfgCalcStepParam{} - rcv.Params(&x, j) - t.Params[j] = x.UnPack() - } -} - -func (rcv *AxsCfgCalcStepParamAll) UnPack() *AxsCfgCalcStepParamAllT { - if rcv == nil { return nil } - t := &AxsCfgCalcStepParamAllT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgCalcStepParamAll struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgCalcStepParamAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParamAll { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgCalcStepParamAll{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgCalcStepParamAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParamAll { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgCalcStepParamAll{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgCalcStepParamAll) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgCalcStepParamAll) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all params -func (rcv *AxsCfgCalcStepParamAll) Params(obj *AxsCfgCalcStepParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AxsCfgCalcStepParamAll) ParamsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all params -func AxsCfgCalcStepParamAllStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsCfgCalcStepParamAllAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(params), 0) -} -func AxsCfgCalcStepParamAllStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsCfgCalcStepParamAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of all parameters of a single calculation step +type AxsCfgCalcStepParamAllT struct { + Params []*AxsCfgCalcStepParamT +} + +func (t *AxsCfgCalcStepParamAllT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + paramsOffset := flatbuffers.UOffsetT(0) + if t.Params != nil { + paramsLength := len(t.Params) + paramsOffsets := make([]flatbuffers.UOffsetT, paramsLength) + for j := 0; j < paramsLength; j++ { + paramsOffsets[j] = t.Params[j].Pack(builder) + } + AxsCfgCalcStepParamAllStartParamsVector(builder, paramsLength) + for j := paramsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(paramsOffsets[j]) + } + paramsOffset = builder.EndVector(paramsLength) + } + AxsCfgCalcStepParamAllStart(builder) + AxsCfgCalcStepParamAllAddParams(builder, paramsOffset) + return AxsCfgCalcStepParamAllEnd(builder) +} + +func (rcv *AxsCfgCalcStepParamAll) UnPackTo(t *AxsCfgCalcStepParamAllT) { + paramsLength := rcv.ParamsLength() + t.Params = make([]*AxsCfgCalcStepParamT, paramsLength) + for j := 0; j < paramsLength; j++ { + x := AxsCfgCalcStepParam{} + rcv.Params(&x, j) + t.Params[j] = x.UnPack() + } +} + +func (rcv *AxsCfgCalcStepParamAll) UnPack() *AxsCfgCalcStepParamAllT { + if rcv == nil { return nil } + t := &AxsCfgCalcStepParamAllT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgCalcStepParamAll struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgCalcStepParamAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParamAll { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgCalcStepParamAll{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgCalcStepParamAll(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgCalcStepParamAll { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgCalcStepParamAll{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgCalcStepParamAll) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgCalcStepParamAll) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all params +func (rcv *AxsCfgCalcStepParamAll) Params(obj *AxsCfgCalcStepParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsCfgCalcStepParamAll) ParamsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all params +func AxsCfgCalcStepParamAllStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsCfgCalcStepParamAllAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(params), 0) +} +func AxsCfgCalcStepParamAllStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsCfgCalcStepParamAllEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisation.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisation.go index 043d338..a120919 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisation.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisation.go @@ -1,83 +1,83 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Configuration of the dynamic synchronisation behavior of a single axis -type AxsCfgDynSynchronisationT struct { - Limits *AxsCfgDynSynchronisationLimT -} - -func (t *AxsCfgDynSynchronisationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - limitsOffset := t.Limits.Pack(builder) - AxsCfgDynSynchronisationStart(builder) - AxsCfgDynSynchronisationAddLimits(builder, limitsOffset) - return AxsCfgDynSynchronisationEnd(builder) -} - -func (rcv *AxsCfgDynSynchronisation) UnPackTo(t *AxsCfgDynSynchronisationT) { - t.Limits = rcv.Limits(nil).UnPack() -} - -func (rcv *AxsCfgDynSynchronisation) UnPack() *AxsCfgDynSynchronisationT { - if rcv == nil { return nil } - t := &AxsCfgDynSynchronisationT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgDynSynchronisation struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgDynSynchronisation(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisation { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgDynSynchronisation{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgDynSynchronisation(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisation { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgDynSynchronisation{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgDynSynchronisation) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgDynSynchronisation) Table() flatbuffers.Table { - return rcv._tab -} - -/// Reference to configuration of the dynamic synchronisation limits of the axis -func (rcv *AxsCfgDynSynchronisation) Limits(obj *AxsCfgDynSynchronisationLim) *AxsCfgDynSynchronisationLim { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgDynSynchronisationLim) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// Reference to configuration of the dynamic synchronisation limits of the axis -func AxsCfgDynSynchronisationStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsCfgDynSynchronisationAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(limits), 0) -} -func AxsCfgDynSynchronisationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Configuration of the dynamic synchronisation behavior of a single axis +type AxsCfgDynSynchronisationT struct { + Limits *AxsCfgDynSynchronisationLimT +} + +func (t *AxsCfgDynSynchronisationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + limitsOffset := t.Limits.Pack(builder) + AxsCfgDynSynchronisationStart(builder) + AxsCfgDynSynchronisationAddLimits(builder, limitsOffset) + return AxsCfgDynSynchronisationEnd(builder) +} + +func (rcv *AxsCfgDynSynchronisation) UnPackTo(t *AxsCfgDynSynchronisationT) { + t.Limits = rcv.Limits(nil).UnPack() +} + +func (rcv *AxsCfgDynSynchronisation) UnPack() *AxsCfgDynSynchronisationT { + if rcv == nil { return nil } + t := &AxsCfgDynSynchronisationT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgDynSynchronisation struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgDynSynchronisation(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisation { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgDynSynchronisation{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgDynSynchronisation(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisation { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgDynSynchronisation{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgDynSynchronisation) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgDynSynchronisation) Table() flatbuffers.Table { + return rcv._tab +} + +/// Reference to configuration of the dynamic synchronisation limits of the axis +func (rcv *AxsCfgDynSynchronisation) Limits(obj *AxsCfgDynSynchronisationLim) *AxsCfgDynSynchronisationLim { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgDynSynchronisationLim) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Reference to configuration of the dynamic synchronisation limits of the axis +func AxsCfgDynSynchronisationStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsCfgDynSynchronisationAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(limits), 0) +} +func AxsCfgDynSynchronisationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisationLim.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisationLim.go index 822f561..90eb02a 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisationLim.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgDynSynchronisationLim.go @@ -1,181 +1,181 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Configuration of the dynamic synchronisation limits of a single axis -type AxsCfgDynSynchronisationLimT struct { - Acc float64 - Dec float64 - JrkAcc float64 - JrkDec float64 - VelNeg float64 - VelPos float64 -} - -func (t *AxsCfgDynSynchronisationLimT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCfgDynSynchronisationLimStart(builder) - AxsCfgDynSynchronisationLimAddAcc(builder, t.Acc) - AxsCfgDynSynchronisationLimAddDec(builder, t.Dec) - AxsCfgDynSynchronisationLimAddJrkAcc(builder, t.JrkAcc) - AxsCfgDynSynchronisationLimAddJrkDec(builder, t.JrkDec) - AxsCfgDynSynchronisationLimAddVelNeg(builder, t.VelNeg) - AxsCfgDynSynchronisationLimAddVelPos(builder, t.VelPos) - return AxsCfgDynSynchronisationLimEnd(builder) -} - -func (rcv *AxsCfgDynSynchronisationLim) UnPackTo(t *AxsCfgDynSynchronisationLimT) { - t.Acc = rcv.Acc() - t.Dec = rcv.Dec() - t.JrkAcc = rcv.JrkAcc() - t.JrkDec = rcv.JrkDec() - t.VelNeg = rcv.VelNeg() - t.VelPos = rcv.VelPos() -} - -func (rcv *AxsCfgDynSynchronisationLim) UnPack() *AxsCfgDynSynchronisationLimT { - if rcv == nil { return nil } - t := &AxsCfgDynSynchronisationLimT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgDynSynchronisationLim struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgDynSynchronisationLim(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisationLim { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgDynSynchronisationLim{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgDynSynchronisationLim(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisationLim { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgDynSynchronisationLim{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgDynSynchronisationLim) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgDynSynchronisationLim) Table() flatbuffers.Table { - return rcv._tab -} - -/// Acceleration limit -func (rcv *AxsCfgDynSynchronisationLim) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Acceleration limit -func (rcv *AxsCfgDynSynchronisationLim) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -/// Deceleration limit -func (rcv *AxsCfgDynSynchronisationLim) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Deceleration limit -func (rcv *AxsCfgDynSynchronisationLim) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// Jerk limit, when accelerating -func (rcv *AxsCfgDynSynchronisationLim) JrkAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Jerk limit, when accelerating -func (rcv *AxsCfgDynSynchronisationLim) MutateJrkAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -/// Jerk limit, when decelerating -func (rcv *AxsCfgDynSynchronisationLim) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Jerk limit, when decelerating -func (rcv *AxsCfgDynSynchronisationLim) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// Velocity limit, when moving the slave axis in negative direction -func (rcv *AxsCfgDynSynchronisationLim) VelNeg() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Velocity limit, when moving the slave axis in negative direction -func (rcv *AxsCfgDynSynchronisationLim) MutateVelNeg(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -/// Velocity limit, when moving the slave axis in positive direction -func (rcv *AxsCfgDynSynchronisationLim) VelPos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// Velocity limit, when moving the slave axis in positive direction -func (rcv *AxsCfgDynSynchronisationLim) MutateVelPos(n float64) bool { - return rcv._tab.MutateFloat64Slot(14, n) -} - -func AxsCfgDynSynchronisationLimStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func AxsCfgDynSynchronisationLimAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(0, acc, 0.0) -} -func AxsCfgDynSynchronisationLimAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(1, dec, 0.0) -} -func AxsCfgDynSynchronisationLimAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { - builder.PrependFloat64Slot(2, jrkAcc, 0.0) -} -func AxsCfgDynSynchronisationLimAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(3, jrkDec, 0.0) -} -func AxsCfgDynSynchronisationLimAddVelNeg(builder *flatbuffers.Builder, velNeg float64) { - builder.PrependFloat64Slot(4, velNeg, 0.0) -} -func AxsCfgDynSynchronisationLimAddVelPos(builder *flatbuffers.Builder, velPos float64) { - builder.PrependFloat64Slot(5, velPos, 0.0) -} -func AxsCfgDynSynchronisationLimEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Configuration of the dynamic synchronisation limits of a single axis +type AxsCfgDynSynchronisationLimT struct { + Acc float64 + Dec float64 + JrkAcc float64 + JrkDec float64 + VelNeg float64 + VelPos float64 +} + +func (t *AxsCfgDynSynchronisationLimT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCfgDynSynchronisationLimStart(builder) + AxsCfgDynSynchronisationLimAddAcc(builder, t.Acc) + AxsCfgDynSynchronisationLimAddDec(builder, t.Dec) + AxsCfgDynSynchronisationLimAddJrkAcc(builder, t.JrkAcc) + AxsCfgDynSynchronisationLimAddJrkDec(builder, t.JrkDec) + AxsCfgDynSynchronisationLimAddVelNeg(builder, t.VelNeg) + AxsCfgDynSynchronisationLimAddVelPos(builder, t.VelPos) + return AxsCfgDynSynchronisationLimEnd(builder) +} + +func (rcv *AxsCfgDynSynchronisationLim) UnPackTo(t *AxsCfgDynSynchronisationLimT) { + t.Acc = rcv.Acc() + t.Dec = rcv.Dec() + t.JrkAcc = rcv.JrkAcc() + t.JrkDec = rcv.JrkDec() + t.VelNeg = rcv.VelNeg() + t.VelPos = rcv.VelPos() +} + +func (rcv *AxsCfgDynSynchronisationLim) UnPack() *AxsCfgDynSynchronisationLimT { + if rcv == nil { return nil } + t := &AxsCfgDynSynchronisationLimT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgDynSynchronisationLim struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgDynSynchronisationLim(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisationLim { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgDynSynchronisationLim{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgDynSynchronisationLim(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgDynSynchronisationLim { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgDynSynchronisationLim{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgDynSynchronisationLim) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgDynSynchronisationLim) Table() flatbuffers.Table { + return rcv._tab +} + +/// Acceleration limit +func (rcv *AxsCfgDynSynchronisationLim) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Acceleration limit +func (rcv *AxsCfgDynSynchronisationLim) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// Deceleration limit +func (rcv *AxsCfgDynSynchronisationLim) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Deceleration limit +func (rcv *AxsCfgDynSynchronisationLim) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// Jerk limit, when accelerating +func (rcv *AxsCfgDynSynchronisationLim) JrkAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Jerk limit, when accelerating +func (rcv *AxsCfgDynSynchronisationLim) MutateJrkAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// Jerk limit, when decelerating +func (rcv *AxsCfgDynSynchronisationLim) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Jerk limit, when decelerating +func (rcv *AxsCfgDynSynchronisationLim) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// Velocity limit, when moving the slave axis in negative direction +func (rcv *AxsCfgDynSynchronisationLim) VelNeg() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Velocity limit, when moving the slave axis in negative direction +func (rcv *AxsCfgDynSynchronisationLim) MutateVelNeg(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +/// Velocity limit, when moving the slave axis in positive direction +func (rcv *AxsCfgDynSynchronisationLim) VelPos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Velocity limit, when moving the slave axis in positive direction +func (rcv *AxsCfgDynSynchronisationLim) MutateVelPos(n float64) bool { + return rcv._tab.MutateFloat64Slot(14, n) +} + +func AxsCfgDynSynchronisationLimStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func AxsCfgDynSynchronisationLimAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(0, acc, 0.0) +} +func AxsCfgDynSynchronisationLimAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(1, dec, 0.0) +} +func AxsCfgDynSynchronisationLimAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { + builder.PrependFloat64Slot(2, jrkAcc, 0.0) +} +func AxsCfgDynSynchronisationLimAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(3, jrkDec, 0.0) +} +func AxsCfgDynSynchronisationLimAddVelNeg(builder *flatbuffers.Builder, velNeg float64) { + builder.PrependFloat64Slot(4, velNeg, 0.0) +} +func AxsCfgDynSynchronisationLimAddVelPos(builder *flatbuffers.Builder, velPos float64) { + builder.PrependFloat64Slot(5, velPos, 0.0) +} +func AxsCfgDynSynchronisationLimEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReaction.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReaction.go index 0c619cd..3e5f64e 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReaction.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReaction.go @@ -1,83 +1,83 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Configuration of the error reaction behavior of a single axis -type AxsCfgErrReactionT struct { - SlaveLimitsExceeded *AxsCfgErrReactionSlaveLimExceededT -} - -func (t *AxsCfgErrReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - slaveLimitsExceededOffset := t.SlaveLimitsExceeded.Pack(builder) - AxsCfgErrReactionStart(builder) - AxsCfgErrReactionAddSlaveLimitsExceeded(builder, slaveLimitsExceededOffset) - return AxsCfgErrReactionEnd(builder) -} - -func (rcv *AxsCfgErrReaction) UnPackTo(t *AxsCfgErrReactionT) { - t.SlaveLimitsExceeded = rcv.SlaveLimitsExceeded(nil).UnPack() -} - -func (rcv *AxsCfgErrReaction) UnPack() *AxsCfgErrReactionT { - if rcv == nil { return nil } - t := &AxsCfgErrReactionT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgErrReaction struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgErrReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReaction { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgErrReaction{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgErrReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReaction { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgErrReaction{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgErrReaction) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgErrReaction) Table() flatbuffers.Table { - return rcv._tab -} - -/// Reference to configuration of the slave limits exceeded behavior of the axis -func (rcv *AxsCfgErrReaction) SlaveLimitsExceeded(obj *AxsCfgErrReactionSlaveLimExceeded) *AxsCfgErrReactionSlaveLimExceeded { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgErrReactionSlaveLimExceeded) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// Reference to configuration of the slave limits exceeded behavior of the axis -func AxsCfgErrReactionStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsCfgErrReactionAddSlaveLimitsExceeded(builder *flatbuffers.Builder, slaveLimitsExceeded flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(slaveLimitsExceeded), 0) -} -func AxsCfgErrReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Configuration of the error reaction behavior of a single axis +type AxsCfgErrReactionT struct { + SlaveLimitsExceeded *AxsCfgErrReactionSlaveLimExceededT +} + +func (t *AxsCfgErrReactionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + slaveLimitsExceededOffset := t.SlaveLimitsExceeded.Pack(builder) + AxsCfgErrReactionStart(builder) + AxsCfgErrReactionAddSlaveLimitsExceeded(builder, slaveLimitsExceededOffset) + return AxsCfgErrReactionEnd(builder) +} + +func (rcv *AxsCfgErrReaction) UnPackTo(t *AxsCfgErrReactionT) { + t.SlaveLimitsExceeded = rcv.SlaveLimitsExceeded(nil).UnPack() +} + +func (rcv *AxsCfgErrReaction) UnPack() *AxsCfgErrReactionT { + if rcv == nil { return nil } + t := &AxsCfgErrReactionT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgErrReaction struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgErrReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReaction { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgErrReaction{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgErrReaction(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReaction { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgErrReaction{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgErrReaction) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgErrReaction) Table() flatbuffers.Table { + return rcv._tab +} + +/// Reference to configuration of the slave limits exceeded behavior of the axis +func (rcv *AxsCfgErrReaction) SlaveLimitsExceeded(obj *AxsCfgErrReactionSlaveLimExceeded) *AxsCfgErrReactionSlaveLimExceeded { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgErrReactionSlaveLimExceeded) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Reference to configuration of the slave limits exceeded behavior of the axis +func AxsCfgErrReactionStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsCfgErrReactionAddSlaveLimitsExceeded(builder *flatbuffers.Builder, slaveLimitsExceeded flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(slaveLimitsExceeded), 0) +} +func AxsCfgErrReactionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReactionSlaveLimExceeded.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReactionSlaveLimExceeded.go index 1f7fc3f..af94f11 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReactionSlaveLimExceeded.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgErrReactionSlaveLimExceeded.go @@ -1,101 +1,101 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// TODO: Provide description -type AxsCfgErrReactionSlaveLimExceededT struct { - Type SlaveCantFollowErrorReaction - Diagnosis SlaveCantFollowMessageType -} - -func (t *AxsCfgErrReactionSlaveLimExceededT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsCfgErrReactionSlaveLimExceededStart(builder) - AxsCfgErrReactionSlaveLimExceededAddType(builder, t.Type) - AxsCfgErrReactionSlaveLimExceededAddDiagnosis(builder, t.Diagnosis) - return AxsCfgErrReactionSlaveLimExceededEnd(builder) -} - -func (rcv *AxsCfgErrReactionSlaveLimExceeded) UnPackTo(t *AxsCfgErrReactionSlaveLimExceededT) { - t.Type = rcv.Type() - t.Diagnosis = rcv.Diagnosis() -} - -func (rcv *AxsCfgErrReactionSlaveLimExceeded) UnPack() *AxsCfgErrReactionSlaveLimExceededT { - if rcv == nil { return nil } - t := &AxsCfgErrReactionSlaveLimExceededT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgErrReactionSlaveLimExceeded struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgErrReactionSlaveLimExceeded(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReactionSlaveLimExceeded { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgErrReactionSlaveLimExceeded{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgErrReactionSlaveLimExceeded(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReactionSlaveLimExceeded { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgErrReactionSlaveLimExceeded{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgErrReactionSlaveLimExceeded) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgErrReactionSlaveLimExceeded) Table() flatbuffers.Table { - return rcv._tab -} - -/// TODO: Provide description -func (rcv *AxsCfgErrReactionSlaveLimExceeded) Type() SlaveCantFollowErrorReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return SlaveCantFollowErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -/// TODO: Provide description -func (rcv *AxsCfgErrReactionSlaveLimExceeded) MutateType(n SlaveCantFollowErrorReaction) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -/// TODO: Provide description -func (rcv *AxsCfgErrReactionSlaveLimExceeded) Diagnosis() SlaveCantFollowMessageType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return SlaveCantFollowMessageType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -/// TODO: Provide description -func (rcv *AxsCfgErrReactionSlaveLimExceeded) MutateDiagnosis(n SlaveCantFollowMessageType) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func AxsCfgErrReactionSlaveLimExceededStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCfgErrReactionSlaveLimExceededAddType(builder *flatbuffers.Builder, type_ SlaveCantFollowErrorReaction) { - builder.PrependInt8Slot(0, int8(type_), 2) -} -func AxsCfgErrReactionSlaveLimExceededAddDiagnosis(builder *flatbuffers.Builder, diagnosis SlaveCantFollowMessageType) { - builder.PrependInt8Slot(1, int8(diagnosis), 2) -} -func AxsCfgErrReactionSlaveLimExceededEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// TODO: Provide description +type AxsCfgErrReactionSlaveLimExceededT struct { + Type SlaveCantFollowErrorReaction + Diagnosis SlaveCantFollowMessageType +} + +func (t *AxsCfgErrReactionSlaveLimExceededT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCfgErrReactionSlaveLimExceededStart(builder) + AxsCfgErrReactionSlaveLimExceededAddType(builder, t.Type) + AxsCfgErrReactionSlaveLimExceededAddDiagnosis(builder, t.Diagnosis) + return AxsCfgErrReactionSlaveLimExceededEnd(builder) +} + +func (rcv *AxsCfgErrReactionSlaveLimExceeded) UnPackTo(t *AxsCfgErrReactionSlaveLimExceededT) { + t.Type = rcv.Type() + t.Diagnosis = rcv.Diagnosis() +} + +func (rcv *AxsCfgErrReactionSlaveLimExceeded) UnPack() *AxsCfgErrReactionSlaveLimExceededT { + if rcv == nil { return nil } + t := &AxsCfgErrReactionSlaveLimExceededT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgErrReactionSlaveLimExceeded struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgErrReactionSlaveLimExceeded(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReactionSlaveLimExceeded { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgErrReactionSlaveLimExceeded{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgErrReactionSlaveLimExceeded(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgErrReactionSlaveLimExceeded { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgErrReactionSlaveLimExceeded{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgErrReactionSlaveLimExceeded) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgErrReactionSlaveLimExceeded) Table() flatbuffers.Table { + return rcv._tab +} + +/// TODO: Provide description +func (rcv *AxsCfgErrReactionSlaveLimExceeded) Type() SlaveCantFollowErrorReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return SlaveCantFollowErrorReaction(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 1 +} + +/// TODO: Provide description +func (rcv *AxsCfgErrReactionSlaveLimExceeded) MutateType(n SlaveCantFollowErrorReaction) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +/// TODO: Provide description +func (rcv *AxsCfgErrReactionSlaveLimExceeded) Diagnosis() SlaveCantFollowMessageType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return SlaveCantFollowMessageType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// TODO: Provide description +func (rcv *AxsCfgErrReactionSlaveLimExceeded) MutateDiagnosis(n SlaveCantFollowMessageType) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func AxsCfgErrReactionSlaveLimExceededStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCfgErrReactionSlaveLimExceededAddType(builder *flatbuffers.Builder, type_ SlaveCantFollowErrorReaction) { + builder.PrependInt8Slot(0, int8(type_), 1) +} +func AxsCfgErrReactionSlaveLimExceededAddDiagnosis(builder *flatbuffers.Builder, diagnosis SlaveCantFollowMessageType) { + builder.PrependInt8Slot(1, int8(diagnosis), 2) +} +func AxsCfgErrReactionSlaveLimExceededEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgFlexprofile.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgFlexprofile.go new file mode 100644 index 0000000..d68aac8 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgFlexprofile.go @@ -0,0 +1,83 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Flexprofile configuration of an axis +type AxsCfgFlexprofileT struct { + Obj *AxsCfgFlexprofileObjT +} + +func (t *AxsCfgFlexprofileT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objOffset := t.Obj.Pack(builder) + AxsCfgFlexprofileStart(builder) + AxsCfgFlexprofileAddObj(builder, objOffset) + return AxsCfgFlexprofileEnd(builder) +} + +func (rcv *AxsCfgFlexprofile) UnPackTo(t *AxsCfgFlexprofileT) { + t.Obj = rcv.Obj(nil).UnPack() +} + +func (rcv *AxsCfgFlexprofile) UnPack() *AxsCfgFlexprofileT { + if rcv == nil { return nil } + t := &AxsCfgFlexprofileT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgFlexprofile struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgFlexprofile(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFlexprofile { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgFlexprofile{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgFlexprofile(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFlexprofile { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgFlexprofile{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgFlexprofile) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgFlexprofile) Table() flatbuffers.Table { + return rcv._tab +} + +/// flexprofile object +func (rcv *AxsCfgFlexprofile) Obj(obj *AxsCfgFlexprofileObj) *AxsCfgFlexprofileObj { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgFlexprofileObj) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// flexprofile object +func AxsCfgFlexprofileStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsCfgFlexprofileAddObj(builder *flatbuffers.Builder, obj flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(obj), 0) +} +func AxsCfgFlexprofileEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgFlexprofileObj.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgFlexprofileObj.go new file mode 100644 index 0000000..c225184 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgFlexprofileObj.go @@ -0,0 +1,128 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a flexprofile object +type AxsCfgFlexprofileObjT struct { + Name string + Groups []*AxsCfgSingleFlexprofileT +} + +func (t *AxsCfgFlexprofileObjT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + groupsOffset := flatbuffers.UOffsetT(0) + if t.Groups != nil { + groupsLength := len(t.Groups) + groupsOffsets := make([]flatbuffers.UOffsetT, groupsLength) + for j := 0; j < groupsLength; j++ { + groupsOffsets[j] = t.Groups[j].Pack(builder) + } + AxsCfgFlexprofileObjStartGroupsVector(builder, groupsLength) + for j := groupsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupsOffsets[j]) + } + groupsOffset = builder.EndVector(groupsLength) + } + AxsCfgFlexprofileObjStart(builder) + AxsCfgFlexprofileObjAddName(builder, nameOffset) + AxsCfgFlexprofileObjAddGroups(builder, groupsOffset) + return AxsCfgFlexprofileObjEnd(builder) +} + +func (rcv *AxsCfgFlexprofileObj) UnPackTo(t *AxsCfgFlexprofileObjT) { + t.Name = string(rcv.Name()) + groupsLength := rcv.GroupsLength() + t.Groups = make([]*AxsCfgSingleFlexprofileT, groupsLength) + for j := 0; j < groupsLength; j++ { + x := AxsCfgSingleFlexprofile{} + rcv.Groups(&x, j) + t.Groups[j] = x.UnPack() + } +} + +func (rcv *AxsCfgFlexprofileObj) UnPack() *AxsCfgFlexprofileObjT { + if rcv == nil { return nil } + t := &AxsCfgFlexprofileObjT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgFlexprofileObj struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgFlexprofileObj(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFlexprofileObj { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgFlexprofileObj{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgFlexprofileObj(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgFlexprofileObj { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgFlexprofileObj{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgFlexprofileObj) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgFlexprofileObj) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the flexprofile object +func (rcv *AxsCfgFlexprofileObj) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the flexprofile object +/// configuration of single flexprofile groups +func (rcv *AxsCfgFlexprofileObj) Groups(obj *AxsCfgSingleFlexprofile, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsCfgFlexprofileObj) GroupsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// configuration of single flexprofile groups +func AxsCfgFlexprofileObjStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AxsCfgFlexprofileObjAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AxsCfgFlexprofileObjAddGroups(builder *flatbuffers.Builder, groups flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(groups), 0) +} +func AxsCfgFlexprofileObjStartGroupsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsCfgFlexprofileObjEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgSingleFlexprofile.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgSingleFlexprofile.go new file mode 100644 index 0000000..d20260a --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgSingleFlexprofile.go @@ -0,0 +1,145 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single flexprofile +type AxsCfgSingleFlexprofileT struct { + Name string + Segments []*CfgFlexprofileSegmentT + CamBuilderData string +} + +func (t *AxsCfgSingleFlexprofileT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + segmentsOffset := flatbuffers.UOffsetT(0) + if t.Segments != nil { + segmentsLength := len(t.Segments) + segmentsOffsets := make([]flatbuffers.UOffsetT, segmentsLength) + for j := 0; j < segmentsLength; j++ { + segmentsOffsets[j] = t.Segments[j].Pack(builder) + } + AxsCfgSingleFlexprofileStartSegmentsVector(builder, segmentsLength) + for j := segmentsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(segmentsOffsets[j]) + } + segmentsOffset = builder.EndVector(segmentsLength) + } + camBuilderDataOffset := builder.CreateString(t.CamBuilderData) + AxsCfgSingleFlexprofileStart(builder) + AxsCfgSingleFlexprofileAddName(builder, nameOffset) + AxsCfgSingleFlexprofileAddSegments(builder, segmentsOffset) + AxsCfgSingleFlexprofileAddCamBuilderData(builder, camBuilderDataOffset) + return AxsCfgSingleFlexprofileEnd(builder) +} + +func (rcv *AxsCfgSingleFlexprofile) UnPackTo(t *AxsCfgSingleFlexprofileT) { + t.Name = string(rcv.Name()) + segmentsLength := rcv.SegmentsLength() + t.Segments = make([]*CfgFlexprofileSegmentT, segmentsLength) + for j := 0; j < segmentsLength; j++ { + x := CfgFlexprofileSegment{} + rcv.Segments(&x, j) + t.Segments[j] = x.UnPack() + } + t.CamBuilderData = string(rcv.CamBuilderData()) +} + +func (rcv *AxsCfgSingleFlexprofile) UnPack() *AxsCfgSingleFlexprofileT { + if rcv == nil { return nil } + t := &AxsCfgSingleFlexprofileT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgSingleFlexprofile struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgSingleFlexprofile(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgSingleFlexprofile { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgSingleFlexprofile{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgSingleFlexprofile(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgSingleFlexprofile { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgSingleFlexprofile{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgSingleFlexprofile) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgSingleFlexprofile) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the single flexprofile +func (rcv *AxsCfgSingleFlexprofile) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the single flexprofile +/// flexprofile segment description +func (rcv *AxsCfgSingleFlexprofile) Segments(obj *CfgFlexprofileSegment, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsCfgSingleFlexprofile) SegmentsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// flexprofile segment description +/// cam builder data +func (rcv *AxsCfgSingleFlexprofile) CamBuilderData() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// cam builder data +func AxsCfgSingleFlexprofileStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsCfgSingleFlexprofileAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AxsCfgSingleFlexprofileAddSegments(builder *flatbuffers.Builder, segments flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(segments), 0) +} +func AxsCfgSingleFlexprofileStartSegmentsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsCfgSingleFlexprofileAddCamBuilderData(builder *flatbuffers.Builder, camBuilderData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(camBuilderData), 0) +} +func AxsCfgSingleFlexprofileEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCfgSyncMotion.go b/pkg/fbs/motion/sync/fbtypes/AxsCfgSyncMotion.go index 34c1ebe..db264e9 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCfgSyncMotion.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCfgSyncMotion.go @@ -1,105 +1,155 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// Configuration of the synchronized motion behavior of a single axis -type AxsCfgSyncMotionT struct { - ErrorReaction *AxsCfgErrReactionT - DynSynchronisation *AxsCfgDynSynchronisationT -} - -func (t *AxsCfgSyncMotionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - errorReactionOffset := t.ErrorReaction.Pack(builder) - dynSynchronisationOffset := t.DynSynchronisation.Pack(builder) - AxsCfgSyncMotionStart(builder) - AxsCfgSyncMotionAddErrorReaction(builder, errorReactionOffset) - AxsCfgSyncMotionAddDynSynchronisation(builder, dynSynchronisationOffset) - return AxsCfgSyncMotionEnd(builder) -} - -func (rcv *AxsCfgSyncMotion) UnPackTo(t *AxsCfgSyncMotionT) { - t.ErrorReaction = rcv.ErrorReaction(nil).UnPack() - t.DynSynchronisation = rcv.DynSynchronisation(nil).UnPack() -} - -func (rcv *AxsCfgSyncMotion) UnPack() *AxsCfgSyncMotionT { - if rcv == nil { return nil } - t := &AxsCfgSyncMotionT{} - rcv.UnPackTo(t) - return t -} - -type AxsCfgSyncMotion struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCfgSyncMotion(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgSyncMotion { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCfgSyncMotion{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCfgSyncMotion(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgSyncMotion { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCfgSyncMotion{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCfgSyncMotion) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCfgSyncMotion) Table() flatbuffers.Table { - return rcv._tab -} - -/// Reference to configuration of the error reaction behavior of the axis -func (rcv *AxsCfgSyncMotion) ErrorReaction(obj *AxsCfgErrReaction) *AxsCfgErrReaction { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgErrReaction) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// Reference to configuration of the error reaction behavior of the axis -/// Reference to configuration of the dynamic synchronisation behavior of the axis -func (rcv *AxsCfgSyncMotion) DynSynchronisation(obj *AxsCfgDynSynchronisation) *AxsCfgDynSynchronisation { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsCfgDynSynchronisation) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// Reference to configuration of the dynamic synchronisation behavior of the axis -func AxsCfgSyncMotionStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AxsCfgSyncMotionAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(errorReaction), 0) -} -func AxsCfgSyncMotionAddDynSynchronisation(builder *flatbuffers.Builder, dynSynchronisation flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dynSynchronisation), 0) -} -func AxsCfgSyncMotionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Configuration of the synchronized motion behavior of a single axis +type AxsCfgSyncMotionT struct { + ErrorReaction *AxsCfgErrReactionT + DynSynchronisation *AxsCfgDynSynchronisationT + CalculationPipelines []*AxsCfgCalcPipelineT +} + +func (t *AxsCfgSyncMotionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + errorReactionOffset := t.ErrorReaction.Pack(builder) + dynSynchronisationOffset := t.DynSynchronisation.Pack(builder) + calculationPipelinesOffset := flatbuffers.UOffsetT(0) + if t.CalculationPipelines != nil { + calculationPipelinesLength := len(t.CalculationPipelines) + calculationPipelinesOffsets := make([]flatbuffers.UOffsetT, calculationPipelinesLength) + for j := 0; j < calculationPipelinesLength; j++ { + calculationPipelinesOffsets[j] = t.CalculationPipelines[j].Pack(builder) + } + AxsCfgSyncMotionStartCalculationPipelinesVector(builder, calculationPipelinesLength) + for j := calculationPipelinesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(calculationPipelinesOffsets[j]) + } + calculationPipelinesOffset = builder.EndVector(calculationPipelinesLength) + } + AxsCfgSyncMotionStart(builder) + AxsCfgSyncMotionAddErrorReaction(builder, errorReactionOffset) + AxsCfgSyncMotionAddDynSynchronisation(builder, dynSynchronisationOffset) + AxsCfgSyncMotionAddCalculationPipelines(builder, calculationPipelinesOffset) + return AxsCfgSyncMotionEnd(builder) +} + +func (rcv *AxsCfgSyncMotion) UnPackTo(t *AxsCfgSyncMotionT) { + t.ErrorReaction = rcv.ErrorReaction(nil).UnPack() + t.DynSynchronisation = rcv.DynSynchronisation(nil).UnPack() + calculationPipelinesLength := rcv.CalculationPipelinesLength() + t.CalculationPipelines = make([]*AxsCfgCalcPipelineT, calculationPipelinesLength) + for j := 0; j < calculationPipelinesLength; j++ { + x := AxsCfgCalcPipeline{} + rcv.CalculationPipelines(&x, j) + t.CalculationPipelines[j] = x.UnPack() + } +} + +func (rcv *AxsCfgSyncMotion) UnPack() *AxsCfgSyncMotionT { + if rcv == nil { return nil } + t := &AxsCfgSyncMotionT{} + rcv.UnPackTo(t) + return t +} + +type AxsCfgSyncMotion struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCfgSyncMotion(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgSyncMotion { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCfgSyncMotion{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCfgSyncMotion(buf []byte, offset flatbuffers.UOffsetT) *AxsCfgSyncMotion { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCfgSyncMotion{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCfgSyncMotion) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCfgSyncMotion) Table() flatbuffers.Table { + return rcv._tab +} + +/// Reference to configuration of the error reaction behavior of the axis +func (rcv *AxsCfgSyncMotion) ErrorReaction(obj *AxsCfgErrReaction) *AxsCfgErrReaction { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgErrReaction) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Reference to configuration of the error reaction behavior of the axis +/// Reference to configuration of the dynamic synchronisation behavior of the axis +func (rcv *AxsCfgSyncMotion) DynSynchronisation(obj *AxsCfgDynSynchronisation) *AxsCfgDynSynchronisation { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCfgDynSynchronisation) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// Reference to configuration of the dynamic synchronisation behavior of the axis +/// configuration for calculation pipelines for a single axis +func (rcv *AxsCfgSyncMotion) CalculationPipelines(obj *AxsCfgCalcPipeline, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsCfgSyncMotion) CalculationPipelinesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// configuration for calculation pipelines for a single axis +func AxsCfgSyncMotionStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsCfgSyncMotionAddErrorReaction(builder *flatbuffers.Builder, errorReaction flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(errorReaction), 0) +} +func AxsCfgSyncMotionAddDynSynchronisation(builder *flatbuffers.Builder, dynSynchronisation flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dynSynchronisation), 0) +} +func AxsCfgSyncMotionAddCalculationPipelines(builder *flatbuffers.Builder, calculationPipelines flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(calculationPipelines), 0) +} +func AxsCfgSyncMotionStartCalculationPipelinesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsCfgSyncMotionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosData.go index 9ae436b..0bc09d5 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosData.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosData.go @@ -1,198 +1,180 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis GearInPos command -type AxsCmdGearInPosDataT struct { - Master string - RatioMaster int32 - RatioSlave int32 - Offset float64 - OffsetDLIdx int32 - CmdMode SyncCmdMode - Buffered bool -} - -func (t *AxsCmdGearInPosDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - masterOffset := builder.CreateString(t.Master) - AxsCmdGearInPosDataStart(builder) - AxsCmdGearInPosDataAddMaster(builder, masterOffset) - AxsCmdGearInPosDataAddRatioMaster(builder, t.RatioMaster) - AxsCmdGearInPosDataAddRatioSlave(builder, t.RatioSlave) - AxsCmdGearInPosDataAddOffset(builder, t.Offset) - AxsCmdGearInPosDataAddOffsetDLIdx(builder, t.OffsetDLIdx) - AxsCmdGearInPosDataAddCmdMode(builder, t.CmdMode) - AxsCmdGearInPosDataAddBuffered(builder, t.Buffered) - return AxsCmdGearInPosDataEnd(builder) -} - -func (rcv *AxsCmdGearInPosData) UnPackTo(t *AxsCmdGearInPosDataT) { - t.Master = string(rcv.Master()) - t.RatioMaster = rcv.RatioMaster() - t.RatioSlave = rcv.RatioSlave() - t.Offset = rcv.Offset() - t.OffsetDLIdx = rcv.OffsetDLIdx() - t.CmdMode = rcv.CmdMode() - t.Buffered = rcv.Buffered() -} - -func (rcv *AxsCmdGearInPosData) UnPack() *AxsCmdGearInPosDataT { - if rcv == nil { return nil } - t := &AxsCmdGearInPosDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdGearInPosData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdGearInPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdGearInPosData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdGearInPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdGearInPosData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdGearInPosData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdGearInPosData) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the master axis -func (rcv *AxsCmdGearInPosData) Master() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the master axis -/// gear ratio, master side (can be negative) -func (rcv *AxsCmdGearInPosData) RatioMaster() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 1 -} - -/// gear ratio, master side (can be negative) -func (rcv *AxsCmdGearInPosData) MutateRatioMaster(n int32) bool { - return rcv._tab.MutateInt32Slot(6, n) -} - -/// gear ratio, slave side (can be negative) -func (rcv *AxsCmdGearInPosData) RatioSlave() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 1 -} - -/// gear ratio, slave side (can be negative) -func (rcv *AxsCmdGearInPosData) MutateRatioSlave(n int32) bool { - return rcv._tab.MutateInt32Slot(8, n) -} - -/// post gear position offset as a constant value (set to 0.0, to have no offset); only used, when offsetDLIdx < 0 -func (rcv *AxsCmdGearInPosData) Offset() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// post gear position offset as a constant value (set to 0.0, to have no offset); only used, when offsetDLIdx < 0 -func (rcv *AxsCmdGearInPosData) MutateOffset(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -/// index of the DataLayerRT motion input for the post gear position offset (set to -1, to use the constant offset) -func (rcv *AxsCmdGearInPosData) OffsetDLIdx() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return -1 -} - -/// index of the DataLayerRT motion input for the post gear position offset (set to -1, to use the constant offset) -func (rcv *AxsCmdGearInPosData) MutateOffsetDLIdx(n int32) bool { - return rcv._tab.MutateInt32Slot(12, n) -} - -/// Sync command mode -func (rcv *AxsCmdGearInPosData) CmdMode() SyncCmdMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return SyncCmdMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -/// Sync command mode -func (rcv *AxsCmdGearInPosData) MutateCmdMode(n SyncCmdMode) bool { - return rcv._tab.MutateInt8Slot(14, int8(n)) -} - -/// should this be a buffered command? -func (rcv *AxsCmdGearInPosData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this be a buffered command? -func (rcv *AxsCmdGearInPosData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(16, n) -} - -func AxsCmdGearInPosDataStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func AxsCmdGearInPosDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) -} -func AxsCmdGearInPosDataAddRatioMaster(builder *flatbuffers.Builder, ratioMaster int32) { - builder.PrependInt32Slot(1, ratioMaster, 1) -} -func AxsCmdGearInPosDataAddRatioSlave(builder *flatbuffers.Builder, ratioSlave int32) { - builder.PrependInt32Slot(2, ratioSlave, 1) -} -func AxsCmdGearInPosDataAddOffset(builder *flatbuffers.Builder, offset float64) { - builder.PrependFloat64Slot(3, offset, 0.0) -} -func AxsCmdGearInPosDataAddOffsetDLIdx(builder *flatbuffers.Builder, offsetDLIdx int32) { - builder.PrependInt32Slot(4, offsetDLIdx, -1) -} -func AxsCmdGearInPosDataAddCmdMode(builder *flatbuffers.Builder, cmdMode SyncCmdMode) { - builder.PrependInt8Slot(5, int8(cmdMode), 2) -} -func AxsCmdGearInPosDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(6, buffered, false) -} -func AxsCmdGearInPosDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis GearInPos command +type AxsCmdGearInPosDataT struct { + Master string + SyncSource SyncSource + SyncMode SyncMode + SyncDirection SyncDirection + Parameters *AxsCmdGearInPosParamsT + Buffered bool +} + +func (t *AxsCmdGearInPosDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + parametersOffset := t.Parameters.Pack(builder) + AxsCmdGearInPosDataStart(builder) + AxsCmdGearInPosDataAddMaster(builder, masterOffset) + AxsCmdGearInPosDataAddSyncSource(builder, t.SyncSource) + AxsCmdGearInPosDataAddSyncMode(builder, t.SyncMode) + AxsCmdGearInPosDataAddSyncDirection(builder, t.SyncDirection) + AxsCmdGearInPosDataAddParameters(builder, parametersOffset) + AxsCmdGearInPosDataAddBuffered(builder, t.Buffered) + return AxsCmdGearInPosDataEnd(builder) +} + +func (rcv *AxsCmdGearInPosData) UnPackTo(t *AxsCmdGearInPosDataT) { + t.Master = string(rcv.Master()) + t.SyncSource = rcv.SyncSource() + t.SyncMode = rcv.SyncMode() + t.SyncDirection = rcv.SyncDirection() + t.Parameters = rcv.Parameters(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdGearInPosData) UnPack() *AxsCmdGearInPosDataT { + if rcv == nil { return nil } + t := &AxsCmdGearInPosDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInPosData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInPosData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInPosData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInPosData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInPosData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdGearInPosData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInPosData) SyncSource() SyncSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return SyncSource(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInPosData) MutateSyncSource(n SyncSource) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// sync mode (Abs/Rel; Init/KeepState) +func (rcv *AxsCmdGearInPosData) SyncMode() SyncMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return SyncMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync mode (Abs/Rel; Init/KeepState) +func (rcv *AxsCmdGearInPosData) MutateSyncMode(n SyncMode) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// sync direction (SlowDown/CatchUp/ShortestPath) +func (rcv *AxsCmdGearInPosData) SyncDirection() SyncDirection { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return SyncDirection(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync direction (SlowDown/CatchUp/ShortestPath) +func (rcv *AxsCmdGearInPosData) MutateSyncDirection(n SyncDirection) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +/// gear in pos parameters (master offset, slave offset, ratio numerator, ratio denominator, fine adjust) +func (rcv *AxsCmdGearInPosData) Parameters(obj *AxsCmdGearInPosParams) *AxsCmdGearInPosParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCmdGearInPosParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// gear in pos parameters (master offset, slave offset, ratio numerator, ratio denominator, fine adjust) +/// should this be a buffered command? +func (rcv *AxsCmdGearInPosData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdGearInPosData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func AxsCmdGearInPosDataStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func AxsCmdGearInPosDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdGearInPosDataAddSyncSource(builder *flatbuffers.Builder, syncSource SyncSource) { + builder.PrependInt8Slot(1, int8(syncSource), 0) +} +func AxsCmdGearInPosDataAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { + builder.PrependInt8Slot(2, int8(syncMode), 0) +} +func AxsCmdGearInPosDataAddSyncDirection(builder *flatbuffers.Builder, syncDirection SyncDirection) { + builder.PrependInt8Slot(3, int8(syncDirection), 0) +} +func AxsCmdGearInPosDataAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(parameters), 0) +} +func AxsCmdGearInPosDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(5, buffered, false) +} +func AxsCmdGearInPosDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosDlParams.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosDlParams.go new file mode 100644 index 0000000..f9aba0e --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosDlParams.go @@ -0,0 +1,281 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// GearInPos calculation pipeline parameters, that are stored in the Datalayer RT, for the axis GearInPosEx command +type AxsCmdGearInPosDlParamsT struct { + SoiMasterOffsetDlIdx int32 + SoiMasterOffsetVelDlIdx int32 + SoiMasterOffsetAccDlIdx int32 + SoiSlaveOffsetDlIdx int32 + SoiSlaveOffsetVelDlIdx int32 + SoiSlaveOffsetAccDlIdx int32 + FofMasterOffsetDlIdx int32 + FofMasterOffsetTimeConstantDlIdx int32 + FofSlaveOffsetDlIdx int32 + FofSlaveOffsetTimeConstantDlIdx int32 + FineAdjustDlIdx int32 +} + +func (t *AxsCmdGearInPosDlParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCmdGearInPosDlParamsStart(builder) + AxsCmdGearInPosDlParamsAddSoiMasterOffsetDlIdx(builder, t.SoiMasterOffsetDlIdx) + AxsCmdGearInPosDlParamsAddSoiMasterOffsetVelDlIdx(builder, t.SoiMasterOffsetVelDlIdx) + AxsCmdGearInPosDlParamsAddSoiMasterOffsetAccDlIdx(builder, t.SoiMasterOffsetAccDlIdx) + AxsCmdGearInPosDlParamsAddSoiSlaveOffsetDlIdx(builder, t.SoiSlaveOffsetDlIdx) + AxsCmdGearInPosDlParamsAddSoiSlaveOffsetVelDlIdx(builder, t.SoiSlaveOffsetVelDlIdx) + AxsCmdGearInPosDlParamsAddSoiSlaveOffsetAccDlIdx(builder, t.SoiSlaveOffsetAccDlIdx) + AxsCmdGearInPosDlParamsAddFofMasterOffsetDlIdx(builder, t.FofMasterOffsetDlIdx) + AxsCmdGearInPosDlParamsAddFofMasterOffsetTimeConstantDlIdx(builder, t.FofMasterOffsetTimeConstantDlIdx) + AxsCmdGearInPosDlParamsAddFofSlaveOffsetDlIdx(builder, t.FofSlaveOffsetDlIdx) + AxsCmdGearInPosDlParamsAddFofSlaveOffsetTimeConstantDlIdx(builder, t.FofSlaveOffsetTimeConstantDlIdx) + AxsCmdGearInPosDlParamsAddFineAdjustDlIdx(builder, t.FineAdjustDlIdx) + return AxsCmdGearInPosDlParamsEnd(builder) +} + +func (rcv *AxsCmdGearInPosDlParams) UnPackTo(t *AxsCmdGearInPosDlParamsT) { + t.SoiMasterOffsetDlIdx = rcv.SoiMasterOffsetDlIdx() + t.SoiMasterOffsetVelDlIdx = rcv.SoiMasterOffsetVelDlIdx() + t.SoiMasterOffsetAccDlIdx = rcv.SoiMasterOffsetAccDlIdx() + t.SoiSlaveOffsetDlIdx = rcv.SoiSlaveOffsetDlIdx() + t.SoiSlaveOffsetVelDlIdx = rcv.SoiSlaveOffsetVelDlIdx() + t.SoiSlaveOffsetAccDlIdx = rcv.SoiSlaveOffsetAccDlIdx() + t.FofMasterOffsetDlIdx = rcv.FofMasterOffsetDlIdx() + t.FofMasterOffsetTimeConstantDlIdx = rcv.FofMasterOffsetTimeConstantDlIdx() + t.FofSlaveOffsetDlIdx = rcv.FofSlaveOffsetDlIdx() + t.FofSlaveOffsetTimeConstantDlIdx = rcv.FofSlaveOffsetTimeConstantDlIdx() + t.FineAdjustDlIdx = rcv.FineAdjustDlIdx() +} + +func (rcv *AxsCmdGearInPosDlParams) UnPack() *AxsCmdGearInPosDlParamsT { + if rcv == nil { return nil } + t := &AxsCmdGearInPosDlParamsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInPosDlParams struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInPosDlParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosDlParams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInPosDlParams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInPosDlParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosDlParams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInPosDlParams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInPosDlParams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInPosDlParams) Table() flatbuffers.Table { + return rcv._tab +} + +/// data layer index of master offset target value, second order interpolated +func (rcv *AxsCmdGearInPosDlParams) SoiMasterOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of master offset target value, second order interpolated +func (rcv *AxsCmdGearInPosDlParams) MutateSoiMasterOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +/// data layer index of master offset velocity constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) SoiMasterOffsetVelDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of master offset velocity constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) MutateSoiMasterOffsetVelDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(6, n) +} + +/// data layer index of master offset acceleration constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) SoiMasterOffsetAccDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of master offset acceleration constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) MutateSoiMasterOffsetAccDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +/// data layer index of slave offset target value, second order interpolated +func (rcv *AxsCmdGearInPosDlParams) SoiSlaveOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of slave offset target value, second order interpolated +func (rcv *AxsCmdGearInPosDlParams) MutateSoiSlaveOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(10, n) +} + +/// data layer index of slave offset velocity constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) SoiSlaveOffsetVelDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of slave offset velocity constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) MutateSoiSlaveOffsetVelDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(12, n) +} + +/// data layer index of slave offset acceleration constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) SoiSlaveOffsetAccDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of slave offset acceleration constraint for second order interpolation +func (rcv *AxsCmdGearInPosDlParams) MutateSoiSlaveOffsetAccDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(14, n) +} + +/// data layer index of second master offset, first order filtered +func (rcv *AxsCmdGearInPosDlParams) FofMasterOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of second master offset, first order filtered +func (rcv *AxsCmdGearInPosDlParams) MutateFofMasterOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(16, n) +} + +/// data layer index of time constant for change rate of fofMasterOffset +func (rcv *AxsCmdGearInPosDlParams) FofMasterOffsetTimeConstantDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of time constant for change rate of fofMasterOffset +func (rcv *AxsCmdGearInPosDlParams) MutateFofMasterOffsetTimeConstantDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(18, n) +} + +/// data layer index of second slave offset, first order filtered +func (rcv *AxsCmdGearInPosDlParams) FofSlaveOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of second slave offset, first order filtered +func (rcv *AxsCmdGearInPosDlParams) MutateFofSlaveOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(20, n) +} + +/// data layer index of time constant for change rate of fofSlaveOffset +func (rcv *AxsCmdGearInPosDlParams) FofSlaveOffsetTimeConstantDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of time constant for change rate of fofSlaveOffset +func (rcv *AxsCmdGearInPosDlParams) MutateFofSlaveOffsetTimeConstantDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(22, n) +} + +/// data layer index of fine adjust percentage in addition to the commanded fine adjust +func (rcv *AxsCmdGearInPosDlParams) FineAdjustDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of fine adjust percentage in addition to the commanded fine adjust +func (rcv *AxsCmdGearInPosDlParams) MutateFineAdjustDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(24, n) +} + +func AxsCmdGearInPosDlParamsStart(builder *flatbuffers.Builder) { + builder.StartObject(11) +} +func AxsCmdGearInPosDlParamsAddSoiMasterOffsetDlIdx(builder *flatbuffers.Builder, soiMasterOffsetDlIdx int32) { + builder.PrependInt32Slot(0, soiMasterOffsetDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddSoiMasterOffsetVelDlIdx(builder *flatbuffers.Builder, soiMasterOffsetVelDlIdx int32) { + builder.PrependInt32Slot(1, soiMasterOffsetVelDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddSoiMasterOffsetAccDlIdx(builder *flatbuffers.Builder, soiMasterOffsetAccDlIdx int32) { + builder.PrependInt32Slot(2, soiMasterOffsetAccDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddSoiSlaveOffsetDlIdx(builder *flatbuffers.Builder, soiSlaveOffsetDlIdx int32) { + builder.PrependInt32Slot(3, soiSlaveOffsetDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddSoiSlaveOffsetVelDlIdx(builder *flatbuffers.Builder, soiSlaveOffsetVelDlIdx int32) { + builder.PrependInt32Slot(4, soiSlaveOffsetVelDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddSoiSlaveOffsetAccDlIdx(builder *flatbuffers.Builder, soiSlaveOffsetAccDlIdx int32) { + builder.PrependInt32Slot(5, soiSlaveOffsetAccDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddFofMasterOffsetDlIdx(builder *flatbuffers.Builder, fofMasterOffsetDlIdx int32) { + builder.PrependInt32Slot(6, fofMasterOffsetDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddFofMasterOffsetTimeConstantDlIdx(builder *flatbuffers.Builder, fofMasterOffsetTimeConstantDlIdx int32) { + builder.PrependInt32Slot(7, fofMasterOffsetTimeConstantDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddFofSlaveOffsetDlIdx(builder *flatbuffers.Builder, fofSlaveOffsetDlIdx int32) { + builder.PrependInt32Slot(8, fofSlaveOffsetDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddFofSlaveOffsetTimeConstantDlIdx(builder *flatbuffers.Builder, fofSlaveOffsetTimeConstantDlIdx int32) { + builder.PrependInt32Slot(9, fofSlaveOffsetTimeConstantDlIdx, -1) +} +func AxsCmdGearInPosDlParamsAddFineAdjustDlIdx(builder *flatbuffers.Builder, fineAdjustDlIdx int32) { + builder.PrependInt32Slot(10, fineAdjustDlIdx, -1) +} +func AxsCmdGearInPosDlParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosExData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosExData.go new file mode 100644 index 0000000..bbc13a4 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosExData.go @@ -0,0 +1,202 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis GearInPosEx command +type AxsCmdGearInPosExDataT struct { + Master string + SyncSource SyncSource + SyncMode SyncMode + SyncDirection SyncDirection + Parameters *AxsCmdGearInPosParamsT + DlParameters *AxsCmdGearInPosDlParamsT + Buffered bool +} + +func (t *AxsCmdGearInPosExDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + parametersOffset := t.Parameters.Pack(builder) + dlParametersOffset := t.DlParameters.Pack(builder) + AxsCmdGearInPosExDataStart(builder) + AxsCmdGearInPosExDataAddMaster(builder, masterOffset) + AxsCmdGearInPosExDataAddSyncSource(builder, t.SyncSource) + AxsCmdGearInPosExDataAddSyncMode(builder, t.SyncMode) + AxsCmdGearInPosExDataAddSyncDirection(builder, t.SyncDirection) + AxsCmdGearInPosExDataAddParameters(builder, parametersOffset) + AxsCmdGearInPosExDataAddDlParameters(builder, dlParametersOffset) + AxsCmdGearInPosExDataAddBuffered(builder, t.Buffered) + return AxsCmdGearInPosExDataEnd(builder) +} + +func (rcv *AxsCmdGearInPosExData) UnPackTo(t *AxsCmdGearInPosExDataT) { + t.Master = string(rcv.Master()) + t.SyncSource = rcv.SyncSource() + t.SyncMode = rcv.SyncMode() + t.SyncDirection = rcv.SyncDirection() + t.Parameters = rcv.Parameters(nil).UnPack() + t.DlParameters = rcv.DlParameters(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdGearInPosExData) UnPack() *AxsCmdGearInPosExDataT { + if rcv == nil { return nil } + t := &AxsCmdGearInPosExDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInPosExData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInPosExData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosExData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInPosExData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInPosExData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosExData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInPosExData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInPosExData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInPosExData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdGearInPosExData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInPosExData) SyncSource() SyncSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return SyncSource(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInPosExData) MutateSyncSource(n SyncSource) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// sync mode (Abs/Rel; Init/KeepState) +func (rcv *AxsCmdGearInPosExData) SyncMode() SyncMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return SyncMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync mode (Abs/Rel; Init/KeepState) +func (rcv *AxsCmdGearInPosExData) MutateSyncMode(n SyncMode) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// sync direction (SlowDown/CatchUp/ShortestPath) +func (rcv *AxsCmdGearInPosExData) SyncDirection() SyncDirection { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return SyncDirection(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync direction (SlowDown/CatchUp/ShortestPath) +func (rcv *AxsCmdGearInPosExData) MutateSyncDirection(n SyncDirection) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +/// gear in pos parameters (master offset, slave offset, master ratio, slave ratio, fine adjust) +func (rcv *AxsCmdGearInPosExData) Parameters(obj *AxsCmdGearInPosParams) *AxsCmdGearInPosParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCmdGearInPosParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// gear in pos parameters (master offset, slave offset, master ratio, slave ratio, fine adjust) +/// gear in pos data layer parameters +func (rcv *AxsCmdGearInPosExData) DlParameters(obj *AxsCmdGearInPosDlParams) *AxsCmdGearInPosDlParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCmdGearInPosDlParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// gear in pos data layer parameters +/// should this be a buffered command? +func (rcv *AxsCmdGearInPosExData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdGearInPosExData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(16, n) +} + +func AxsCmdGearInPosExDataStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func AxsCmdGearInPosExDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdGearInPosExDataAddSyncSource(builder *flatbuffers.Builder, syncSource SyncSource) { + builder.PrependInt8Slot(1, int8(syncSource), 0) +} +func AxsCmdGearInPosExDataAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { + builder.PrependInt8Slot(2, int8(syncMode), 0) +} +func AxsCmdGearInPosExDataAddSyncDirection(builder *flatbuffers.Builder, syncDirection SyncDirection) { + builder.PrependInt8Slot(3, int8(syncDirection), 0) +} +func AxsCmdGearInPosExDataAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(parameters), 0) +} +func AxsCmdGearInPosExDataAddDlParameters(builder *flatbuffers.Builder, dlParameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(dlParameters), 0) +} +func AxsCmdGearInPosExDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(6, buffered, false) +} +func AxsCmdGearInPosExDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosParams.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosParams.go new file mode 100644 index 0000000..8c48ded --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInPosParams.go @@ -0,0 +1,161 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// GearInPos calculation pipeline parameters for the axis GearInPos command +type AxsCmdGearInPosParamsT struct { + MasterOffset float64 + SlaveOffset float64 + RatioNumerator int32 + RatioDenominator int32 + FineAdjust float64 +} + +func (t *AxsCmdGearInPosParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCmdGearInPosParamsStart(builder) + AxsCmdGearInPosParamsAddMasterOffset(builder, t.MasterOffset) + AxsCmdGearInPosParamsAddSlaveOffset(builder, t.SlaveOffset) + AxsCmdGearInPosParamsAddRatioNumerator(builder, t.RatioNumerator) + AxsCmdGearInPosParamsAddRatioDenominator(builder, t.RatioDenominator) + AxsCmdGearInPosParamsAddFineAdjust(builder, t.FineAdjust) + return AxsCmdGearInPosParamsEnd(builder) +} + +func (rcv *AxsCmdGearInPosParams) UnPackTo(t *AxsCmdGearInPosParamsT) { + t.MasterOffset = rcv.MasterOffset() + t.SlaveOffset = rcv.SlaveOffset() + t.RatioNumerator = rcv.RatioNumerator() + t.RatioDenominator = rcv.RatioDenominator() + t.FineAdjust = rcv.FineAdjust() +} + +func (rcv *AxsCmdGearInPosParams) UnPack() *AxsCmdGearInPosParamsT { + if rcv == nil { return nil } + t := &AxsCmdGearInPosParamsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInPosParams struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInPosParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosParams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInPosParams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInPosParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInPosParams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInPosParams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInPosParams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInPosParams) Table() flatbuffers.Table { + return rcv._tab +} + +/// master offset value +func (rcv *AxsCmdGearInPosParams) MasterOffset() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// master offset value +func (rcv *AxsCmdGearInPosParams) MutateMasterOffset(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// slave offset value +func (rcv *AxsCmdGearInPosParams) SlaveOffset() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// slave offset value +func (rcv *AxsCmdGearInPosParams) MutateSlaveOffset(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// ratio numerator value +func (rcv *AxsCmdGearInPosParams) RatioNumerator() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 1 +} + +/// ratio numerator value +func (rcv *AxsCmdGearInPosParams) MutateRatioNumerator(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +/// ratio denominator value +func (rcv *AxsCmdGearInPosParams) RatioDenominator() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 1 +} + +/// ratio denominator value +func (rcv *AxsCmdGearInPosParams) MutateRatioDenominator(n int32) bool { + return rcv._tab.MutateInt32Slot(10, n) +} + +/// fine adjust parameter +func (rcv *AxsCmdGearInPosParams) FineAdjust() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// fine adjust parameter +func (rcv *AxsCmdGearInPosParams) MutateFineAdjust(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +func AxsCmdGearInPosParamsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func AxsCmdGearInPosParamsAddMasterOffset(builder *flatbuffers.Builder, masterOffset float64) { + builder.PrependFloat64Slot(0, masterOffset, 0.0) +} +func AxsCmdGearInPosParamsAddSlaveOffset(builder *flatbuffers.Builder, slaveOffset float64) { + builder.PrependFloat64Slot(1, slaveOffset, 0.0) +} +func AxsCmdGearInPosParamsAddRatioNumerator(builder *flatbuffers.Builder, ratioNumerator int32) { + builder.PrependInt32Slot(2, ratioNumerator, 1) +} +func AxsCmdGearInPosParamsAddRatioDenominator(builder *flatbuffers.Builder, ratioDenominator int32) { + builder.PrependInt32Slot(3, ratioDenominator, 1) +} +func AxsCmdGearInPosParamsAddFineAdjust(builder *flatbuffers.Builder, fineAdjust float64) { + builder.PrependFloat64Slot(4, fineAdjust, 0.0) +} +func AxsCmdGearInPosParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelData.go new file mode 100644 index 0000000..6c3d83c --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelData.go @@ -0,0 +1,140 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis GearInVel commands +type AxsCmdGearInVelDataT struct { + Master string + SyncSource SyncSource + Parameters *AxsCmdGearInVelParamsT + Buffered bool +} + +func (t *AxsCmdGearInVelDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + parametersOffset := t.Parameters.Pack(builder) + AxsCmdGearInVelDataStart(builder) + AxsCmdGearInVelDataAddMaster(builder, masterOffset) + AxsCmdGearInVelDataAddSyncSource(builder, t.SyncSource) + AxsCmdGearInVelDataAddParameters(builder, parametersOffset) + AxsCmdGearInVelDataAddBuffered(builder, t.Buffered) + return AxsCmdGearInVelDataEnd(builder) +} + +func (rcv *AxsCmdGearInVelData) UnPackTo(t *AxsCmdGearInVelDataT) { + t.Master = string(rcv.Master()) + t.SyncSource = rcv.SyncSource() + t.Parameters = rcv.Parameters(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdGearInVelData) UnPack() *AxsCmdGearInVelDataT { + if rcv == nil { return nil } + t := &AxsCmdGearInVelDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInVelData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInVelData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInVelData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInVelData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInVelData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdGearInVelData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInVelData) SyncSource() SyncSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return SyncSource(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInVelData) MutateSyncSource(n SyncSource) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// gear in vel parameters (master offset, slave offset, master ratio, slave ratio, fine adjust) +func (rcv *AxsCmdGearInVelData) Parameters(obj *AxsCmdGearInVelParams) *AxsCmdGearInVelParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCmdGearInVelParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// gear in vel parameters (master offset, slave offset, master ratio, slave ratio, fine adjust) +/// should this be a buffered command? +func (rcv *AxsCmdGearInVelData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdGearInVelData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func AxsCmdGearInVelDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCmdGearInVelDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdGearInVelDataAddSyncSource(builder *flatbuffers.Builder, syncSource SyncSource) { + builder.PrependInt8Slot(1, int8(syncSource), 0) +} +func AxsCmdGearInVelDataAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(parameters), 0) +} +func AxsCmdGearInVelDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(3, buffered, false) +} +func AxsCmdGearInVelDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelDlParams.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelDlParams.go new file mode 100644 index 0000000..30c469b --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelDlParams.go @@ -0,0 +1,241 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// GearInVel calculation pipeline parameters, that are stored in the Datalayer RT, for the axis GearInVelEx command +type AxsCmdGearInVelDlParamsT struct { + SoiMasterOffsetDlIdx int32 + SoiMasterOffsetVelDlIdx int32 + SoiMasterOffsetAccDlIdx int32 + FofMasterOffsetDlIdx int32 + FofMasterOffsetTimeConstantDlIdx int32 + SlaveVelOffsetDlIdx int32 + FoiSlaveOffsetDlIdx int32 + FoiSlaveOffsetAccDlIdx int32 + FineAdjustDlIdx int32 +} + +func (t *AxsCmdGearInVelDlParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCmdGearInVelDlParamsStart(builder) + AxsCmdGearInVelDlParamsAddSoiMasterOffsetDlIdx(builder, t.SoiMasterOffsetDlIdx) + AxsCmdGearInVelDlParamsAddSoiMasterOffsetVelDlIdx(builder, t.SoiMasterOffsetVelDlIdx) + AxsCmdGearInVelDlParamsAddSoiMasterOffsetAccDlIdx(builder, t.SoiMasterOffsetAccDlIdx) + AxsCmdGearInVelDlParamsAddFofMasterOffsetDlIdx(builder, t.FofMasterOffsetDlIdx) + AxsCmdGearInVelDlParamsAddFofMasterOffsetTimeConstantDlIdx(builder, t.FofMasterOffsetTimeConstantDlIdx) + AxsCmdGearInVelDlParamsAddSlaveVelOffsetDlIdx(builder, t.SlaveVelOffsetDlIdx) + AxsCmdGearInVelDlParamsAddFoiSlaveOffsetDlIdx(builder, t.FoiSlaveOffsetDlIdx) + AxsCmdGearInVelDlParamsAddFoiSlaveOffsetAccDlIdx(builder, t.FoiSlaveOffsetAccDlIdx) + AxsCmdGearInVelDlParamsAddFineAdjustDlIdx(builder, t.FineAdjustDlIdx) + return AxsCmdGearInVelDlParamsEnd(builder) +} + +func (rcv *AxsCmdGearInVelDlParams) UnPackTo(t *AxsCmdGearInVelDlParamsT) { + t.SoiMasterOffsetDlIdx = rcv.SoiMasterOffsetDlIdx() + t.SoiMasterOffsetVelDlIdx = rcv.SoiMasterOffsetVelDlIdx() + t.SoiMasterOffsetAccDlIdx = rcv.SoiMasterOffsetAccDlIdx() + t.FofMasterOffsetDlIdx = rcv.FofMasterOffsetDlIdx() + t.FofMasterOffsetTimeConstantDlIdx = rcv.FofMasterOffsetTimeConstantDlIdx() + t.SlaveVelOffsetDlIdx = rcv.SlaveVelOffsetDlIdx() + t.FoiSlaveOffsetDlIdx = rcv.FoiSlaveOffsetDlIdx() + t.FoiSlaveOffsetAccDlIdx = rcv.FoiSlaveOffsetAccDlIdx() + t.FineAdjustDlIdx = rcv.FineAdjustDlIdx() +} + +func (rcv *AxsCmdGearInVelDlParams) UnPack() *AxsCmdGearInVelDlParamsT { + if rcv == nil { return nil } + t := &AxsCmdGearInVelDlParamsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInVelDlParams struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInVelDlParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelDlParams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInVelDlParams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInVelDlParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelDlParams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInVelDlParams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInVelDlParams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInVelDlParams) Table() flatbuffers.Table { + return rcv._tab +} + +/// data layer index of master offset target value, second order interpolated +func (rcv *AxsCmdGearInVelDlParams) SoiMasterOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of master offset target value, second order interpolated +func (rcv *AxsCmdGearInVelDlParams) MutateSoiMasterOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +/// data layer index of master offset velocity constraint for second order interpolation +func (rcv *AxsCmdGearInVelDlParams) SoiMasterOffsetVelDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of master offset velocity constraint for second order interpolation +func (rcv *AxsCmdGearInVelDlParams) MutateSoiMasterOffsetVelDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(6, n) +} + +/// data layer index of master offset acceleration constraint for second order interpolation +func (rcv *AxsCmdGearInVelDlParams) SoiMasterOffsetAccDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of master offset acceleration constraint for second order interpolation +func (rcv *AxsCmdGearInVelDlParams) MutateSoiMasterOffsetAccDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +/// data layer index of second master offset, first order filtered +func (rcv *AxsCmdGearInVelDlParams) FofMasterOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of second master offset, first order filtered +func (rcv *AxsCmdGearInVelDlParams) MutateFofMasterOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(10, n) +} + +/// data layer index of time constant for change rate of fofMasterOffset +func (rcv *AxsCmdGearInVelDlParams) FofMasterOffsetTimeConstantDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of time constant for change rate of fofMasterOffset +func (rcv *AxsCmdGearInVelDlParams) MutateFofMasterOffsetTimeConstantDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(12, n) +} + +/// data layer index of slave velocity offset target value +func (rcv *AxsCmdGearInVelDlParams) SlaveVelOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of slave velocity offset target value +func (rcv *AxsCmdGearInVelDlParams) MutateSlaveVelOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(14, n) +} + +/// data layer index of slave velocity offset target value, first order interpolated +func (rcv *AxsCmdGearInVelDlParams) FoiSlaveOffsetDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of slave velocity offset target value, first order interpolated +func (rcv *AxsCmdGearInVelDlParams) MutateFoiSlaveOffsetDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(16, n) +} + +/// data layer index of slave offset acceleration constraint for first order interpolation +func (rcv *AxsCmdGearInVelDlParams) FoiSlaveOffsetAccDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of slave offset acceleration constraint for first order interpolation +func (rcv *AxsCmdGearInVelDlParams) MutateFoiSlaveOffsetAccDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(18, n) +} + +/// data layer index of fine adjust percentage in addition to the commanded fine adjust +func (rcv *AxsCmdGearInVelDlParams) FineAdjustDlIdx() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return -1 +} + +/// data layer index of fine adjust percentage in addition to the commanded fine adjust +func (rcv *AxsCmdGearInVelDlParams) MutateFineAdjustDlIdx(n int32) bool { + return rcv._tab.MutateInt32Slot(20, n) +} + +func AxsCmdGearInVelDlParamsStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func AxsCmdGearInVelDlParamsAddSoiMasterOffsetDlIdx(builder *flatbuffers.Builder, soiMasterOffsetDlIdx int32) { + builder.PrependInt32Slot(0, soiMasterOffsetDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddSoiMasterOffsetVelDlIdx(builder *flatbuffers.Builder, soiMasterOffsetVelDlIdx int32) { + builder.PrependInt32Slot(1, soiMasterOffsetVelDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddSoiMasterOffsetAccDlIdx(builder *flatbuffers.Builder, soiMasterOffsetAccDlIdx int32) { + builder.PrependInt32Slot(2, soiMasterOffsetAccDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddFofMasterOffsetDlIdx(builder *flatbuffers.Builder, fofMasterOffsetDlIdx int32) { + builder.PrependInt32Slot(3, fofMasterOffsetDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddFofMasterOffsetTimeConstantDlIdx(builder *flatbuffers.Builder, fofMasterOffsetTimeConstantDlIdx int32) { + builder.PrependInt32Slot(4, fofMasterOffsetTimeConstantDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddSlaveVelOffsetDlIdx(builder *flatbuffers.Builder, slaveVelOffsetDlIdx int32) { + builder.PrependInt32Slot(5, slaveVelOffsetDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddFoiSlaveOffsetDlIdx(builder *flatbuffers.Builder, foiSlaveOffsetDlIdx int32) { + builder.PrependInt32Slot(6, foiSlaveOffsetDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddFoiSlaveOffsetAccDlIdx(builder *flatbuffers.Builder, foiSlaveOffsetAccDlIdx int32) { + builder.PrependInt32Slot(7, foiSlaveOffsetAccDlIdx, -1) +} +func AxsCmdGearInVelDlParamsAddFineAdjustDlIdx(builder *flatbuffers.Builder, fineAdjustDlIdx int32) { + builder.PrependInt32Slot(8, fineAdjustDlIdx, -1) +} +func AxsCmdGearInVelDlParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelExData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelExData.go new file mode 100644 index 0000000..52d8120 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelExData.go @@ -0,0 +1,162 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis GearInVelEx command +type AxsCmdGearInVelExDataT struct { + Master string + SyncSource SyncSource + Parameters *AxsCmdGearInVelParamsT + DlParameters *AxsCmdGearInVelDlParamsT + Buffered bool +} + +func (t *AxsCmdGearInVelExDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + parametersOffset := t.Parameters.Pack(builder) + dlParametersOffset := t.DlParameters.Pack(builder) + AxsCmdGearInVelExDataStart(builder) + AxsCmdGearInVelExDataAddMaster(builder, masterOffset) + AxsCmdGearInVelExDataAddSyncSource(builder, t.SyncSource) + AxsCmdGearInVelExDataAddParameters(builder, parametersOffset) + AxsCmdGearInVelExDataAddDlParameters(builder, dlParametersOffset) + AxsCmdGearInVelExDataAddBuffered(builder, t.Buffered) + return AxsCmdGearInVelExDataEnd(builder) +} + +func (rcv *AxsCmdGearInVelExData) UnPackTo(t *AxsCmdGearInVelExDataT) { + t.Master = string(rcv.Master()) + t.SyncSource = rcv.SyncSource() + t.Parameters = rcv.Parameters(nil).UnPack() + t.DlParameters = rcv.DlParameters(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdGearInVelExData) UnPack() *AxsCmdGearInVelExDataT { + if rcv == nil { return nil } + t := &AxsCmdGearInVelExDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInVelExData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInVelExData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelExData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInVelExData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInVelExData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelExData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInVelExData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInVelExData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInVelExData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdGearInVelExData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInVelExData) SyncSource() SyncSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return SyncSource(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// sync source (Actual/Setpoint) +func (rcv *AxsCmdGearInVelExData) MutateSyncSource(n SyncSource) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// gear in vel parameters +func (rcv *AxsCmdGearInVelExData) Parameters(obj *AxsCmdGearInVelParams) *AxsCmdGearInVelParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCmdGearInVelParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// gear in vel parameters +/// gear in vel data layer parameters +func (rcv *AxsCmdGearInVelExData) DlParameters(obj *AxsCmdGearInVelDlParams) *AxsCmdGearInVelDlParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsCmdGearInVelDlParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// gear in vel data layer parameters +/// should this be a buffered command? +func (rcv *AxsCmdGearInVelExData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdGearInVelExData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func AxsCmdGearInVelExDataStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func AxsCmdGearInVelExDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdGearInVelExDataAddSyncSource(builder *flatbuffers.Builder, syncSource SyncSource) { + builder.PrependInt8Slot(1, int8(syncSource), 0) +} +func AxsCmdGearInVelExDataAddParameters(builder *flatbuffers.Builder, parameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(parameters), 0) +} +func AxsCmdGearInVelExDataAddDlParameters(builder *flatbuffers.Builder, dlParameters flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(dlParameters), 0) +} +func AxsCmdGearInVelExDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(4, buffered, false) +} +func AxsCmdGearInVelExDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelParams.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelParams.go new file mode 100644 index 0000000..8a04b44 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdGearInVelParams.go @@ -0,0 +1,141 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// GearInVel calculation pipeline parameters for the axis GearInVel command +type AxsCmdGearInVelParamsT struct { + SlaveVelOffset float64 + RatioNumerator int32 + RatioDenominator int32 + FineAdjust float64 +} + +func (t *AxsCmdGearInVelParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsCmdGearInVelParamsStart(builder) + AxsCmdGearInVelParamsAddSlaveVelOffset(builder, t.SlaveVelOffset) + AxsCmdGearInVelParamsAddRatioNumerator(builder, t.RatioNumerator) + AxsCmdGearInVelParamsAddRatioDenominator(builder, t.RatioDenominator) + AxsCmdGearInVelParamsAddFineAdjust(builder, t.FineAdjust) + return AxsCmdGearInVelParamsEnd(builder) +} + +func (rcv *AxsCmdGearInVelParams) UnPackTo(t *AxsCmdGearInVelParamsT) { + t.SlaveVelOffset = rcv.SlaveVelOffset() + t.RatioNumerator = rcv.RatioNumerator() + t.RatioDenominator = rcv.RatioDenominator() + t.FineAdjust = rcv.FineAdjust() +} + +func (rcv *AxsCmdGearInVelParams) UnPack() *AxsCmdGearInVelParamsT { + if rcv == nil { return nil } + t := &AxsCmdGearInVelParamsT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdGearInVelParams struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdGearInVelParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelParams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdGearInVelParams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdGearInVelParams(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdGearInVelParams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdGearInVelParams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdGearInVelParams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdGearInVelParams) Table() flatbuffers.Table { + return rcv._tab +} + +/// slave velocity offset +func (rcv *AxsCmdGearInVelParams) SlaveVelOffset() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// slave velocity offset +func (rcv *AxsCmdGearInVelParams) MutateSlaveVelOffset(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// ratio numerator value +func (rcv *AxsCmdGearInVelParams) RatioNumerator() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 1 +} + +/// ratio numerator value +func (rcv *AxsCmdGearInVelParams) MutateRatioNumerator(n int32) bool { + return rcv._tab.MutateInt32Slot(6, n) +} + +/// ratio denominator value +func (rcv *AxsCmdGearInVelParams) RatioDenominator() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 1 +} + +/// ratio denominator value +func (rcv *AxsCmdGearInVelParams) MutateRatioDenominator(n int32) bool { + return rcv._tab.MutateInt32Slot(8, n) +} + +/// fine adjust parameter +func (rcv *AxsCmdGearInVelParams) FineAdjust() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// fine adjust parameter +func (rcv *AxsCmdGearInVelParams) MutateFineAdjust(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func AxsCmdGearInVelParamsStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCmdGearInVelParamsAddSlaveVelOffset(builder *flatbuffers.Builder, slaveVelOffset float64) { + builder.PrependFloat64Slot(0, slaveVelOffset, 0.0) +} +func AxsCmdGearInVelParamsAddRatioNumerator(builder *flatbuffers.Builder, ratioNumerator int32) { + builder.PrependInt32Slot(1, ratioNumerator, 1) +} +func AxsCmdGearInVelParamsAddRatioDenominator(builder *flatbuffers.Builder, ratioDenominator int32) { + builder.PrependInt32Slot(2, ratioDenominator, 1) +} +func AxsCmdGearInVelParamsAddFineAdjust(builder *flatbuffers.Builder, fineAdjust float64) { + builder.PrependFloat64Slot(3, fineAdjust, 0.0) +} +func AxsCmdGearInVelParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericData.go index cbe5e1f..0c5abfd 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericData.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericData.go @@ -1,135 +1,115 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// parameters of the axis command for generic synchronized motion -type AxsCmdSyncGenericDataT struct { - Master string - Pipeline string - CmdMode SyncCmdMode - Buffered bool -} - -func (t *AxsCmdSyncGenericDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - masterOffset := builder.CreateString(t.Master) - pipelineOffset := builder.CreateString(t.Pipeline) - AxsCmdSyncGenericDataStart(builder) - AxsCmdSyncGenericDataAddMaster(builder, masterOffset) - AxsCmdSyncGenericDataAddPipeline(builder, pipelineOffset) - AxsCmdSyncGenericDataAddCmdMode(builder, t.CmdMode) - AxsCmdSyncGenericDataAddBuffered(builder, t.Buffered) - return AxsCmdSyncGenericDataEnd(builder) -} - -func (rcv *AxsCmdSyncGenericData) UnPackTo(t *AxsCmdSyncGenericDataT) { - t.Master = string(rcv.Master()) - t.Pipeline = string(rcv.Pipeline()) - t.CmdMode = rcv.CmdMode() - t.Buffered = rcv.Buffered() -} - -func (rcv *AxsCmdSyncGenericData) UnPack() *AxsCmdSyncGenericDataT { - if rcv == nil { return nil } - t := &AxsCmdSyncGenericDataT{} - rcv.UnPackTo(t) - return t -} - -type AxsCmdSyncGenericData struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsCmdSyncGenericData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsCmdSyncGenericData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsCmdSyncGenericData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsCmdSyncGenericData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsCmdSyncGenericData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsCmdSyncGenericData) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the master axis -func (rcv *AxsCmdSyncGenericData) Master() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the master axis -/// name of the pipeline -func (rcv *AxsCmdSyncGenericData) Pipeline() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the pipeline -/// Sync command mode -func (rcv *AxsCmdSyncGenericData) CmdMode() SyncCmdMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return SyncCmdMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -/// Sync command mode -func (rcv *AxsCmdSyncGenericData) MutateCmdMode(n SyncCmdMode) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -/// should this be a buffered command? -func (rcv *AxsCmdSyncGenericData) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// should this be a buffered command? -func (rcv *AxsCmdSyncGenericData) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func AxsCmdSyncGenericDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func AxsCmdSyncGenericDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) -} -func AxsCmdSyncGenericDataAddPipeline(builder *flatbuffers.Builder, pipeline flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pipeline), 0) -} -func AxsCmdSyncGenericDataAddCmdMode(builder *flatbuffers.Builder, cmdMode SyncCmdMode) { - builder.PrependInt8Slot(2, int8(cmdMode), 2) -} -func AxsCmdSyncGenericDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(3, buffered, false) -} -func AxsCmdSyncGenericDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis command for generic synchronized motion +type AxsCmdSyncGenericDataT struct { + Master string + Pipeline string + Buffered bool +} + +func (t *AxsCmdSyncGenericDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + pipelineOffset := builder.CreateString(t.Pipeline) + AxsCmdSyncGenericDataStart(builder) + AxsCmdSyncGenericDataAddMaster(builder, masterOffset) + AxsCmdSyncGenericDataAddPipeline(builder, pipelineOffset) + AxsCmdSyncGenericDataAddBuffered(builder, t.Buffered) + return AxsCmdSyncGenericDataEnd(builder) +} + +func (rcv *AxsCmdSyncGenericData) UnPackTo(t *AxsCmdSyncGenericDataT) { + t.Master = string(rcv.Master()) + t.Pipeline = string(rcv.Pipeline()) + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdSyncGenericData) UnPack() *AxsCmdSyncGenericDataT { + if rcv == nil { return nil } + t := &AxsCmdSyncGenericDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdSyncGenericData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdSyncGenericData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdSyncGenericData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdSyncGenericData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdSyncGenericData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdSyncGenericData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdSyncGenericData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdSyncGenericData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// name of the pipeline +func (rcv *AxsCmdSyncGenericData) Pipeline() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the pipeline +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func AxsCmdSyncGenericDataStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsCmdSyncGenericDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdSyncGenericDataAddPipeline(builder *flatbuffers.Builder, pipeline flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pipeline), 0) +} +func AxsCmdSyncGenericDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(2, buffered, false) +} +func AxsCmdSyncGenericDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInData.go new file mode 100644 index 0000000..cdd9fef --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInData.go @@ -0,0 +1,135 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis generic GearIn command +type AxsCmdSyncGenericGearInDataT struct { + Master string + Pipeline string + SyncSource SyncSource + Buffered bool +} + +func (t *AxsCmdSyncGenericGearInDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + pipelineOffset := builder.CreateString(t.Pipeline) + AxsCmdSyncGenericGearInDataStart(builder) + AxsCmdSyncGenericGearInDataAddMaster(builder, masterOffset) + AxsCmdSyncGenericGearInDataAddPipeline(builder, pipelineOffset) + AxsCmdSyncGenericGearInDataAddSyncSource(builder, t.SyncSource) + AxsCmdSyncGenericGearInDataAddBuffered(builder, t.Buffered) + return AxsCmdSyncGenericGearInDataEnd(builder) +} + +func (rcv *AxsCmdSyncGenericGearInData) UnPackTo(t *AxsCmdSyncGenericGearInDataT) { + t.Master = string(rcv.Master()) + t.Pipeline = string(rcv.Pipeline()) + t.SyncSource = rcv.SyncSource() + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdSyncGenericGearInData) UnPack() *AxsCmdSyncGenericGearInDataT { + if rcv == nil { return nil } + t := &AxsCmdSyncGenericGearInDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdSyncGenericGearInData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdSyncGenericGearInData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericGearInData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdSyncGenericGearInData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdSyncGenericGearInData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericGearInData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdSyncGenericGearInData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdSyncGenericGearInData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdSyncGenericGearInData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdSyncGenericGearInData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// name of the pipeline +func (rcv *AxsCmdSyncGenericGearInData) Pipeline() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the pipeline +/// Sync source +func (rcv *AxsCmdSyncGenericGearInData) SyncSource() SyncSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return SyncSource(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Sync source +func (rcv *AxsCmdSyncGenericGearInData) MutateSyncSource(n SyncSource) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericGearInData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericGearInData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func AxsCmdSyncGenericGearInDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCmdSyncGenericGearInDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdSyncGenericGearInDataAddPipeline(builder *flatbuffers.Builder, pipeline flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pipeline), 0) +} +func AxsCmdSyncGenericGearInDataAddSyncSource(builder *flatbuffers.Builder, syncSource SyncSource) { + builder.PrependInt8Slot(2, int8(syncSource), 0) +} +func AxsCmdSyncGenericGearInDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(3, buffered, false) +} +func AxsCmdSyncGenericGearInDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInPosData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInPosData.go new file mode 100644 index 0000000..a5b8ffa --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInPosData.go @@ -0,0 +1,175 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis generic GearInPos command +type AxsCmdSyncGenericGearInPosDataT struct { + Master string + Pipeline string + SyncSource SyncSource + SyncMode SyncMode + SyncDirection SyncDirection + Buffered bool +} + +func (t *AxsCmdSyncGenericGearInPosDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + pipelineOffset := builder.CreateString(t.Pipeline) + AxsCmdSyncGenericGearInPosDataStart(builder) + AxsCmdSyncGenericGearInPosDataAddMaster(builder, masterOffset) + AxsCmdSyncGenericGearInPosDataAddPipeline(builder, pipelineOffset) + AxsCmdSyncGenericGearInPosDataAddSyncSource(builder, t.SyncSource) + AxsCmdSyncGenericGearInPosDataAddSyncMode(builder, t.SyncMode) + AxsCmdSyncGenericGearInPosDataAddSyncDirection(builder, t.SyncDirection) + AxsCmdSyncGenericGearInPosDataAddBuffered(builder, t.Buffered) + return AxsCmdSyncGenericGearInPosDataEnd(builder) +} + +func (rcv *AxsCmdSyncGenericGearInPosData) UnPackTo(t *AxsCmdSyncGenericGearInPosDataT) { + t.Master = string(rcv.Master()) + t.Pipeline = string(rcv.Pipeline()) + t.SyncSource = rcv.SyncSource() + t.SyncMode = rcv.SyncMode() + t.SyncDirection = rcv.SyncDirection() + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdSyncGenericGearInPosData) UnPack() *AxsCmdSyncGenericGearInPosDataT { + if rcv == nil { return nil } + t := &AxsCmdSyncGenericGearInPosDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdSyncGenericGearInPosData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdSyncGenericGearInPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericGearInPosData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdSyncGenericGearInPosData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdSyncGenericGearInPosData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericGearInPosData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdSyncGenericGearInPosData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdSyncGenericGearInPosData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdSyncGenericGearInPosData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdSyncGenericGearInPosData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// name of the pipeline +func (rcv *AxsCmdSyncGenericGearInPosData) Pipeline() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the pipeline +/// Sync source +func (rcv *AxsCmdSyncGenericGearInPosData) SyncSource() SyncSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return SyncSource(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Sync source +func (rcv *AxsCmdSyncGenericGearInPosData) MutateSyncSource(n SyncSource) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// Sync mode +func (rcv *AxsCmdSyncGenericGearInPosData) SyncMode() SyncMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return SyncMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// Sync mode +func (rcv *AxsCmdSyncGenericGearInPosData) MutateSyncMode(n SyncMode) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +/// Sync direction +func (rcv *AxsCmdSyncGenericGearInPosData) SyncDirection() SyncDirection { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return SyncDirection(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Sync direction +func (rcv *AxsCmdSyncGenericGearInPosData) MutateSyncDirection(n SyncDirection) bool { + return rcv._tab.MutateInt8Slot(12, int8(n)) +} + +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericGearInPosData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericGearInPosData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func AxsCmdSyncGenericGearInPosDataStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func AxsCmdSyncGenericGearInPosDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdSyncGenericGearInPosDataAddPipeline(builder *flatbuffers.Builder, pipeline flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pipeline), 0) +} +func AxsCmdSyncGenericGearInPosDataAddSyncSource(builder *flatbuffers.Builder, syncSource SyncSource) { + builder.PrependInt8Slot(2, int8(syncSource), 0) +} +func AxsCmdSyncGenericGearInPosDataAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { + builder.PrependInt8Slot(3, int8(syncMode), 2) +} +func AxsCmdSyncGenericGearInPosDataAddSyncDirection(builder *flatbuffers.Builder, syncDirection SyncDirection) { + builder.PrependInt8Slot(4, int8(syncDirection), 0) +} +func AxsCmdSyncGenericGearInPosDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(5, buffered, false) +} +func AxsCmdSyncGenericGearInPosDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInVelData.go b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInVelData.go new file mode 100644 index 0000000..effeef5 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/AxsCmdSyncGenericGearInVelData.go @@ -0,0 +1,135 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis generic GearInVel command +type AxsCmdSyncGenericGearInVelDataT struct { + Master string + Pipeline string + SyncSource SyncSource + Buffered bool +} + +func (t *AxsCmdSyncGenericGearInVelDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + masterOffset := builder.CreateString(t.Master) + pipelineOffset := builder.CreateString(t.Pipeline) + AxsCmdSyncGenericGearInVelDataStart(builder) + AxsCmdSyncGenericGearInVelDataAddMaster(builder, masterOffset) + AxsCmdSyncGenericGearInVelDataAddPipeline(builder, pipelineOffset) + AxsCmdSyncGenericGearInVelDataAddSyncSource(builder, t.SyncSource) + AxsCmdSyncGenericGearInVelDataAddBuffered(builder, t.Buffered) + return AxsCmdSyncGenericGearInVelDataEnd(builder) +} + +func (rcv *AxsCmdSyncGenericGearInVelData) UnPackTo(t *AxsCmdSyncGenericGearInVelDataT) { + t.Master = string(rcv.Master()) + t.Pipeline = string(rcv.Pipeline()) + t.SyncSource = rcv.SyncSource() + t.Buffered = rcv.Buffered() +} + +func (rcv *AxsCmdSyncGenericGearInVelData) UnPack() *AxsCmdSyncGenericGearInVelDataT { + if rcv == nil { return nil } + t := &AxsCmdSyncGenericGearInVelDataT{} + rcv.UnPackTo(t) + return t +} + +type AxsCmdSyncGenericGearInVelData struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsCmdSyncGenericGearInVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericGearInVelData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsCmdSyncGenericGearInVelData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsCmdSyncGenericGearInVelData(buf []byte, offset flatbuffers.UOffsetT) *AxsCmdSyncGenericGearInVelData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsCmdSyncGenericGearInVelData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsCmdSyncGenericGearInVelData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsCmdSyncGenericGearInVelData) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the master axis +func (rcv *AxsCmdSyncGenericGearInVelData) Master() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the master axis +/// name of the pipeline +func (rcv *AxsCmdSyncGenericGearInVelData) Pipeline() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the pipeline +/// Sync source +func (rcv *AxsCmdSyncGenericGearInVelData) SyncSource() SyncSource { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return SyncSource(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Sync source +func (rcv *AxsCmdSyncGenericGearInVelData) MutateSyncSource(n SyncSource) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericGearInVelData) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// should this be a buffered command? +func (rcv *AxsCmdSyncGenericGearInVelData) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func AxsCmdSyncGenericGearInVelDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func AxsCmdSyncGenericGearInVelDataAddMaster(builder *flatbuffers.Builder, master flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(master), 0) +} +func AxsCmdSyncGenericGearInVelDataAddPipeline(builder *flatbuffers.Builder, pipeline flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pipeline), 0) +} +func AxsCmdSyncGenericGearInVelDataAddSyncSource(builder *flatbuffers.Builder, syncSource SyncSource) { + builder.PrependInt8Slot(2, int8(syncSource), 0) +} +func AxsCmdSyncGenericGearInVelDataAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(3, buffered, false) +} +func AxsCmdSyncGenericGearInVelDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineInputs.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineInputs.go index a33fb47..bde4c8f 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineInputs.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineInputs.go @@ -1,176 +1,176 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// input parameters for reading the pipeline -type AxsStateCalcPipelineInputsT struct { - Axes []string - CmdMode SyncCmdMode - Inputs []*AxsStateCalcPipelineSingleInputT -} - -func (t *AxsStateCalcPipelineInputsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axesOffset := flatbuffers.UOffsetT(0) - if t.Axes != nil { - axesLength := len(t.Axes) - axesOffsets := make([]flatbuffers.UOffsetT, axesLength) - for j := 0; j < axesLength; j++ { - axesOffsets[j] = builder.CreateString(t.Axes[j]) - } - AxsStateCalcPipelineInputsStartAxesVector(builder, axesLength) - for j := axesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(axesOffsets[j]) - } - axesOffset = builder.EndVector(axesLength) - } - inputsOffset := flatbuffers.UOffsetT(0) - if t.Inputs != nil { - inputsLength := len(t.Inputs) - inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) - for j := 0; j < inputsLength; j++ { - inputsOffsets[j] = t.Inputs[j].Pack(builder) - } - AxsStateCalcPipelineInputsStartInputsVector(builder, inputsLength) - for j := inputsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(inputsOffsets[j]) - } - inputsOffset = builder.EndVector(inputsLength) - } - AxsStateCalcPipelineInputsStart(builder) - AxsStateCalcPipelineInputsAddAxes(builder, axesOffset) - AxsStateCalcPipelineInputsAddCmdMode(builder, t.CmdMode) - AxsStateCalcPipelineInputsAddInputs(builder, inputsOffset) - return AxsStateCalcPipelineInputsEnd(builder) -} - -func (rcv *AxsStateCalcPipelineInputs) UnPackTo(t *AxsStateCalcPipelineInputsT) { - axesLength := rcv.AxesLength() - t.Axes = make([]string, axesLength) - for j := 0; j < axesLength; j++ { - t.Axes[j] = string(rcv.Axes(j)) - } - t.CmdMode = rcv.CmdMode() - inputsLength := rcv.InputsLength() - t.Inputs = make([]*AxsStateCalcPipelineSingleInputT, inputsLength) - for j := 0; j < inputsLength; j++ { - x := AxsStateCalcPipelineSingleInput{} - rcv.Inputs(&x, j) - t.Inputs[j] = x.UnPack() - } -} - -func (rcv *AxsStateCalcPipelineInputs) UnPack() *AxsStateCalcPipelineInputsT { - if rcv == nil { return nil } - t := &AxsStateCalcPipelineInputsT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcPipelineInputs struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcPipelineInputs(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineInputs { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcPipelineInputs{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcPipelineInputs(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineInputs { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcPipelineInputs{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcPipelineInputs) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcPipelineInputs) Table() flatbuffers.Table { - return rcv._tab -} - -/// master input id -func (rcv *AxsStateCalcPipelineInputs) Axes(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *AxsStateCalcPipelineInputs) AxesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// master input id -/// sync cmd mode to run calculation pipeline -func (rcv *AxsStateCalcPipelineInputs) CmdMode() SyncCmdMode { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return SyncCmdMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 2 -} - -/// sync cmd mode to run calculation pipeline -func (rcv *AxsStateCalcPipelineInputs) MutateCmdMode(n SyncCmdMode) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -/// id of the requested data -func (rcv *AxsStateCalcPipelineInputs) Inputs(obj *AxsStateCalcPipelineSingleInput, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AxsStateCalcPipelineInputs) InputsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// id of the requested data -func AxsStateCalcPipelineInputsStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func AxsStateCalcPipelineInputsAddAxes(builder *flatbuffers.Builder, axes flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axes), 0) -} -func AxsStateCalcPipelineInputsStartAxesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsStateCalcPipelineInputsAddCmdMode(builder *flatbuffers.Builder, cmdMode SyncCmdMode) { - builder.PrependInt8Slot(1, int8(cmdMode), 2) -} -func AxsStateCalcPipelineInputsAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) -} -func AxsStateCalcPipelineInputsStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsStateCalcPipelineInputsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// input parameters for reading the pipeline +type AxsStateCalcPipelineInputsT struct { + Axes []string + SyncMode SyncMode + Inputs []*AxsStateCalcPipelineSingleInputT +} + +func (t *AxsStateCalcPipelineInputsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axesOffset := flatbuffers.UOffsetT(0) + if t.Axes != nil { + axesLength := len(t.Axes) + axesOffsets := make([]flatbuffers.UOffsetT, axesLength) + for j := 0; j < axesLength; j++ { + axesOffsets[j] = builder.CreateString(t.Axes[j]) + } + AxsStateCalcPipelineInputsStartAxesVector(builder, axesLength) + for j := axesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(axesOffsets[j]) + } + axesOffset = builder.EndVector(axesLength) + } + inputsOffset := flatbuffers.UOffsetT(0) + if t.Inputs != nil { + inputsLength := len(t.Inputs) + inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) + for j := 0; j < inputsLength; j++ { + inputsOffsets[j] = t.Inputs[j].Pack(builder) + } + AxsStateCalcPipelineInputsStartInputsVector(builder, inputsLength) + for j := inputsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(inputsOffsets[j]) + } + inputsOffset = builder.EndVector(inputsLength) + } + AxsStateCalcPipelineInputsStart(builder) + AxsStateCalcPipelineInputsAddAxes(builder, axesOffset) + AxsStateCalcPipelineInputsAddSyncMode(builder, t.SyncMode) + AxsStateCalcPipelineInputsAddInputs(builder, inputsOffset) + return AxsStateCalcPipelineInputsEnd(builder) +} + +func (rcv *AxsStateCalcPipelineInputs) UnPackTo(t *AxsStateCalcPipelineInputsT) { + axesLength := rcv.AxesLength() + t.Axes = make([]string, axesLength) + for j := 0; j < axesLength; j++ { + t.Axes[j] = string(rcv.Axes(j)) + } + t.SyncMode = rcv.SyncMode() + inputsLength := rcv.InputsLength() + t.Inputs = make([]*AxsStateCalcPipelineSingleInputT, inputsLength) + for j := 0; j < inputsLength; j++ { + x := AxsStateCalcPipelineSingleInput{} + rcv.Inputs(&x, j) + t.Inputs[j] = x.UnPack() + } +} + +func (rcv *AxsStateCalcPipelineInputs) UnPack() *AxsStateCalcPipelineInputsT { + if rcv == nil { return nil } + t := &AxsStateCalcPipelineInputsT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcPipelineInputs struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcPipelineInputs(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineInputs { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcPipelineInputs{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcPipelineInputs(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineInputs { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcPipelineInputs{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcPipelineInputs) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcPipelineInputs) Table() flatbuffers.Table { + return rcv._tab +} + +/// master input id +func (rcv *AxsStateCalcPipelineInputs) Axes(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *AxsStateCalcPipelineInputs) AxesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// master input id +/// sync cmd mode to run calculation pipeline +func (rcv *AxsStateCalcPipelineInputs) SyncMode() SyncMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return SyncMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 2 +} + +/// sync cmd mode to run calculation pipeline +func (rcv *AxsStateCalcPipelineInputs) MutateSyncMode(n SyncMode) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// id of the requested data +func (rcv *AxsStateCalcPipelineInputs) Inputs(obj *AxsStateCalcPipelineSingleInput, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsStateCalcPipelineInputs) InputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// id of the requested data +func AxsStateCalcPipelineInputsStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsStateCalcPipelineInputsAddAxes(builder *flatbuffers.Builder, axes flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axes), 0) +} +func AxsStateCalcPipelineInputsStartAxesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsStateCalcPipelineInputsAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { + builder.PrependInt8Slot(1, int8(syncMode), 2) +} +func AxsStateCalcPipelineInputsAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) +} +func AxsStateCalcPipelineInputsStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsStateCalcPipelineInputsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineSingleInput.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineSingleInput.go index a2e046b..d84c6eb 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineSingleInput.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelineSingleInput.go @@ -1,121 +1,121 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// single input values for reading the pipeline -type AxsStateCalcPipelineSingleInputT struct { - StepID uint32 - DataID DataID - Value float64 -} - -func (t *AxsStateCalcPipelineSingleInputT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AxsStateCalcPipelineSingleInputStart(builder) - AxsStateCalcPipelineSingleInputAddStepID(builder, t.StepID) - AxsStateCalcPipelineSingleInputAddDataID(builder, t.DataID) - AxsStateCalcPipelineSingleInputAddValue(builder, t.Value) - return AxsStateCalcPipelineSingleInputEnd(builder) -} - -func (rcv *AxsStateCalcPipelineSingleInput) UnPackTo(t *AxsStateCalcPipelineSingleInputT) { - t.StepID = rcv.StepID() - t.DataID = rcv.DataID() - t.Value = rcv.Value() -} - -func (rcv *AxsStateCalcPipelineSingleInput) UnPack() *AxsStateCalcPipelineSingleInputT { - if rcv == nil { return nil } - t := &AxsStateCalcPipelineSingleInputT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcPipelineSingleInput struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcPipelineSingleInput(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineSingleInput { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcPipelineSingleInput{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcPipelineSingleInput(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineSingleInput { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcPipelineSingleInput{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcPipelineSingleInput) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcPipelineSingleInput) Table() flatbuffers.Table { - return rcv._tab -} - -/// master input id -func (rcv *AxsStateCalcPipelineSingleInput) StepID() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// master input id -func (rcv *AxsStateCalcPipelineSingleInput) MutateStepID(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// id of the requested data -func (rcv *AxsStateCalcPipelineSingleInput) DataID() DataID { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return DataID(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// id of the requested data -func (rcv *AxsStateCalcPipelineSingleInput) MutateDataID(n DataID) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -/// the value itself -func (rcv *AxsStateCalcPipelineSingleInput) Value() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// the value itself -func (rcv *AxsStateCalcPipelineSingleInput) MutateValue(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func AxsStateCalcPipelineSingleInputStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func AxsStateCalcPipelineSingleInputAddStepID(builder *flatbuffers.Builder, stepID uint32) { - builder.PrependUint32Slot(0, stepID, 0) -} -func AxsStateCalcPipelineSingleInputAddDataID(builder *flatbuffers.Builder, dataID DataID) { - builder.PrependInt8Slot(1, int8(dataID), 0) -} -func AxsStateCalcPipelineSingleInputAddValue(builder *flatbuffers.Builder, value float64) { - builder.PrependFloat64Slot(2, value, 0.0) -} -func AxsStateCalcPipelineSingleInputEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// single input values for reading the pipeline +type AxsStateCalcPipelineSingleInputT struct { + StepID uint32 + DataID DataID + Value float64 +} + +func (t *AxsStateCalcPipelineSingleInputT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AxsStateCalcPipelineSingleInputStart(builder) + AxsStateCalcPipelineSingleInputAddStepID(builder, t.StepID) + AxsStateCalcPipelineSingleInputAddDataID(builder, t.DataID) + AxsStateCalcPipelineSingleInputAddValue(builder, t.Value) + return AxsStateCalcPipelineSingleInputEnd(builder) +} + +func (rcv *AxsStateCalcPipelineSingleInput) UnPackTo(t *AxsStateCalcPipelineSingleInputT) { + t.StepID = rcv.StepID() + t.DataID = rcv.DataID() + t.Value = rcv.Value() +} + +func (rcv *AxsStateCalcPipelineSingleInput) UnPack() *AxsStateCalcPipelineSingleInputT { + if rcv == nil { return nil } + t := &AxsStateCalcPipelineSingleInputT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcPipelineSingleInput struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcPipelineSingleInput(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineSingleInput { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcPipelineSingleInput{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcPipelineSingleInput(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelineSingleInput { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcPipelineSingleInput{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcPipelineSingleInput) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcPipelineSingleInput) Table() flatbuffers.Table { + return rcv._tab +} + +/// master input id +func (rcv *AxsStateCalcPipelineSingleInput) StepID() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// master input id +func (rcv *AxsStateCalcPipelineSingleInput) MutateStepID(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// id of the requested data +func (rcv *AxsStateCalcPipelineSingleInput) DataID() DataID { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return DataID(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// id of the requested data +func (rcv *AxsStateCalcPipelineSingleInput) MutateDataID(n DataID) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +/// the value itself +func (rcv *AxsStateCalcPipelineSingleInput) Value() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// the value itself +func (rcv *AxsStateCalcPipelineSingleInput) MutateValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func AxsStateCalcPipelineSingleInputStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsStateCalcPipelineSingleInputAddStepID(builder *flatbuffers.Builder, stepID uint32) { + builder.PrependUint32Slot(0, stepID, 0) +} +func AxsStateCalcPipelineSingleInputAddDataID(builder *flatbuffers.Builder, dataID DataID) { + builder.PrependInt8Slot(1, int8(dataID), 0) +} +func AxsStateCalcPipelineSingleInputAddValue(builder *flatbuffers.Builder, value float64) { + builder.PrependFloat64Slot(2, value, 0.0) +} +func AxsStateCalcPipelineSingleInputEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelines.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelines.go index b5e4dd7..c07cf21 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelines.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcPipelines.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// all configured calculation pipelines of a single axis -type AxsStateCalcPipelinesT struct { - Pipeline []*AxsStateCalcSinglePipelineT -} - -func (t *AxsStateCalcPipelinesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - pipelineOffset := flatbuffers.UOffsetT(0) - if t.Pipeline != nil { - pipelineLength := len(t.Pipeline) - pipelineOffsets := make([]flatbuffers.UOffsetT, pipelineLength) - for j := 0; j < pipelineLength; j++ { - pipelineOffsets[j] = t.Pipeline[j].Pack(builder) - } - AxsStateCalcPipelinesStartPipelineVector(builder, pipelineLength) - for j := pipelineLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(pipelineOffsets[j]) - } - pipelineOffset = builder.EndVector(pipelineLength) - } - AxsStateCalcPipelinesStart(builder) - AxsStateCalcPipelinesAddPipeline(builder, pipelineOffset) - return AxsStateCalcPipelinesEnd(builder) -} - -func (rcv *AxsStateCalcPipelines) UnPackTo(t *AxsStateCalcPipelinesT) { - pipelineLength := rcv.PipelineLength() - t.Pipeline = make([]*AxsStateCalcSinglePipelineT, pipelineLength) - for j := 0; j < pipelineLength; j++ { - x := AxsStateCalcSinglePipeline{} - rcv.Pipeline(&x, j) - t.Pipeline[j] = x.UnPack() - } -} - -func (rcv *AxsStateCalcPipelines) UnPack() *AxsStateCalcPipelinesT { - if rcv == nil { return nil } - t := &AxsStateCalcPipelinesT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcPipelines struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcPipelines(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelines { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcPipelines{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcPipelines(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelines { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcPipelines{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcPipelines) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcPipelines) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all configured calculation pipelines of a single axis -func (rcv *AxsStateCalcPipelines) Pipeline(obj *AxsStateCalcSinglePipeline, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AxsStateCalcPipelines) PipelineLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all configured calculation pipelines of a single axis -func AxsStateCalcPipelinesStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsStateCalcPipelinesAddPipeline(builder *flatbuffers.Builder, pipeline flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pipeline), 0) -} -func AxsStateCalcPipelinesStartPipelineVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsStateCalcPipelinesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// all configured calculation pipelines of a single axis +type AxsStateCalcPipelinesT struct { + Pipeline []*AxsStateCalcSinglePipelineT +} + +func (t *AxsStateCalcPipelinesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + pipelineOffset := flatbuffers.UOffsetT(0) + if t.Pipeline != nil { + pipelineLength := len(t.Pipeline) + pipelineOffsets := make([]flatbuffers.UOffsetT, pipelineLength) + for j := 0; j < pipelineLength; j++ { + pipelineOffsets[j] = t.Pipeline[j].Pack(builder) + } + AxsStateCalcPipelinesStartPipelineVector(builder, pipelineLength) + for j := pipelineLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(pipelineOffsets[j]) + } + pipelineOffset = builder.EndVector(pipelineLength) + } + AxsStateCalcPipelinesStart(builder) + AxsStateCalcPipelinesAddPipeline(builder, pipelineOffset) + return AxsStateCalcPipelinesEnd(builder) +} + +func (rcv *AxsStateCalcPipelines) UnPackTo(t *AxsStateCalcPipelinesT) { + pipelineLength := rcv.PipelineLength() + t.Pipeline = make([]*AxsStateCalcSinglePipelineT, pipelineLength) + for j := 0; j < pipelineLength; j++ { + x := AxsStateCalcSinglePipeline{} + rcv.Pipeline(&x, j) + t.Pipeline[j] = x.UnPack() + } +} + +func (rcv *AxsStateCalcPipelines) UnPack() *AxsStateCalcPipelinesT { + if rcv == nil { return nil } + t := &AxsStateCalcPipelinesT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcPipelines struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcPipelines(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelines { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcPipelines{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcPipelines(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcPipelines { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcPipelines{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcPipelines) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcPipelines) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all configured calculation pipelines of a single axis +func (rcv *AxsStateCalcPipelines) Pipeline(obj *AxsStateCalcSinglePipeline, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsStateCalcPipelines) PipelineLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all configured calculation pipelines of a single axis +func AxsStateCalcPipelinesStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsStateCalcPipelinesAddPipeline(builder *flatbuffers.Builder, pipeline flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pipeline), 0) +} +func AxsStateCalcPipelinesStartPipelineVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsStateCalcPipelinesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSinglePipeline.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSinglePipeline.go index d09f01d..2f35d16 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSinglePipeline.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSinglePipeline.go @@ -1,179 +1,179 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// current state of a single calculation pipeline of a single axis -type AxsStateCalcSinglePipelineT struct { - Name string - State PipelineState - Validation *PipelineValidationT - IsBuiltIn bool - DryRunResult string - Steps *AxsStateCalcStepsT -} - -func (t *AxsStateCalcSinglePipelineT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - validationOffset := t.Validation.Pack(builder) - dryRunResultOffset := builder.CreateString(t.DryRunResult) - stepsOffset := t.Steps.Pack(builder) - AxsStateCalcSinglePipelineStart(builder) - AxsStateCalcSinglePipelineAddName(builder, nameOffset) - AxsStateCalcSinglePipelineAddState(builder, t.State) - AxsStateCalcSinglePipelineAddValidation(builder, validationOffset) - AxsStateCalcSinglePipelineAddIsBuiltIn(builder, t.IsBuiltIn) - AxsStateCalcSinglePipelineAddDryRunResult(builder, dryRunResultOffset) - AxsStateCalcSinglePipelineAddSteps(builder, stepsOffset) - return AxsStateCalcSinglePipelineEnd(builder) -} - -func (rcv *AxsStateCalcSinglePipeline) UnPackTo(t *AxsStateCalcSinglePipelineT) { - t.Name = string(rcv.Name()) - t.State = rcv.State() - t.Validation = rcv.Validation(nil).UnPack() - t.IsBuiltIn = rcv.IsBuiltIn() - t.DryRunResult = string(rcv.DryRunResult()) - t.Steps = rcv.Steps(nil).UnPack() -} - -func (rcv *AxsStateCalcSinglePipeline) UnPack() *AxsStateCalcSinglePipelineT { - if rcv == nil { return nil } - t := &AxsStateCalcSinglePipelineT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcSinglePipeline struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcSinglePipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSinglePipeline { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcSinglePipeline{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcSinglePipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSinglePipeline { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcSinglePipeline{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcSinglePipeline) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcSinglePipeline) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the calculation pipeline -func (rcv *AxsStateCalcSinglePipeline) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the calculation pipeline -/// state of the calculation pipeline -func (rcv *AxsStateCalcSinglePipeline) State() PipelineState { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return PipelineState(rcv._tab.GetInt32(o + rcv._tab.Pos)) - } - return 0 -} - -/// state of the calculation pipeline -func (rcv *AxsStateCalcSinglePipeline) MutateState(n PipelineState) bool { - return rcv._tab.MutateInt32Slot(6, int32(n)) -} - -/// validation on the calculation pipeline (multiple errors can occur) -func (rcv *AxsStateCalcSinglePipeline) Validation(obj *PipelineValidation) *PipelineValidation { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(PipelineValidation) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// validation on the calculation pipeline (multiple errors can occur) -/// if the pipeline is a built-in pipeline (which is read-only) -func (rcv *AxsStateCalcSinglePipeline) IsBuiltIn() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// if the pipeline is a built-in pipeline (which is read-only) -func (rcv *AxsStateCalcSinglePipeline) MutateIsBuiltIn(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -/// result obtained after running calculation pipeline -func (rcv *AxsStateCalcSinglePipeline) DryRunResult() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// result obtained after running calculation pipeline -/// all calculation steps of the calculation pipeline -func (rcv *AxsStateCalcSinglePipeline) Steps(obj *AxsStateCalcSteps) *AxsStateCalcSteps { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsStateCalcSteps) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// all calculation steps of the calculation pipeline -func AxsStateCalcSinglePipelineStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func AxsStateCalcSinglePipelineAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func AxsStateCalcSinglePipelineAddState(builder *flatbuffers.Builder, state PipelineState) { - builder.PrependInt32Slot(1, int32(state), 0) -} -func AxsStateCalcSinglePipelineAddValidation(builder *flatbuffers.Builder, validation flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(validation), 0) -} -func AxsStateCalcSinglePipelineAddIsBuiltIn(builder *flatbuffers.Builder, isBuiltIn bool) { - builder.PrependBoolSlot(3, isBuiltIn, false) -} -func AxsStateCalcSinglePipelineAddDryRunResult(builder *flatbuffers.Builder, dryRunResult flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dryRunResult), 0) -} -func AxsStateCalcSinglePipelineAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(steps), 0) -} -func AxsStateCalcSinglePipelineEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// current state of a single calculation pipeline of a single axis +type AxsStateCalcSinglePipelineT struct { + Name string + State PipelineState + Validation *PipelineValidationT + IsBuiltIn bool + DryRunResult string + Steps *AxsStateCalcStepsT +} + +func (t *AxsStateCalcSinglePipelineT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + validationOffset := t.Validation.Pack(builder) + dryRunResultOffset := builder.CreateString(t.DryRunResult) + stepsOffset := t.Steps.Pack(builder) + AxsStateCalcSinglePipelineStart(builder) + AxsStateCalcSinglePipelineAddName(builder, nameOffset) + AxsStateCalcSinglePipelineAddState(builder, t.State) + AxsStateCalcSinglePipelineAddValidation(builder, validationOffset) + AxsStateCalcSinglePipelineAddIsBuiltIn(builder, t.IsBuiltIn) + AxsStateCalcSinglePipelineAddDryRunResult(builder, dryRunResultOffset) + AxsStateCalcSinglePipelineAddSteps(builder, stepsOffset) + return AxsStateCalcSinglePipelineEnd(builder) +} + +func (rcv *AxsStateCalcSinglePipeline) UnPackTo(t *AxsStateCalcSinglePipelineT) { + t.Name = string(rcv.Name()) + t.State = rcv.State() + t.Validation = rcv.Validation(nil).UnPack() + t.IsBuiltIn = rcv.IsBuiltIn() + t.DryRunResult = string(rcv.DryRunResult()) + t.Steps = rcv.Steps(nil).UnPack() +} + +func (rcv *AxsStateCalcSinglePipeline) UnPack() *AxsStateCalcSinglePipelineT { + if rcv == nil { return nil } + t := &AxsStateCalcSinglePipelineT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcSinglePipeline struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcSinglePipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSinglePipeline { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcSinglePipeline{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcSinglePipeline(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSinglePipeline { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcSinglePipeline{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcSinglePipeline) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcSinglePipeline) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the calculation pipeline +func (rcv *AxsStateCalcSinglePipeline) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the calculation pipeline +/// state of the calculation pipeline +func (rcv *AxsStateCalcSinglePipeline) State() PipelineState { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return PipelineState(rcv._tab.GetInt32(o + rcv._tab.Pos)) + } + return 0 +} + +/// state of the calculation pipeline +func (rcv *AxsStateCalcSinglePipeline) MutateState(n PipelineState) bool { + return rcv._tab.MutateInt32Slot(6, int32(n)) +} + +/// validation on the calculation pipeline (multiple errors can occur) +func (rcv *AxsStateCalcSinglePipeline) Validation(obj *PipelineValidation) *PipelineValidation { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(PipelineValidation) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// validation on the calculation pipeline (multiple errors can occur) +/// if the pipeline is a built-in pipeline (which is read-only) +func (rcv *AxsStateCalcSinglePipeline) IsBuiltIn() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// if the pipeline is a built-in pipeline (which is read-only) +func (rcv *AxsStateCalcSinglePipeline) MutateIsBuiltIn(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +/// result obtained after running calculation pipeline +func (rcv *AxsStateCalcSinglePipeline) DryRunResult() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// result obtained after running calculation pipeline +/// all calculation steps of the calculation pipeline +func (rcv *AxsStateCalcSinglePipeline) Steps(obj *AxsStateCalcSteps) *AxsStateCalcSteps { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsStateCalcSteps) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// all calculation steps of the calculation pipeline +func AxsStateCalcSinglePipelineStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func AxsStateCalcSinglePipelineAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AxsStateCalcSinglePipelineAddState(builder *flatbuffers.Builder, state PipelineState) { + builder.PrependInt32Slot(1, int32(state), 0) +} +func AxsStateCalcSinglePipelineAddValidation(builder *flatbuffers.Builder, validation flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(validation), 0) +} +func AxsStateCalcSinglePipelineAddIsBuiltIn(builder *flatbuffers.Builder, isBuiltIn bool) { + builder.PrependBoolSlot(3, isBuiltIn, false) +} +func AxsStateCalcSinglePipelineAddDryRunResult(builder *flatbuffers.Builder, dryRunResult flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(dryRunResult), 0) +} +func AxsStateCalcSinglePipelineAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(steps), 0) +} +func AxsStateCalcSinglePipelineEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSingleStep.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSingleStep.go index ffd65d4..7deeabc 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSingleStep.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSingleStep.go @@ -1,212 +1,212 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// a single supported calculation step -type AxsStateCalcSingleStepT struct { - StepID uint32 - Type string - Inputs []string - Outputs []string - Parameter *AxsStateCalcStepParamsT -} - -func (t *AxsStateCalcSingleStepT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - typeOffset := builder.CreateString(t.Type) - inputsOffset := flatbuffers.UOffsetT(0) - if t.Inputs != nil { - inputsLength := len(t.Inputs) - inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) - for j := 0; j < inputsLength; j++ { - inputsOffsets[j] = builder.CreateString(t.Inputs[j]) - } - AxsStateCalcSingleStepStartInputsVector(builder, inputsLength) - for j := inputsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(inputsOffsets[j]) - } - inputsOffset = builder.EndVector(inputsLength) - } - outputsOffset := flatbuffers.UOffsetT(0) - if t.Outputs != nil { - outputsLength := len(t.Outputs) - outputsOffsets := make([]flatbuffers.UOffsetT, outputsLength) - for j := 0; j < outputsLength; j++ { - outputsOffsets[j] = builder.CreateString(t.Outputs[j]) - } - AxsStateCalcSingleStepStartOutputsVector(builder, outputsLength) - for j := outputsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(outputsOffsets[j]) - } - outputsOffset = builder.EndVector(outputsLength) - } - parameterOffset := t.Parameter.Pack(builder) - AxsStateCalcSingleStepStart(builder) - AxsStateCalcSingleStepAddStepID(builder, t.StepID) - AxsStateCalcSingleStepAddType(builder, typeOffset) - AxsStateCalcSingleStepAddInputs(builder, inputsOffset) - AxsStateCalcSingleStepAddOutputs(builder, outputsOffset) - AxsStateCalcSingleStepAddParameter(builder, parameterOffset) - return AxsStateCalcSingleStepEnd(builder) -} - -func (rcv *AxsStateCalcSingleStep) UnPackTo(t *AxsStateCalcSingleStepT) { - t.StepID = rcv.StepID() - t.Type = string(rcv.Type()) - inputsLength := rcv.InputsLength() - t.Inputs = make([]string, inputsLength) - for j := 0; j < inputsLength; j++ { - t.Inputs[j] = string(rcv.Inputs(j)) - } - outputsLength := rcv.OutputsLength() - t.Outputs = make([]string, outputsLength) - for j := 0; j < outputsLength; j++ { - t.Outputs[j] = string(rcv.Outputs(j)) - } - t.Parameter = rcv.Parameter(nil).UnPack() -} - -func (rcv *AxsStateCalcSingleStep) UnPack() *AxsStateCalcSingleStepT { - if rcv == nil { return nil } - t := &AxsStateCalcSingleStepT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcSingleStep struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSingleStep { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcSingleStep{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSingleStep { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcSingleStep{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcSingleStep) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcSingleStep) Table() flatbuffers.Table { - return rcv._tab -} - -/// ID of the calculation step -func (rcv *AxsStateCalcSingleStep) StepID() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// ID of the calculation step -func (rcv *AxsStateCalcSingleStep) MutateStepID(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// Typestring of the calculation step -func (rcv *AxsStateCalcSingleStep) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Typestring of the calculation step -/// current input values -func (rcv *AxsStateCalcSingleStep) Inputs(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *AxsStateCalcSingleStep) InputsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// current input values -/// current output values -func (rcv *AxsStateCalcSingleStep) Outputs(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *AxsStateCalcSingleStep) OutputsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// current output values -/// all parameter values of the calculation step -///parameter : [AxsStateCalcStepSingleParam]; -func (rcv *AxsStateCalcSingleStep) Parameter(obj *AxsStateCalcStepParams) *AxsStateCalcStepParams { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AxsStateCalcStepParams) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// all parameter values of the calculation step -///parameter : [AxsStateCalcStepSingleParam]; -func AxsStateCalcSingleStepStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func AxsStateCalcSingleStepAddStepID(builder *flatbuffers.Builder, stepID uint32) { - builder.PrependUint32Slot(0, stepID, 0) -} -func AxsStateCalcSingleStepAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) -} -func AxsStateCalcSingleStepAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) -} -func AxsStateCalcSingleStepStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsStateCalcSingleStepAddOutputs(builder *flatbuffers.Builder, outputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(outputs), 0) -} -func AxsStateCalcSingleStepStartOutputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsStateCalcSingleStepAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(parameter), 0) -} -func AxsStateCalcSingleStepEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// a single supported calculation step +type AxsStateCalcSingleStepT struct { + StepID uint32 + Type string + Inputs []string + Outputs []string + Parameter *AxsStateCalcStepParamsT +} + +func (t *AxsStateCalcSingleStepT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + typeOffset := builder.CreateString(t.Type) + inputsOffset := flatbuffers.UOffsetT(0) + if t.Inputs != nil { + inputsLength := len(t.Inputs) + inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) + for j := 0; j < inputsLength; j++ { + inputsOffsets[j] = builder.CreateString(t.Inputs[j]) + } + AxsStateCalcSingleStepStartInputsVector(builder, inputsLength) + for j := inputsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(inputsOffsets[j]) + } + inputsOffset = builder.EndVector(inputsLength) + } + outputsOffset := flatbuffers.UOffsetT(0) + if t.Outputs != nil { + outputsLength := len(t.Outputs) + outputsOffsets := make([]flatbuffers.UOffsetT, outputsLength) + for j := 0; j < outputsLength; j++ { + outputsOffsets[j] = builder.CreateString(t.Outputs[j]) + } + AxsStateCalcSingleStepStartOutputsVector(builder, outputsLength) + for j := outputsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(outputsOffsets[j]) + } + outputsOffset = builder.EndVector(outputsLength) + } + parameterOffset := t.Parameter.Pack(builder) + AxsStateCalcSingleStepStart(builder) + AxsStateCalcSingleStepAddStepID(builder, t.StepID) + AxsStateCalcSingleStepAddType(builder, typeOffset) + AxsStateCalcSingleStepAddInputs(builder, inputsOffset) + AxsStateCalcSingleStepAddOutputs(builder, outputsOffset) + AxsStateCalcSingleStepAddParameter(builder, parameterOffset) + return AxsStateCalcSingleStepEnd(builder) +} + +func (rcv *AxsStateCalcSingleStep) UnPackTo(t *AxsStateCalcSingleStepT) { + t.StepID = rcv.StepID() + t.Type = string(rcv.Type()) + inputsLength := rcv.InputsLength() + t.Inputs = make([]string, inputsLength) + for j := 0; j < inputsLength; j++ { + t.Inputs[j] = string(rcv.Inputs(j)) + } + outputsLength := rcv.OutputsLength() + t.Outputs = make([]string, outputsLength) + for j := 0; j < outputsLength; j++ { + t.Outputs[j] = string(rcv.Outputs(j)) + } + t.Parameter = rcv.Parameter(nil).UnPack() +} + +func (rcv *AxsStateCalcSingleStep) UnPack() *AxsStateCalcSingleStepT { + if rcv == nil { return nil } + t := &AxsStateCalcSingleStepT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcSingleStep struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSingleStep { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcSingleStep{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSingleStep { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcSingleStep{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcSingleStep) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcSingleStep) Table() flatbuffers.Table { + return rcv._tab +} + +/// ID of the calculation step +func (rcv *AxsStateCalcSingleStep) StepID() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// ID of the calculation step +func (rcv *AxsStateCalcSingleStep) MutateStepID(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// Typestring of the calculation step +func (rcv *AxsStateCalcSingleStep) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Typestring of the calculation step +/// current input values +func (rcv *AxsStateCalcSingleStep) Inputs(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *AxsStateCalcSingleStep) InputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// current input values +/// current output values +func (rcv *AxsStateCalcSingleStep) Outputs(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *AxsStateCalcSingleStep) OutputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// current output values +/// all parameter values of the calculation step +///parameter : [AxsStateCalcStepSingleParam]; +func (rcv *AxsStateCalcSingleStep) Parameter(obj *AxsStateCalcStepParams) *AxsStateCalcStepParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AxsStateCalcStepParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// all parameter values of the calculation step +///parameter : [AxsStateCalcStepSingleParam]; +func AxsStateCalcSingleStepStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func AxsStateCalcSingleStepAddStepID(builder *flatbuffers.Builder, stepID uint32) { + builder.PrependUint32Slot(0, stepID, 0) +} +func AxsStateCalcSingleStepAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) +} +func AxsStateCalcSingleStepAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) +} +func AxsStateCalcSingleStepStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsStateCalcSingleStepAddOutputs(builder *flatbuffers.Builder, outputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(outputs), 0) +} +func AxsStateCalcSingleStepStartOutputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsStateCalcSingleStepAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(parameter), 0) +} +func AxsStateCalcSingleStepEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepParams.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepParams.go index a1ffdbd..751f7bc 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepParams.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepParams.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// all supported calculation steps -type AxsStateCalcStepParamsT struct { - Params []*AxsStateCalcStepSingleParamT -} - -func (t *AxsStateCalcStepParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - paramsOffset := flatbuffers.UOffsetT(0) - if t.Params != nil { - paramsLength := len(t.Params) - paramsOffsets := make([]flatbuffers.UOffsetT, paramsLength) - for j := 0; j < paramsLength; j++ { - paramsOffsets[j] = t.Params[j].Pack(builder) - } - AxsStateCalcStepParamsStartParamsVector(builder, paramsLength) - for j := paramsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(paramsOffsets[j]) - } - paramsOffset = builder.EndVector(paramsLength) - } - AxsStateCalcStepParamsStart(builder) - AxsStateCalcStepParamsAddParams(builder, paramsOffset) - return AxsStateCalcStepParamsEnd(builder) -} - -func (rcv *AxsStateCalcStepParams) UnPackTo(t *AxsStateCalcStepParamsT) { - paramsLength := rcv.ParamsLength() - t.Params = make([]*AxsStateCalcStepSingleParamT, paramsLength) - for j := 0; j < paramsLength; j++ { - x := AxsStateCalcStepSingleParam{} - rcv.Params(&x, j) - t.Params[j] = x.UnPack() - } -} - -func (rcv *AxsStateCalcStepParams) UnPack() *AxsStateCalcStepParamsT { - if rcv == nil { return nil } - t := &AxsStateCalcStepParamsT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcStepParams struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepParams { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcStepParams{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepParams { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcStepParams{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcStepParams) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcStepParams) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all params -func (rcv *AxsStateCalcStepParams) Params(obj *AxsStateCalcStepSingleParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AxsStateCalcStepParams) ParamsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all params -func AxsStateCalcStepParamsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsStateCalcStepParamsAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(params), 0) -} -func AxsStateCalcStepParamsStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsStateCalcStepParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// all supported calculation steps +type AxsStateCalcStepParamsT struct { + Params []*AxsStateCalcStepSingleParamT +} + +func (t *AxsStateCalcStepParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + paramsOffset := flatbuffers.UOffsetT(0) + if t.Params != nil { + paramsLength := len(t.Params) + paramsOffsets := make([]flatbuffers.UOffsetT, paramsLength) + for j := 0; j < paramsLength; j++ { + paramsOffsets[j] = t.Params[j].Pack(builder) + } + AxsStateCalcStepParamsStartParamsVector(builder, paramsLength) + for j := paramsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(paramsOffsets[j]) + } + paramsOffset = builder.EndVector(paramsLength) + } + AxsStateCalcStepParamsStart(builder) + AxsStateCalcStepParamsAddParams(builder, paramsOffset) + return AxsStateCalcStepParamsEnd(builder) +} + +func (rcv *AxsStateCalcStepParams) UnPackTo(t *AxsStateCalcStepParamsT) { + paramsLength := rcv.ParamsLength() + t.Params = make([]*AxsStateCalcStepSingleParamT, paramsLength) + for j := 0; j < paramsLength; j++ { + x := AxsStateCalcStepSingleParam{} + rcv.Params(&x, j) + t.Params[j] = x.UnPack() + } +} + +func (rcv *AxsStateCalcStepParams) UnPack() *AxsStateCalcStepParamsT { + if rcv == nil { return nil } + t := &AxsStateCalcStepParamsT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcStepParams struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepParams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcStepParams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepParams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcStepParams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcStepParams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcStepParams) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all params +func (rcv *AxsStateCalcStepParams) Params(obj *AxsStateCalcStepSingleParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsStateCalcStepParams) ParamsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all params +func AxsStateCalcStepParamsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsStateCalcStepParamsAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(params), 0) +} +func AxsStateCalcStepParamsStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsStateCalcStepParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepSingleParam.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepSingleParam.go index fd2b226..1083222 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepSingleParam.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcStepSingleParam.go @@ -1,112 +1,112 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// a single parameter of a calculation step -type AxsStateCalcStepSingleParamT struct { - Name string - Value string - Detail string -} - -func (t *AxsStateCalcStepSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - valueOffset := builder.CreateString(t.Value) - detailOffset := builder.CreateString(t.Detail) - AxsStateCalcStepSingleParamStart(builder) - AxsStateCalcStepSingleParamAddName(builder, nameOffset) - AxsStateCalcStepSingleParamAddValue(builder, valueOffset) - AxsStateCalcStepSingleParamAddDetail(builder, detailOffset) - return AxsStateCalcStepSingleParamEnd(builder) -} - -func (rcv *AxsStateCalcStepSingleParam) UnPackTo(t *AxsStateCalcStepSingleParamT) { - t.Name = string(rcv.Name()) - t.Value = string(rcv.Value()) - t.Detail = string(rcv.Detail()) -} - -func (rcv *AxsStateCalcStepSingleParam) UnPack() *AxsStateCalcStepSingleParamT { - if rcv == nil { return nil } - t := &AxsStateCalcStepSingleParamT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcStepSingleParam struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcStepSingleParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcStepSingleParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcStepSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcStepSingleParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter -func (rcv *AxsStateCalcStepSingleParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter -/// value of the parameter -func (rcv *AxsStateCalcStepSingleParam) Value() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// value of the parameter -/// detail information of the parameter (e.g. content, when it's a real-time input value) -func (rcv *AxsStateCalcStepSingleParam) Detail() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// detail information of the parameter (e.g. content, when it's a real-time input value) -func AxsStateCalcStepSingleParamStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func AxsStateCalcStepSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func AxsStateCalcStepSingleParamAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) -} -func AxsStateCalcStepSingleParamAddDetail(builder *flatbuffers.Builder, detail flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(detail), 0) -} -func AxsStateCalcStepSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// a single parameter of a calculation step +type AxsStateCalcStepSingleParamT struct { + Name string + Value string + Detail string +} + +func (t *AxsStateCalcStepSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueOffset := builder.CreateString(t.Value) + detailOffset := builder.CreateString(t.Detail) + AxsStateCalcStepSingleParamStart(builder) + AxsStateCalcStepSingleParamAddName(builder, nameOffset) + AxsStateCalcStepSingleParamAddValue(builder, valueOffset) + AxsStateCalcStepSingleParamAddDetail(builder, detailOffset) + return AxsStateCalcStepSingleParamEnd(builder) +} + +func (rcv *AxsStateCalcStepSingleParam) UnPackTo(t *AxsStateCalcStepSingleParamT) { + t.Name = string(rcv.Name()) + t.Value = string(rcv.Value()) + t.Detail = string(rcv.Detail()) +} + +func (rcv *AxsStateCalcStepSingleParam) UnPack() *AxsStateCalcStepSingleParamT { + if rcv == nil { return nil } + t := &AxsStateCalcStepSingleParamT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcStepSingleParam struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcStepSingleParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcStepSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcStepSingleParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcStepSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcStepSingleParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter +func (rcv *AxsStateCalcStepSingleParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter +/// value of the parameter +func (rcv *AxsStateCalcStepSingleParam) Value() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// value of the parameter +/// detail information of the parameter (e.g. content, when it's a real-time input value) +func (rcv *AxsStateCalcStepSingleParam) Detail() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// detail information of the parameter (e.g. content, when it's a real-time input value) +func AxsStateCalcStepSingleParamStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func AxsStateCalcStepSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AxsStateCalcStepSingleParamAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(value), 0) +} +func AxsStateCalcStepSingleParamAddDetail(builder *flatbuffers.Builder, detail flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(detail), 0) +} +func AxsStateCalcStepSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSteps.go b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSteps.go index 96b4cfa..9fbc87d 100644 --- a/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSteps.go +++ b/pkg/fbs/motion/sync/fbtypes/AxsStateCalcSteps.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// all supported calculation steps -type AxsStateCalcStepsT struct { - Steps []*AxsStateCalcSingleStepT -} - -func (t *AxsStateCalcStepsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - stepsOffset := flatbuffers.UOffsetT(0) - if t.Steps != nil { - stepsLength := len(t.Steps) - stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) - for j := 0; j < stepsLength; j++ { - stepsOffsets[j] = t.Steps[j].Pack(builder) - } - AxsStateCalcStepsStartStepsVector(builder, stepsLength) - for j := stepsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(stepsOffsets[j]) - } - stepsOffset = builder.EndVector(stepsLength) - } - AxsStateCalcStepsStart(builder) - AxsStateCalcStepsAddSteps(builder, stepsOffset) - return AxsStateCalcStepsEnd(builder) -} - -func (rcv *AxsStateCalcSteps) UnPackTo(t *AxsStateCalcStepsT) { - stepsLength := rcv.StepsLength() - t.Steps = make([]*AxsStateCalcSingleStepT, stepsLength) - for j := 0; j < stepsLength; j++ { - x := AxsStateCalcSingleStep{} - rcv.Steps(&x, j) - t.Steps[j] = x.UnPack() - } -} - -func (rcv *AxsStateCalcSteps) UnPack() *AxsStateCalcStepsT { - if rcv == nil { return nil } - t := &AxsStateCalcStepsT{} - rcv.UnPackTo(t) - return t -} - -type AxsStateCalcSteps struct { - _tab flatbuffers.Table -} - -func GetRootAsAxsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSteps { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AxsStateCalcSteps{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAxsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSteps { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AxsStateCalcSteps{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AxsStateCalcSteps) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AxsStateCalcSteps) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all steps -func (rcv *AxsStateCalcSteps) Steps(obj *AxsStateCalcSingleStep, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AxsStateCalcSteps) StepsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all steps -func AxsStateCalcStepsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AxsStateCalcStepsAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(steps), 0) -} -func AxsStateCalcStepsStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AxsStateCalcStepsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// all supported calculation steps +type AxsStateCalcStepsT struct { + Steps []*AxsStateCalcSingleStepT +} + +func (t *AxsStateCalcStepsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + stepsOffset := flatbuffers.UOffsetT(0) + if t.Steps != nil { + stepsLength := len(t.Steps) + stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) + for j := 0; j < stepsLength; j++ { + stepsOffsets[j] = t.Steps[j].Pack(builder) + } + AxsStateCalcStepsStartStepsVector(builder, stepsLength) + for j := stepsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(stepsOffsets[j]) + } + stepsOffset = builder.EndVector(stepsLength) + } + AxsStateCalcStepsStart(builder) + AxsStateCalcStepsAddSteps(builder, stepsOffset) + return AxsStateCalcStepsEnd(builder) +} + +func (rcv *AxsStateCalcSteps) UnPackTo(t *AxsStateCalcStepsT) { + stepsLength := rcv.StepsLength() + t.Steps = make([]*AxsStateCalcSingleStepT, stepsLength) + for j := 0; j < stepsLength; j++ { + x := AxsStateCalcSingleStep{} + rcv.Steps(&x, j) + t.Steps[j] = x.UnPack() + } +} + +func (rcv *AxsStateCalcSteps) UnPack() *AxsStateCalcStepsT { + if rcv == nil { return nil } + t := &AxsStateCalcStepsT{} + rcv.UnPackTo(t) + return t +} + +type AxsStateCalcSteps struct { + _tab flatbuffers.Table +} + +func GetRootAsAxsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSteps { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AxsStateCalcSteps{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAxsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *AxsStateCalcSteps { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AxsStateCalcSteps{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AxsStateCalcSteps) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AxsStateCalcSteps) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all steps +func (rcv *AxsStateCalcSteps) Steps(obj *AxsStateCalcSingleStep, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AxsStateCalcSteps) StepsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all steps +func AxsStateCalcStepsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AxsStateCalcStepsAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(steps), 0) +} +func AxsStateCalcStepsStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AxsStateCalcStepsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/CalcPipelineCfg.go b/pkg/fbs/motion/sync/fbtypes/CalcPipelineCfg.go index 5d77123..0e09f1e 100644 --- a/pkg/fbs/motion/sync/fbtypes/CalcPipelineCfg.go +++ b/pkg/fbs/motion/sync/fbtypes/CalcPipelineCfg.go @@ -1,148 +1,148 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single calculation pipeline -type CalcPipelineCfgT struct { - Name string - Generic bool - Steps []*CalcStepCfgT -} - -func (t *CalcPipelineCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - stepsOffset := flatbuffers.UOffsetT(0) - if t.Steps != nil { - stepsLength := len(t.Steps) - stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) - for j := 0; j < stepsLength; j++ { - stepsOffsets[j] = t.Steps[j].Pack(builder) - } - CalcPipelineCfgStartStepsVector(builder, stepsLength) - for j := stepsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(stepsOffsets[j]) - } - stepsOffset = builder.EndVector(stepsLength) - } - CalcPipelineCfgStart(builder) - CalcPipelineCfgAddName(builder, nameOffset) - CalcPipelineCfgAddGeneric(builder, t.Generic) - CalcPipelineCfgAddSteps(builder, stepsOffset) - return CalcPipelineCfgEnd(builder) -} - -func (rcv *CalcPipelineCfg) UnPackTo(t *CalcPipelineCfgT) { - t.Name = string(rcv.Name()) - t.Generic = rcv.Generic() - stepsLength := rcv.StepsLength() - t.Steps = make([]*CalcStepCfgT, stepsLength) - for j := 0; j < stepsLength; j++ { - x := CalcStepCfg{} - rcv.Steps(&x, j) - t.Steps[j] = x.UnPack() - } -} - -func (rcv *CalcPipelineCfg) UnPack() *CalcPipelineCfgT { - if rcv == nil { return nil } - t := &CalcPipelineCfgT{} - rcv.UnPackTo(t) - return t -} - -type CalcPipelineCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsCalcPipelineCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcPipelineCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CalcPipelineCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCalcPipelineCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcPipelineCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CalcPipelineCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CalcPipelineCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CalcPipelineCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the calculation pipeline -func (rcv *CalcPipelineCfg) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the calculation pipeline -/// is this a generic pipeline (when not, its provided by a command and is read-only) -func (rcv *CalcPipelineCfg) Generic() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -/// is this a generic pipeline (when not, its provided by a command and is read-only) -func (rcv *CalcPipelineCfg) MutateGeneric(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -/// vector of all calculation steps -func (rcv *CalcPipelineCfg) Steps(obj *CalcStepCfg, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *CalcPipelineCfg) StepsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all calculation steps -func CalcPipelineCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CalcPipelineCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func CalcPipelineCfgAddGeneric(builder *flatbuffers.Builder, generic bool) { - builder.PrependBoolSlot(1, generic, true) -} -func CalcPipelineCfgAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(steps), 0) -} -func CalcPipelineCfgStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CalcPipelineCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single calculation pipeline +type CalcPipelineCfgT struct { + Name string + Generic bool + Steps []*CalcStepCfgT +} + +func (t *CalcPipelineCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + stepsOffset := flatbuffers.UOffsetT(0) + if t.Steps != nil { + stepsLength := len(t.Steps) + stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) + for j := 0; j < stepsLength; j++ { + stepsOffsets[j] = t.Steps[j].Pack(builder) + } + CalcPipelineCfgStartStepsVector(builder, stepsLength) + for j := stepsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(stepsOffsets[j]) + } + stepsOffset = builder.EndVector(stepsLength) + } + CalcPipelineCfgStart(builder) + CalcPipelineCfgAddName(builder, nameOffset) + CalcPipelineCfgAddGeneric(builder, t.Generic) + CalcPipelineCfgAddSteps(builder, stepsOffset) + return CalcPipelineCfgEnd(builder) +} + +func (rcv *CalcPipelineCfg) UnPackTo(t *CalcPipelineCfgT) { + t.Name = string(rcv.Name()) + t.Generic = rcv.Generic() + stepsLength := rcv.StepsLength() + t.Steps = make([]*CalcStepCfgT, stepsLength) + for j := 0; j < stepsLength; j++ { + x := CalcStepCfg{} + rcv.Steps(&x, j) + t.Steps[j] = x.UnPack() + } +} + +func (rcv *CalcPipelineCfg) UnPack() *CalcPipelineCfgT { + if rcv == nil { return nil } + t := &CalcPipelineCfgT{} + rcv.UnPackTo(t) + return t +} + +type CalcPipelineCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsCalcPipelineCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcPipelineCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CalcPipelineCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCalcPipelineCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcPipelineCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CalcPipelineCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CalcPipelineCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CalcPipelineCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the calculation pipeline +func (rcv *CalcPipelineCfg) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the calculation pipeline +/// is this a generic pipeline (when not, its provided by a command and is read-only) +func (rcv *CalcPipelineCfg) Generic() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +/// is this a generic pipeline (when not, its provided by a command and is read-only) +func (rcv *CalcPipelineCfg) MutateGeneric(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +/// vector of all calculation steps +func (rcv *CalcPipelineCfg) Steps(obj *CalcStepCfg, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *CalcPipelineCfg) StepsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all calculation steps +func CalcPipelineCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CalcPipelineCfgAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func CalcPipelineCfgAddGeneric(builder *flatbuffers.Builder, generic bool) { + builder.PrependBoolSlot(1, generic, true) +} +func CalcPipelineCfgAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(steps), 0) +} +func CalcPipelineCfgStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CalcPipelineCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/CalcStepCfg.go b/pkg/fbs/motion/sync/fbtypes/CalcStepCfg.go index abf6d20..efe1b1f 100644 --- a/pkg/fbs/motion/sync/fbtypes/CalcStepCfg.go +++ b/pkg/fbs/motion/sync/fbtypes/CalcStepCfg.go @@ -1,193 +1,193 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single calculation step -type CalcStepCfgT struct { - StepID uint32 - Type string - Inputs []string - Parameter []*CalcStepCfgSingleParamT -} - -func (t *CalcStepCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - typeOffset := builder.CreateString(t.Type) - inputsOffset := flatbuffers.UOffsetT(0) - if t.Inputs != nil { - inputsLength := len(t.Inputs) - inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) - for j := 0; j < inputsLength; j++ { - inputsOffsets[j] = builder.CreateString(t.Inputs[j]) - } - CalcStepCfgStartInputsVector(builder, inputsLength) - for j := inputsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(inputsOffsets[j]) - } - inputsOffset = builder.EndVector(inputsLength) - } - parameterOffset := flatbuffers.UOffsetT(0) - if t.Parameter != nil { - parameterLength := len(t.Parameter) - parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) - for j := 0; j < parameterLength; j++ { - parameterOffsets[j] = t.Parameter[j].Pack(builder) - } - CalcStepCfgStartParameterVector(builder, parameterLength) - for j := parameterLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(parameterOffsets[j]) - } - parameterOffset = builder.EndVector(parameterLength) - } - CalcStepCfgStart(builder) - CalcStepCfgAddStepID(builder, t.StepID) - CalcStepCfgAddType(builder, typeOffset) - CalcStepCfgAddInputs(builder, inputsOffset) - CalcStepCfgAddParameter(builder, parameterOffset) - return CalcStepCfgEnd(builder) -} - -func (rcv *CalcStepCfg) UnPackTo(t *CalcStepCfgT) { - t.StepID = rcv.StepID() - t.Type = string(rcv.Type()) - inputsLength := rcv.InputsLength() - t.Inputs = make([]string, inputsLength) - for j := 0; j < inputsLength; j++ { - t.Inputs[j] = string(rcv.Inputs(j)) - } - parameterLength := rcv.ParameterLength() - t.Parameter = make([]*CalcStepCfgSingleParamT, parameterLength) - for j := 0; j < parameterLength; j++ { - x := CalcStepCfgSingleParam{} - rcv.Parameter(&x, j) - t.Parameter[j] = x.UnPack() - } -} - -func (rcv *CalcStepCfg) UnPack() *CalcStepCfgT { - if rcv == nil { return nil } - t := &CalcStepCfgT{} - rcv.UnPackTo(t) - return t -} - -type CalcStepCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsCalcStepCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CalcStepCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCalcStepCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CalcStepCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CalcStepCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CalcStepCfg) Table() flatbuffers.Table { - return rcv._tab -} - -/// ID of the calculation step -func (rcv *CalcStepCfg) StepID() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// ID of the calculation step -func (rcv *CalcStepCfg) MutateStepID(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// type of the calculation step -func (rcv *CalcStepCfg) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// type of the calculation step -/// inputs of the calculation step -func (rcv *CalcStepCfg) Inputs(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *CalcStepCfg) InputsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// inputs of the calculation step -/// data of all parameters of a single calculation step -func (rcv *CalcStepCfg) Parameter(obj *CalcStepCfgSingleParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *CalcStepCfg) ParameterLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// data of all parameters of a single calculation step -func CalcStepCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func CalcStepCfgAddStepID(builder *flatbuffers.Builder, stepID uint32) { - builder.PrependUint32Slot(0, stepID, 0) -} -func CalcStepCfgAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) -} -func CalcStepCfgAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) -} -func CalcStepCfgStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CalcStepCfgAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(parameter), 0) -} -func CalcStepCfgStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CalcStepCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single calculation step +type CalcStepCfgT struct { + StepID uint32 + Type string + Inputs []string + Parameter []*CalcStepCfgSingleParamT +} + +func (t *CalcStepCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + typeOffset := builder.CreateString(t.Type) + inputsOffset := flatbuffers.UOffsetT(0) + if t.Inputs != nil { + inputsLength := len(t.Inputs) + inputsOffsets := make([]flatbuffers.UOffsetT, inputsLength) + for j := 0; j < inputsLength; j++ { + inputsOffsets[j] = builder.CreateString(t.Inputs[j]) + } + CalcStepCfgStartInputsVector(builder, inputsLength) + for j := inputsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(inputsOffsets[j]) + } + inputsOffset = builder.EndVector(inputsLength) + } + parameterOffset := flatbuffers.UOffsetT(0) + if t.Parameter != nil { + parameterLength := len(t.Parameter) + parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) + for j := 0; j < parameterLength; j++ { + parameterOffsets[j] = t.Parameter[j].Pack(builder) + } + CalcStepCfgStartParameterVector(builder, parameterLength) + for j := parameterLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(parameterOffsets[j]) + } + parameterOffset = builder.EndVector(parameterLength) + } + CalcStepCfgStart(builder) + CalcStepCfgAddStepID(builder, t.StepID) + CalcStepCfgAddType(builder, typeOffset) + CalcStepCfgAddInputs(builder, inputsOffset) + CalcStepCfgAddParameter(builder, parameterOffset) + return CalcStepCfgEnd(builder) +} + +func (rcv *CalcStepCfg) UnPackTo(t *CalcStepCfgT) { + t.StepID = rcv.StepID() + t.Type = string(rcv.Type()) + inputsLength := rcv.InputsLength() + t.Inputs = make([]string, inputsLength) + for j := 0; j < inputsLength; j++ { + t.Inputs[j] = string(rcv.Inputs(j)) + } + parameterLength := rcv.ParameterLength() + t.Parameter = make([]*CalcStepCfgSingleParamT, parameterLength) + for j := 0; j < parameterLength; j++ { + x := CalcStepCfgSingleParam{} + rcv.Parameter(&x, j) + t.Parameter[j] = x.UnPack() + } +} + +func (rcv *CalcStepCfg) UnPack() *CalcStepCfgT { + if rcv == nil { return nil } + t := &CalcStepCfgT{} + rcv.UnPackTo(t) + return t +} + +type CalcStepCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsCalcStepCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CalcStepCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCalcStepCfg(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CalcStepCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CalcStepCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CalcStepCfg) Table() flatbuffers.Table { + return rcv._tab +} + +/// ID of the calculation step +func (rcv *CalcStepCfg) StepID() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// ID of the calculation step +func (rcv *CalcStepCfg) MutateStepID(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// type of the calculation step +func (rcv *CalcStepCfg) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// type of the calculation step +/// inputs of the calculation step +func (rcv *CalcStepCfg) Inputs(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *CalcStepCfg) InputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// inputs of the calculation step +/// data of all parameters of a single calculation step +func (rcv *CalcStepCfg) Parameter(obj *CalcStepCfgSingleParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *CalcStepCfg) ParameterLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// data of all parameters of a single calculation step +func CalcStepCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func CalcStepCfgAddStepID(builder *flatbuffers.Builder, stepID uint32) { + builder.PrependUint32Slot(0, stepID, 0) +} +func CalcStepCfgAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) +} +func CalcStepCfgAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(inputs), 0) +} +func CalcStepCfgStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CalcStepCfgAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(parameter), 0) +} +func CalcStepCfgStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CalcStepCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/CalcStepCfgSingleParam.go b/pkg/fbs/motion/sync/fbtypes/CalcStepCfgSingleParam.go index 826e553..f9a2dbf 100644 --- a/pkg/fbs/motion/sync/fbtypes/CalcStepCfgSingleParam.go +++ b/pkg/fbs/motion/sync/fbtypes/CalcStepCfgSingleParam.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// configuration of a single parameter of a calculation step -type CalcStepCfgSingleParamT struct { - Name string - ValueDouble float64 - ValueInt int64 - ValueString string -} - -func (t *CalcStepCfgSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - valueStringOffset := builder.CreateString(t.ValueString) - CalcStepCfgSingleParamStart(builder) - CalcStepCfgSingleParamAddName(builder, nameOffset) - CalcStepCfgSingleParamAddValueDouble(builder, t.ValueDouble) - CalcStepCfgSingleParamAddValueInt(builder, t.ValueInt) - CalcStepCfgSingleParamAddValueString(builder, valueStringOffset) - return CalcStepCfgSingleParamEnd(builder) -} - -func (rcv *CalcStepCfgSingleParam) UnPackTo(t *CalcStepCfgSingleParamT) { - t.Name = string(rcv.Name()) - t.ValueDouble = rcv.ValueDouble() - t.ValueInt = rcv.ValueInt() - t.ValueString = string(rcv.ValueString()) -} - -func (rcv *CalcStepCfgSingleParam) UnPack() *CalcStepCfgSingleParamT { - if rcv == nil { return nil } - t := &CalcStepCfgSingleParamT{} - rcv.UnPackTo(t) - return t -} - -type CalcStepCfgSingleParam struct { - _tab flatbuffers.Table -} - -func GetRootAsCalcStepCfgSingleParam(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfgSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CalcStepCfgSingleParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCalcStepCfgSingleParam(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfgSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CalcStepCfgSingleParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CalcStepCfgSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CalcStepCfgSingleParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter -func (rcv *CalcStepCfgSingleParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter -/// value of the parameter (when it's a double value) -func (rcv *CalcStepCfgSingleParam) ValueDouble() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -/// value of the parameter (when it's a double value) -func (rcv *CalcStepCfgSingleParam) MutateValueDouble(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -/// value of the parameter (when it's a integer value) -func (rcv *CalcStepCfgSingleParam) ValueInt() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -/// value of the parameter (when it's a integer value) -func (rcv *CalcStepCfgSingleParam) MutateValueInt(n int64) bool { - return rcv._tab.MutateInt64Slot(8, n) -} - -/// value of the parameter (when it's a string value) -func (rcv *CalcStepCfgSingleParam) ValueString() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// value of the parameter (when it's a string value) -func CalcStepCfgSingleParamStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func CalcStepCfgSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func CalcStepCfgSingleParamAddValueDouble(builder *flatbuffers.Builder, valueDouble float64) { - builder.PrependFloat64Slot(1, valueDouble, 0.0) -} -func CalcStepCfgSingleParamAddValueInt(builder *flatbuffers.Builder, valueInt int64) { - builder.PrependInt64Slot(2, valueInt, 0) -} -func CalcStepCfgSingleParamAddValueString(builder *flatbuffers.Builder, valueString flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(valueString), 0) -} -func CalcStepCfgSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single parameter of a calculation step +type CalcStepCfgSingleParamT struct { + Name string + ValueDouble float64 + ValueInt int64 + ValueString string +} + +func (t *CalcStepCfgSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + valueStringOffset := builder.CreateString(t.ValueString) + CalcStepCfgSingleParamStart(builder) + CalcStepCfgSingleParamAddName(builder, nameOffset) + CalcStepCfgSingleParamAddValueDouble(builder, t.ValueDouble) + CalcStepCfgSingleParamAddValueInt(builder, t.ValueInt) + CalcStepCfgSingleParamAddValueString(builder, valueStringOffset) + return CalcStepCfgSingleParamEnd(builder) +} + +func (rcv *CalcStepCfgSingleParam) UnPackTo(t *CalcStepCfgSingleParamT) { + t.Name = string(rcv.Name()) + t.ValueDouble = rcv.ValueDouble() + t.ValueInt = rcv.ValueInt() + t.ValueString = string(rcv.ValueString()) +} + +func (rcv *CalcStepCfgSingleParam) UnPack() *CalcStepCfgSingleParamT { + if rcv == nil { return nil } + t := &CalcStepCfgSingleParamT{} + rcv.UnPackTo(t) + return t +} + +type CalcStepCfgSingleParam struct { + _tab flatbuffers.Table +} + +func GetRootAsCalcStepCfgSingleParam(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfgSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CalcStepCfgSingleParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCalcStepCfgSingleParam(buf []byte, offset flatbuffers.UOffsetT) *CalcStepCfgSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CalcStepCfgSingleParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CalcStepCfgSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CalcStepCfgSingleParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter +func (rcv *CalcStepCfgSingleParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter +/// value of the parameter (when it's a double value) +func (rcv *CalcStepCfgSingleParam) ValueDouble() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// value of the parameter (when it's a double value) +func (rcv *CalcStepCfgSingleParam) MutateValueDouble(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// value of the parameter (when it's a integer value) +func (rcv *CalcStepCfgSingleParam) ValueInt() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +/// value of the parameter (when it's a integer value) +func (rcv *CalcStepCfgSingleParam) MutateValueInt(n int64) bool { + return rcv._tab.MutateInt64Slot(8, n) +} + +/// value of the parameter (when it's a string value) +func (rcv *CalcStepCfgSingleParam) ValueString() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// value of the parameter (when it's a string value) +func CalcStepCfgSingleParamStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func CalcStepCfgSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func CalcStepCfgSingleParamAddValueDouble(builder *flatbuffers.Builder, valueDouble float64) { + builder.PrependFloat64Slot(1, valueDouble, 0.0) +} +func CalcStepCfgSingleParamAddValueInt(builder *flatbuffers.Builder, valueInt int64) { + builder.PrependInt64Slot(2, valueInt, 0) +} +func CalcStepCfgSingleParamAddValueString(builder *flatbuffers.Builder, valueString flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(valueString), 0) +} +func CalcStepCfgSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/CamTableInterpolation.go b/pkg/fbs/motion/sync/fbtypes/CamTableInterpolation.go new file mode 100644 index 0000000..5a9c8b0 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/CamTableInterpolation.go @@ -0,0 +1,36 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// interpolation type of the cam table +type CamTableInterpolation int8 + +const ( + /// interpolation variant of mlc ( spline up tp 100, linear after) + CamTableInterpolationDEFAULT CamTableInterpolation = 0 + /// use linear interpolation between supporting points + CamTableInterpolationLINEAR CamTableInterpolation = 1 + /// use qubic spline interpolation between supporting points + CamTableInterpolationQUBIC_SPLINE CamTableInterpolation = 2 +) + +var EnumNamesCamTableInterpolation = map[CamTableInterpolation]string{ + CamTableInterpolationDEFAULT: "DEFAULT", + CamTableInterpolationLINEAR: "LINEAR", + CamTableInterpolationQUBIC_SPLINE: "QUBIC_SPLINE", +} + +var EnumValuesCamTableInterpolation = map[string]CamTableInterpolation{ + "DEFAULT": CamTableInterpolationDEFAULT, + "LINEAR": CamTableInterpolationLINEAR, + "QUBIC_SPLINE": CamTableInterpolationQUBIC_SPLINE, +} + +func (v CamTableInterpolation) String() string { + if s, ok := EnumNamesCamTableInterpolation[v]; ok { + return s + } + return "CamTableInterpolation(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/CfgFlexprofileSegment.go b/pkg/fbs/motion/sync/fbtypes/CfgFlexprofileSegment.go new file mode 100644 index 0000000..76dffc4 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/CfgFlexprofileSegment.go @@ -0,0 +1,365 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a flexprofile segment +type CfgFlexprofileSegmentT struct { + Gain float64 + Range float64 + V0 float64 + A0 float64 + J0 float64 + V1 float64 + A1 float64 + J1 float64 + LimV float64 + LimA float64 + LimJ float64 + Lambda float64 + SyncType SegmentSyncType + LawType SegmentLawType + Master uint32 +} + +func (t *CfgFlexprofileSegmentT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + CfgFlexprofileSegmentStart(builder) + CfgFlexprofileSegmentAddGain(builder, t.Gain) + CfgFlexprofileSegmentAddRange(builder, t.Range) + CfgFlexprofileSegmentAddV0(builder, t.V0) + CfgFlexprofileSegmentAddA0(builder, t.A0) + CfgFlexprofileSegmentAddJ0(builder, t.J0) + CfgFlexprofileSegmentAddV1(builder, t.V1) + CfgFlexprofileSegmentAddA1(builder, t.A1) + CfgFlexprofileSegmentAddJ1(builder, t.J1) + CfgFlexprofileSegmentAddLimV(builder, t.LimV) + CfgFlexprofileSegmentAddLimA(builder, t.LimA) + CfgFlexprofileSegmentAddLimJ(builder, t.LimJ) + CfgFlexprofileSegmentAddLambda(builder, t.Lambda) + CfgFlexprofileSegmentAddSyncType(builder, t.SyncType) + CfgFlexprofileSegmentAddLawType(builder, t.LawType) + CfgFlexprofileSegmentAddMaster(builder, t.Master) + return CfgFlexprofileSegmentEnd(builder) +} + +func (rcv *CfgFlexprofileSegment) UnPackTo(t *CfgFlexprofileSegmentT) { + t.Gain = rcv.Gain() + t.Range = rcv.Range() + t.V0 = rcv.V0() + t.A0 = rcv.A0() + t.J0 = rcv.J0() + t.V1 = rcv.V1() + t.A1 = rcv.A1() + t.J1 = rcv.J1() + t.LimV = rcv.LimV() + t.LimA = rcv.LimA() + t.LimJ = rcv.LimJ() + t.Lambda = rcv.Lambda() + t.SyncType = rcv.SyncType() + t.LawType = rcv.LawType() + t.Master = rcv.Master() +} + +func (rcv *CfgFlexprofileSegment) UnPack() *CfgFlexprofileSegmentT { + if rcv == nil { return nil } + t := &CfgFlexprofileSegmentT{} + rcv.UnPackTo(t) + return t +} + +type CfgFlexprofileSegment struct { + _tab flatbuffers.Table +} + +func GetRootAsCfgFlexprofileSegment(buf []byte, offset flatbuffers.UOffsetT) *CfgFlexprofileSegment { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CfgFlexprofileSegment{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCfgFlexprofileSegment(buf []byte, offset flatbuffers.UOffsetT) *CfgFlexprofileSegment { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CfgFlexprofileSegment{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CfgFlexprofileSegment) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CfgFlexprofileSegment) Table() flatbuffers.Table { + return rcv._tab +} + +/// Gain/hub/lift of segment - slave range (Y) // Units +func (rcv *CfgFlexprofileSegment) Gain() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Gain/hub/lift of segment - slave range (Y) // Units +func (rcv *CfgFlexprofileSegment) MutateGain(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +/// Range of segment - master range (X) // Units +func (rcv *CfgFlexprofileSegment) Range() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Range of segment - master range (X) // Units +func (rcv *CfgFlexprofileSegment) MutateRange(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// Start Velocity // Units/s +func (rcv *CfgFlexprofileSegment) V0() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Start Velocity // Units/s +func (rcv *CfgFlexprofileSegment) MutateV0(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// Start Acceleration // Units/s² +func (rcv *CfgFlexprofileSegment) A0() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Start Acceleration // Units/s² +func (rcv *CfgFlexprofileSegment) MutateA0(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// Start Jerk // Units/s³ +func (rcv *CfgFlexprofileSegment) J0() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Start Jerk // Units/s³ +func (rcv *CfgFlexprofileSegment) MutateJ0(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +/// End Velocity // Units/s +func (rcv *CfgFlexprofileSegment) V1() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// End Velocity // Units/s +func (rcv *CfgFlexprofileSegment) MutateV1(n float64) bool { + return rcv._tab.MutateFloat64Slot(14, n) +} + +/// End Acceleration // Units/s² +func (rcv *CfgFlexprofileSegment) A1() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// End Acceleration // Units/s² +func (rcv *CfgFlexprofileSegment) MutateA1(n float64) bool { + return rcv._tab.MutateFloat64Slot(16, n) +} + +/// End Jerk // Units/s³ +func (rcv *CfgFlexprofileSegment) J1() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// End Jerk // Units/s³ +func (rcv *CfgFlexprofileSegment) MutateJ1(n float64) bool { + return rcv._tab.MutateFloat64Slot(18, n) +} + +/// Travel/Limit Velocity // Units/s +func (rcv *CfgFlexprofileSegment) LimV() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Travel/Limit Velocity // Units/s +func (rcv *CfgFlexprofileSegment) MutateLimV(n float64) bool { + return rcv._tab.MutateFloat64Slot(20, n) +} + +/// Travel/Limit Acc // Units/s² +func (rcv *CfgFlexprofileSegment) LimA() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Travel/Limit Acc // Units/s² +func (rcv *CfgFlexprofileSegment) MutateLimA(n float64) bool { + return rcv._tab.MutateFloat64Slot(22, n) +} + +/// Travel/Limit Jerk // Units/s³ +func (rcv *CfgFlexprofileSegment) LimJ() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Travel/Limit Jerk // Units/s³ +func (rcv *CfgFlexprofileSegment) MutateLimJ(n float64) bool { + return rcv._tab.MutateFloat64Slot(24, n) +} + +/// Inflection point (Range 0.0 to 1.0) +func (rcv *CfgFlexprofileSegment) Lambda() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// Inflection point (Range 0.0 to 1.0) +func (rcv *CfgFlexprofileSegment) MutateLambda(n float64) bool { + return rcv._tab.MutateFloat64Slot(26, n) +} + +/// Camtable: point array (not used in MLC) +/// pointTable : [double]; +/// Type of the segment transition (fixed or flexible) +func (rcv *CfgFlexprofileSegment) SyncType() SegmentSyncType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return SegmentSyncType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// Camtable: point array (not used in MLC) +/// pointTable : [double]; +/// Type of the segment transition (fixed or flexible) +func (rcv *CfgFlexprofileSegment) MutateSyncType(n SegmentSyncType) bool { + return rcv._tab.MutateInt8Slot(28, int8(n)) +} + +/// Type of the law (e.g. Polynomial 5th order) +func (rcv *CfgFlexprofileSegment) LawType() SegmentLawType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return SegmentLawType(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +/// Type of the law (e.g. Polynomial 5th order) +func (rcv *CfgFlexprofileSegment) MutateLawType(n SegmentLawType) bool { + return rcv._tab.MutateUint32Slot(30, uint32(n)) +} + +/// Type of the master (FML_MasterType - axis or time) +func (rcv *CfgFlexprofileSegment) Master() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// Type of the master (FML_MasterType - axis or time) +func (rcv *CfgFlexprofileSegment) MutateMaster(n uint32) bool { + return rcv._tab.MutateUint32Slot(32, n) +} + +func CfgFlexprofileSegmentStart(builder *flatbuffers.Builder) { + builder.StartObject(15) +} +func CfgFlexprofileSegmentAddGain(builder *flatbuffers.Builder, gain float64) { + builder.PrependFloat64Slot(0, gain, 0.0) +} +func CfgFlexprofileSegmentAddRange(builder *flatbuffers.Builder, range_ float64) { + builder.PrependFloat64Slot(1, range_, 0.0) +} +func CfgFlexprofileSegmentAddV0(builder *flatbuffers.Builder, v0 float64) { + builder.PrependFloat64Slot(2, v0, 0.0) +} +func CfgFlexprofileSegmentAddA0(builder *flatbuffers.Builder, a0 float64) { + builder.PrependFloat64Slot(3, a0, 0.0) +} +func CfgFlexprofileSegmentAddJ0(builder *flatbuffers.Builder, j0 float64) { + builder.PrependFloat64Slot(4, j0, 0.0) +} +func CfgFlexprofileSegmentAddV1(builder *flatbuffers.Builder, v1 float64) { + builder.PrependFloat64Slot(5, v1, 0.0) +} +func CfgFlexprofileSegmentAddA1(builder *flatbuffers.Builder, a1 float64) { + builder.PrependFloat64Slot(6, a1, 0.0) +} +func CfgFlexprofileSegmentAddJ1(builder *flatbuffers.Builder, j1 float64) { + builder.PrependFloat64Slot(7, j1, 0.0) +} +func CfgFlexprofileSegmentAddLimV(builder *flatbuffers.Builder, limV float64) { + builder.PrependFloat64Slot(8, limV, 0.0) +} +func CfgFlexprofileSegmentAddLimA(builder *flatbuffers.Builder, limA float64) { + builder.PrependFloat64Slot(9, limA, 0.0) +} +func CfgFlexprofileSegmentAddLimJ(builder *flatbuffers.Builder, limJ float64) { + builder.PrependFloat64Slot(10, limJ, 0.0) +} +func CfgFlexprofileSegmentAddLambda(builder *flatbuffers.Builder, lambda float64) { + builder.PrependFloat64Slot(11, lambda, 0.0) +} +func CfgFlexprofileSegmentAddSyncType(builder *flatbuffers.Builder, syncType SegmentSyncType) { + builder.PrependInt8Slot(12, int8(syncType), 0) +} +func CfgFlexprofileSegmentAddLawType(builder *flatbuffers.Builder, lawType SegmentLawType) { + builder.PrependUint32Slot(13, uint32(lawType), 0) +} +func CfgFlexprofileSegmentAddMaster(builder *flatbuffers.Builder, master uint32) { + builder.PrependUint32Slot(14, master, 0) +} +func CfgFlexprofileSegmentEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/DataID.go b/pkg/fbs/motion/sync/fbtypes/DataID.go index 8e7aa9f..df963dc 100644 --- a/pkg/fbs/motion/sync/fbtypes/DataID.go +++ b/pkg/fbs/motion/sync/fbtypes/DataID.go @@ -1,56 +1,56 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// Data, that could be input/output of a single calculation step -type DataID int8 - -const ( - /// reference position - DataIDREF_POS DataID = 0 - /// reference velocity - DataIDREF_VEL DataID = 1 - /// reference acceleration - DataIDREF_ACC DataID = 2 - /// reference jerk - DataIDREF_JRK DataID = 3 - /// actual position - DataIDACT_POS DataID = 4 - /// actual velocity - DataIDACT_VEL DataID = 5 - /// synchronization position reached - DataIDSYNC_POS_REACHED DataID = 6 - /// something else - DataIDSOMETHING_ELSE DataID = 7 -) - -var EnumNamesDataID = map[DataID]string{ - DataIDREF_POS: "REF_POS", - DataIDREF_VEL: "REF_VEL", - DataIDREF_ACC: "REF_ACC", - DataIDREF_JRK: "REF_JRK", - DataIDACT_POS: "ACT_POS", - DataIDACT_VEL: "ACT_VEL", - DataIDSYNC_POS_REACHED: "SYNC_POS_REACHED", - DataIDSOMETHING_ELSE: "SOMETHING_ELSE", -} - -var EnumValuesDataID = map[string]DataID{ - "REF_POS": DataIDREF_POS, - "REF_VEL": DataIDREF_VEL, - "REF_ACC": DataIDREF_ACC, - "REF_JRK": DataIDREF_JRK, - "ACT_POS": DataIDACT_POS, - "ACT_VEL": DataIDACT_VEL, - "SYNC_POS_REACHED": DataIDSYNC_POS_REACHED, - "SOMETHING_ELSE": DataIDSOMETHING_ELSE, -} - -func (v DataID) String() string { - if s, ok := EnumNamesDataID[v]; ok { - return s - } - return "DataID(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// Data, that could be input/output of a single calculation step +type DataID int8 + +const ( + /// reference position + DataIDREF_POS DataID = 0 + /// reference velocity + DataIDREF_VEL DataID = 1 + /// reference acceleration + DataIDREF_ACC DataID = 2 + /// reference jerk + DataIDREF_JRK DataID = 3 + /// actual position + DataIDACT_POS DataID = 4 + /// actual velocity + DataIDACT_VEL DataID = 5 + /// synchronization position reached + DataIDSYNC_POS_REACHED DataID = 6 + /// something else + DataIDSOMETHING_ELSE DataID = 7 +) + +var EnumNamesDataID = map[DataID]string{ + DataIDREF_POS: "REF_POS", + DataIDREF_VEL: "REF_VEL", + DataIDREF_ACC: "REF_ACC", + DataIDREF_JRK: "REF_JRK", + DataIDACT_POS: "ACT_POS", + DataIDACT_VEL: "ACT_VEL", + DataIDSYNC_POS_REACHED: "SYNC_POS_REACHED", + DataIDSOMETHING_ELSE: "SOMETHING_ELSE", +} + +var EnumValuesDataID = map[string]DataID{ + "REF_POS": DataIDREF_POS, + "REF_VEL": DataIDREF_VEL, + "REF_ACC": DataIDREF_ACC, + "REF_JRK": DataIDREF_JRK, + "ACT_POS": DataIDACT_POS, + "ACT_VEL": DataIDACT_VEL, + "SYNC_POS_REACHED": DataIDSYNC_POS_REACHED, + "SOMETHING_ELSE": DataIDSOMETHING_ELSE, +} + +func (v DataID) String() string { + if s, ok := EnumNamesDataID[v]; ok { + return s + } + return "DataID(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/MutexGroupPart1.go b/pkg/fbs/motion/sync/fbtypes/MutexGroupPart1.go index 1b13a27..abd70ab 100644 --- a/pkg/fbs/motion/sync/fbtypes/MutexGroupPart1.go +++ b/pkg/fbs/motion/sync/fbtypes/MutexGroupPart1.go @@ -1,104 +1,104 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// The first group of optional parameters, which mutually exclude each other -type MutexGroupPart1T struct { - GroupPart1 []string -} - -func (t *MutexGroupPart1T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - groupPart1Offset := flatbuffers.UOffsetT(0) - if t.GroupPart1 != nil { - groupPart1Length := len(t.GroupPart1) - groupPart1Offsets := make([]flatbuffers.UOffsetT, groupPart1Length) - for j := 0; j < groupPart1Length; j++ { - groupPart1Offsets[j] = builder.CreateString(t.GroupPart1[j]) - } - MutexGroupPart1StartGroupPart1Vector(builder, groupPart1Length) - for j := groupPart1Length - 1; j >= 0; j-- { - builder.PrependUOffsetT(groupPart1Offsets[j]) - } - groupPart1Offset = builder.EndVector(groupPart1Length) - } - MutexGroupPart1Start(builder) - MutexGroupPart1AddGroupPart1(builder, groupPart1Offset) - return MutexGroupPart1End(builder) -} - -func (rcv *MutexGroupPart1) UnPackTo(t *MutexGroupPart1T) { - groupPart1Length := rcv.GroupPart1Length() - t.GroupPart1 = make([]string, groupPart1Length) - for j := 0; j < groupPart1Length; j++ { - t.GroupPart1[j] = string(rcv.GroupPart1(j)) - } -} - -func (rcv *MutexGroupPart1) UnPack() *MutexGroupPart1T { - if rcv == nil { return nil } - t := &MutexGroupPart1T{} - rcv.UnPackTo(t) - return t -} - -type MutexGroupPart1 struct { - _tab flatbuffers.Table -} - -func GetRootAsMutexGroupPart1(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart1 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MutexGroupPart1{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMutexGroupPart1(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart1 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MutexGroupPart1{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MutexGroupPart1) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MutexGroupPart1) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MutexGroupPart1) GroupPart1(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *MutexGroupPart1) GroupPart1Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func MutexGroupPart1Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MutexGroupPart1AddGroupPart1(builder *flatbuffers.Builder, groupPart1 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(groupPart1), 0) -} -func MutexGroupPart1StartGroupPart1Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MutexGroupPart1End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// The first group of optional parameters, which mutually exclude each other +type MutexGroupPart1T struct { + GroupPart1 []string +} + +func (t *MutexGroupPart1T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + groupPart1Offset := flatbuffers.UOffsetT(0) + if t.GroupPart1 != nil { + groupPart1Length := len(t.GroupPart1) + groupPart1Offsets := make([]flatbuffers.UOffsetT, groupPart1Length) + for j := 0; j < groupPart1Length; j++ { + groupPart1Offsets[j] = builder.CreateString(t.GroupPart1[j]) + } + MutexGroupPart1StartGroupPart1Vector(builder, groupPart1Length) + for j := groupPart1Length - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupPart1Offsets[j]) + } + groupPart1Offset = builder.EndVector(groupPart1Length) + } + MutexGroupPart1Start(builder) + MutexGroupPart1AddGroupPart1(builder, groupPart1Offset) + return MutexGroupPart1End(builder) +} + +func (rcv *MutexGroupPart1) UnPackTo(t *MutexGroupPart1T) { + groupPart1Length := rcv.GroupPart1Length() + t.GroupPart1 = make([]string, groupPart1Length) + for j := 0; j < groupPart1Length; j++ { + t.GroupPart1[j] = string(rcv.GroupPart1(j)) + } +} + +func (rcv *MutexGroupPart1) UnPack() *MutexGroupPart1T { + if rcv == nil { return nil } + t := &MutexGroupPart1T{} + rcv.UnPackTo(t) + return t +} + +type MutexGroupPart1 struct { + _tab flatbuffers.Table +} + +func GetRootAsMutexGroupPart1(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart1 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MutexGroupPart1{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMutexGroupPart1(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart1 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MutexGroupPart1{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MutexGroupPart1) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MutexGroupPart1) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MutexGroupPart1) GroupPart1(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *MutexGroupPart1) GroupPart1Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func MutexGroupPart1Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MutexGroupPart1AddGroupPart1(builder *flatbuffers.Builder, groupPart1 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(groupPart1), 0) +} +func MutexGroupPart1StartGroupPart1Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MutexGroupPart1End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/MutexGroupPart2.go b/pkg/fbs/motion/sync/fbtypes/MutexGroupPart2.go index b54c753..68d99de 100644 --- a/pkg/fbs/motion/sync/fbtypes/MutexGroupPart2.go +++ b/pkg/fbs/motion/sync/fbtypes/MutexGroupPart2.go @@ -1,109 +1,109 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// The second group of optional parameters, which mutually exclude each other -type MutexGroupPart2T struct { - GroupPart2 []*MutexGroupPart1T -} - -func (t *MutexGroupPart2T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - groupPart2Offset := flatbuffers.UOffsetT(0) - if t.GroupPart2 != nil { - groupPart2Length := len(t.GroupPart2) - groupPart2Offsets := make([]flatbuffers.UOffsetT, groupPart2Length) - for j := 0; j < groupPart2Length; j++ { - groupPart2Offsets[j] = t.GroupPart2[j].Pack(builder) - } - MutexGroupPart2StartGroupPart2Vector(builder, groupPart2Length) - for j := groupPart2Length - 1; j >= 0; j-- { - builder.PrependUOffsetT(groupPart2Offsets[j]) - } - groupPart2Offset = builder.EndVector(groupPart2Length) - } - MutexGroupPart2Start(builder) - MutexGroupPart2AddGroupPart2(builder, groupPart2Offset) - return MutexGroupPart2End(builder) -} - -func (rcv *MutexGroupPart2) UnPackTo(t *MutexGroupPart2T) { - groupPart2Length := rcv.GroupPart2Length() - t.GroupPart2 = make([]*MutexGroupPart1T, groupPart2Length) - for j := 0; j < groupPart2Length; j++ { - x := MutexGroupPart1{} - rcv.GroupPart2(&x, j) - t.GroupPart2[j] = x.UnPack() - } -} - -func (rcv *MutexGroupPart2) UnPack() *MutexGroupPart2T { - if rcv == nil { return nil } - t := &MutexGroupPart2T{} - rcv.UnPackTo(t) - return t -} - -type MutexGroupPart2 struct { - _tab flatbuffers.Table -} - -func GetRootAsMutexGroupPart2(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart2 { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &MutexGroupPart2{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMutexGroupPart2(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart2 { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &MutexGroupPart2{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *MutexGroupPart2) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *MutexGroupPart2) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *MutexGroupPart2) GroupPart2(obj *MutexGroupPart1, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *MutexGroupPart2) GroupPart2Length() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func MutexGroupPart2Start(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func MutexGroupPart2AddGroupPart2(builder *flatbuffers.Builder, groupPart2 flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(groupPart2), 0) -} -func MutexGroupPart2StartGroupPart2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func MutexGroupPart2End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// The second group of optional parameters, which mutually exclude each other +type MutexGroupPart2T struct { + GroupPart2 []*MutexGroupPart1T +} + +func (t *MutexGroupPart2T) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + groupPart2Offset := flatbuffers.UOffsetT(0) + if t.GroupPart2 != nil { + groupPart2Length := len(t.GroupPart2) + groupPart2Offsets := make([]flatbuffers.UOffsetT, groupPart2Length) + for j := 0; j < groupPart2Length; j++ { + groupPart2Offsets[j] = t.GroupPart2[j].Pack(builder) + } + MutexGroupPart2StartGroupPart2Vector(builder, groupPart2Length) + for j := groupPart2Length - 1; j >= 0; j-- { + builder.PrependUOffsetT(groupPart2Offsets[j]) + } + groupPart2Offset = builder.EndVector(groupPart2Length) + } + MutexGroupPart2Start(builder) + MutexGroupPart2AddGroupPart2(builder, groupPart2Offset) + return MutexGroupPart2End(builder) +} + +func (rcv *MutexGroupPart2) UnPackTo(t *MutexGroupPart2T) { + groupPart2Length := rcv.GroupPart2Length() + t.GroupPart2 = make([]*MutexGroupPart1T, groupPart2Length) + for j := 0; j < groupPart2Length; j++ { + x := MutexGroupPart1{} + rcv.GroupPart2(&x, j) + t.GroupPart2[j] = x.UnPack() + } +} + +func (rcv *MutexGroupPart2) UnPack() *MutexGroupPart2T { + if rcv == nil { return nil } + t := &MutexGroupPart2T{} + rcv.UnPackTo(t) + return t +} + +type MutexGroupPart2 struct { + _tab flatbuffers.Table +} + +func GetRootAsMutexGroupPart2(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart2 { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &MutexGroupPart2{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMutexGroupPart2(buf []byte, offset flatbuffers.UOffsetT) *MutexGroupPart2 { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &MutexGroupPart2{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *MutexGroupPart2) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *MutexGroupPart2) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *MutexGroupPart2) GroupPart2(obj *MutexGroupPart1, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *MutexGroupPart2) GroupPart2Length() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func MutexGroupPart2Start(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func MutexGroupPart2AddGroupPart2(builder *flatbuffers.Builder, groupPart2 flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(groupPart2), 0) +} +func MutexGroupPart2StartGroupPart2Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func MutexGroupPart2End(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/ParameterType.go b/pkg/fbs/motion/sync/fbtypes/ParameterType.go index 4156dd6..314e684 100644 --- a/pkg/fbs/motion/sync/fbtypes/ParameterType.go +++ b/pkg/fbs/motion/sync/fbtypes/ParameterType.go @@ -1,36 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// Type of a single parameter -type ParameterType int8 - -const ( - /// contains an integer value - ParameterTypeINTEGER ParameterType = 0 - /// contains a double value - ParameterTypeDOUBLE ParameterType = 1 - /// contains a string value - ParameterTypeSTRING ParameterType = 2 -) - -var EnumNamesParameterType = map[ParameterType]string{ - ParameterTypeINTEGER: "INTEGER", - ParameterTypeDOUBLE: "DOUBLE", - ParameterTypeSTRING: "STRING", -} - -var EnumValuesParameterType = map[string]ParameterType{ - "INTEGER": ParameterTypeINTEGER, - "DOUBLE": ParameterTypeDOUBLE, - "STRING": ParameterTypeSTRING, -} - -func (v ParameterType) String() string { - if s, ok := EnumNamesParameterType[v]; ok { - return s - } - return "ParameterType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// Type of a single parameter +type ParameterType int8 + +const ( + /// contains an integer value + ParameterTypeINTEGER ParameterType = 0 + /// contains a double value + ParameterTypeDOUBLE ParameterType = 1 + /// contains a string value + ParameterTypeSTRING ParameterType = 2 +) + +var EnumNamesParameterType = map[ParameterType]string{ + ParameterTypeINTEGER: "INTEGER", + ParameterTypeDOUBLE: "DOUBLE", + ParameterTypeSTRING: "STRING", +} + +var EnumValuesParameterType = map[string]ParameterType{ + "INTEGER": ParameterTypeINTEGER, + "DOUBLE": ParameterTypeDOUBLE, + "STRING": ParameterTypeSTRING, +} + +func (v ParameterType) String() string { + if s, ok := EnumNamesParameterType[v]; ok { + return s + } + return "ParameterType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/PipelineState.go b/pkg/fbs/motion/sync/fbtypes/PipelineState.go index 026f06d..8f93509 100644 --- a/pkg/fbs/motion/sync/fbtypes/PipelineState.go +++ b/pkg/fbs/motion/sync/fbtypes/PipelineState.go @@ -1,40 +1,40 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// state of a calculation pipeline -type PipelineState int32 - -const ( - /// the pipeline has been changed and validation was not successful - PipelineStateUNVALIDATED PipelineState = 0 - /// the pipeline is currently being edited - PipelineStateIN_EDIT PipelineState = 1 - /// the pipeline has been successfully validated and can be used now - PipelineStateVALIDATED PipelineState = 2 - /// the pipeline is currently in use and may not be changed - PipelineStateIN_USE PipelineState = 3 -) - -var EnumNamesPipelineState = map[PipelineState]string{ - PipelineStateUNVALIDATED: "UNVALIDATED", - PipelineStateIN_EDIT: "IN_EDIT", - PipelineStateVALIDATED: "VALIDATED", - PipelineStateIN_USE: "IN_USE", -} - -var EnumValuesPipelineState = map[string]PipelineState{ - "UNVALIDATED": PipelineStateUNVALIDATED, - "IN_EDIT": PipelineStateIN_EDIT, - "VALIDATED": PipelineStateVALIDATED, - "IN_USE": PipelineStateIN_USE, -} - -func (v PipelineState) String() string { - if s, ok := EnumNamesPipelineState[v]; ok { - return s - } - return "PipelineState(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// state of a calculation pipeline +type PipelineState int32 + +const ( + /// the pipeline has been changed and validation was not successful + PipelineStateUNVALIDATED PipelineState = 0 + /// the pipeline is currently being edited + PipelineStateIN_EDIT PipelineState = 1 + /// the pipeline has been successfully validated and can be used now + PipelineStateVALIDATED PipelineState = 2 + /// the pipeline is currently in use and may not be changed + PipelineStateIN_USE PipelineState = 3 +) + +var EnumNamesPipelineState = map[PipelineState]string{ + PipelineStateUNVALIDATED: "UNVALIDATED", + PipelineStateIN_EDIT: "IN_EDIT", + PipelineStateVALIDATED: "VALIDATED", + PipelineStateIN_USE: "IN_USE", +} + +var EnumValuesPipelineState = map[string]PipelineState{ + "UNVALIDATED": PipelineStateUNVALIDATED, + "IN_EDIT": PipelineStateIN_EDIT, + "VALIDATED": PipelineStateVALIDATED, + "IN_USE": PipelineStateIN_USE, +} + +func (v PipelineState) String() string { + if s, ok := EnumNamesPipelineState[v]; ok { + return s + } + return "PipelineState(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/PipelineValidation.go b/pkg/fbs/motion/sync/fbtypes/PipelineValidation.go index 0a14cee..c736b2b 100644 --- a/pkg/fbs/motion/sync/fbtypes/PipelineValidation.go +++ b/pkg/fbs/motion/sync/fbtypes/PipelineValidation.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// validation of a calculation pipeline -type PipelineValidationT struct { - Validations []*SinglePipelineValidationT -} - -func (t *PipelineValidationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - validationsOffset := flatbuffers.UOffsetT(0) - if t.Validations != nil { - validationsLength := len(t.Validations) - validationsOffsets := make([]flatbuffers.UOffsetT, validationsLength) - for j := 0; j < validationsLength; j++ { - validationsOffsets[j] = t.Validations[j].Pack(builder) - } - PipelineValidationStartValidationsVector(builder, validationsLength) - for j := validationsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(validationsOffsets[j]) - } - validationsOffset = builder.EndVector(validationsLength) - } - PipelineValidationStart(builder) - PipelineValidationAddValidations(builder, validationsOffset) - return PipelineValidationEnd(builder) -} - -func (rcv *PipelineValidation) UnPackTo(t *PipelineValidationT) { - validationsLength := rcv.ValidationsLength() - t.Validations = make([]*SinglePipelineValidationT, validationsLength) - for j := 0; j < validationsLength; j++ { - x := SinglePipelineValidation{} - rcv.Validations(&x, j) - t.Validations[j] = x.UnPack() - } -} - -func (rcv *PipelineValidation) UnPack() *PipelineValidationT { - if rcv == nil { return nil } - t := &PipelineValidationT{} - rcv.UnPackTo(t) - return t -} - -type PipelineValidation struct { - _tab flatbuffers.Table -} - -func GetRootAsPipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *PipelineValidation { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &PipelineValidation{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsPipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *PipelineValidation { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &PipelineValidation{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *PipelineValidation) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *PipelineValidation) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of single result validations (multiple errors can occur) -func (rcv *PipelineValidation) Validations(obj *SinglePipelineValidation, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *PipelineValidation) ValidationsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of single result validations (multiple errors can occur) -func PipelineValidationStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func PipelineValidationAddValidations(builder *flatbuffers.Builder, validations flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(validations), 0) -} -func PipelineValidationStartValidationsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func PipelineValidationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// validation of a calculation pipeline +type PipelineValidationT struct { + Validations []*SinglePipelineValidationT +} + +func (t *PipelineValidationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + validationsOffset := flatbuffers.UOffsetT(0) + if t.Validations != nil { + validationsLength := len(t.Validations) + validationsOffsets := make([]flatbuffers.UOffsetT, validationsLength) + for j := 0; j < validationsLength; j++ { + validationsOffsets[j] = t.Validations[j].Pack(builder) + } + PipelineValidationStartValidationsVector(builder, validationsLength) + for j := validationsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(validationsOffsets[j]) + } + validationsOffset = builder.EndVector(validationsLength) + } + PipelineValidationStart(builder) + PipelineValidationAddValidations(builder, validationsOffset) + return PipelineValidationEnd(builder) +} + +func (rcv *PipelineValidation) UnPackTo(t *PipelineValidationT) { + validationsLength := rcv.ValidationsLength() + t.Validations = make([]*SinglePipelineValidationT, validationsLength) + for j := 0; j < validationsLength; j++ { + x := SinglePipelineValidation{} + rcv.Validations(&x, j) + t.Validations[j] = x.UnPack() + } +} + +func (rcv *PipelineValidation) UnPack() *PipelineValidationT { + if rcv == nil { return nil } + t := &PipelineValidationT{} + rcv.UnPackTo(t) + return t +} + +type PipelineValidation struct { + _tab flatbuffers.Table +} + +func GetRootAsPipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *PipelineValidation { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &PipelineValidation{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsPipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *PipelineValidation { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &PipelineValidation{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *PipelineValidation) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *PipelineValidation) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of single result validations (multiple errors can occur) +func (rcv *PipelineValidation) Validations(obj *SinglePipelineValidation, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *PipelineValidation) ValidationsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of single result validations (multiple errors can occur) +func PipelineValidationStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func PipelineValidationAddValidations(builder *flatbuffers.Builder, validations flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(validations), 0) +} +func PipelineValidationStartValidationsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func PipelineValidationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/SegmentLawType.go b/pkg/fbs/motion/sync/fbtypes/SegmentLawType.go new file mode 100644 index 0000000..12c43d3 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/SegmentLawType.go @@ -0,0 +1,249 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of the law +type SegmentLawType uint32 + +const ( + /// ctrlX, MLC, CamBuilder - Points-table with interpolation based on #points (0-100 Spline Interpolation, 101-... Linear Interpolation) + SegmentLawTypeSEG_LAW_TABLE_AUTO SegmentLawType = 0 + /// ctrlX, MLC, CamBuilder - Inclined sine curve + /// ctrlX, MLC, CamBuilder - Polynomial 5th order + SegmentLawTypeSEG_LAW_RR_POLY5 SegmentLawType = 256 + /// ctrlX, MLC, CamBuilder - Polynomial 5th order + SegmentLawTypeSEG_LAW_RG_POLY5 SegmentLawType = 512 + /// ctrlX, MLC, CamBuilder - Polynomial 7th order + SegmentLawTypeSEG_LAW_RG_POLY7 SegmentLawType = 768 + /// ctrlX, MLC, CamBuilder - Polynomial 5th order + SegmentLawTypeSEG_LAW_GR_POLY5 SegmentLawType = 1024 + /// ctrlX, MLC, CamBuilder - Polynomial 7th order + SegmentLawTypeSEG_LAW_GR_POLY7 SegmentLawType = 1280 + /// ctrlX, MLC, CamBuilder - Constant velocity + SegmentLawTypeSEG_LAW_GG_LINEAR SegmentLawType = 1536 + /// ctrlX, MLC, CamBuilder - Polynomial 5th order + SegmentLawTypeSEG_LAW_GG_POLY5 SegmentLawType = 1792 + /// ctrlX, MLC, CamBuilder - Standstill + SegmentLawTypeSEG_LAW_RR_LINEAR SegmentLawType = 2048 + /// ctrlX, MLC, CamBuilder - Polynomial 7th order + SegmentLawTypeSEG_LAW_RR_POLY7 SegmentLawType = 2304 + /// ctrlX, MLC, CamBuilder - Sine curve + SegmentLawTypeSEG_LAW_RR_SINUS SegmentLawType = 2560 + /// ctrlX, MLC, CamBuilder - Sinusoid of Gutman + SegmentLawTypeSEG_LAW_RR_SINUSGUTMAN SegmentLawType = 2816 + /// ctrlX, MLC, CamBuilder - Acceleration-optimal inclined sine curve + SegmentLawTypeSEG_LAW_RR_SINUSACC SegmentLawType = 3072 + /// ctrlX, MLC, CamBuilder - Torque-inclined sine curve + SegmentLawTypeSEG_LAW_RR_SINUSTOR SegmentLawType = 3328 + /// ctrlX, MLC, CamBuilder - Modified acceleration trapezoid + SegmentLawTypeSEG_LAW_RR_MOD_TRAPEZ SegmentLawType = 3584 + /// ctrlX, MLC, CamBuilder - Modified sine curve + SegmentLawTypeSEG_LAW_RR_MOD_SIN SegmentLawType = 3840 + /// ctrlX, MLC, CamBuilder - Polynomial 7th order + SegmentLawTypeSEG_LAW_GG_POLY7 SegmentLawType = 4096 + /// ctrlX, MLC, CamBuilder - Modified sine curve + SegmentLawTypeSEG_LAW_GG_MOD_SIN SegmentLawType = 4352 + /// ctrlX, MLC, CamBuilder - Velocity-limited polynomial 5th order + SegmentLawTypeSEG_LAW_RR_POLY5VLIM SegmentLawType = 4608 + /// ctrlX, MLC, CamBuilder - Quadratic parabola + SegmentLawTypeSEG_LAW_RR_PARABOLA SegmentLawType = 4864 + /// ctrlX, MLC, CamBuilder - Polynomial 8th order + SegmentLawTypeSEG_LAW_RR_POLY8 SegmentLawType = 5120 + /// ctrlX, MLC, CamBuilder - Polynomial 5th order + SegmentLawTypeSEG_LAW_BB_POLY5 SegmentLawType = 8192 + /// ctrlX, MLC, CamBuilder - Polynomial 7th order + SegmentLawTypeSEG_LAW_BB_POLY7 SegmentLawType = 8448 + /// RESERVED (not impl.) - Polynomial 8th order + SegmentLawTypeSEG_LAW_BB_POLY8 SegmentLawType = 8704 + /// EXPERIMENTAL (done) - Modified acceleration trapezoid + SegmentLawTypeSEG_LAW_RU_MOD_TRAPEZ SegmentLawType = 12288 + /// EXPERIMENTAL (in work) - Harmonic combination + SegmentLawTypeSEG_LAW_RU_HARMONIC SegmentLawType = 12544 + /// EXPERIMENTAL (done) - Modified acceleration trapezoid + SegmentLawTypeSEG_LAW_UR_MOD_TRAPEZ SegmentLawType = 12800 + /// EXPERIMENTAL (in work) - Harmonic combination + SegmentLawTypeSEG_LAW_UR_HARMONIC SegmentLawType = 13056 + /// EXPERIMENTAL (in work) - Harmonic combination + SegmentLawTypeSEG_LAW_GU_HARMONIC SegmentLawType = 13312 + /// EXPERIMENTAL (in work) - Harmonic combination + SegmentLawTypeSEG_LAW_UG_HARMONIC SegmentLawType = 13568 + /// EXPERIMENTAL (in work) - Sine + SegmentLawTypeSEG_LAW_UU_SIN SegmentLawType = 13824 + /// EXPERIMENTAL (in work) - Sine-linear-combination + SegmentLawTypeSEG_LAW_UU_SINLIN SegmentLawType = 14080 + /// ctrlX, MLC, CamBuilder - Polynomial 5th order + SegmentLawTypeSEG_LAW_POLY5 SegmentLawType = 16384 + /// ctrlX, MLC, CamBuilder - Polynomial 7th order + SegmentLawTypeSEG_LAW_POLY7 SegmentLawType = 16640 + /// ctrlX, MLC, CamBuilder - Polynomial 2nd order + SegmentLawTypeSEG_LAW_POLY2 SegmentLawType = 16896 + /// ctrlX, MLC, CamBuilder - Polynomial 3rd order + SegmentLawTypeSEG_LAW_POLY3 SegmentLawType = 17152 + /// ctrlX, MLC, CamBuilder - Polynomial 4th order + SegmentLawTypeSEG_LAW_POLY4 SegmentLawType = 17408 + /// ctrlX, MLC, CamBuilder - Polynomial 8th order + SegmentLawTypeSEG_LAW_POLY8 SegmentLawType = 17664 + /// IndraSize + SegmentLawTypeSEG_LAW_POLY4_TYPE2 SegmentLawType = 17920 + /// IndraSize + SegmentLawTypeSEG_LAW_POLY8_TYPE2 SegmentLawType = 18176 + /// ctrlX, MLC, CamBuilder - Acceleration-limited (trapezoid profile) + SegmentLawTypeSEG_LAW_GG_VELTRAPEZ_ACC SegmentLawType = 20480 + /// EXPERIMENTAL (in work) - Velocity-limited (trapezoid profile) + SegmentLawTypeSEG_LAW_GG_VELTRAPEZ_VEL SegmentLawType = 20736 + /// ctrlX, MLC, CamBuilder - Velocity-limited polynomial 5th order + SegmentLawTypeSEG_LAW_BB_POLY5VLIM SegmentLawType = 24576 + /// ctrlX, MLC, CamBuilder - Free of harmonics polynomial 5th order + SegmentLawTypeSEG_LAW_BB_POLY5OSC SegmentLawType = 24832 + /// ctrlX, MLC, CamBuilder - Acceleration-limited motion (trapezoid profile) + SegmentLawTypeSEG_LAW_INT_ACC SegmentLawType = 28672 + /// ctrlX, MLC, CamBuilder - Acceleration-limited motion (sinusoid profile) + SegmentLawTypeSEG_LAW_INT_SIN SegmentLawType = 28928 + /// ctrlX, MLC, CamBuilder - Jerk-limited motion + SegmentLawTypeSEG_LAW_INT_JRK SegmentLawType = 29184 + /// ctrlX, MLC, CamBuilder - Linear Acceleration + SegmentLawTypeSEG_LAW_ACAM SegmentLawType = 32768 + /// ctrlX, MLC, CamBuilder - Linear Velocity + SegmentLawTypeSEG_LAW_VCAM SegmentLawType = 33024 + /// ctrlX, MLC, CamBuilder - Velocity 2nd order (Start acceleration zero) + SegmentLawTypeSEG_LAW_VCAM2_A SegmentLawType = 33280 + /// ctrlX, MLC, CamBuilder - Velocity 2nd order (End acceleration zero) + SegmentLawTypeSEG_LAW_VCAM2_B SegmentLawType = 33536 + /// EXPERIMENTAL (in work) - Velocity and overshoot limited retract movement + SegmentLawTypeSEG_LAW_SCALEDCAM SegmentLawType = 33792 + /// CamBuilder - Points-table without interpolation + SegmentLawTypeSEG_LAW_TABLE SegmentLawType = 40960 + /// CamBuilder - Points-table with linear interpolation + SegmentLawTypeSEG_LAW_TABLE_LIN SegmentLawType = 41216 + /// CamBuilder - Points-table with spline interpolation + SegmentLawTypeSEG_LAW_TABLE_SPLINE SegmentLawType = 41472 + /// RESERVED (not impl.) + SegmentLawTypeSEG_LAW_TABLE_SCALED SegmentLawType = 41728 +) + +var EnumNamesSegmentLawType = map[SegmentLawType]string{ + SegmentLawTypeSEG_LAW_TABLE_AUTO: "SEG_LAW_TABLE_AUTO", + SegmentLawTypeSEG_LAW_RR_POLY5: "SEG_LAW_RR_POLY5", + SegmentLawTypeSEG_LAW_RG_POLY5: "SEG_LAW_RG_POLY5", + SegmentLawTypeSEG_LAW_RG_POLY7: "SEG_LAW_RG_POLY7", + SegmentLawTypeSEG_LAW_GR_POLY5: "SEG_LAW_GR_POLY5", + SegmentLawTypeSEG_LAW_GR_POLY7: "SEG_LAW_GR_POLY7", + SegmentLawTypeSEG_LAW_GG_LINEAR: "SEG_LAW_GG_LINEAR", + SegmentLawTypeSEG_LAW_GG_POLY5: "SEG_LAW_GG_POLY5", + SegmentLawTypeSEG_LAW_RR_LINEAR: "SEG_LAW_RR_LINEAR", + SegmentLawTypeSEG_LAW_RR_POLY7: "SEG_LAW_RR_POLY7", + SegmentLawTypeSEG_LAW_RR_SINUS: "SEG_LAW_RR_SINUS", + SegmentLawTypeSEG_LAW_RR_SINUSGUTMAN: "SEG_LAW_RR_SINUSGUTMAN", + SegmentLawTypeSEG_LAW_RR_SINUSACC: "SEG_LAW_RR_SINUSACC", + SegmentLawTypeSEG_LAW_RR_SINUSTOR: "SEG_LAW_RR_SINUSTOR", + SegmentLawTypeSEG_LAW_RR_MOD_TRAPEZ: "SEG_LAW_RR_MOD_TRAPEZ", + SegmentLawTypeSEG_LAW_RR_MOD_SIN: "SEG_LAW_RR_MOD_SIN", + SegmentLawTypeSEG_LAW_GG_POLY7: "SEG_LAW_GG_POLY7", + SegmentLawTypeSEG_LAW_GG_MOD_SIN: "SEG_LAW_GG_MOD_SIN", + SegmentLawTypeSEG_LAW_RR_POLY5VLIM: "SEG_LAW_RR_POLY5VLIM", + SegmentLawTypeSEG_LAW_RR_PARABOLA: "SEG_LAW_RR_PARABOLA", + SegmentLawTypeSEG_LAW_RR_POLY8: "SEG_LAW_RR_POLY8", + SegmentLawTypeSEG_LAW_BB_POLY5: "SEG_LAW_BB_POLY5", + SegmentLawTypeSEG_LAW_BB_POLY7: "SEG_LAW_BB_POLY7", + SegmentLawTypeSEG_LAW_BB_POLY8: "SEG_LAW_BB_POLY8", + SegmentLawTypeSEG_LAW_RU_MOD_TRAPEZ: "SEG_LAW_RU_MOD_TRAPEZ", + SegmentLawTypeSEG_LAW_RU_HARMONIC: "SEG_LAW_RU_HARMONIC", + SegmentLawTypeSEG_LAW_UR_MOD_TRAPEZ: "SEG_LAW_UR_MOD_TRAPEZ", + SegmentLawTypeSEG_LAW_UR_HARMONIC: "SEG_LAW_UR_HARMONIC", + SegmentLawTypeSEG_LAW_GU_HARMONIC: "SEG_LAW_GU_HARMONIC", + SegmentLawTypeSEG_LAW_UG_HARMONIC: "SEG_LAW_UG_HARMONIC", + SegmentLawTypeSEG_LAW_UU_SIN: "SEG_LAW_UU_SIN", + SegmentLawTypeSEG_LAW_UU_SINLIN: "SEG_LAW_UU_SINLIN", + SegmentLawTypeSEG_LAW_POLY5: "SEG_LAW_POLY5", + SegmentLawTypeSEG_LAW_POLY7: "SEG_LAW_POLY7", + SegmentLawTypeSEG_LAW_POLY2: "SEG_LAW_POLY2", + SegmentLawTypeSEG_LAW_POLY3: "SEG_LAW_POLY3", + SegmentLawTypeSEG_LAW_POLY4: "SEG_LAW_POLY4", + SegmentLawTypeSEG_LAW_POLY8: "SEG_LAW_POLY8", + SegmentLawTypeSEG_LAW_POLY4_TYPE2: "SEG_LAW_POLY4_TYPE2", + SegmentLawTypeSEG_LAW_POLY8_TYPE2: "SEG_LAW_POLY8_TYPE2", + SegmentLawTypeSEG_LAW_GG_VELTRAPEZ_ACC: "SEG_LAW_GG_VELTRAPEZ_ACC", + SegmentLawTypeSEG_LAW_GG_VELTRAPEZ_VEL: "SEG_LAW_GG_VELTRAPEZ_VEL", + SegmentLawTypeSEG_LAW_BB_POLY5VLIM: "SEG_LAW_BB_POLY5VLIM", + SegmentLawTypeSEG_LAW_BB_POLY5OSC: "SEG_LAW_BB_POLY5OSC", + SegmentLawTypeSEG_LAW_INT_ACC: "SEG_LAW_INT_ACC", + SegmentLawTypeSEG_LAW_INT_SIN: "SEG_LAW_INT_SIN", + SegmentLawTypeSEG_LAW_INT_JRK: "SEG_LAW_INT_JRK", + SegmentLawTypeSEG_LAW_ACAM: "SEG_LAW_ACAM", + SegmentLawTypeSEG_LAW_VCAM: "SEG_LAW_VCAM", + SegmentLawTypeSEG_LAW_VCAM2_A: "SEG_LAW_VCAM2_A", + SegmentLawTypeSEG_LAW_VCAM2_B: "SEG_LAW_VCAM2_B", + SegmentLawTypeSEG_LAW_SCALEDCAM: "SEG_LAW_SCALEDCAM", + SegmentLawTypeSEG_LAW_TABLE: "SEG_LAW_TABLE", + SegmentLawTypeSEG_LAW_TABLE_LIN: "SEG_LAW_TABLE_LIN", + SegmentLawTypeSEG_LAW_TABLE_SPLINE: "SEG_LAW_TABLE_SPLINE", + SegmentLawTypeSEG_LAW_TABLE_SCALED: "SEG_LAW_TABLE_SCALED", +} + +var EnumValuesSegmentLawType = map[string]SegmentLawType{ + "SEG_LAW_TABLE_AUTO": SegmentLawTypeSEG_LAW_TABLE_AUTO, + "SEG_LAW_RR_POLY5": SegmentLawTypeSEG_LAW_RR_POLY5, + "SEG_LAW_RG_POLY5": SegmentLawTypeSEG_LAW_RG_POLY5, + "SEG_LAW_RG_POLY7": SegmentLawTypeSEG_LAW_RG_POLY7, + "SEG_LAW_GR_POLY5": SegmentLawTypeSEG_LAW_GR_POLY5, + "SEG_LAW_GR_POLY7": SegmentLawTypeSEG_LAW_GR_POLY7, + "SEG_LAW_GG_LINEAR": SegmentLawTypeSEG_LAW_GG_LINEAR, + "SEG_LAW_GG_POLY5": SegmentLawTypeSEG_LAW_GG_POLY5, + "SEG_LAW_RR_LINEAR": SegmentLawTypeSEG_LAW_RR_LINEAR, + "SEG_LAW_RR_POLY7": SegmentLawTypeSEG_LAW_RR_POLY7, + "SEG_LAW_RR_SINUS": SegmentLawTypeSEG_LAW_RR_SINUS, + "SEG_LAW_RR_SINUSGUTMAN": SegmentLawTypeSEG_LAW_RR_SINUSGUTMAN, + "SEG_LAW_RR_SINUSACC": SegmentLawTypeSEG_LAW_RR_SINUSACC, + "SEG_LAW_RR_SINUSTOR": SegmentLawTypeSEG_LAW_RR_SINUSTOR, + "SEG_LAW_RR_MOD_TRAPEZ": SegmentLawTypeSEG_LAW_RR_MOD_TRAPEZ, + "SEG_LAW_RR_MOD_SIN": SegmentLawTypeSEG_LAW_RR_MOD_SIN, + "SEG_LAW_GG_POLY7": SegmentLawTypeSEG_LAW_GG_POLY7, + "SEG_LAW_GG_MOD_SIN": SegmentLawTypeSEG_LAW_GG_MOD_SIN, + "SEG_LAW_RR_POLY5VLIM": SegmentLawTypeSEG_LAW_RR_POLY5VLIM, + "SEG_LAW_RR_PARABOLA": SegmentLawTypeSEG_LAW_RR_PARABOLA, + "SEG_LAW_RR_POLY8": SegmentLawTypeSEG_LAW_RR_POLY8, + "SEG_LAW_BB_POLY5": SegmentLawTypeSEG_LAW_BB_POLY5, + "SEG_LAW_BB_POLY7": SegmentLawTypeSEG_LAW_BB_POLY7, + "SEG_LAW_BB_POLY8": SegmentLawTypeSEG_LAW_BB_POLY8, + "SEG_LAW_RU_MOD_TRAPEZ": SegmentLawTypeSEG_LAW_RU_MOD_TRAPEZ, + "SEG_LAW_RU_HARMONIC": SegmentLawTypeSEG_LAW_RU_HARMONIC, + "SEG_LAW_UR_MOD_TRAPEZ": SegmentLawTypeSEG_LAW_UR_MOD_TRAPEZ, + "SEG_LAW_UR_HARMONIC": SegmentLawTypeSEG_LAW_UR_HARMONIC, + "SEG_LAW_GU_HARMONIC": SegmentLawTypeSEG_LAW_GU_HARMONIC, + "SEG_LAW_UG_HARMONIC": SegmentLawTypeSEG_LAW_UG_HARMONIC, + "SEG_LAW_UU_SIN": SegmentLawTypeSEG_LAW_UU_SIN, + "SEG_LAW_UU_SINLIN": SegmentLawTypeSEG_LAW_UU_SINLIN, + "SEG_LAW_POLY5": SegmentLawTypeSEG_LAW_POLY5, + "SEG_LAW_POLY7": SegmentLawTypeSEG_LAW_POLY7, + "SEG_LAW_POLY2": SegmentLawTypeSEG_LAW_POLY2, + "SEG_LAW_POLY3": SegmentLawTypeSEG_LAW_POLY3, + "SEG_LAW_POLY4": SegmentLawTypeSEG_LAW_POLY4, + "SEG_LAW_POLY8": SegmentLawTypeSEG_LAW_POLY8, + "SEG_LAW_POLY4_TYPE2": SegmentLawTypeSEG_LAW_POLY4_TYPE2, + "SEG_LAW_POLY8_TYPE2": SegmentLawTypeSEG_LAW_POLY8_TYPE2, + "SEG_LAW_GG_VELTRAPEZ_ACC": SegmentLawTypeSEG_LAW_GG_VELTRAPEZ_ACC, + "SEG_LAW_GG_VELTRAPEZ_VEL": SegmentLawTypeSEG_LAW_GG_VELTRAPEZ_VEL, + "SEG_LAW_BB_POLY5VLIM": SegmentLawTypeSEG_LAW_BB_POLY5VLIM, + "SEG_LAW_BB_POLY5OSC": SegmentLawTypeSEG_LAW_BB_POLY5OSC, + "SEG_LAW_INT_ACC": SegmentLawTypeSEG_LAW_INT_ACC, + "SEG_LAW_INT_SIN": SegmentLawTypeSEG_LAW_INT_SIN, + "SEG_LAW_INT_JRK": SegmentLawTypeSEG_LAW_INT_JRK, + "SEG_LAW_ACAM": SegmentLawTypeSEG_LAW_ACAM, + "SEG_LAW_VCAM": SegmentLawTypeSEG_LAW_VCAM, + "SEG_LAW_VCAM2_A": SegmentLawTypeSEG_LAW_VCAM2_A, + "SEG_LAW_VCAM2_B": SegmentLawTypeSEG_LAW_VCAM2_B, + "SEG_LAW_SCALEDCAM": SegmentLawTypeSEG_LAW_SCALEDCAM, + "SEG_LAW_TABLE": SegmentLawTypeSEG_LAW_TABLE, + "SEG_LAW_TABLE_LIN": SegmentLawTypeSEG_LAW_TABLE_LIN, + "SEG_LAW_TABLE_SPLINE": SegmentLawTypeSEG_LAW_TABLE_SPLINE, + "SEG_LAW_TABLE_SCALED": SegmentLawTypeSEG_LAW_TABLE_SCALED, +} + +func (v SegmentLawType) String() string { + if s, ok := EnumNamesSegmentLawType[v]; ok { + return s + } + return "SegmentLawType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/SegmentSyncType.go b/pkg/fbs/motion/sync/fbtypes/SegmentSyncType.go new file mode 100644 index 0000000..951db9e --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/SegmentSyncType.go @@ -0,0 +1,44 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of segment transition +type SegmentSyncType int8 + +const ( + /// Analytic profile, cam profile + SegmentSyncTypeSEG_DEFAULT SegmentSyncType = 0 + /// X:rel Y:rel + SegmentSyncTypeSEG_FLEX_REL_REL SegmentSyncType = 1 + /// X:abs Y:rel + SegmentSyncTypeSEG_FLEX_ABS_REL SegmentSyncType = 2 + /// X:rel Y:abs + SegmentSyncTypeSEG_FLEX_REL_ABS SegmentSyncType = 3 + /// X:abs Y:abs + SegmentSyncTypeSEG_FLEX_ABS_ABS SegmentSyncType = 4 +) + +var EnumNamesSegmentSyncType = map[SegmentSyncType]string{ + SegmentSyncTypeSEG_DEFAULT: "SEG_DEFAULT", + SegmentSyncTypeSEG_FLEX_REL_REL: "SEG_FLEX_REL_REL", + SegmentSyncTypeSEG_FLEX_ABS_REL: "SEG_FLEX_ABS_REL", + SegmentSyncTypeSEG_FLEX_REL_ABS: "SEG_FLEX_REL_ABS", + SegmentSyncTypeSEG_FLEX_ABS_ABS: "SEG_FLEX_ABS_ABS", +} + +var EnumValuesSegmentSyncType = map[string]SegmentSyncType{ + "SEG_DEFAULT": SegmentSyncTypeSEG_DEFAULT, + "SEG_FLEX_REL_REL": SegmentSyncTypeSEG_FLEX_REL_REL, + "SEG_FLEX_ABS_REL": SegmentSyncTypeSEG_FLEX_ABS_REL, + "SEG_FLEX_REL_ABS": SegmentSyncTypeSEG_FLEX_REL_ABS, + "SEG_FLEX_ABS_ABS": SegmentSyncTypeSEG_FLEX_ABS_ABS, +} + +func (v SegmentSyncType) String() string { + if s, ok := EnumNamesSegmentSyncType[v]; ok { + return s + } + return "SegmentSyncType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/SinglePipelineValidation.go b/pkg/fbs/motion/sync/fbtypes/SinglePipelineValidation.go index db26284..a3883f7 100644 --- a/pkg/fbs/motion/sync/fbtypes/SinglePipelineValidation.go +++ b/pkg/fbs/motion/sync/fbtypes/SinglePipelineValidation.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// single result of the validation of a calculation pipeline -type SinglePipelineValidationT struct { - MainDiag uint32 - DetailDiag uint32 - Uri string - AddInfo string -} - -func (t *SinglePipelineValidationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - uriOffset := builder.CreateString(t.Uri) - addInfoOffset := builder.CreateString(t.AddInfo) - SinglePipelineValidationStart(builder) - SinglePipelineValidationAddMainDiag(builder, t.MainDiag) - SinglePipelineValidationAddDetailDiag(builder, t.DetailDiag) - SinglePipelineValidationAddUri(builder, uriOffset) - SinglePipelineValidationAddAddInfo(builder, addInfoOffset) - return SinglePipelineValidationEnd(builder) -} - -func (rcv *SinglePipelineValidation) UnPackTo(t *SinglePipelineValidationT) { - t.MainDiag = rcv.MainDiag() - t.DetailDiag = rcv.DetailDiag() - t.Uri = string(rcv.Uri()) - t.AddInfo = string(rcv.AddInfo()) -} - -func (rcv *SinglePipelineValidation) UnPack() *SinglePipelineValidationT { - if rcv == nil { return nil } - t := &SinglePipelineValidationT{} - rcv.UnPackTo(t) - return t -} - -type SinglePipelineValidation struct { - _tab flatbuffers.Table -} - -func GetRootAsSinglePipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *SinglePipelineValidation { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &SinglePipelineValidation{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsSinglePipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *SinglePipelineValidation { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &SinglePipelineValidation{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *SinglePipelineValidation) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *SinglePipelineValidation) Table() flatbuffers.Table { - return rcv._tab -} - -/// main diagnosis code -func (rcv *SinglePipelineValidation) MainDiag() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// main diagnosis code -func (rcv *SinglePipelineValidation) MutateMainDiag(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -/// detail diagnosis code -func (rcv *SinglePipelineValidation) DetailDiag() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -/// detail diagnosis code -func (rcv *SinglePipelineValidation) MutateDetailDiag(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -/// URI of the faulty instance -func (rcv *SinglePipelineValidation) Uri() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// URI of the faulty instance -/// additional infomation -func (rcv *SinglePipelineValidation) AddInfo() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// additional infomation -func SinglePipelineValidationStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func SinglePipelineValidationAddMainDiag(builder *flatbuffers.Builder, mainDiag uint32) { - builder.PrependUint32Slot(0, mainDiag, 0) -} -func SinglePipelineValidationAddDetailDiag(builder *flatbuffers.Builder, detailDiag uint32) { - builder.PrependUint32Slot(1, detailDiag, 0) -} -func SinglePipelineValidationAddUri(builder *flatbuffers.Builder, uri flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(uri), 0) -} -func SinglePipelineValidationAddAddInfo(builder *flatbuffers.Builder, addInfo flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(addInfo), 0) -} -func SinglePipelineValidationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// single result of the validation of a calculation pipeline +type SinglePipelineValidationT struct { + MainDiag uint32 + DetailDiag uint32 + Uri string + AddInfo string +} + +func (t *SinglePipelineValidationT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + uriOffset := builder.CreateString(t.Uri) + addInfoOffset := builder.CreateString(t.AddInfo) + SinglePipelineValidationStart(builder) + SinglePipelineValidationAddMainDiag(builder, t.MainDiag) + SinglePipelineValidationAddDetailDiag(builder, t.DetailDiag) + SinglePipelineValidationAddUri(builder, uriOffset) + SinglePipelineValidationAddAddInfo(builder, addInfoOffset) + return SinglePipelineValidationEnd(builder) +} + +func (rcv *SinglePipelineValidation) UnPackTo(t *SinglePipelineValidationT) { + t.MainDiag = rcv.MainDiag() + t.DetailDiag = rcv.DetailDiag() + t.Uri = string(rcv.Uri()) + t.AddInfo = string(rcv.AddInfo()) +} + +func (rcv *SinglePipelineValidation) UnPack() *SinglePipelineValidationT { + if rcv == nil { return nil } + t := &SinglePipelineValidationT{} + rcv.UnPackTo(t) + return t +} + +type SinglePipelineValidation struct { + _tab flatbuffers.Table +} + +func GetRootAsSinglePipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *SinglePipelineValidation { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SinglePipelineValidation{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSinglePipelineValidation(buf []byte, offset flatbuffers.UOffsetT) *SinglePipelineValidation { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SinglePipelineValidation{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SinglePipelineValidation) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SinglePipelineValidation) Table() flatbuffers.Table { + return rcv._tab +} + +/// main diagnosis code +func (rcv *SinglePipelineValidation) MainDiag() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// main diagnosis code +func (rcv *SinglePipelineValidation) MutateMainDiag(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +/// detail diagnosis code +func (rcv *SinglePipelineValidation) DetailDiag() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// detail diagnosis code +func (rcv *SinglePipelineValidation) MutateDetailDiag(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +/// URI of the faulty instance +func (rcv *SinglePipelineValidation) Uri() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// URI of the faulty instance +/// additional infomation +func (rcv *SinglePipelineValidation) AddInfo() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// additional infomation +func SinglePipelineValidationStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SinglePipelineValidationAddMainDiag(builder *flatbuffers.Builder, mainDiag uint32) { + builder.PrependUint32Slot(0, mainDiag, 0) +} +func SinglePipelineValidationAddDetailDiag(builder *flatbuffers.Builder, detailDiag uint32) { + builder.PrependUint32Slot(1, detailDiag, 0) +} +func SinglePipelineValidationAddUri(builder *flatbuffers.Builder, uri flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(uri), 0) +} +func SinglePipelineValidationAddAddInfo(builder *flatbuffers.Builder, addInfo flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(addInfo), 0) +} +func SinglePipelineValidationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowErrorReaction.go b/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowErrorReaction.go index 581eb2e..5656c8f 100644 --- a/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowErrorReaction.go +++ b/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowErrorReaction.go @@ -1,36 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// Definition of some possible error reaction, when the slave axis is sync'd, but can't follow the result of the calculation pipeline -type SlaveCantFollowErrorReaction int8 - -const ( - /// set the slave axis to error and decouple it from the master + create a diagnosis error - SlaveCantFollowErrorReactionCREATE_ERROR SlaveCantFollowErrorReaction = 0 - /// let the slave axis go back to unsync'd and use the chasing interpolator to follow - SlaveCantFollowErrorReactionTRY_TO_RESYNC SlaveCantFollowErrorReaction = 1 - /// keep the slave axis sync'd and exceed the axis limits - SlaveCantFollowErrorReactionKEEP_SYNCHRONIZED SlaveCantFollowErrorReaction = 2 -) - -var EnumNamesSlaveCantFollowErrorReaction = map[SlaveCantFollowErrorReaction]string{ - SlaveCantFollowErrorReactionCREATE_ERROR: "CREATE_ERROR", - SlaveCantFollowErrorReactionTRY_TO_RESYNC: "TRY_TO_RESYNC", - SlaveCantFollowErrorReactionKEEP_SYNCHRONIZED: "KEEP_SYNCHRONIZED", -} - -var EnumValuesSlaveCantFollowErrorReaction = map[string]SlaveCantFollowErrorReaction{ - "CREATE_ERROR": SlaveCantFollowErrorReactionCREATE_ERROR, - "TRY_TO_RESYNC": SlaveCantFollowErrorReactionTRY_TO_RESYNC, - "KEEP_SYNCHRONIZED": SlaveCantFollowErrorReactionKEEP_SYNCHRONIZED, -} - -func (v SlaveCantFollowErrorReaction) String() string { - if s, ok := EnumNamesSlaveCantFollowErrorReaction[v]; ok { - return s - } - return "SlaveCantFollowErrorReaction(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// Definition of some possible error reaction, when the slave axis is sync'd, but can't follow the result of the calculation pipeline +type SlaveCantFollowErrorReaction int8 + +const ( + /// set the slave axis to error and decouple it from the master + create a diagnosis error + SlaveCantFollowErrorReactionCREATE_ERROR SlaveCantFollowErrorReaction = 0 + /// let the slave axis go back to unsync'd and use the chasing interpolator to follow + SlaveCantFollowErrorReactionTRY_TO_RESYNC SlaveCantFollowErrorReaction = 1 + /// keep the slave axis sync'd and exceed the axis limits + SlaveCantFollowErrorReactionKEEP_SYNCHRONIZED SlaveCantFollowErrorReaction = 2 +) + +var EnumNamesSlaveCantFollowErrorReaction = map[SlaveCantFollowErrorReaction]string{ + SlaveCantFollowErrorReactionCREATE_ERROR: "CREATE_ERROR", + SlaveCantFollowErrorReactionTRY_TO_RESYNC: "TRY_TO_RESYNC", + SlaveCantFollowErrorReactionKEEP_SYNCHRONIZED: "KEEP_SYNCHRONIZED", +} + +var EnumValuesSlaveCantFollowErrorReaction = map[string]SlaveCantFollowErrorReaction{ + "CREATE_ERROR": SlaveCantFollowErrorReactionCREATE_ERROR, + "TRY_TO_RESYNC": SlaveCantFollowErrorReactionTRY_TO_RESYNC, + "KEEP_SYNCHRONIZED": SlaveCantFollowErrorReactionKEEP_SYNCHRONIZED, +} + +func (v SlaveCantFollowErrorReaction) String() string { + if s, ok := EnumNamesSlaveCantFollowErrorReaction[v]; ok { + return s + } + return "SlaveCantFollowErrorReaction(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowMessageType.go b/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowMessageType.go index 43d406f..2e53da8 100644 --- a/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowMessageType.go +++ b/pkg/fbs/motion/sync/fbtypes/SlaveCantFollowMessageType.go @@ -1,36 +1,36 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// Definition of diagnosis type, when SlaveCantFollowErrorReaction is TRY_TO_RESYNC or KEEP_SYNCHRONIZED -type SlaveCantFollowMessageType int8 - -const ( - /// don't create any diagnosis - SlaveCantFollowMessageTypeNONE SlaveCantFollowMessageType = 0 - /// create diagnosis message - SlaveCantFollowMessageTypeMESSAGE SlaveCantFollowMessageType = 1 - /// create diagnosis warning - SlaveCantFollowMessageTypeWARNING SlaveCantFollowMessageType = 2 -) - -var EnumNamesSlaveCantFollowMessageType = map[SlaveCantFollowMessageType]string{ - SlaveCantFollowMessageTypeNONE: "NONE", - SlaveCantFollowMessageTypeMESSAGE: "MESSAGE", - SlaveCantFollowMessageTypeWARNING: "WARNING", -} - -var EnumValuesSlaveCantFollowMessageType = map[string]SlaveCantFollowMessageType{ - "NONE": SlaveCantFollowMessageTypeNONE, - "MESSAGE": SlaveCantFollowMessageTypeMESSAGE, - "WARNING": SlaveCantFollowMessageTypeWARNING, -} - -func (v SlaveCantFollowMessageType) String() string { - if s, ok := EnumNamesSlaveCantFollowMessageType[v]; ok { - return s - } - return "SlaveCantFollowMessageType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// Definition of diagnosis type, when SlaveCantFollowErrorReaction is TRY_TO_RESYNC or KEEP_SYNCHRONIZED +type SlaveCantFollowMessageType int8 + +const ( + /// don't create any diagnosis + SlaveCantFollowMessageTypeNONE SlaveCantFollowMessageType = 0 + /// create diagnosis message + SlaveCantFollowMessageTypeMESSAGE SlaveCantFollowMessageType = 1 + /// create diagnosis warning + SlaveCantFollowMessageTypeWARNING SlaveCantFollowMessageType = 2 +) + +var EnumNamesSlaveCantFollowMessageType = map[SlaveCantFollowMessageType]string{ + SlaveCantFollowMessageTypeNONE: "NONE", + SlaveCantFollowMessageTypeMESSAGE: "MESSAGE", + SlaveCantFollowMessageTypeWARNING: "WARNING", +} + +var EnumValuesSlaveCantFollowMessageType = map[string]SlaveCantFollowMessageType{ + "NONE": SlaveCantFollowMessageTypeNONE, + "MESSAGE": SlaveCantFollowMessageTypeMESSAGE, + "WARNING": SlaveCantFollowMessageTypeWARNING, +} + +func (v SlaveCantFollowMessageType) String() string { + if s, ok := EnumNamesSlaveCantFollowMessageType[v]; ok { + return s + } + return "SlaveCantFollowMessageType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/StateCalcSingleStep.go b/pkg/fbs/motion/sync/fbtypes/StateCalcSingleStep.go index 638d517..fa32624 100644 --- a/pkg/fbs/motion/sync/fbtypes/StateCalcSingleStep.go +++ b/pkg/fbs/motion/sync/fbtypes/StateCalcSingleStep.go @@ -1,256 +1,256 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// a single supported calculation step -type StateCalcSingleStepT struct { - Name string - Description string - DocuRef string - Inputs []DataID - Outputs []DataID - Parameter *StateCalcStepParamsT - MutexParameter *StateCalcStepMutexParamT -} - -func (t *StateCalcSingleStepT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - descriptionOffset := builder.CreateString(t.Description) - docuRefOffset := builder.CreateString(t.DocuRef) - inputsOffset := flatbuffers.UOffsetT(0) - if t.Inputs != nil { - inputsLength := len(t.Inputs) - StateCalcSingleStepStartInputsVector(builder, inputsLength) - for j := inputsLength - 1; j >= 0; j-- { - builder.PrependInt8(int8(t.Inputs[j])) - } - inputsOffset = builder.EndVector(inputsLength) - } - outputsOffset := flatbuffers.UOffsetT(0) - if t.Outputs != nil { - outputsLength := len(t.Outputs) - StateCalcSingleStepStartOutputsVector(builder, outputsLength) - for j := outputsLength - 1; j >= 0; j-- { - builder.PrependInt8(int8(t.Outputs[j])) - } - outputsOffset = builder.EndVector(outputsLength) - } - parameterOffset := t.Parameter.Pack(builder) - mutexParameterOffset := t.MutexParameter.Pack(builder) - StateCalcSingleStepStart(builder) - StateCalcSingleStepAddName(builder, nameOffset) - StateCalcSingleStepAddDescription(builder, descriptionOffset) - StateCalcSingleStepAddDocuRef(builder, docuRefOffset) - StateCalcSingleStepAddInputs(builder, inputsOffset) - StateCalcSingleStepAddOutputs(builder, outputsOffset) - StateCalcSingleStepAddParameter(builder, parameterOffset) - StateCalcSingleStepAddMutexParameter(builder, mutexParameterOffset) - return StateCalcSingleStepEnd(builder) -} - -func (rcv *StateCalcSingleStep) UnPackTo(t *StateCalcSingleStepT) { - t.Name = string(rcv.Name()) - t.Description = string(rcv.Description()) - t.DocuRef = string(rcv.DocuRef()) - inputsLength := rcv.InputsLength() - t.Inputs = make([]DataID, inputsLength) - for j := 0; j < inputsLength; j++ { - t.Inputs[j] = rcv.Inputs(j) - } - outputsLength := rcv.OutputsLength() - t.Outputs = make([]DataID, outputsLength) - for j := 0; j < outputsLength; j++ { - t.Outputs[j] = rcv.Outputs(j) - } - t.Parameter = rcv.Parameter(nil).UnPack() - t.MutexParameter = rcv.MutexParameter(nil).UnPack() -} - -func (rcv *StateCalcSingleStep) UnPack() *StateCalcSingleStepT { - if rcv == nil { return nil } - t := &StateCalcSingleStepT{} - rcv.UnPackTo(t) - return t -} - -type StateCalcSingleStep struct { - _tab flatbuffers.Table -} - -func GetRootAsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSingleStep { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StateCalcSingleStep{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSingleStep { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StateCalcSingleStep{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StateCalcSingleStep) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StateCalcSingleStep) Table() flatbuffers.Table { - return rcv._tab -} - -/// Name of the calculation step (indicated by its type ID) -func (rcv *StateCalcSingleStep) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// Name of the calculation step (indicated by its type ID) -/// what the calculation step does -func (rcv *StateCalcSingleStep) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// what the calculation step does -/// reference to user manual -func (rcv *StateCalcSingleStep) DocuRef() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// reference to user manual -/// vector of required input types -func (rcv *StateCalcSingleStep) Inputs(j int) DataID { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return DataID(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) - } - return 0 -} - -func (rcv *StateCalcSingleStep) InputsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of required input types -func (rcv *StateCalcSingleStep) MutateInputs(j int, n DataID) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) - } - return false -} - -/// vector of required output types -func (rcv *StateCalcSingleStep) Outputs(j int) DataID { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return DataID(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) - } - return 0 -} - -func (rcv *StateCalcSingleStep) OutputsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of required output types -func (rcv *StateCalcSingleStep) MutateOutputs(j int, n DataID) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) - } - return false -} - -/// parameters of the calculation step -func (rcv *StateCalcSingleStep) Parameter(obj *StateCalcStepParams) *StateCalcStepParams { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(StateCalcStepParams) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// parameters of the calculation step -/// mutex groups of parameters (identified by the names), that are optional and exclude each other -func (rcv *StateCalcSingleStep) MutexParameter(obj *StateCalcStepMutexParam) *StateCalcStepMutexParam { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(StateCalcStepMutexParam) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -/// mutex groups of parameters (identified by the names), that are optional and exclude each other -func StateCalcSingleStepStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func StateCalcSingleStepAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func StateCalcSingleStepAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) -} -func StateCalcSingleStepAddDocuRef(builder *flatbuffers.Builder, docuRef flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(docuRef), 0) -} -func StateCalcSingleStepAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(inputs), 0) -} -func StateCalcSingleStepStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func StateCalcSingleStepAddOutputs(builder *flatbuffers.Builder, outputs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(outputs), 0) -} -func StateCalcSingleStepStartOutputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func StateCalcSingleStepAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(parameter), 0) -} -func StateCalcSingleStepAddMutexParameter(builder *flatbuffers.Builder, mutexParameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(mutexParameter), 0) -} -func StateCalcSingleStepEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// a single supported calculation step +type StateCalcSingleStepT struct { + Name string + Description string + DocuRef string + Inputs []DataID + Outputs []DataID + Parameter *StateCalcStepParamsT + MutexParameter *StateCalcStepMutexParamT +} + +func (t *StateCalcSingleStepT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + docuRefOffset := builder.CreateString(t.DocuRef) + inputsOffset := flatbuffers.UOffsetT(0) + if t.Inputs != nil { + inputsLength := len(t.Inputs) + StateCalcSingleStepStartInputsVector(builder, inputsLength) + for j := inputsLength - 1; j >= 0; j-- { + builder.PrependInt8(int8(t.Inputs[j])) + } + inputsOffset = builder.EndVector(inputsLength) + } + outputsOffset := flatbuffers.UOffsetT(0) + if t.Outputs != nil { + outputsLength := len(t.Outputs) + StateCalcSingleStepStartOutputsVector(builder, outputsLength) + for j := outputsLength - 1; j >= 0; j-- { + builder.PrependInt8(int8(t.Outputs[j])) + } + outputsOffset = builder.EndVector(outputsLength) + } + parameterOffset := t.Parameter.Pack(builder) + mutexParameterOffset := t.MutexParameter.Pack(builder) + StateCalcSingleStepStart(builder) + StateCalcSingleStepAddName(builder, nameOffset) + StateCalcSingleStepAddDescription(builder, descriptionOffset) + StateCalcSingleStepAddDocuRef(builder, docuRefOffset) + StateCalcSingleStepAddInputs(builder, inputsOffset) + StateCalcSingleStepAddOutputs(builder, outputsOffset) + StateCalcSingleStepAddParameter(builder, parameterOffset) + StateCalcSingleStepAddMutexParameter(builder, mutexParameterOffset) + return StateCalcSingleStepEnd(builder) +} + +func (rcv *StateCalcSingleStep) UnPackTo(t *StateCalcSingleStepT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + t.DocuRef = string(rcv.DocuRef()) + inputsLength := rcv.InputsLength() + t.Inputs = make([]DataID, inputsLength) + for j := 0; j < inputsLength; j++ { + t.Inputs[j] = rcv.Inputs(j) + } + outputsLength := rcv.OutputsLength() + t.Outputs = make([]DataID, outputsLength) + for j := 0; j < outputsLength; j++ { + t.Outputs[j] = rcv.Outputs(j) + } + t.Parameter = rcv.Parameter(nil).UnPack() + t.MutexParameter = rcv.MutexParameter(nil).UnPack() +} + +func (rcv *StateCalcSingleStep) UnPack() *StateCalcSingleStepT { + if rcv == nil { return nil } + t := &StateCalcSingleStepT{} + rcv.UnPackTo(t) + return t +} + +type StateCalcSingleStep struct { + _tab flatbuffers.Table +} + +func GetRootAsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSingleStep { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StateCalcSingleStep{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStateCalcSingleStep(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSingleStep { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StateCalcSingleStep{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StateCalcSingleStep) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StateCalcSingleStep) Table() flatbuffers.Table { + return rcv._tab +} + +/// Name of the calculation step (indicated by its type ID) +func (rcv *StateCalcSingleStep) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// Name of the calculation step (indicated by its type ID) +/// what the calculation step does +func (rcv *StateCalcSingleStep) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// what the calculation step does +/// reference to user manual +func (rcv *StateCalcSingleStep) DocuRef() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// reference to user manual +/// vector of required input types +func (rcv *StateCalcSingleStep) Inputs(j int) DataID { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return DataID(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) + } + return 0 +} + +func (rcv *StateCalcSingleStep) InputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of required input types +func (rcv *StateCalcSingleStep) MutateInputs(j int, n DataID) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) + } + return false +} + +/// vector of required output types +func (rcv *StateCalcSingleStep) Outputs(j int) DataID { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return DataID(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) + } + return 0 +} + +func (rcv *StateCalcSingleStep) OutputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of required output types +func (rcv *StateCalcSingleStep) MutateOutputs(j int, n DataID) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) + } + return false +} + +/// parameters of the calculation step +func (rcv *StateCalcSingleStep) Parameter(obj *StateCalcStepParams) *StateCalcStepParams { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(StateCalcStepParams) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// parameters of the calculation step +/// mutex groups of parameters (identified by the names), that are optional and exclude each other +func (rcv *StateCalcSingleStep) MutexParameter(obj *StateCalcStepMutexParam) *StateCalcStepMutexParam { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(StateCalcStepMutexParam) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// mutex groups of parameters (identified by the names), that are optional and exclude each other +func StateCalcSingleStepStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func StateCalcSingleStepAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func StateCalcSingleStepAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func StateCalcSingleStepAddDocuRef(builder *flatbuffers.Builder, docuRef flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(docuRef), 0) +} +func StateCalcSingleStepAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(inputs), 0) +} +func StateCalcSingleStepStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func StateCalcSingleStepAddOutputs(builder *flatbuffers.Builder, outputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(outputs), 0) +} +func StateCalcSingleStepStartOutputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func StateCalcSingleStepAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(parameter), 0) +} +func StateCalcSingleStepAddMutexParameter(builder *flatbuffers.Builder, mutexParameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(mutexParameter), 0) +} +func StateCalcSingleStepEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/StateCalcStepMutexParam.go b/pkg/fbs/motion/sync/fbtypes/StateCalcStepMutexParam.go index dc216b3..d20e612 100644 --- a/pkg/fbs/motion/sync/fbtypes/StateCalcStepMutexParam.go +++ b/pkg/fbs/motion/sync/fbtypes/StateCalcStepMutexParam.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StateCalcStepMutexParamT struct { - MutexParam []*MutexGroupPart2T -} - -func (t *StateCalcStepMutexParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - mutexParamOffset := flatbuffers.UOffsetT(0) - if t.MutexParam != nil { - mutexParamLength := len(t.MutexParam) - mutexParamOffsets := make([]flatbuffers.UOffsetT, mutexParamLength) - for j := 0; j < mutexParamLength; j++ { - mutexParamOffsets[j] = t.MutexParam[j].Pack(builder) - } - StateCalcStepMutexParamStartMutexParamVector(builder, mutexParamLength) - for j := mutexParamLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(mutexParamOffsets[j]) - } - mutexParamOffset = builder.EndVector(mutexParamLength) - } - StateCalcStepMutexParamStart(builder) - StateCalcStepMutexParamAddMutexParam(builder, mutexParamOffset) - return StateCalcStepMutexParamEnd(builder) -} - -func (rcv *StateCalcStepMutexParam) UnPackTo(t *StateCalcStepMutexParamT) { - mutexParamLength := rcv.MutexParamLength() - t.MutexParam = make([]*MutexGroupPart2T, mutexParamLength) - for j := 0; j < mutexParamLength; j++ { - x := MutexGroupPart2{} - rcv.MutexParam(&x, j) - t.MutexParam[j] = x.UnPack() - } -} - -func (rcv *StateCalcStepMutexParam) UnPack() *StateCalcStepMutexParamT { - if rcv == nil { return nil } - t := &StateCalcStepMutexParamT{} - rcv.UnPackTo(t) - return t -} - -type StateCalcStepMutexParam struct { - _tab flatbuffers.Table -} - -func GetRootAsStateCalcStepMutexParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepMutexParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StateCalcStepMutexParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStateCalcStepMutexParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepMutexParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StateCalcStepMutexParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StateCalcStepMutexParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StateCalcStepMutexParam) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StateCalcStepMutexParam) MutexParam(obj *MutexGroupPart2, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *StateCalcStepMutexParam) MutexParamLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func StateCalcStepMutexParamStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StateCalcStepMutexParamAddMutexParam(builder *flatbuffers.Builder, mutexParam flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mutexParam), 0) -} -func StateCalcStepMutexParamStartMutexParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func StateCalcStepMutexParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StateCalcStepMutexParamT struct { + MutexParam []*MutexGroupPart2T +} + +func (t *StateCalcStepMutexParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + mutexParamOffset := flatbuffers.UOffsetT(0) + if t.MutexParam != nil { + mutexParamLength := len(t.MutexParam) + mutexParamOffsets := make([]flatbuffers.UOffsetT, mutexParamLength) + for j := 0; j < mutexParamLength; j++ { + mutexParamOffsets[j] = t.MutexParam[j].Pack(builder) + } + StateCalcStepMutexParamStartMutexParamVector(builder, mutexParamLength) + for j := mutexParamLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(mutexParamOffsets[j]) + } + mutexParamOffset = builder.EndVector(mutexParamLength) + } + StateCalcStepMutexParamStart(builder) + StateCalcStepMutexParamAddMutexParam(builder, mutexParamOffset) + return StateCalcStepMutexParamEnd(builder) +} + +func (rcv *StateCalcStepMutexParam) UnPackTo(t *StateCalcStepMutexParamT) { + mutexParamLength := rcv.MutexParamLength() + t.MutexParam = make([]*MutexGroupPart2T, mutexParamLength) + for j := 0; j < mutexParamLength; j++ { + x := MutexGroupPart2{} + rcv.MutexParam(&x, j) + t.MutexParam[j] = x.UnPack() + } +} + +func (rcv *StateCalcStepMutexParam) UnPack() *StateCalcStepMutexParamT { + if rcv == nil { return nil } + t := &StateCalcStepMutexParamT{} + rcv.UnPackTo(t) + return t +} + +type StateCalcStepMutexParam struct { + _tab flatbuffers.Table +} + +func GetRootAsStateCalcStepMutexParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepMutexParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StateCalcStepMutexParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStateCalcStepMutexParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepMutexParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StateCalcStepMutexParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StateCalcStepMutexParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StateCalcStepMutexParam) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *StateCalcStepMutexParam) MutexParam(obj *MutexGroupPart2, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *StateCalcStepMutexParam) MutexParamLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func StateCalcStepMutexParamStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StateCalcStepMutexParamAddMutexParam(builder *flatbuffers.Builder, mutexParam flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(mutexParam), 0) +} +func StateCalcStepMutexParamStartMutexParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func StateCalcStepMutexParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/StateCalcStepParams.go b/pkg/fbs/motion/sync/fbtypes/StateCalcStepParams.go index 3f9118c..9fd5675 100644 --- a/pkg/fbs/motion/sync/fbtypes/StateCalcStepParams.go +++ b/pkg/fbs/motion/sync/fbtypes/StateCalcStepParams.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// all supported calculation steps -type StateCalcStepParamsT struct { - Params []*StateCalcStepSingleParamT -} - -func (t *StateCalcStepParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - paramsOffset := flatbuffers.UOffsetT(0) - if t.Params != nil { - paramsLength := len(t.Params) - paramsOffsets := make([]flatbuffers.UOffsetT, paramsLength) - for j := 0; j < paramsLength; j++ { - paramsOffsets[j] = t.Params[j].Pack(builder) - } - StateCalcStepParamsStartParamsVector(builder, paramsLength) - for j := paramsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(paramsOffsets[j]) - } - paramsOffset = builder.EndVector(paramsLength) - } - StateCalcStepParamsStart(builder) - StateCalcStepParamsAddParams(builder, paramsOffset) - return StateCalcStepParamsEnd(builder) -} - -func (rcv *StateCalcStepParams) UnPackTo(t *StateCalcStepParamsT) { - paramsLength := rcv.ParamsLength() - t.Params = make([]*StateCalcStepSingleParamT, paramsLength) - for j := 0; j < paramsLength; j++ { - x := StateCalcStepSingleParam{} - rcv.Params(&x, j) - t.Params[j] = x.UnPack() - } -} - -func (rcv *StateCalcStepParams) UnPack() *StateCalcStepParamsT { - if rcv == nil { return nil } - t := &StateCalcStepParamsT{} - rcv.UnPackTo(t) - return t -} - -type StateCalcStepParams struct { - _tab flatbuffers.Table -} - -func GetRootAsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepParams { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StateCalcStepParams{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepParams { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StateCalcStepParams{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StateCalcStepParams) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StateCalcStepParams) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all params -func (rcv *StateCalcStepParams) Params(obj *StateCalcStepSingleParam, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *StateCalcStepParams) ParamsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all params -func StateCalcStepParamsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StateCalcStepParamsAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(params), 0) -} -func StateCalcStepParamsStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func StateCalcStepParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// all supported calculation steps +type StateCalcStepParamsT struct { + Params []*StateCalcStepSingleParamT +} + +func (t *StateCalcStepParamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + paramsOffset := flatbuffers.UOffsetT(0) + if t.Params != nil { + paramsLength := len(t.Params) + paramsOffsets := make([]flatbuffers.UOffsetT, paramsLength) + for j := 0; j < paramsLength; j++ { + paramsOffsets[j] = t.Params[j].Pack(builder) + } + StateCalcStepParamsStartParamsVector(builder, paramsLength) + for j := paramsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(paramsOffsets[j]) + } + paramsOffset = builder.EndVector(paramsLength) + } + StateCalcStepParamsStart(builder) + StateCalcStepParamsAddParams(builder, paramsOffset) + return StateCalcStepParamsEnd(builder) +} + +func (rcv *StateCalcStepParams) UnPackTo(t *StateCalcStepParamsT) { + paramsLength := rcv.ParamsLength() + t.Params = make([]*StateCalcStepSingleParamT, paramsLength) + for j := 0; j < paramsLength; j++ { + x := StateCalcStepSingleParam{} + rcv.Params(&x, j) + t.Params[j] = x.UnPack() + } +} + +func (rcv *StateCalcStepParams) UnPack() *StateCalcStepParamsT { + if rcv == nil { return nil } + t := &StateCalcStepParamsT{} + rcv.UnPackTo(t) + return t +} + +type StateCalcStepParams struct { + _tab flatbuffers.Table +} + +func GetRootAsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepParams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StateCalcStepParams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStateCalcStepParams(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepParams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StateCalcStepParams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StateCalcStepParams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StateCalcStepParams) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all params +func (rcv *StateCalcStepParams) Params(obj *StateCalcStepSingleParam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *StateCalcStepParams) ParamsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all params +func StateCalcStepParamsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StateCalcStepParamsAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(params), 0) +} +func StateCalcStepParamsStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func StateCalcStepParamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/StateCalcStepSingleParam.go b/pkg/fbs/motion/sync/fbtypes/StateCalcStepSingleParam.go index 557ec06..686aa86 100644 --- a/pkg/fbs/motion/sync/fbtypes/StateCalcStepSingleParam.go +++ b/pkg/fbs/motion/sync/fbtypes/StateCalcStepSingleParam.go @@ -1,155 +1,155 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// a single parameter of a calculation step -type StateCalcStepSingleParamT struct { - Name string - Description string - Mandatory bool - Type ParameterType - Unit UnitValueType -} - -func (t *StateCalcStepSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - descriptionOffset := builder.CreateString(t.Description) - StateCalcStepSingleParamStart(builder) - StateCalcStepSingleParamAddName(builder, nameOffset) - StateCalcStepSingleParamAddDescription(builder, descriptionOffset) - StateCalcStepSingleParamAddMandatory(builder, t.Mandatory) - StateCalcStepSingleParamAddType(builder, t.Type) - StateCalcStepSingleParamAddUnit(builder, t.Unit) - return StateCalcStepSingleParamEnd(builder) -} - -func (rcv *StateCalcStepSingleParam) UnPackTo(t *StateCalcStepSingleParamT) { - t.Name = string(rcv.Name()) - t.Description = string(rcv.Description()) - t.Mandatory = rcv.Mandatory() - t.Type = rcv.Type() - t.Unit = rcv.Unit() -} - -func (rcv *StateCalcStepSingleParam) UnPack() *StateCalcStepSingleParamT { - if rcv == nil { return nil } - t := &StateCalcStepSingleParamT{} - rcv.UnPackTo(t) - return t -} - -type StateCalcStepSingleParam struct { - _tab flatbuffers.Table -} - -func GetRootAsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StateCalcStepSingleParam{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepSingleParam { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StateCalcStepSingleParam{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StateCalcStepSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StateCalcStepSingleParam) Table() flatbuffers.Table { - return rcv._tab -} - -/// name of the parameter -func (rcv *StateCalcStepSingleParam) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// name of the parameter -/// what the parameter of the calculation step does -func (rcv *StateCalcStepSingleParam) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -/// what the parameter of the calculation step does -/// is this parameter mandatory? -func (rcv *StateCalcStepSingleParam) Mandatory() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -/// is this parameter mandatory? -func (rcv *StateCalcStepSingleParam) MutateMandatory(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -/// type of the parameter -func (rcv *StateCalcStepSingleParam) Type() ParameterType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return ParameterType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// type of the parameter -func (rcv *StateCalcStepSingleParam) MutateType(n ParameterType) bool { - return rcv._tab.MutateInt8Slot(10, int8(n)) -} - -/// unit value of the parameter -func (rcv *StateCalcStepSingleParam) Unit() UnitValueType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return UnitValueType(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -/// unit value of the parameter -func (rcv *StateCalcStepSingleParam) MutateUnit(n UnitValueType) bool { - return rcv._tab.MutateInt8Slot(12, int8(n)) -} - -func StateCalcStepSingleParamStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func StateCalcStepSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func StateCalcStepSingleParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) -} -func StateCalcStepSingleParamAddMandatory(builder *flatbuffers.Builder, mandatory bool) { - builder.PrependBoolSlot(2, mandatory, false) -} -func StateCalcStepSingleParamAddType(builder *flatbuffers.Builder, type_ ParameterType) { - builder.PrependInt8Slot(3, int8(type_), 0) -} -func StateCalcStepSingleParamAddUnit(builder *flatbuffers.Builder, unit UnitValueType) { - builder.PrependInt8Slot(4, int8(unit), 0) -} -func StateCalcStepSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// a single parameter of a calculation step +type StateCalcStepSingleParamT struct { + Name string + Description string + Mandatory bool + Type ParameterType + Unit UnitValueType +} + +func (t *StateCalcStepSingleParamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + descriptionOffset := builder.CreateString(t.Description) + StateCalcStepSingleParamStart(builder) + StateCalcStepSingleParamAddName(builder, nameOffset) + StateCalcStepSingleParamAddDescription(builder, descriptionOffset) + StateCalcStepSingleParamAddMandatory(builder, t.Mandatory) + StateCalcStepSingleParamAddType(builder, t.Type) + StateCalcStepSingleParamAddUnit(builder, t.Unit) + return StateCalcStepSingleParamEnd(builder) +} + +func (rcv *StateCalcStepSingleParam) UnPackTo(t *StateCalcStepSingleParamT) { + t.Name = string(rcv.Name()) + t.Description = string(rcv.Description()) + t.Mandatory = rcv.Mandatory() + t.Type = rcv.Type() + t.Unit = rcv.Unit() +} + +func (rcv *StateCalcStepSingleParam) UnPack() *StateCalcStepSingleParamT { + if rcv == nil { return nil } + t := &StateCalcStepSingleParamT{} + rcv.UnPackTo(t) + return t +} + +type StateCalcStepSingleParam struct { + _tab flatbuffers.Table +} + +func GetRootAsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StateCalcStepSingleParam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStateCalcStepSingleParam(buf []byte, offset flatbuffers.UOffsetT) *StateCalcStepSingleParam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StateCalcStepSingleParam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StateCalcStepSingleParam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StateCalcStepSingleParam) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the parameter +func (rcv *StateCalcStepSingleParam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the parameter +/// what the parameter of the calculation step does +func (rcv *StateCalcStepSingleParam) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// what the parameter of the calculation step does +/// is this parameter mandatory? +func (rcv *StateCalcStepSingleParam) Mandatory() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// is this parameter mandatory? +func (rcv *StateCalcStepSingleParam) MutateMandatory(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +/// type of the parameter +func (rcv *StateCalcStepSingleParam) Type() ParameterType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return ParameterType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// type of the parameter +func (rcv *StateCalcStepSingleParam) MutateType(n ParameterType) bool { + return rcv._tab.MutateInt8Slot(10, int8(n)) +} + +/// unit value of the parameter +func (rcv *StateCalcStepSingleParam) Unit() UnitValueType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return UnitValueType(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// unit value of the parameter +func (rcv *StateCalcStepSingleParam) MutateUnit(n UnitValueType) bool { + return rcv._tab.MutateInt8Slot(12, int8(n)) +} + +func StateCalcStepSingleParamStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func StateCalcStepSingleParamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func StateCalcStepSingleParamAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func StateCalcStepSingleParamAddMandatory(builder *flatbuffers.Builder, mandatory bool) { + builder.PrependBoolSlot(2, mandatory, false) +} +func StateCalcStepSingleParamAddType(builder *flatbuffers.Builder, type_ ParameterType) { + builder.PrependInt8Slot(3, int8(type_), 0) +} +func StateCalcStepSingleParamAddUnit(builder *flatbuffers.Builder, unit UnitValueType) { + builder.PrependInt8Slot(4, int8(unit), 0) +} +func StateCalcStepSingleParamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/StateCalcSteps.go b/pkg/fbs/motion/sync/fbtypes/StateCalcSteps.go index 93acf26..57b5a39 100644 --- a/pkg/fbs/motion/sync/fbtypes/StateCalcSteps.go +++ b/pkg/fbs/motion/sync/fbtypes/StateCalcSteps.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -/// all supported calculation steps -type StateCalcStepsT struct { - Steps []*StateCalcSingleStepT -} - -func (t *StateCalcStepsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - stepsOffset := flatbuffers.UOffsetT(0) - if t.Steps != nil { - stepsLength := len(t.Steps) - stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) - for j := 0; j < stepsLength; j++ { - stepsOffsets[j] = t.Steps[j].Pack(builder) - } - StateCalcStepsStartStepsVector(builder, stepsLength) - for j := stepsLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(stepsOffsets[j]) - } - stepsOffset = builder.EndVector(stepsLength) - } - StateCalcStepsStart(builder) - StateCalcStepsAddSteps(builder, stepsOffset) - return StateCalcStepsEnd(builder) -} - -func (rcv *StateCalcSteps) UnPackTo(t *StateCalcStepsT) { - stepsLength := rcv.StepsLength() - t.Steps = make([]*StateCalcSingleStepT, stepsLength) - for j := 0; j < stepsLength; j++ { - x := StateCalcSingleStep{} - rcv.Steps(&x, j) - t.Steps[j] = x.UnPack() - } -} - -func (rcv *StateCalcSteps) UnPack() *StateCalcStepsT { - if rcv == nil { return nil } - t := &StateCalcStepsT{} - rcv.UnPackTo(t) - return t -} - -type StateCalcSteps struct { - _tab flatbuffers.Table -} - -func GetRootAsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSteps { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StateCalcSteps{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSteps { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StateCalcSteps{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StateCalcSteps) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StateCalcSteps) Table() flatbuffers.Table { - return rcv._tab -} - -/// vector of all supported calculation steps -func (rcv *StateCalcSteps) Steps(obj *StateCalcSingleStep, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *StateCalcSteps) StepsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -/// vector of all supported calculation steps -func StateCalcStepsStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StateCalcStepsAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(steps), 0) -} -func StateCalcStepsStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func StateCalcStepsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// all supported calculation steps +type StateCalcStepsT struct { + Steps []*StateCalcSingleStepT +} + +func (t *StateCalcStepsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + stepsOffset := flatbuffers.UOffsetT(0) + if t.Steps != nil { + stepsLength := len(t.Steps) + stepsOffsets := make([]flatbuffers.UOffsetT, stepsLength) + for j := 0; j < stepsLength; j++ { + stepsOffsets[j] = t.Steps[j].Pack(builder) + } + StateCalcStepsStartStepsVector(builder, stepsLength) + for j := stepsLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(stepsOffsets[j]) + } + stepsOffset = builder.EndVector(stepsLength) + } + StateCalcStepsStart(builder) + StateCalcStepsAddSteps(builder, stepsOffset) + return StateCalcStepsEnd(builder) +} + +func (rcv *StateCalcSteps) UnPackTo(t *StateCalcStepsT) { + stepsLength := rcv.StepsLength() + t.Steps = make([]*StateCalcSingleStepT, stepsLength) + for j := 0; j < stepsLength; j++ { + x := StateCalcSingleStep{} + rcv.Steps(&x, j) + t.Steps[j] = x.UnPack() + } +} + +func (rcv *StateCalcSteps) UnPack() *StateCalcStepsT { + if rcv == nil { return nil } + t := &StateCalcStepsT{} + rcv.UnPackTo(t) + return t +} + +type StateCalcSteps struct { + _tab flatbuffers.Table +} + +func GetRootAsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSteps { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StateCalcSteps{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStateCalcSteps(buf []byte, offset flatbuffers.UOffsetT) *StateCalcSteps { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StateCalcSteps{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StateCalcSteps) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StateCalcSteps) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all supported calculation steps +func (rcv *StateCalcSteps) Steps(obj *StateCalcSingleStep, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *StateCalcSteps) StepsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all supported calculation steps +func StateCalcStepsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StateCalcStepsAddSteps(builder *flatbuffers.Builder, steps flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(steps), 0) +} +func StateCalcStepsStartStepsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func StateCalcStepsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/SyncCmdMode.go b/pkg/fbs/motion/sync/fbtypes/SyncCmdMode.go index 3e1c9fa..dc7e1b2 100644 --- a/pkg/fbs/motion/sync/fbtypes/SyncCmdMode.go +++ b/pkg/fbs/motion/sync/fbtypes/SyncCmdMode.go @@ -1,40 +1,40 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// sync command mode (must fit the enum class motion::sync::cmd::SyncCmdMode) -type SyncCmdMode int8 - -const ( - /// The slave is moved relative and the calculation pipeline is initialized new. - SyncCmdModeCMDMODE_SLAVE_RELATIVE_INIT SyncCmdMode = 0 - /// The slave is moved relative and the calculation pipeline keeps its state. - SyncCmdModeCMDMODE_SLAVE_RELATIVE_KEEP_STATE SyncCmdMode = 1 - /// The slave is moved absolute and the calculation pipeline is initialized new. - SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_INIT SyncCmdMode = 2 - /// The slave is moved absolute and the calculation pipeline keeps its state. - SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_KEEP_STATE SyncCmdMode = 3 -) - -var EnumNamesSyncCmdMode = map[SyncCmdMode]string{ - SyncCmdModeCMDMODE_SLAVE_RELATIVE_INIT: "CMDMODE_SLAVE_RELATIVE_INIT", - SyncCmdModeCMDMODE_SLAVE_RELATIVE_KEEP_STATE: "CMDMODE_SLAVE_RELATIVE_KEEP_STATE", - SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_INIT: "CMDMODE_SLAVE_ABSOLUTE_INIT", - SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_KEEP_STATE: "CMDMODE_SLAVE_ABSOLUTE_KEEP_STATE", -} - -var EnumValuesSyncCmdMode = map[string]SyncCmdMode{ - "CMDMODE_SLAVE_RELATIVE_INIT": SyncCmdModeCMDMODE_SLAVE_RELATIVE_INIT, - "CMDMODE_SLAVE_RELATIVE_KEEP_STATE": SyncCmdModeCMDMODE_SLAVE_RELATIVE_KEEP_STATE, - "CMDMODE_SLAVE_ABSOLUTE_INIT": SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_INIT, - "CMDMODE_SLAVE_ABSOLUTE_KEEP_STATE": SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_KEEP_STATE, -} - -func (v SyncCmdMode) String() string { - if s, ok := EnumNamesSyncCmdMode[v]; ok { - return s - } - return "SyncCmdMode(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// sync command mode (must fit the enum class motion::sync::cmd::SyncCmdMode) +type SyncCmdMode int8 + +const ( + /// The slave is moved relative and the calculation pipeline is initialized new. + SyncCmdModeCMDMODE_SLAVE_RELATIVE_INIT SyncCmdMode = 0 + /// The slave is moved relative and the calculation pipeline keeps its state. + SyncCmdModeCMDMODE_SLAVE_RELATIVE_KEEP_STATE SyncCmdMode = 1 + /// The slave is moved absolute and the calculation pipeline is initialized new. + SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_INIT SyncCmdMode = 2 + /// The slave is moved absolute and the calculation pipeline keeps its state. + SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_KEEP_STATE SyncCmdMode = 3 +) + +var EnumNamesSyncCmdMode = map[SyncCmdMode]string{ + SyncCmdModeCMDMODE_SLAVE_RELATIVE_INIT: "CMDMODE_SLAVE_RELATIVE_INIT", + SyncCmdModeCMDMODE_SLAVE_RELATIVE_KEEP_STATE: "CMDMODE_SLAVE_RELATIVE_KEEP_STATE", + SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_INIT: "CMDMODE_SLAVE_ABSOLUTE_INIT", + SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_KEEP_STATE: "CMDMODE_SLAVE_ABSOLUTE_KEEP_STATE", +} + +var EnumValuesSyncCmdMode = map[string]SyncCmdMode{ + "CMDMODE_SLAVE_RELATIVE_INIT": SyncCmdModeCMDMODE_SLAVE_RELATIVE_INIT, + "CMDMODE_SLAVE_RELATIVE_KEEP_STATE": SyncCmdModeCMDMODE_SLAVE_RELATIVE_KEEP_STATE, + "CMDMODE_SLAVE_ABSOLUTE_INIT": SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_INIT, + "CMDMODE_SLAVE_ABSOLUTE_KEEP_STATE": SyncCmdModeCMDMODE_SLAVE_ABSOLUTE_KEEP_STATE, +} + +func (v SyncCmdMode) String() string { + if s, ok := EnumNamesSyncCmdMode[v]; ok { + return s + } + return "SyncCmdMode(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/SyncDirection.go b/pkg/fbs/motion/sync/fbtypes/SyncDirection.go new file mode 100644 index 0000000..2cfc174 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/SyncDirection.go @@ -0,0 +1,36 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// sync direction mode (must fit the enum class motion::sync::cmd::SyncDirection) +type SyncDirection int8 + +const ( + /// shortest path synchronization way + SyncDirectionSYNC_SHORTEST_PATH SyncDirection = 0 + /// catch up synchronization way + SyncDirectionSYNC_CATCH_UP SyncDirection = 1 + /// slow down synchronization way + SyncDirectionSYNC_SLOW_DOWN SyncDirection = 2 +) + +var EnumNamesSyncDirection = map[SyncDirection]string{ + SyncDirectionSYNC_SHORTEST_PATH: "SYNC_SHORTEST_PATH", + SyncDirectionSYNC_CATCH_UP: "SYNC_CATCH_UP", + SyncDirectionSYNC_SLOW_DOWN: "SYNC_SLOW_DOWN", +} + +var EnumValuesSyncDirection = map[string]SyncDirection{ + "SYNC_SHORTEST_PATH": SyncDirectionSYNC_SHORTEST_PATH, + "SYNC_CATCH_UP": SyncDirectionSYNC_CATCH_UP, + "SYNC_SLOW_DOWN": SyncDirectionSYNC_SLOW_DOWN, +} + +func (v SyncDirection) String() string { + if s, ok := EnumNamesSyncDirection[v]; ok { + return s + } + return "SyncDirection(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/SyncMode.go b/pkg/fbs/motion/sync/fbtypes/SyncMode.go new file mode 100644 index 0000000..28732dd --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/SyncMode.go @@ -0,0 +1,40 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// sync mode (must fit the enum class motion::sync::cmd::SyncMode) +type SyncMode int8 + +const ( + /// The slave is moved relative and the calculation pipeline is initialized new. + SyncModeSYNC_RELATIVE SyncMode = 0 + /// The slave is moved relative and the calculation pipeline keeps its state. + SyncModeSYNC_RELATIVE_KEEP_STATE SyncMode = 1 + /// The slave is moved absolute and the calculation pipeline is initialized new. + SyncModeSYNC_ABSOLUTE SyncMode = 2 + /// The slave is moved absolute and the calculation pipeline keeps its state. + SyncModeSYNC_ABSOLUTE_KEEP_STATE SyncMode = 3 +) + +var EnumNamesSyncMode = map[SyncMode]string{ + SyncModeSYNC_RELATIVE: "SYNC_RELATIVE", + SyncModeSYNC_RELATIVE_KEEP_STATE: "SYNC_RELATIVE_KEEP_STATE", + SyncModeSYNC_ABSOLUTE: "SYNC_ABSOLUTE", + SyncModeSYNC_ABSOLUTE_KEEP_STATE: "SYNC_ABSOLUTE_KEEP_STATE", +} + +var EnumValuesSyncMode = map[string]SyncMode{ + "SYNC_RELATIVE": SyncModeSYNC_RELATIVE, + "SYNC_RELATIVE_KEEP_STATE": SyncModeSYNC_RELATIVE_KEEP_STATE, + "SYNC_ABSOLUTE": SyncModeSYNC_ABSOLUTE, + "SYNC_ABSOLUTE_KEEP_STATE": SyncModeSYNC_ABSOLUTE_KEEP_STATE, +} + +func (v SyncMode) String() string { + if s, ok := EnumNamesSyncMode[v]; ok { + return s + } + return "SyncMode(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/SyncSource.go b/pkg/fbs/motion/sync/fbtypes/SyncSource.go new file mode 100644 index 0000000..805f148 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/SyncSource.go @@ -0,0 +1,32 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// sync source mode (must fit the enum class motion::sync::cmd::SyncSource) +type SyncSource int8 + +const ( + /// master interpolated value + SyncSourceSYNC_SETPOINT SyncSource = 0 + /// master actual value + SyncSourceSYNC_ACTUAL SyncSource = 1 +) + +var EnumNamesSyncSource = map[SyncSource]string{ + SyncSourceSYNC_SETPOINT: "SYNC_SETPOINT", + SyncSourceSYNC_ACTUAL: "SYNC_ACTUAL", +} + +var EnumValuesSyncSource = map[string]SyncSource{ + "SYNC_SETPOINT": SyncSourceSYNC_SETPOINT, + "SYNC_ACTUAL": SyncSourceSYNC_ACTUAL, +} + +func (v SyncSource) String() string { + if s, ok := EnumNamesSyncSource[v]; ok { + return s + } + return "SyncSource(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/sync/fbtypes/SysCfgAllCams.go b/pkg/fbs/motion/sync/fbtypes/SysCfgAllCams.go new file mode 100644 index 0000000..1e5742c --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/SysCfgAllCams.go @@ -0,0 +1,111 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of all cam tables for the whole motion system +type SysCfgAllCamsT struct { + Cam []*SysCfgSingleCamT +} + +func (t *SysCfgAllCamsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + camOffset := flatbuffers.UOffsetT(0) + if t.Cam != nil { + camLength := len(t.Cam) + camOffsets := make([]flatbuffers.UOffsetT, camLength) + for j := 0; j < camLength; j++ { + camOffsets[j] = t.Cam[j].Pack(builder) + } + SysCfgAllCamsStartCamVector(builder, camLength) + for j := camLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(camOffsets[j]) + } + camOffset = builder.EndVector(camLength) + } + SysCfgAllCamsStart(builder) + SysCfgAllCamsAddCam(builder, camOffset) + return SysCfgAllCamsEnd(builder) +} + +func (rcv *SysCfgAllCams) UnPackTo(t *SysCfgAllCamsT) { + camLength := rcv.CamLength() + t.Cam = make([]*SysCfgSingleCamT, camLength) + for j := 0; j < camLength; j++ { + x := SysCfgSingleCam{} + rcv.Cam(&x, j) + t.Cam[j] = x.UnPack() + } +} + +func (rcv *SysCfgAllCams) UnPack() *SysCfgAllCamsT { + if rcv == nil { return nil } + t := &SysCfgAllCamsT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgAllCams struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgAllCams(buf []byte, offset flatbuffers.UOffsetT) *SysCfgAllCams { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgAllCams{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgAllCams(buf []byte, offset flatbuffers.UOffsetT) *SysCfgAllCams { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgAllCams{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgAllCams) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgAllCams) Table() flatbuffers.Table { + return rcv._tab +} + +/// vector of all configured cam tables +func (rcv *SysCfgAllCams) Cam(obj *SysCfgSingleCam, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *SysCfgAllCams) CamLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// vector of all configured cam tables +func SysCfgAllCamsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SysCfgAllCamsAddCam(builder *flatbuffers.Builder, cam flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cam), 0) +} +func SysCfgAllCamsStartCamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func SysCfgAllCamsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/SysCfgSingleCam.go b/pkg/fbs/motion/sync/fbtypes/SysCfgSingleCam.go new file mode 100644 index 0000000..d8702f7 --- /dev/null +++ b/pkg/fbs/motion/sync/fbtypes/SysCfgSingleCam.go @@ -0,0 +1,165 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// configuration of a single cam table +type SysCfgSingleCamT struct { + Name string + Points []float64 + Interpolation CamTableInterpolation + CamBuilderData string +} + +func (t *SysCfgSingleCamT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + pointsOffset := flatbuffers.UOffsetT(0) + if t.Points != nil { + pointsLength := len(t.Points) + SysCfgSingleCamStartPointsVector(builder, pointsLength) + for j := pointsLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Points[j]) + } + pointsOffset = builder.EndVector(pointsLength) + } + camBuilderDataOffset := builder.CreateString(t.CamBuilderData) + SysCfgSingleCamStart(builder) + SysCfgSingleCamAddName(builder, nameOffset) + SysCfgSingleCamAddPoints(builder, pointsOffset) + SysCfgSingleCamAddInterpolation(builder, t.Interpolation) + SysCfgSingleCamAddCamBuilderData(builder, camBuilderDataOffset) + return SysCfgSingleCamEnd(builder) +} + +func (rcv *SysCfgSingleCam) UnPackTo(t *SysCfgSingleCamT) { + t.Name = string(rcv.Name()) + pointsLength := rcv.PointsLength() + t.Points = make([]float64, pointsLength) + for j := 0; j < pointsLength; j++ { + t.Points[j] = rcv.Points(j) + } + t.Interpolation = rcv.Interpolation() + t.CamBuilderData = string(rcv.CamBuilderData()) +} + +func (rcv *SysCfgSingleCam) UnPack() *SysCfgSingleCamT { + if rcv == nil { return nil } + t := &SysCfgSingleCamT{} + rcv.UnPackTo(t) + return t +} + +type SysCfgSingleCam struct { + _tab flatbuffers.Table +} + +func GetRootAsSysCfgSingleCam(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSingleCam { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &SysCfgSingleCam{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSysCfgSingleCam(buf []byte, offset flatbuffers.UOffsetT) *SysCfgSingleCam { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &SysCfgSingleCam{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *SysCfgSingleCam) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *SysCfgSingleCam) Table() flatbuffers.Table { + return rcv._tab +} + +/// name of the cam table (filled when reading; optional for writing [content is always ignored]) +func (rcv *SysCfgSingleCam) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// name of the cam table (filled when reading; optional for writing [content is always ignored]) +/// interpolation points of the cam table +func (rcv *SysCfgSingleCam) Points(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *SysCfgSingleCam) PointsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +/// interpolation points of the cam table +func (rcv *SysCfgSingleCam) MutatePoints(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +/// interpolation type for this cam table +func (rcv *SysCfgSingleCam) Interpolation() CamTableInterpolation { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return CamTableInterpolation(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +/// interpolation type for this cam table +func (rcv *SysCfgSingleCam) MutateInterpolation(n CamTableInterpolation) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +/// data of the CamBuilder +func (rcv *SysCfgSingleCam) CamBuilderData() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// data of the CamBuilder +func SysCfgSingleCamStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func SysCfgSingleCamAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func SysCfgSingleCamAddPoints(builder *flatbuffers.Builder, points flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(points), 0) +} +func SysCfgSingleCamStartPointsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func SysCfgSingleCamAddInterpolation(builder *flatbuffers.Builder, interpolation CamTableInterpolation) { + builder.PrependInt8Slot(2, int8(interpolation), 0) +} +func SysCfgSingleCamAddCamBuilderData(builder *flatbuffers.Builder, camBuilderData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(camBuilderData), 0) +} +func SysCfgSingleCamEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/motion/sync/fbtypes/UnitValueType.go b/pkg/fbs/motion/sync/fbtypes/UnitValueType.go index e3c04f1..2af12bb 100644 --- a/pkg/fbs/motion/sync/fbtypes/UnitValueType.go +++ b/pkg/fbs/motion/sync/fbtypes/UnitValueType.go @@ -1,56 +1,56 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// Unit value type of a single parameter -type UnitValueType int8 - -const ( - /// position type (mm; deg; inch; ...) - UnitValueTypePOSITION UnitValueType = 0 - /// velocity type (m/s; rpm; ...) - UnitValueTypeVELOCITY UnitValueType = 1 - /// acceleration type (mm/s^2; ...) - UnitValueTypeACCELERATION UnitValueType = 2 - /// jerk type (m/s^3; ...) - UnitValueTypeJERK UnitValueType = 3 - /// force type (N) - UnitValueTypeFORCE UnitValueType = 4 - /// torque type (N*m) - UnitValueTypeTORQUE UnitValueType = 5 - /// time type (s; min; ms) - UnitValueTypeTIME UnitValueType = 6 - /// this must alway be the last entry - UnitValueTypeCOUNT UnitValueType = 7 -) - -var EnumNamesUnitValueType = map[UnitValueType]string{ - UnitValueTypePOSITION: "POSITION", - UnitValueTypeVELOCITY: "VELOCITY", - UnitValueTypeACCELERATION: "ACCELERATION", - UnitValueTypeJERK: "JERK", - UnitValueTypeFORCE: "FORCE", - UnitValueTypeTORQUE: "TORQUE", - UnitValueTypeTIME: "TIME", - UnitValueTypeCOUNT: "COUNT", -} - -var EnumValuesUnitValueType = map[string]UnitValueType{ - "POSITION": UnitValueTypePOSITION, - "VELOCITY": UnitValueTypeVELOCITY, - "ACCELERATION": UnitValueTypeACCELERATION, - "JERK": UnitValueTypeJERK, - "FORCE": UnitValueTypeFORCE, - "TORQUE": UnitValueTypeTORQUE, - "TIME": UnitValueTypeTIME, - "COUNT": UnitValueTypeCOUNT, -} - -func (v UnitValueType) String() string { - if s, ok := EnumNamesUnitValueType[v]; ok { - return s - } - return "UnitValueType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// Unit value type of a single parameter +type UnitValueType int8 + +const ( + /// position type (mm; deg; inch; ...) + UnitValueTypePOSITION UnitValueType = 0 + /// velocity type (m/s; rpm; ...) + UnitValueTypeVELOCITY UnitValueType = 1 + /// acceleration type (mm/s^2; ...) + UnitValueTypeACCELERATION UnitValueType = 2 + /// jerk type (m/s^3; ...) + UnitValueTypeJERK UnitValueType = 3 + /// force type (N) + UnitValueTypeFORCE UnitValueType = 4 + /// torque type (N*m) + UnitValueTypeTORQUE UnitValueType = 5 + /// time type (s; min; ms) + UnitValueTypeTIME UnitValueType = 6 + /// this must alway be the last entry + UnitValueTypeCOUNT UnitValueType = 7 +) + +var EnumNamesUnitValueType = map[UnitValueType]string{ + UnitValueTypePOSITION: "POSITION", + UnitValueTypeVELOCITY: "VELOCITY", + UnitValueTypeACCELERATION: "ACCELERATION", + UnitValueTypeJERK: "JERK", + UnitValueTypeFORCE: "FORCE", + UnitValueTypeTORQUE: "TORQUE", + UnitValueTypeTIME: "TIME", + UnitValueTypeCOUNT: "COUNT", +} + +var EnumValuesUnitValueType = map[string]UnitValueType{ + "POSITION": UnitValueTypePOSITION, + "VELOCITY": UnitValueTypeVELOCITY, + "ACCELERATION": UnitValueTypeACCELERATION, + "JERK": UnitValueTypeJERK, + "FORCE": UnitValueTypeFORCE, + "TORQUE": UnitValueTypeTORQUE, + "TIME": UnitValueTypeTIME, + "COUNT": UnitValueTypeCOUNT, +} + +func (v UnitValueType) String() string { + if s, ok := EnumNamesUnitValueType[v]; ok { + return s + } + return "UnitValueType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/motion/test/addbundle/fbtypes/KinCmdCircularData.go b/pkg/fbs/motion/test/addbundle/fbtypes/KinCmdCircularData.go index dd280fb..566eea0 100644 --- a/pkg/fbs/motion/test/addbundle/fbtypes/KinCmdCircularData.go +++ b/pkg/fbs/motion/test/addbundle/fbtypes/KinCmdCircularData.go @@ -1,197 +1,197 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" - - motion__core__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/core/fbtypes" -) - -/// just for test of additional bundle (motion extension API) -type KinCmdCircularDataT struct { - CmdPos []float64 - CenterPos []float64 - Direction bool - Limits *motion__core__fbtypes.DynamicLimitsT -} - -func (t *KinCmdCircularDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cmdPosOffset := flatbuffers.UOffsetT(0) - if t.CmdPos != nil { - cmdPosLength := len(t.CmdPos) - KinCmdCircularDataStartCmdPosVector(builder, cmdPosLength) - for j := cmdPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.CmdPos[j]) - } - cmdPosOffset = builder.EndVector(cmdPosLength) - } - centerPosOffset := flatbuffers.UOffsetT(0) - if t.CenterPos != nil { - centerPosLength := len(t.CenterPos) - KinCmdCircularDataStartCenterPosVector(builder, centerPosLength) - for j := centerPosLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.CenterPos[j]) - } - centerPosOffset = builder.EndVector(centerPosLength) - } - limitsOffset := t.Limits.Pack(builder) - KinCmdCircularDataStart(builder) - KinCmdCircularDataAddCmdPos(builder, cmdPosOffset) - KinCmdCircularDataAddCenterPos(builder, centerPosOffset) - KinCmdCircularDataAddDirection(builder, t.Direction) - KinCmdCircularDataAddLimits(builder, limitsOffset) - return KinCmdCircularDataEnd(builder) -} - -func (rcv *KinCmdCircularData) UnPackTo(t *KinCmdCircularDataT) { - cmdPosLength := rcv.CmdPosLength() - t.CmdPos = make([]float64, cmdPosLength) - for j := 0; j < cmdPosLength; j++ { - t.CmdPos[j] = rcv.CmdPos(j) - } - centerPosLength := rcv.CenterPosLength() - t.CenterPos = make([]float64, centerPosLength) - for j := 0; j < centerPosLength; j++ { - t.CenterPos[j] = rcv.CenterPos(j) - } - t.Direction = rcv.Direction() - t.Limits = rcv.Limits(nil).UnPack() -} - -func (rcv *KinCmdCircularData) UnPack() *KinCmdCircularDataT { - if rcv == nil { return nil } - t := &KinCmdCircularDataT{} - rcv.UnPackTo(t) - return t -} - -type KinCmdCircularData struct { - _tab flatbuffers.Table -} - -func GetRootAsKinCmdCircularData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdCircularData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &KinCmdCircularData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsKinCmdCircularData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdCircularData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &KinCmdCircularData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *KinCmdCircularData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *KinCmdCircularData) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *KinCmdCircularData) CmdPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCmdCircularData) CmdPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *KinCmdCircularData) MutateCmdPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *KinCmdCircularData) CenterPos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *KinCmdCircularData) CenterPosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *KinCmdCircularData) MutateCenterPos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *KinCmdCircularData) Direction() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *KinCmdCircularData) MutateDirection(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *KinCmdCircularData) Limits(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(motion__core__fbtypes.DynamicLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func KinCmdCircularDataStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func KinCmdCircularDataAddCmdPos(builder *flatbuffers.Builder, cmdPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdPos), 0) -} -func KinCmdCircularDataStartCmdPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCmdCircularDataAddCenterPos(builder *flatbuffers.Builder, centerPos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(centerPos), 0) -} -func KinCmdCircularDataStartCenterPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func KinCmdCircularDataAddDirection(builder *flatbuffers.Builder, direction bool) { - builder.PrependBoolSlot(2, direction, false) -} -func KinCmdCircularDataAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(limits), 0) -} -func KinCmdCircularDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" + + motion__core__fbtypes "github.com/boschrexroth/ctrlx-datalayer-golang/pkg/fbs/motion/core/fbtypes" +) + +/// just for test of additional bundle (motion extension API) +type KinCmdCircularDataT struct { + CmdPos []float64 + CenterPos []float64 + Direction bool + Limits *motion__core__fbtypes.DynamicLimitsT +} + +func (t *KinCmdCircularDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cmdPosOffset := flatbuffers.UOffsetT(0) + if t.CmdPos != nil { + cmdPosLength := len(t.CmdPos) + KinCmdCircularDataStartCmdPosVector(builder, cmdPosLength) + for j := cmdPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.CmdPos[j]) + } + cmdPosOffset = builder.EndVector(cmdPosLength) + } + centerPosOffset := flatbuffers.UOffsetT(0) + if t.CenterPos != nil { + centerPosLength := len(t.CenterPos) + KinCmdCircularDataStartCenterPosVector(builder, centerPosLength) + for j := centerPosLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.CenterPos[j]) + } + centerPosOffset = builder.EndVector(centerPosLength) + } + limitsOffset := t.Limits.Pack(builder) + KinCmdCircularDataStart(builder) + KinCmdCircularDataAddCmdPos(builder, cmdPosOffset) + KinCmdCircularDataAddCenterPos(builder, centerPosOffset) + KinCmdCircularDataAddDirection(builder, t.Direction) + KinCmdCircularDataAddLimits(builder, limitsOffset) + return KinCmdCircularDataEnd(builder) +} + +func (rcv *KinCmdCircularData) UnPackTo(t *KinCmdCircularDataT) { + cmdPosLength := rcv.CmdPosLength() + t.CmdPos = make([]float64, cmdPosLength) + for j := 0; j < cmdPosLength; j++ { + t.CmdPos[j] = rcv.CmdPos(j) + } + centerPosLength := rcv.CenterPosLength() + t.CenterPos = make([]float64, centerPosLength) + for j := 0; j < centerPosLength; j++ { + t.CenterPos[j] = rcv.CenterPos(j) + } + t.Direction = rcv.Direction() + t.Limits = rcv.Limits(nil).UnPack() +} + +func (rcv *KinCmdCircularData) UnPack() *KinCmdCircularDataT { + if rcv == nil { return nil } + t := &KinCmdCircularDataT{} + rcv.UnPackTo(t) + return t +} + +type KinCmdCircularData struct { + _tab flatbuffers.Table +} + +func GetRootAsKinCmdCircularData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdCircularData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &KinCmdCircularData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsKinCmdCircularData(buf []byte, offset flatbuffers.UOffsetT) *KinCmdCircularData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &KinCmdCircularData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *KinCmdCircularData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *KinCmdCircularData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *KinCmdCircularData) CmdPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCmdCircularData) CmdPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *KinCmdCircularData) MutateCmdPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *KinCmdCircularData) CenterPos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *KinCmdCircularData) CenterPosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *KinCmdCircularData) MutateCenterPos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *KinCmdCircularData) Direction() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *KinCmdCircularData) MutateDirection(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *KinCmdCircularData) Limits(obj *motion__core__fbtypes.DynamicLimits) *motion__core__fbtypes.DynamicLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(motion__core__fbtypes.DynamicLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func KinCmdCircularDataStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func KinCmdCircularDataAddCmdPos(builder *flatbuffers.Builder, cmdPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdPos), 0) +} +func KinCmdCircularDataStartCmdPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCmdCircularDataAddCenterPos(builder *flatbuffers.Builder, centerPos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(centerPos), 0) +} +func KinCmdCircularDataStartCenterPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func KinCmdCircularDataAddDirection(builder *flatbuffers.Builder, direction bool) { + builder.PrependBoolSlot(2, direction, false) +} +func KinCmdCircularDataAddLimits(builder *flatbuffers.Builder, limits flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(limits), 0) +} +func KinCmdCircularDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppDateAndTime.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppDateAndTime.go index ee81100..60156d0 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppDateAndTime.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppDateAndTime.go @@ -1,75 +1,75 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppDateAndTimeT struct { - DateAndTime string -} - -func (t *AppDateAndTimeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dateAndTimeOffset := builder.CreateString(t.DateAndTime) - AppDateAndTimeStart(builder) - AppDateAndTimeAddDateAndTime(builder, dateAndTimeOffset) - return AppDateAndTimeEnd(builder) -} - -func (rcv *AppDateAndTime) UnPackTo(t *AppDateAndTimeT) { - t.DateAndTime = string(rcv.DateAndTime()) -} - -func (rcv *AppDateAndTime) UnPack() *AppDateAndTimeT { - if rcv == nil { return nil } - t := &AppDateAndTimeT{} - rcv.UnPackTo(t) - return t -} - -type AppDateAndTime struct { - _tab flatbuffers.Table -} - -func GetRootAsAppDateAndTime(buf []byte, offset flatbuffers.UOffsetT) *AppDateAndTime { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppDateAndTime{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppDateAndTime(buf []byte, offset flatbuffers.UOffsetT) *AppDateAndTime { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppDateAndTime{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppDateAndTime) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppDateAndTime) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppDateAndTime) DateAndTime() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func AppDateAndTimeStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AppDateAndTimeAddDateAndTime(builder *flatbuffers.Builder, dateAndTime flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(dateAndTime), 0) -} -func AppDateAndTimeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppDateAndTimeT struct { + DateAndTime string +} + +func (t *AppDateAndTimeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dateAndTimeOffset := builder.CreateString(t.DateAndTime) + AppDateAndTimeStart(builder) + AppDateAndTimeAddDateAndTime(builder, dateAndTimeOffset) + return AppDateAndTimeEnd(builder) +} + +func (rcv *AppDateAndTime) UnPackTo(t *AppDateAndTimeT) { + t.DateAndTime = string(rcv.DateAndTime()) +} + +func (rcv *AppDateAndTime) UnPack() *AppDateAndTimeT { + if rcv == nil { return nil } + t := &AppDateAndTimeT{} + rcv.UnPackTo(t) + return t +} + +type AppDateAndTime struct { + _tab flatbuffers.Table +} + +func GetRootAsAppDateAndTime(buf []byte, offset flatbuffers.UOffsetT) *AppDateAndTime { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppDateAndTime{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppDateAndTime(buf []byte, offset flatbuffers.UOffsetT) *AppDateAndTime { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppDateAndTime{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppDateAndTime) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppDateAndTime) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppDateAndTime) DateAndTime() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func AppDateAndTimeStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AppDateAndTimeAddDateAndTime(builder *flatbuffers.Builder, dateAndTime flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(dateAndTime), 0) +} +func AppDateAndTimeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfo.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfo.go index df21e7d..8185317 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfo.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfo.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppIdmUserInfoT struct { - User string - Userhandles []uint64 -} - -func (t *AppIdmUserInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - userOffset := builder.CreateString(t.User) - userhandlesOffset := flatbuffers.UOffsetT(0) - if t.Userhandles != nil { - userhandlesLength := len(t.Userhandles) - AppIdmUserInfoStartUserhandlesVector(builder, userhandlesLength) - for j := userhandlesLength - 1; j >= 0; j-- { - builder.PrependUint64(t.Userhandles[j]) - } - userhandlesOffset = builder.EndVector(userhandlesLength) - } - AppIdmUserInfoStart(builder) - AppIdmUserInfoAddUser(builder, userOffset) - AppIdmUserInfoAddUserhandles(builder, userhandlesOffset) - return AppIdmUserInfoEnd(builder) -} - -func (rcv *AppIdmUserInfo) UnPackTo(t *AppIdmUserInfoT) { - t.User = string(rcv.User()) - userhandlesLength := rcv.UserhandlesLength() - t.Userhandles = make([]uint64, userhandlesLength) - for j := 0; j < userhandlesLength; j++ { - t.Userhandles[j] = rcv.Userhandles(j) - } -} - -func (rcv *AppIdmUserInfo) UnPack() *AppIdmUserInfoT { - if rcv == nil { return nil } - t := &AppIdmUserInfoT{} - rcv.UnPackTo(t) - return t -} - -type AppIdmUserInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsAppIdmUserInfo(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppIdmUserInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppIdmUserInfo(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppIdmUserInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppIdmUserInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppIdmUserInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppIdmUserInfo) User() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppIdmUserInfo) Userhandles(j int) uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *AppIdmUserInfo) UserhandlesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *AppIdmUserInfo) MutateUserhandles(j int, n uint64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func AppIdmUserInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AppIdmUserInfoAddUser(builder *flatbuffers.Builder, user flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(user), 0) -} -func AppIdmUserInfoAddUserhandles(builder *flatbuffers.Builder, userhandles flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(userhandles), 0) -} -func AppIdmUserInfoStartUserhandlesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func AppIdmUserInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppIdmUserInfoT struct { + User string + Userhandles []uint64 +} + +func (t *AppIdmUserInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + userOffset := builder.CreateString(t.User) + userhandlesOffset := flatbuffers.UOffsetT(0) + if t.Userhandles != nil { + userhandlesLength := len(t.Userhandles) + AppIdmUserInfoStartUserhandlesVector(builder, userhandlesLength) + for j := userhandlesLength - 1; j >= 0; j-- { + builder.PrependUint64(t.Userhandles[j]) + } + userhandlesOffset = builder.EndVector(userhandlesLength) + } + AppIdmUserInfoStart(builder) + AppIdmUserInfoAddUser(builder, userOffset) + AppIdmUserInfoAddUserhandles(builder, userhandlesOffset) + return AppIdmUserInfoEnd(builder) +} + +func (rcv *AppIdmUserInfo) UnPackTo(t *AppIdmUserInfoT) { + t.User = string(rcv.User()) + userhandlesLength := rcv.UserhandlesLength() + t.Userhandles = make([]uint64, userhandlesLength) + for j := 0; j < userhandlesLength; j++ { + t.Userhandles[j] = rcv.Userhandles(j) + } +} + +func (rcv *AppIdmUserInfo) UnPack() *AppIdmUserInfoT { + if rcv == nil { return nil } + t := &AppIdmUserInfoT{} + rcv.UnPackTo(t) + return t +} + +type AppIdmUserInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsAppIdmUserInfo(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppIdmUserInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppIdmUserInfo(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppIdmUserInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppIdmUserInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppIdmUserInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppIdmUserInfo) User() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppIdmUserInfo) Userhandles(j int) uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *AppIdmUserInfo) UserhandlesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *AppIdmUserInfo) MutateUserhandles(j int, n uint64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func AppIdmUserInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AppIdmUserInfoAddUser(builder *flatbuffers.Builder, user flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(user), 0) +} +func AppIdmUserInfoAddUserhandles(builder *flatbuffers.Builder, userhandles flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(userhandles), 0) +} +func AppIdmUserInfoStartUserhandlesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func AppIdmUserInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfos.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfos.go index 9420518..ab89d06 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfos.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserInfos.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppIdmUserInfosT struct { - Info []*AppIdmUserInfoT -} - -func (t *AppIdmUserInfosT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - infoOffset := flatbuffers.UOffsetT(0) - if t.Info != nil { - infoLength := len(t.Info) - infoOffsets := make([]flatbuffers.UOffsetT, infoLength) - for j := 0; j < infoLength; j++ { - infoOffsets[j] = t.Info[j].Pack(builder) - } - AppIdmUserInfosStartInfoVector(builder, infoLength) - for j := infoLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(infoOffsets[j]) - } - infoOffset = builder.EndVector(infoLength) - } - AppIdmUserInfosStart(builder) - AppIdmUserInfosAddInfo(builder, infoOffset) - return AppIdmUserInfosEnd(builder) -} - -func (rcv *AppIdmUserInfos) UnPackTo(t *AppIdmUserInfosT) { - infoLength := rcv.InfoLength() - t.Info = make([]*AppIdmUserInfoT, infoLength) - for j := 0; j < infoLength; j++ { - x := AppIdmUserInfo{} - rcv.Info(&x, j) - t.Info[j] = x.UnPack() - } -} - -func (rcv *AppIdmUserInfos) UnPack() *AppIdmUserInfosT { - if rcv == nil { return nil } - t := &AppIdmUserInfosT{} - rcv.UnPackTo(t) - return t -} - -type AppIdmUserInfos struct { - _tab flatbuffers.Table -} - -func GetRootAsAppIdmUserInfos(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfos { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppIdmUserInfos{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppIdmUserInfos(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfos { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppIdmUserInfos{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppIdmUserInfos) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppIdmUserInfos) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppIdmUserInfos) Info(obj *AppIdmUserInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AppIdmUserInfos) InfoLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func AppIdmUserInfosStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AppIdmUserInfosAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(info), 0) -} -func AppIdmUserInfosStartInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AppIdmUserInfosEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppIdmUserInfosT struct { + Info []*AppIdmUserInfoT +} + +func (t *AppIdmUserInfosT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + infoOffset := flatbuffers.UOffsetT(0) + if t.Info != nil { + infoLength := len(t.Info) + infoOffsets := make([]flatbuffers.UOffsetT, infoLength) + for j := 0; j < infoLength; j++ { + infoOffsets[j] = t.Info[j].Pack(builder) + } + AppIdmUserInfosStartInfoVector(builder, infoLength) + for j := infoLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(infoOffsets[j]) + } + infoOffset = builder.EndVector(infoLength) + } + AppIdmUserInfosStart(builder) + AppIdmUserInfosAddInfo(builder, infoOffset) + return AppIdmUserInfosEnd(builder) +} + +func (rcv *AppIdmUserInfos) UnPackTo(t *AppIdmUserInfosT) { + infoLength := rcv.InfoLength() + t.Info = make([]*AppIdmUserInfoT, infoLength) + for j := 0; j < infoLength; j++ { + x := AppIdmUserInfo{} + rcv.Info(&x, j) + t.Info[j] = x.UnPack() + } +} + +func (rcv *AppIdmUserInfos) UnPack() *AppIdmUserInfosT { + if rcv == nil { return nil } + t := &AppIdmUserInfosT{} + rcv.UnPackTo(t) + return t +} + +type AppIdmUserInfos struct { + _tab flatbuffers.Table +} + +func GetRootAsAppIdmUserInfos(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfos { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppIdmUserInfos{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppIdmUserInfos(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserInfos { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppIdmUserInfos{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppIdmUserInfos) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppIdmUserInfos) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppIdmUserInfos) Info(obj *AppIdmUserInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AppIdmUserInfos) InfoLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func AppIdmUserInfosStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AppIdmUserInfosAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(info), 0) +} +func AppIdmUserInfosStartInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AppIdmUserInfosEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserLogin.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserLogin.go index 74697c1..58136ea 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserLogin.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppIdmUserLogin.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppIdmUserLoginT struct { - User string - Password string -} - -func (t *AppIdmUserLoginT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - userOffset := builder.CreateString(t.User) - passwordOffset := builder.CreateString(t.Password) - AppIdmUserLoginStart(builder) - AppIdmUserLoginAddUser(builder, userOffset) - AppIdmUserLoginAddPassword(builder, passwordOffset) - return AppIdmUserLoginEnd(builder) -} - -func (rcv *AppIdmUserLogin) UnPackTo(t *AppIdmUserLoginT) { - t.User = string(rcv.User()) - t.Password = string(rcv.Password()) -} - -func (rcv *AppIdmUserLogin) UnPack() *AppIdmUserLoginT { - if rcv == nil { return nil } - t := &AppIdmUserLoginT{} - rcv.UnPackTo(t) - return t -} - -type AppIdmUserLogin struct { - _tab flatbuffers.Table -} - -func GetRootAsAppIdmUserLogin(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserLogin { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppIdmUserLogin{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppIdmUserLogin(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserLogin { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppIdmUserLogin{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppIdmUserLogin) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppIdmUserLogin) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppIdmUserLogin) User() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppIdmUserLogin) Password() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func AppIdmUserLoginStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AppIdmUserLoginAddUser(builder *flatbuffers.Builder, user flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(user), 0) -} -func AppIdmUserLoginAddPassword(builder *flatbuffers.Builder, password flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(password), 0) -} -func AppIdmUserLoginEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppIdmUserLoginT struct { + User string + Password string +} + +func (t *AppIdmUserLoginT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + userOffset := builder.CreateString(t.User) + passwordOffset := builder.CreateString(t.Password) + AppIdmUserLoginStart(builder) + AppIdmUserLoginAddUser(builder, userOffset) + AppIdmUserLoginAddPassword(builder, passwordOffset) + return AppIdmUserLoginEnd(builder) +} + +func (rcv *AppIdmUserLogin) UnPackTo(t *AppIdmUserLoginT) { + t.User = string(rcv.User()) + t.Password = string(rcv.Password()) +} + +func (rcv *AppIdmUserLogin) UnPack() *AppIdmUserLoginT { + if rcv == nil { return nil } + t := &AppIdmUserLoginT{} + rcv.UnPackTo(t) + return t +} + +type AppIdmUserLogin struct { + _tab flatbuffers.Table +} + +func GetRootAsAppIdmUserLogin(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserLogin { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppIdmUserLogin{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppIdmUserLogin(buf []byte, offset flatbuffers.UOffsetT) *AppIdmUserLogin { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppIdmUserLogin{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppIdmUserLogin) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppIdmUserLogin) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppIdmUserLogin) User() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppIdmUserLogin) Password() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func AppIdmUserLoginStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AppIdmUserLoginAddUser(builder *flatbuffers.Builder, user flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(user), 0) +} +func AppIdmUserLoginAddPassword(builder *flatbuffers.Builder, password flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(password), 0) +} +func AppIdmUserLoginEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppInfo.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppInfo.go index f285b5d..500c0e1 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppInfo.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppInfo.go @@ -1,170 +1,170 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppInfoT struct { - Name string - Author string - Version string - Description string - Profile string - Compiler string - DateAndTime *AppDateAndTimeT -} - -func (t *AppInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - authorOffset := builder.CreateString(t.Author) - versionOffset := builder.CreateString(t.Version) - descriptionOffset := builder.CreateString(t.Description) - profileOffset := builder.CreateString(t.Profile) - compilerOffset := builder.CreateString(t.Compiler) - dateAndTimeOffset := t.DateAndTime.Pack(builder) - AppInfoStart(builder) - AppInfoAddName(builder, nameOffset) - AppInfoAddAuthor(builder, authorOffset) - AppInfoAddVersion(builder, versionOffset) - AppInfoAddDescription(builder, descriptionOffset) - AppInfoAddProfile(builder, profileOffset) - AppInfoAddCompiler(builder, compilerOffset) - AppInfoAddDateAndTime(builder, dateAndTimeOffset) - return AppInfoEnd(builder) -} - -func (rcv *AppInfo) UnPackTo(t *AppInfoT) { - t.Name = string(rcv.Name()) - t.Author = string(rcv.Author()) - t.Version = string(rcv.Version()) - t.Description = string(rcv.Description()) - t.Profile = string(rcv.Profile()) - t.Compiler = string(rcv.Compiler()) - t.DateAndTime = rcv.DateAndTime(nil).UnPack() -} - -func (rcv *AppInfo) UnPack() *AppInfoT { - if rcv == nil { return nil } - t := &AppInfoT{} - rcv.UnPackTo(t) - return t -} - -type AppInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsAppInfo(buf []byte, offset flatbuffers.UOffsetT) *AppInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppInfo(buf []byte, offset flatbuffers.UOffsetT) *AppInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppInfo) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppInfo) Author() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppInfo) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppInfo) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppInfo) Profile() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppInfo) Compiler() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppInfo) DateAndTime(obj *AppDateAndTime) *AppDateAndTime { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AppDateAndTime) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func AppInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(7) -} -func AppInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func AppInfoAddAuthor(builder *flatbuffers.Builder, author flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(author), 0) -} -func AppInfoAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(version), 0) -} -func AppInfoAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(description), 0) -} -func AppInfoAddProfile(builder *flatbuffers.Builder, profile flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(profile), 0) -} -func AppInfoAddCompiler(builder *flatbuffers.Builder, compiler flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(compiler), 0) -} -func AppInfoAddDateAndTime(builder *flatbuffers.Builder, dateAndTime flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(dateAndTime), 0) -} -func AppInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppInfoT struct { + Name string + Author string + Version string + Description string + Profile string + Compiler string + DateAndTime *AppDateAndTimeT +} + +func (t *AppInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + authorOffset := builder.CreateString(t.Author) + versionOffset := builder.CreateString(t.Version) + descriptionOffset := builder.CreateString(t.Description) + profileOffset := builder.CreateString(t.Profile) + compilerOffset := builder.CreateString(t.Compiler) + dateAndTimeOffset := t.DateAndTime.Pack(builder) + AppInfoStart(builder) + AppInfoAddName(builder, nameOffset) + AppInfoAddAuthor(builder, authorOffset) + AppInfoAddVersion(builder, versionOffset) + AppInfoAddDescription(builder, descriptionOffset) + AppInfoAddProfile(builder, profileOffset) + AppInfoAddCompiler(builder, compilerOffset) + AppInfoAddDateAndTime(builder, dateAndTimeOffset) + return AppInfoEnd(builder) +} + +func (rcv *AppInfo) UnPackTo(t *AppInfoT) { + t.Name = string(rcv.Name()) + t.Author = string(rcv.Author()) + t.Version = string(rcv.Version()) + t.Description = string(rcv.Description()) + t.Profile = string(rcv.Profile()) + t.Compiler = string(rcv.Compiler()) + t.DateAndTime = rcv.DateAndTime(nil).UnPack() +} + +func (rcv *AppInfo) UnPack() *AppInfoT { + if rcv == nil { return nil } + t := &AppInfoT{} + rcv.UnPackTo(t) + return t +} + +type AppInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsAppInfo(buf []byte, offset flatbuffers.UOffsetT) *AppInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppInfo(buf []byte, offset flatbuffers.UOffsetT) *AppInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppInfo) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppInfo) Author() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppInfo) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppInfo) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppInfo) Profile() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppInfo) Compiler() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppInfo) DateAndTime(obj *AppDateAndTime) *AppDateAndTime { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AppDateAndTime) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func AppInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(7) +} +func AppInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AppInfoAddAuthor(builder *flatbuffers.Builder, author flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(author), 0) +} +func AppInfoAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(version), 0) +} +func AppInfoAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(description), 0) +} +func AppInfoAddProfile(builder *flatbuffers.Builder, profile flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(profile), 0) +} +func AppInfoAddCompiler(builder *flatbuffers.Builder, compiler flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(compiler), 0) +} +func AppInfoAddDateAndTime(builder *flatbuffers.Builder, dateAndTime flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(dateAndTime), 0) +} +func AppInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppLoadApplications.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppLoadApplications.go index 92a428f..8ee867d 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppLoadApplications.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppLoadApplications.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppLoadApplicationsT struct { - Path string - Files []string -} - -func (t *AppLoadApplicationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - pathOffset := builder.CreateString(t.Path) - filesOffset := flatbuffers.UOffsetT(0) - if t.Files != nil { - filesLength := len(t.Files) - filesOffsets := make([]flatbuffers.UOffsetT, filesLength) - for j := 0; j < filesLength; j++ { - filesOffsets[j] = builder.CreateString(t.Files[j]) - } - AppLoadApplicationsStartFilesVector(builder, filesLength) - for j := filesLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(filesOffsets[j]) - } - filesOffset = builder.EndVector(filesLength) - } - AppLoadApplicationsStart(builder) - AppLoadApplicationsAddPath(builder, pathOffset) - AppLoadApplicationsAddFiles(builder, filesOffset) - return AppLoadApplicationsEnd(builder) -} - -func (rcv *AppLoadApplications) UnPackTo(t *AppLoadApplicationsT) { - t.Path = string(rcv.Path()) - filesLength := rcv.FilesLength() - t.Files = make([]string, filesLength) - for j := 0; j < filesLength; j++ { - t.Files[j] = string(rcv.Files(j)) - } -} - -func (rcv *AppLoadApplications) UnPack() *AppLoadApplicationsT { - if rcv == nil { return nil } - t := &AppLoadApplicationsT{} - rcv.UnPackTo(t) - return t -} - -type AppLoadApplications struct { - _tab flatbuffers.Table -} - -func GetRootAsAppLoadApplications(buf []byte, offset flatbuffers.UOffsetT) *AppLoadApplications { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppLoadApplications{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppLoadApplications(buf []byte, offset flatbuffers.UOffsetT) *AppLoadApplications { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppLoadApplications{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppLoadApplications) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppLoadApplications) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppLoadApplications) Path() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppLoadApplications) Files(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *AppLoadApplications) FilesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func AppLoadApplicationsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func AppLoadApplicationsAddPath(builder *flatbuffers.Builder, path flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(path), 0) -} -func AppLoadApplicationsAddFiles(builder *flatbuffers.Builder, files flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(files), 0) -} -func AppLoadApplicationsStartFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AppLoadApplicationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppLoadApplicationsT struct { + Path string + Files []string +} + +func (t *AppLoadApplicationsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + pathOffset := builder.CreateString(t.Path) + filesOffset := flatbuffers.UOffsetT(0) + if t.Files != nil { + filesLength := len(t.Files) + filesOffsets := make([]flatbuffers.UOffsetT, filesLength) + for j := 0; j < filesLength; j++ { + filesOffsets[j] = builder.CreateString(t.Files[j]) + } + AppLoadApplicationsStartFilesVector(builder, filesLength) + for j := filesLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(filesOffsets[j]) + } + filesOffset = builder.EndVector(filesLength) + } + AppLoadApplicationsStart(builder) + AppLoadApplicationsAddPath(builder, pathOffset) + AppLoadApplicationsAddFiles(builder, filesOffset) + return AppLoadApplicationsEnd(builder) +} + +func (rcv *AppLoadApplications) UnPackTo(t *AppLoadApplicationsT) { + t.Path = string(rcv.Path()) + filesLength := rcv.FilesLength() + t.Files = make([]string, filesLength) + for j := 0; j < filesLength; j++ { + t.Files[j] = string(rcv.Files(j)) + } +} + +func (rcv *AppLoadApplications) UnPack() *AppLoadApplicationsT { + if rcv == nil { return nil } + t := &AppLoadApplicationsT{} + rcv.UnPackTo(t) + return t +} + +type AppLoadApplications struct { + _tab flatbuffers.Table +} + +func GetRootAsAppLoadApplications(buf []byte, offset flatbuffers.UOffsetT) *AppLoadApplications { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppLoadApplications{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppLoadApplications(buf []byte, offset flatbuffers.UOffsetT) *AppLoadApplications { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppLoadApplications{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppLoadApplications) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppLoadApplications) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppLoadApplications) Path() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppLoadApplications) Files(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *AppLoadApplications) FilesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func AppLoadApplicationsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func AppLoadApplicationsAddPath(builder *flatbuffers.Builder, path flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(path), 0) +} +func AppLoadApplicationsAddFiles(builder *flatbuffers.Builder, files flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(files), 0) +} +func AppLoadApplicationsStartFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AppLoadApplicationsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryArea.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryArea.go index bc34fdd..9168399 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryArea.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryArea.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppMemoryAreaT struct { - Area Area -} - -func (t *AppMemoryAreaT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AppMemoryAreaStart(builder) - AppMemoryAreaAddArea(builder, t.Area) - return AppMemoryAreaEnd(builder) -} - -func (rcv *AppMemoryArea) UnPackTo(t *AppMemoryAreaT) { - t.Area = rcv.Area() -} - -func (rcv *AppMemoryArea) UnPack() *AppMemoryAreaT { - if rcv == nil { return nil } - t := &AppMemoryAreaT{} - rcv.UnPackTo(t) - return t -} - -type AppMemoryArea struct { - _tab flatbuffers.Table -} - -func GetRootAsAppMemoryArea(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryArea { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppMemoryArea{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppMemoryArea(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryArea { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppMemoryArea{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppMemoryArea) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppMemoryArea) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppMemoryArea) Area() Area { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Area(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AppMemoryArea) MutateArea(n Area) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func AppMemoryAreaStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AppMemoryAreaAddArea(builder *flatbuffers.Builder, area Area) { - builder.PrependUint32Slot(0, uint32(area), 0) -} -func AppMemoryAreaEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppMemoryAreaT struct { + Area Area +} + +func (t *AppMemoryAreaT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AppMemoryAreaStart(builder) + AppMemoryAreaAddArea(builder, t.Area) + return AppMemoryAreaEnd(builder) +} + +func (rcv *AppMemoryArea) UnPackTo(t *AppMemoryAreaT) { + t.Area = rcv.Area() +} + +func (rcv *AppMemoryArea) UnPack() *AppMemoryAreaT { + if rcv == nil { return nil } + t := &AppMemoryAreaT{} + rcv.UnPackTo(t) + return t +} + +type AppMemoryArea struct { + _tab flatbuffers.Table +} + +func GetRootAsAppMemoryArea(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryArea { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppMemoryArea{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppMemoryArea(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryArea { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppMemoryArea{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppMemoryArea) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppMemoryArea) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppMemoryArea) Area() Area { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Area(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AppMemoryArea) MutateArea(n Area) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func AppMemoryAreaStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AppMemoryAreaAddArea(builder *flatbuffers.Builder, area Area) { + builder.PrependUint32Slot(0, uint32(area), 0) +} +func AppMemoryAreaEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryAreaAccess.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryAreaAccess.go index 585da82..bf971c7 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryAreaAccess.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppMemoryAreaAccess.go @@ -1,154 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppMemoryAreaAccessT struct { - Area *AppMemoryAreaT - Offset uint64 - Number uint64 - Value *ValueT -} - -func (t *AppMemoryAreaAccessT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - areaOffset := t.Area.Pack(builder) - valueOffset := t.Value.Pack(builder) - - AppMemoryAreaAccessStart(builder) - AppMemoryAreaAccessAddArea(builder, areaOffset) - AppMemoryAreaAccessAddOffset(builder, t.Offset) - AppMemoryAreaAccessAddNumber(builder, t.Number) - if t.Value != nil { - AppMemoryAreaAccessAddValueType(builder, t.Value.Type) - } - AppMemoryAreaAccessAddValue(builder, valueOffset) - return AppMemoryAreaAccessEnd(builder) -} - -func (rcv *AppMemoryAreaAccess) UnPackTo(t *AppMemoryAreaAccessT) { - t.Area = rcv.Area(nil).UnPack() - t.Offset = rcv.Offset() - t.Number = rcv.Number() - valueTable := flatbuffers.Table{} - if rcv.Value(&valueTable) { - t.Value = rcv.ValueType().UnPack(valueTable) - } -} - -func (rcv *AppMemoryAreaAccess) UnPack() *AppMemoryAreaAccessT { - if rcv == nil { return nil } - t := &AppMemoryAreaAccessT{} - rcv.UnPackTo(t) - return t -} - -type AppMemoryAreaAccess struct { - _tab flatbuffers.Table -} - -func GetRootAsAppMemoryAreaAccess(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryAreaAccess { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppMemoryAreaAccess{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppMemoryAreaAccess(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryAreaAccess { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppMemoryAreaAccess{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppMemoryAreaAccess) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppMemoryAreaAccess) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppMemoryAreaAccess) Area(obj *AppMemoryArea) *AppMemoryArea { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(AppMemoryArea) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *AppMemoryAreaAccess) Offset() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppMemoryAreaAccess) MutateOffset(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func (rcv *AppMemoryAreaAccess) Number() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 1 -} - -func (rcv *AppMemoryAreaAccess) MutateNumber(n uint64) bool { - return rcv._tab.MutateUint64Slot(8, n) -} - -func (rcv *AppMemoryAreaAccess) ValueType() Value { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return Value(rcv._tab.GetByte(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AppMemoryAreaAccess) MutateValueType(n Value) bool { - return rcv._tab.MutateByteSlot(10, byte(n)) -} - -func (rcv *AppMemoryAreaAccess) Value(obj *flatbuffers.Table) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - rcv._tab.Union(obj, o) - return true - } - return false -} - -func AppMemoryAreaAccessStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func AppMemoryAreaAccessAddArea(builder *flatbuffers.Builder, area flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(area), 0) -} -func AppMemoryAreaAccessAddOffset(builder *flatbuffers.Builder, offset uint64) { - builder.PrependUint64Slot(1, offset, 0) -} -func AppMemoryAreaAccessAddNumber(builder *flatbuffers.Builder, number uint64) { - builder.PrependUint64Slot(2, number, 1) -} -func AppMemoryAreaAccessAddValueType(builder *flatbuffers.Builder, valueType Value) { - builder.PrependByteSlot(3, byte(valueType), 0) -} -func AppMemoryAreaAccessAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(value), 0) -} -func AppMemoryAreaAccessEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppMemoryAreaAccessT struct { + Area *AppMemoryAreaT + Offset uint64 + Number uint64 + Value *ValueT +} + +func (t *AppMemoryAreaAccessT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + areaOffset := t.Area.Pack(builder) + valueOffset := t.Value.Pack(builder) + + AppMemoryAreaAccessStart(builder) + AppMemoryAreaAccessAddArea(builder, areaOffset) + AppMemoryAreaAccessAddOffset(builder, t.Offset) + AppMemoryAreaAccessAddNumber(builder, t.Number) + if t.Value != nil { + AppMemoryAreaAccessAddValueType(builder, t.Value.Type) + } + AppMemoryAreaAccessAddValue(builder, valueOffset) + return AppMemoryAreaAccessEnd(builder) +} + +func (rcv *AppMemoryAreaAccess) UnPackTo(t *AppMemoryAreaAccessT) { + t.Area = rcv.Area(nil).UnPack() + t.Offset = rcv.Offset() + t.Number = rcv.Number() + valueTable := flatbuffers.Table{} + if rcv.Value(&valueTable) { + t.Value = rcv.ValueType().UnPack(valueTable) + } +} + +func (rcv *AppMemoryAreaAccess) UnPack() *AppMemoryAreaAccessT { + if rcv == nil { return nil } + t := &AppMemoryAreaAccessT{} + rcv.UnPackTo(t) + return t +} + +type AppMemoryAreaAccess struct { + _tab flatbuffers.Table +} + +func GetRootAsAppMemoryAreaAccess(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryAreaAccess { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppMemoryAreaAccess{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppMemoryAreaAccess(buf []byte, offset flatbuffers.UOffsetT) *AppMemoryAreaAccess { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppMemoryAreaAccess{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppMemoryAreaAccess) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppMemoryAreaAccess) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppMemoryAreaAccess) Area(obj *AppMemoryArea) *AppMemoryArea { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(AppMemoryArea) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *AppMemoryAreaAccess) Offset() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppMemoryAreaAccess) MutateOffset(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +func (rcv *AppMemoryAreaAccess) Number() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 1 +} + +func (rcv *AppMemoryAreaAccess) MutateNumber(n uint64) bool { + return rcv._tab.MutateUint64Slot(8, n) +} + +func (rcv *AppMemoryAreaAccess) ValueType() Value { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return Value(rcv._tab.GetByte(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AppMemoryAreaAccess) MutateValueType(n Value) bool { + return rcv._tab.MutateByteSlot(10, byte(n)) +} + +func (rcv *AppMemoryAreaAccess) Value(obj *flatbuffers.Table) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + rcv._tab.Union(obj, o) + return true + } + return false +} + +func AppMemoryAreaAccessStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func AppMemoryAreaAccessAddArea(builder *flatbuffers.Builder, area flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(area), 0) +} +func AppMemoryAreaAccessAddOffset(builder *flatbuffers.Builder, offset uint64) { + builder.PrependUint64Slot(1, offset, 0) +} +func AppMemoryAreaAccessAddNumber(builder *flatbuffers.Builder, number uint64) { + builder.PrependUint64Slot(2, number, 1) +} +func AppMemoryAreaAccessAddValueType(builder *flatbuffers.Builder, valueType Value) { + builder.PrependByteSlot(3, byte(valueType), 0) +} +func AppMemoryAreaAccessAddValue(builder *flatbuffers.Builder, value flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(value), 0) +} +func AppMemoryAreaAccessEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppOperationState.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppOperationState.go index 1931ebb..8267ff8 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppOperationState.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppOperationState.go @@ -1,456 +1,456 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppOperationStateT struct { - ProgramLoaded bool - DownloadActive bool - OnlineChangeActive bool - StoreBootprojectActive bool - ForceVariablesActive bool - Exception bool - InitializeActive bool - StoreBootprojectOnlyActive bool - ExitActive bool - Deleted bool - ResetActive bool - RetainMismatch bool - BootprojectValid bool - LoadBootprojectActive bool - FlowControlActive bool - RunInFlash bool - ResetOutputs bool - CoreDumpLoaded bool - ExecutenPointsActive bool - CoreDumpCreating bool - SingelCycleActive bool - ResetDisabled bool -} - -func (t *AppOperationStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AppOperationStateStart(builder) - AppOperationStateAddProgramLoaded(builder, t.ProgramLoaded) - AppOperationStateAddDownloadActive(builder, t.DownloadActive) - AppOperationStateAddOnlineChangeActive(builder, t.OnlineChangeActive) - AppOperationStateAddStoreBootprojectActive(builder, t.StoreBootprojectActive) - AppOperationStateAddForceVariablesActive(builder, t.ForceVariablesActive) - AppOperationStateAddException(builder, t.Exception) - AppOperationStateAddInitializeActive(builder, t.InitializeActive) - AppOperationStateAddStoreBootprojectOnlyActive(builder, t.StoreBootprojectOnlyActive) - AppOperationStateAddExitActive(builder, t.ExitActive) - AppOperationStateAddDeleted(builder, t.Deleted) - AppOperationStateAddResetActive(builder, t.ResetActive) - AppOperationStateAddRetainMismatch(builder, t.RetainMismatch) - AppOperationStateAddBootprojectValid(builder, t.BootprojectValid) - AppOperationStateAddLoadBootprojectActive(builder, t.LoadBootprojectActive) - AppOperationStateAddFlowControlActive(builder, t.FlowControlActive) - AppOperationStateAddRunInFlash(builder, t.RunInFlash) - AppOperationStateAddResetOutputs(builder, t.ResetOutputs) - AppOperationStateAddCoreDumpLoaded(builder, t.CoreDumpLoaded) - AppOperationStateAddExecutenPointsActive(builder, t.ExecutenPointsActive) - AppOperationStateAddCoreDumpCreating(builder, t.CoreDumpCreating) - AppOperationStateAddSingelCycleActive(builder, t.SingelCycleActive) - AppOperationStateAddResetDisabled(builder, t.ResetDisabled) - return AppOperationStateEnd(builder) -} - -func (rcv *AppOperationState) UnPackTo(t *AppOperationStateT) { - t.ProgramLoaded = rcv.ProgramLoaded() - t.DownloadActive = rcv.DownloadActive() - t.OnlineChangeActive = rcv.OnlineChangeActive() - t.StoreBootprojectActive = rcv.StoreBootprojectActive() - t.ForceVariablesActive = rcv.ForceVariablesActive() - t.Exception = rcv.Exception() - t.InitializeActive = rcv.InitializeActive() - t.StoreBootprojectOnlyActive = rcv.StoreBootprojectOnlyActive() - t.ExitActive = rcv.ExitActive() - t.Deleted = rcv.Deleted() - t.ResetActive = rcv.ResetActive() - t.RetainMismatch = rcv.RetainMismatch() - t.BootprojectValid = rcv.BootprojectValid() - t.LoadBootprojectActive = rcv.LoadBootprojectActive() - t.FlowControlActive = rcv.FlowControlActive() - t.RunInFlash = rcv.RunInFlash() - t.ResetOutputs = rcv.ResetOutputs() - t.CoreDumpLoaded = rcv.CoreDumpLoaded() - t.ExecutenPointsActive = rcv.ExecutenPointsActive() - t.CoreDumpCreating = rcv.CoreDumpCreating() - t.SingelCycleActive = rcv.SingelCycleActive() - t.ResetDisabled = rcv.ResetDisabled() -} - -func (rcv *AppOperationState) UnPack() *AppOperationStateT { - if rcv == nil { return nil } - t := &AppOperationStateT{} - rcv.UnPackTo(t) - return t -} - -type AppOperationState struct { - _tab flatbuffers.Table -} - -func GetRootAsAppOperationState(buf []byte, offset flatbuffers.UOffsetT) *AppOperationState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppOperationState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppOperationState(buf []byte, offset flatbuffers.UOffsetT) *AppOperationState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppOperationState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppOperationState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppOperationState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppOperationState) ProgramLoaded() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateProgramLoaded(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func (rcv *AppOperationState) DownloadActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateDownloadActive(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *AppOperationState) OnlineChangeActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateOnlineChangeActive(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *AppOperationState) StoreBootprojectActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateStoreBootprojectActive(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *AppOperationState) ForceVariablesActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateForceVariablesActive(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -func (rcv *AppOperationState) Exception() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateException(n bool) bool { - return rcv._tab.MutateBoolSlot(14, n) -} - -func (rcv *AppOperationState) InitializeActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateInitializeActive(n bool) bool { - return rcv._tab.MutateBoolSlot(16, n) -} - -func (rcv *AppOperationState) StoreBootprojectOnlyActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateStoreBootprojectOnlyActive(n bool) bool { - return rcv._tab.MutateBoolSlot(18, n) -} - -func (rcv *AppOperationState) ExitActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateExitActive(n bool) bool { - return rcv._tab.MutateBoolSlot(20, n) -} - -func (rcv *AppOperationState) Deleted() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateDeleted(n bool) bool { - return rcv._tab.MutateBoolSlot(22, n) -} - -func (rcv *AppOperationState) ResetActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateResetActive(n bool) bool { - return rcv._tab.MutateBoolSlot(24, n) -} - -func (rcv *AppOperationState) RetainMismatch() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateRetainMismatch(n bool) bool { - return rcv._tab.MutateBoolSlot(26, n) -} - -func (rcv *AppOperationState) BootprojectValid() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateBootprojectValid(n bool) bool { - return rcv._tab.MutateBoolSlot(28, n) -} - -func (rcv *AppOperationState) LoadBootprojectActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateLoadBootprojectActive(n bool) bool { - return rcv._tab.MutateBoolSlot(30, n) -} - -func (rcv *AppOperationState) FlowControlActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateFlowControlActive(n bool) bool { - return rcv._tab.MutateBoolSlot(32, n) -} - -func (rcv *AppOperationState) RunInFlash() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateRunInFlash(n bool) bool { - return rcv._tab.MutateBoolSlot(34, n) -} - -func (rcv *AppOperationState) ResetOutputs() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateResetOutputs(n bool) bool { - return rcv._tab.MutateBoolSlot(36, n) -} - -func (rcv *AppOperationState) CoreDumpLoaded() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateCoreDumpLoaded(n bool) bool { - return rcv._tab.MutateBoolSlot(38, n) -} - -func (rcv *AppOperationState) ExecutenPointsActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateExecutenPointsActive(n bool) bool { - return rcv._tab.MutateBoolSlot(40, n) -} - -func (rcv *AppOperationState) CoreDumpCreating() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateCoreDumpCreating(n bool) bool { - return rcv._tab.MutateBoolSlot(42, n) -} - -func (rcv *AppOperationState) SingelCycleActive() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateSingelCycleActive(n bool) bool { - return rcv._tab.MutateBoolSlot(44, n) -} - -func (rcv *AppOperationState) ResetDisabled() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppOperationState) MutateResetDisabled(n bool) bool { - return rcv._tab.MutateBoolSlot(46, n) -} - -func AppOperationStateStart(builder *flatbuffers.Builder) { - builder.StartObject(22) -} -func AppOperationStateAddProgramLoaded(builder *flatbuffers.Builder, programLoaded bool) { - builder.PrependBoolSlot(0, programLoaded, false) -} -func AppOperationStateAddDownloadActive(builder *flatbuffers.Builder, downloadActive bool) { - builder.PrependBoolSlot(1, downloadActive, false) -} -func AppOperationStateAddOnlineChangeActive(builder *flatbuffers.Builder, onlineChangeActive bool) { - builder.PrependBoolSlot(2, onlineChangeActive, false) -} -func AppOperationStateAddStoreBootprojectActive(builder *flatbuffers.Builder, storeBootprojectActive bool) { - builder.PrependBoolSlot(3, storeBootprojectActive, false) -} -func AppOperationStateAddForceVariablesActive(builder *flatbuffers.Builder, forceVariablesActive bool) { - builder.PrependBoolSlot(4, forceVariablesActive, false) -} -func AppOperationStateAddException(builder *flatbuffers.Builder, exception bool) { - builder.PrependBoolSlot(5, exception, false) -} -func AppOperationStateAddInitializeActive(builder *flatbuffers.Builder, initializeActive bool) { - builder.PrependBoolSlot(6, initializeActive, false) -} -func AppOperationStateAddStoreBootprojectOnlyActive(builder *flatbuffers.Builder, storeBootprojectOnlyActive bool) { - builder.PrependBoolSlot(7, storeBootprojectOnlyActive, false) -} -func AppOperationStateAddExitActive(builder *flatbuffers.Builder, exitActive bool) { - builder.PrependBoolSlot(8, exitActive, false) -} -func AppOperationStateAddDeleted(builder *flatbuffers.Builder, deleted bool) { - builder.PrependBoolSlot(9, deleted, false) -} -func AppOperationStateAddResetActive(builder *flatbuffers.Builder, resetActive bool) { - builder.PrependBoolSlot(10, resetActive, false) -} -func AppOperationStateAddRetainMismatch(builder *flatbuffers.Builder, retainMismatch bool) { - builder.PrependBoolSlot(11, retainMismatch, false) -} -func AppOperationStateAddBootprojectValid(builder *flatbuffers.Builder, bootprojectValid bool) { - builder.PrependBoolSlot(12, bootprojectValid, false) -} -func AppOperationStateAddLoadBootprojectActive(builder *flatbuffers.Builder, loadBootprojectActive bool) { - builder.PrependBoolSlot(13, loadBootprojectActive, false) -} -func AppOperationStateAddFlowControlActive(builder *flatbuffers.Builder, flowControlActive bool) { - builder.PrependBoolSlot(14, flowControlActive, false) -} -func AppOperationStateAddRunInFlash(builder *flatbuffers.Builder, runInFlash bool) { - builder.PrependBoolSlot(15, runInFlash, false) -} -func AppOperationStateAddResetOutputs(builder *flatbuffers.Builder, resetOutputs bool) { - builder.PrependBoolSlot(16, resetOutputs, false) -} -func AppOperationStateAddCoreDumpLoaded(builder *flatbuffers.Builder, coreDumpLoaded bool) { - builder.PrependBoolSlot(17, coreDumpLoaded, false) -} -func AppOperationStateAddExecutenPointsActive(builder *flatbuffers.Builder, executenPointsActive bool) { - builder.PrependBoolSlot(18, executenPointsActive, false) -} -func AppOperationStateAddCoreDumpCreating(builder *flatbuffers.Builder, coreDumpCreating bool) { - builder.PrependBoolSlot(19, coreDumpCreating, false) -} -func AppOperationStateAddSingelCycleActive(builder *flatbuffers.Builder, singelCycleActive bool) { - builder.PrependBoolSlot(20, singelCycleActive, false) -} -func AppOperationStateAddResetDisabled(builder *flatbuffers.Builder, resetDisabled bool) { - builder.PrependBoolSlot(21, resetDisabled, false) -} -func AppOperationStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppOperationStateT struct { + ProgramLoaded bool + DownloadActive bool + OnlineChangeActive bool + StoreBootprojectActive bool + ForceVariablesActive bool + Exception bool + InitializeActive bool + StoreBootprojectOnlyActive bool + ExitActive bool + Deleted bool + ResetActive bool + RetainMismatch bool + BootprojectValid bool + LoadBootprojectActive bool + FlowControlActive bool + RunInFlash bool + ResetOutputs bool + CoreDumpLoaded bool + ExecutenPointsActive bool + CoreDumpCreating bool + SingelCycleActive bool + ResetDisabled bool +} + +func (t *AppOperationStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AppOperationStateStart(builder) + AppOperationStateAddProgramLoaded(builder, t.ProgramLoaded) + AppOperationStateAddDownloadActive(builder, t.DownloadActive) + AppOperationStateAddOnlineChangeActive(builder, t.OnlineChangeActive) + AppOperationStateAddStoreBootprojectActive(builder, t.StoreBootprojectActive) + AppOperationStateAddForceVariablesActive(builder, t.ForceVariablesActive) + AppOperationStateAddException(builder, t.Exception) + AppOperationStateAddInitializeActive(builder, t.InitializeActive) + AppOperationStateAddStoreBootprojectOnlyActive(builder, t.StoreBootprojectOnlyActive) + AppOperationStateAddExitActive(builder, t.ExitActive) + AppOperationStateAddDeleted(builder, t.Deleted) + AppOperationStateAddResetActive(builder, t.ResetActive) + AppOperationStateAddRetainMismatch(builder, t.RetainMismatch) + AppOperationStateAddBootprojectValid(builder, t.BootprojectValid) + AppOperationStateAddLoadBootprojectActive(builder, t.LoadBootprojectActive) + AppOperationStateAddFlowControlActive(builder, t.FlowControlActive) + AppOperationStateAddRunInFlash(builder, t.RunInFlash) + AppOperationStateAddResetOutputs(builder, t.ResetOutputs) + AppOperationStateAddCoreDumpLoaded(builder, t.CoreDumpLoaded) + AppOperationStateAddExecutenPointsActive(builder, t.ExecutenPointsActive) + AppOperationStateAddCoreDumpCreating(builder, t.CoreDumpCreating) + AppOperationStateAddSingelCycleActive(builder, t.SingelCycleActive) + AppOperationStateAddResetDisabled(builder, t.ResetDisabled) + return AppOperationStateEnd(builder) +} + +func (rcv *AppOperationState) UnPackTo(t *AppOperationStateT) { + t.ProgramLoaded = rcv.ProgramLoaded() + t.DownloadActive = rcv.DownloadActive() + t.OnlineChangeActive = rcv.OnlineChangeActive() + t.StoreBootprojectActive = rcv.StoreBootprojectActive() + t.ForceVariablesActive = rcv.ForceVariablesActive() + t.Exception = rcv.Exception() + t.InitializeActive = rcv.InitializeActive() + t.StoreBootprojectOnlyActive = rcv.StoreBootprojectOnlyActive() + t.ExitActive = rcv.ExitActive() + t.Deleted = rcv.Deleted() + t.ResetActive = rcv.ResetActive() + t.RetainMismatch = rcv.RetainMismatch() + t.BootprojectValid = rcv.BootprojectValid() + t.LoadBootprojectActive = rcv.LoadBootprojectActive() + t.FlowControlActive = rcv.FlowControlActive() + t.RunInFlash = rcv.RunInFlash() + t.ResetOutputs = rcv.ResetOutputs() + t.CoreDumpLoaded = rcv.CoreDumpLoaded() + t.ExecutenPointsActive = rcv.ExecutenPointsActive() + t.CoreDumpCreating = rcv.CoreDumpCreating() + t.SingelCycleActive = rcv.SingelCycleActive() + t.ResetDisabled = rcv.ResetDisabled() +} + +func (rcv *AppOperationState) UnPack() *AppOperationStateT { + if rcv == nil { return nil } + t := &AppOperationStateT{} + rcv.UnPackTo(t) + return t +} + +type AppOperationState struct { + _tab flatbuffers.Table +} + +func GetRootAsAppOperationState(buf []byte, offset flatbuffers.UOffsetT) *AppOperationState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppOperationState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppOperationState(buf []byte, offset flatbuffers.UOffsetT) *AppOperationState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppOperationState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppOperationState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppOperationState) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppOperationState) ProgramLoaded() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateProgramLoaded(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func (rcv *AppOperationState) DownloadActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateDownloadActive(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *AppOperationState) OnlineChangeActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateOnlineChangeActive(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *AppOperationState) StoreBootprojectActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateStoreBootprojectActive(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func (rcv *AppOperationState) ForceVariablesActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateForceVariablesActive(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func (rcv *AppOperationState) Exception() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateException(n bool) bool { + return rcv._tab.MutateBoolSlot(14, n) +} + +func (rcv *AppOperationState) InitializeActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateInitializeActive(n bool) bool { + return rcv._tab.MutateBoolSlot(16, n) +} + +func (rcv *AppOperationState) StoreBootprojectOnlyActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateStoreBootprojectOnlyActive(n bool) bool { + return rcv._tab.MutateBoolSlot(18, n) +} + +func (rcv *AppOperationState) ExitActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateExitActive(n bool) bool { + return rcv._tab.MutateBoolSlot(20, n) +} + +func (rcv *AppOperationState) Deleted() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateDeleted(n bool) bool { + return rcv._tab.MutateBoolSlot(22, n) +} + +func (rcv *AppOperationState) ResetActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateResetActive(n bool) bool { + return rcv._tab.MutateBoolSlot(24, n) +} + +func (rcv *AppOperationState) RetainMismatch() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateRetainMismatch(n bool) bool { + return rcv._tab.MutateBoolSlot(26, n) +} + +func (rcv *AppOperationState) BootprojectValid() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateBootprojectValid(n bool) bool { + return rcv._tab.MutateBoolSlot(28, n) +} + +func (rcv *AppOperationState) LoadBootprojectActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateLoadBootprojectActive(n bool) bool { + return rcv._tab.MutateBoolSlot(30, n) +} + +func (rcv *AppOperationState) FlowControlActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(32)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateFlowControlActive(n bool) bool { + return rcv._tab.MutateBoolSlot(32, n) +} + +func (rcv *AppOperationState) RunInFlash() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateRunInFlash(n bool) bool { + return rcv._tab.MutateBoolSlot(34, n) +} + +func (rcv *AppOperationState) ResetOutputs() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(36)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateResetOutputs(n bool) bool { + return rcv._tab.MutateBoolSlot(36, n) +} + +func (rcv *AppOperationState) CoreDumpLoaded() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(38)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateCoreDumpLoaded(n bool) bool { + return rcv._tab.MutateBoolSlot(38, n) +} + +func (rcv *AppOperationState) ExecutenPointsActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(40)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateExecutenPointsActive(n bool) bool { + return rcv._tab.MutateBoolSlot(40, n) +} + +func (rcv *AppOperationState) CoreDumpCreating() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(42)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateCoreDumpCreating(n bool) bool { + return rcv._tab.MutateBoolSlot(42, n) +} + +func (rcv *AppOperationState) SingelCycleActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(44)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateSingelCycleActive(n bool) bool { + return rcv._tab.MutateBoolSlot(44, n) +} + +func (rcv *AppOperationState) ResetDisabled() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(46)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppOperationState) MutateResetDisabled(n bool) bool { + return rcv._tab.MutateBoolSlot(46, n) +} + +func AppOperationStateStart(builder *flatbuffers.Builder) { + builder.StartObject(22) +} +func AppOperationStateAddProgramLoaded(builder *flatbuffers.Builder, programLoaded bool) { + builder.PrependBoolSlot(0, programLoaded, false) +} +func AppOperationStateAddDownloadActive(builder *flatbuffers.Builder, downloadActive bool) { + builder.PrependBoolSlot(1, downloadActive, false) +} +func AppOperationStateAddOnlineChangeActive(builder *flatbuffers.Builder, onlineChangeActive bool) { + builder.PrependBoolSlot(2, onlineChangeActive, false) +} +func AppOperationStateAddStoreBootprojectActive(builder *flatbuffers.Builder, storeBootprojectActive bool) { + builder.PrependBoolSlot(3, storeBootprojectActive, false) +} +func AppOperationStateAddForceVariablesActive(builder *flatbuffers.Builder, forceVariablesActive bool) { + builder.PrependBoolSlot(4, forceVariablesActive, false) +} +func AppOperationStateAddException(builder *flatbuffers.Builder, exception bool) { + builder.PrependBoolSlot(5, exception, false) +} +func AppOperationStateAddInitializeActive(builder *flatbuffers.Builder, initializeActive bool) { + builder.PrependBoolSlot(6, initializeActive, false) +} +func AppOperationStateAddStoreBootprojectOnlyActive(builder *flatbuffers.Builder, storeBootprojectOnlyActive bool) { + builder.PrependBoolSlot(7, storeBootprojectOnlyActive, false) +} +func AppOperationStateAddExitActive(builder *flatbuffers.Builder, exitActive bool) { + builder.PrependBoolSlot(8, exitActive, false) +} +func AppOperationStateAddDeleted(builder *flatbuffers.Builder, deleted bool) { + builder.PrependBoolSlot(9, deleted, false) +} +func AppOperationStateAddResetActive(builder *flatbuffers.Builder, resetActive bool) { + builder.PrependBoolSlot(10, resetActive, false) +} +func AppOperationStateAddRetainMismatch(builder *flatbuffers.Builder, retainMismatch bool) { + builder.PrependBoolSlot(11, retainMismatch, false) +} +func AppOperationStateAddBootprojectValid(builder *flatbuffers.Builder, bootprojectValid bool) { + builder.PrependBoolSlot(12, bootprojectValid, false) +} +func AppOperationStateAddLoadBootprojectActive(builder *flatbuffers.Builder, loadBootprojectActive bool) { + builder.PrependBoolSlot(13, loadBootprojectActive, false) +} +func AppOperationStateAddFlowControlActive(builder *flatbuffers.Builder, flowControlActive bool) { + builder.PrependBoolSlot(14, flowControlActive, false) +} +func AppOperationStateAddRunInFlash(builder *flatbuffers.Builder, runInFlash bool) { + builder.PrependBoolSlot(15, runInFlash, false) +} +func AppOperationStateAddResetOutputs(builder *flatbuffers.Builder, resetOutputs bool) { + builder.PrependBoolSlot(16, resetOutputs, false) +} +func AppOperationStateAddCoreDumpLoaded(builder *flatbuffers.Builder, coreDumpLoaded bool) { + builder.PrependBoolSlot(17, coreDumpLoaded, false) +} +func AppOperationStateAddExecutenPointsActive(builder *flatbuffers.Builder, executenPointsActive bool) { + builder.PrependBoolSlot(18, executenPointsActive, false) +} +func AppOperationStateAddCoreDumpCreating(builder *flatbuffers.Builder, coreDumpCreating bool) { + builder.PrependBoolSlot(19, coreDumpCreating, false) +} +func AppOperationStateAddSingelCycleActive(builder *flatbuffers.Builder, singelCycleActive bool) { + builder.PrependBoolSlot(20, singelCycleActive, false) +} +func AppOperationStateAddResetDisabled(builder *flatbuffers.Builder, resetDisabled bool) { + builder.PrependBoolSlot(21, resetDisabled, false) +} +func AppOperationStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppProjectInfo.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppProjectInfo.go index c2d408f..7fc8c18 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppProjectInfo.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppProjectInfo.go @@ -1,135 +1,135 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppProjectInfoT struct { - Name string - Title string - Version string - Author string - Description string -} - -func (t *AppProjectInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - titleOffset := builder.CreateString(t.Title) - versionOffset := builder.CreateString(t.Version) - authorOffset := builder.CreateString(t.Author) - descriptionOffset := builder.CreateString(t.Description) - AppProjectInfoStart(builder) - AppProjectInfoAddName(builder, nameOffset) - AppProjectInfoAddTitle(builder, titleOffset) - AppProjectInfoAddVersion(builder, versionOffset) - AppProjectInfoAddAuthor(builder, authorOffset) - AppProjectInfoAddDescription(builder, descriptionOffset) - return AppProjectInfoEnd(builder) -} - -func (rcv *AppProjectInfo) UnPackTo(t *AppProjectInfoT) { - t.Name = string(rcv.Name()) - t.Title = string(rcv.Title()) - t.Version = string(rcv.Version()) - t.Author = string(rcv.Author()) - t.Description = string(rcv.Description()) -} - -func (rcv *AppProjectInfo) UnPack() *AppProjectInfoT { - if rcv == nil { return nil } - t := &AppProjectInfoT{} - rcv.UnPackTo(t) - return t -} - -type AppProjectInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsAppProjectInfo(buf []byte, offset flatbuffers.UOffsetT) *AppProjectInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppProjectInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppProjectInfo(buf []byte, offset flatbuffers.UOffsetT) *AppProjectInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppProjectInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppProjectInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppProjectInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppProjectInfo) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppProjectInfo) Title() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppProjectInfo) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppProjectInfo) Author() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppProjectInfo) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func AppProjectInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func AppProjectInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func AppProjectInfoAddTitle(builder *flatbuffers.Builder, title flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(title), 0) -} -func AppProjectInfoAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(version), 0) -} -func AppProjectInfoAddAuthor(builder *flatbuffers.Builder, author flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(author), 0) -} -func AppProjectInfoAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(description), 0) -} -func AppProjectInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppProjectInfoT struct { + Name string + Title string + Version string + Author string + Description string +} + +func (t *AppProjectInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + titleOffset := builder.CreateString(t.Title) + versionOffset := builder.CreateString(t.Version) + authorOffset := builder.CreateString(t.Author) + descriptionOffset := builder.CreateString(t.Description) + AppProjectInfoStart(builder) + AppProjectInfoAddName(builder, nameOffset) + AppProjectInfoAddTitle(builder, titleOffset) + AppProjectInfoAddVersion(builder, versionOffset) + AppProjectInfoAddAuthor(builder, authorOffset) + AppProjectInfoAddDescription(builder, descriptionOffset) + return AppProjectInfoEnd(builder) +} + +func (rcv *AppProjectInfo) UnPackTo(t *AppProjectInfoT) { + t.Name = string(rcv.Name()) + t.Title = string(rcv.Title()) + t.Version = string(rcv.Version()) + t.Author = string(rcv.Author()) + t.Description = string(rcv.Description()) +} + +func (rcv *AppProjectInfo) UnPack() *AppProjectInfoT { + if rcv == nil { return nil } + t := &AppProjectInfoT{} + rcv.UnPackTo(t) + return t +} + +type AppProjectInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsAppProjectInfo(buf []byte, offset flatbuffers.UOffsetT) *AppProjectInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppProjectInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppProjectInfo(buf []byte, offset flatbuffers.UOffsetT) *AppProjectInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppProjectInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppProjectInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppProjectInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppProjectInfo) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppProjectInfo) Title() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppProjectInfo) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppProjectInfo) Author() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppProjectInfo) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func AppProjectInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func AppProjectInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AppProjectInfoAddTitle(builder *flatbuffers.Builder, title flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(title), 0) +} +func AppProjectInfoAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(version), 0) +} +func AppProjectInfoAddAuthor(builder *flatbuffers.Builder, author flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(author), 0) +} +func AppProjectInfoAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(description), 0) +} +func AppProjectInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppReset.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppReset.go index dce080e..710c1fd 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppReset.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppReset.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppResetT struct { - Reset Reset -} - -func (t *AppResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AppResetStart(builder) - AppResetAddReset(builder, t.Reset) - return AppResetEnd(builder) -} - -func (rcv *AppReset) UnPackTo(t *AppResetT) { - t.Reset = rcv.Reset() -} - -func (rcv *AppReset) UnPack() *AppResetT { - if rcv == nil { return nil } - t := &AppResetT{} - rcv.UnPackTo(t) - return t -} - -type AppReset struct { - _tab flatbuffers.Table -} - -func GetRootAsAppReset(buf []byte, offset flatbuffers.UOffsetT) *AppReset { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppReset{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppReset(buf []byte, offset flatbuffers.UOffsetT) *AppReset { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppReset{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppReset) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppReset) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppReset) Reset() Reset { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return Reset(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AppReset) MutateReset(n Reset) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func AppResetStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AppResetAddReset(builder *flatbuffers.Builder, reset Reset) { - builder.PrependUint32Slot(0, uint32(reset), 0) -} -func AppResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppResetT struct { + Reset Reset +} + +func (t *AppResetT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AppResetStart(builder) + AppResetAddReset(builder, t.Reset) + return AppResetEnd(builder) +} + +func (rcv *AppReset) UnPackTo(t *AppResetT) { + t.Reset = rcv.Reset() +} + +func (rcv *AppReset) UnPack() *AppResetT { + if rcv == nil { return nil } + t := &AppResetT{} + rcv.UnPackTo(t) + return t +} + +type AppReset struct { + _tab flatbuffers.Table +} + +func GetRootAsAppReset(buf []byte, offset flatbuffers.UOffsetT) *AppReset { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppReset{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppReset(buf []byte, offset flatbuffers.UOffsetT) *AppReset { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppReset{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppReset) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppReset) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppReset) Reset() Reset { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return Reset(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AppReset) MutateReset(n Reset) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func AppResetStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AppResetAddReset(builder *flatbuffers.Builder, reset Reset) { + builder.PrependUint32Slot(0, uint32(reset), 0) +} +func AppResetEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppState.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppState.go index e381e7a..e92d0a9 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppState.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppState.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppStateT struct { - State State -} - -func (t *AppStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - AppStateStart(builder) - AppStateAddState(builder, t.State) - return AppStateEnd(builder) -} - -func (rcv *AppState) UnPackTo(t *AppStateT) { - t.State = rcv.State() -} - -func (rcv *AppState) UnPack() *AppStateT { - if rcv == nil { return nil } - t := &AppStateT{} - rcv.UnPackTo(t) - return t -} - -type AppState struct { - _tab flatbuffers.Table -} - -func GetRootAsAppState(buf []byte, offset flatbuffers.UOffsetT) *AppState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppState(buf []byte, offset flatbuffers.UOffsetT) *AppState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppState) State() State { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return State(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *AppState) MutateState(n State) bool { - return rcv._tab.MutateUint32Slot(4, uint32(n)) -} - -func AppStateStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AppStateAddState(builder *flatbuffers.Builder, state State) { - builder.PrependUint32Slot(0, uint32(state), 0) -} -func AppStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppStateT struct { + State State +} + +func (t *AppStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + AppStateStart(builder) + AppStateAddState(builder, t.State) + return AppStateEnd(builder) +} + +func (rcv *AppState) UnPackTo(t *AppStateT) { + t.State = rcv.State() +} + +func (rcv *AppState) UnPack() *AppStateT { + if rcv == nil { return nil } + t := &AppStateT{} + rcv.UnPackTo(t) + return t +} + +type AppState struct { + _tab flatbuffers.Table +} + +func GetRootAsAppState(buf []byte, offset flatbuffers.UOffsetT) *AppState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppState(buf []byte, offset flatbuffers.UOffsetT) *AppState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppState) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppState) State() State { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return State(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *AppState) MutateState(n State) bool { + return rcv._tab.MutateUint32Slot(4, uint32(n)) +} + +func AppStateStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AppStateAddState(builder *flatbuffers.Builder, state State) { + builder.PrependUint32Slot(0, uint32(state), 0) +} +func AppStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppTaskInfo.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppTaskInfo.go index ada9da1..97ca538 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppTaskInfo.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppTaskInfo.go @@ -1,291 +1,291 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppTaskInfoT struct { - Name string - Priority uint32 - Watchdog bool - WatchdogTime uint32 - CycleTime uint32 - AverageCycleTime uint32 - MaxCycleTime uint32 - MinCycleTime uint32 - CycleCount uint32 - WatchdogSensitivity uint32 - Interval uint32 - TaskType TaskType - OsHandle uint64 -} - -func (t *AppTaskInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - AppTaskInfoStart(builder) - AppTaskInfoAddName(builder, nameOffset) - AppTaskInfoAddPriority(builder, t.Priority) - AppTaskInfoAddWatchdog(builder, t.Watchdog) - AppTaskInfoAddWatchdogTime(builder, t.WatchdogTime) - AppTaskInfoAddCycleTime(builder, t.CycleTime) - AppTaskInfoAddAverageCycleTime(builder, t.AverageCycleTime) - AppTaskInfoAddMaxCycleTime(builder, t.MaxCycleTime) - AppTaskInfoAddMinCycleTime(builder, t.MinCycleTime) - AppTaskInfoAddCycleCount(builder, t.CycleCount) - AppTaskInfoAddWatchdogSensitivity(builder, t.WatchdogSensitivity) - AppTaskInfoAddInterval(builder, t.Interval) - AppTaskInfoAddTaskType(builder, t.TaskType) - AppTaskInfoAddOsHandle(builder, t.OsHandle) - return AppTaskInfoEnd(builder) -} - -func (rcv *AppTaskInfo) UnPackTo(t *AppTaskInfoT) { - t.Name = string(rcv.Name()) - t.Priority = rcv.Priority() - t.Watchdog = rcv.Watchdog() - t.WatchdogTime = rcv.WatchdogTime() - t.CycleTime = rcv.CycleTime() - t.AverageCycleTime = rcv.AverageCycleTime() - t.MaxCycleTime = rcv.MaxCycleTime() - t.MinCycleTime = rcv.MinCycleTime() - t.CycleCount = rcv.CycleCount() - t.WatchdogSensitivity = rcv.WatchdogSensitivity() - t.Interval = rcv.Interval() - t.TaskType = rcv.TaskType() - t.OsHandle = rcv.OsHandle() -} - -func (rcv *AppTaskInfo) UnPack() *AppTaskInfoT { - if rcv == nil { return nil } - t := &AppTaskInfoT{} - rcv.UnPackTo(t) - return t -} - -type AppTaskInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsAppTaskInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTaskInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppTaskInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppTaskInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTaskInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppTaskInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppTaskInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppTaskInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppTaskInfo) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *AppTaskInfo) Priority() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutatePriority(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *AppTaskInfo) Watchdog() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *AppTaskInfo) MutateWatchdog(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *AppTaskInfo) WatchdogTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateWatchdogTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *AppTaskInfo) CycleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateCycleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func (rcv *AppTaskInfo) AverageCycleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateAverageCycleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(14, n) -} - -func (rcv *AppTaskInfo) MaxCycleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateMaxCycleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(16, n) -} - -func (rcv *AppTaskInfo) MinCycleTime() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateMinCycleTime(n uint32) bool { - return rcv._tab.MutateUint32Slot(18, n) -} - -func (rcv *AppTaskInfo) CycleCount() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateCycleCount(n uint32) bool { - return rcv._tab.MutateUint32Slot(20, n) -} - -func (rcv *AppTaskInfo) WatchdogSensitivity() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateWatchdogSensitivity(n uint32) bool { - return rcv._tab.MutateUint32Slot(22, n) -} - -func (rcv *AppTaskInfo) Interval() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateInterval(n uint32) bool { - return rcv._tab.MutateUint32Slot(24, n) -} - -func (rcv *AppTaskInfo) TaskType() TaskType { - o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) - if o != 0 { - return TaskType(rcv._tab.GetUint32(o + rcv._tab.Pos)) - } - return 255 -} - -func (rcv *AppTaskInfo) MutateTaskType(n TaskType) bool { - return rcv._tab.MutateUint32Slot(26, uint32(n)) -} - -func (rcv *AppTaskInfo) OsHandle() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *AppTaskInfo) MutateOsHandle(n uint64) bool { - return rcv._tab.MutateUint64Slot(28, n) -} - -func AppTaskInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(13) -} -func AppTaskInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func AppTaskInfoAddPriority(builder *flatbuffers.Builder, priority uint32) { - builder.PrependUint32Slot(1, priority, 0) -} -func AppTaskInfoAddWatchdog(builder *flatbuffers.Builder, watchdog bool) { - builder.PrependBoolSlot(2, watchdog, false) -} -func AppTaskInfoAddWatchdogTime(builder *flatbuffers.Builder, watchdogTime uint32) { - builder.PrependUint32Slot(3, watchdogTime, 0) -} -func AppTaskInfoAddCycleTime(builder *flatbuffers.Builder, cycleTime uint32) { - builder.PrependUint32Slot(4, cycleTime, 0) -} -func AppTaskInfoAddAverageCycleTime(builder *flatbuffers.Builder, averageCycleTime uint32) { - builder.PrependUint32Slot(5, averageCycleTime, 0) -} -func AppTaskInfoAddMaxCycleTime(builder *flatbuffers.Builder, maxCycleTime uint32) { - builder.PrependUint32Slot(6, maxCycleTime, 0) -} -func AppTaskInfoAddMinCycleTime(builder *flatbuffers.Builder, minCycleTime uint32) { - builder.PrependUint32Slot(7, minCycleTime, 0) -} -func AppTaskInfoAddCycleCount(builder *flatbuffers.Builder, cycleCount uint32) { - builder.PrependUint32Slot(8, cycleCount, 0) -} -func AppTaskInfoAddWatchdogSensitivity(builder *flatbuffers.Builder, watchdogSensitivity uint32) { - builder.PrependUint32Slot(9, watchdogSensitivity, 0) -} -func AppTaskInfoAddInterval(builder *flatbuffers.Builder, interval uint32) { - builder.PrependUint32Slot(10, interval, 0) -} -func AppTaskInfoAddTaskType(builder *flatbuffers.Builder, taskType TaskType) { - builder.PrependUint32Slot(11, uint32(taskType), 255) -} -func AppTaskInfoAddOsHandle(builder *flatbuffers.Builder, osHandle uint64) { - builder.PrependUint64Slot(12, osHandle, 0) -} -func AppTaskInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppTaskInfoT struct { + Name string + Priority uint32 + Watchdog bool + WatchdogTime uint32 + CycleTime uint32 + AverageCycleTime uint32 + MaxCycleTime uint32 + MinCycleTime uint32 + CycleCount uint32 + WatchdogSensitivity uint32 + Interval uint32 + TaskType TaskType + OsHandle uint64 +} + +func (t *AppTaskInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + AppTaskInfoStart(builder) + AppTaskInfoAddName(builder, nameOffset) + AppTaskInfoAddPriority(builder, t.Priority) + AppTaskInfoAddWatchdog(builder, t.Watchdog) + AppTaskInfoAddWatchdogTime(builder, t.WatchdogTime) + AppTaskInfoAddCycleTime(builder, t.CycleTime) + AppTaskInfoAddAverageCycleTime(builder, t.AverageCycleTime) + AppTaskInfoAddMaxCycleTime(builder, t.MaxCycleTime) + AppTaskInfoAddMinCycleTime(builder, t.MinCycleTime) + AppTaskInfoAddCycleCount(builder, t.CycleCount) + AppTaskInfoAddWatchdogSensitivity(builder, t.WatchdogSensitivity) + AppTaskInfoAddInterval(builder, t.Interval) + AppTaskInfoAddTaskType(builder, t.TaskType) + AppTaskInfoAddOsHandle(builder, t.OsHandle) + return AppTaskInfoEnd(builder) +} + +func (rcv *AppTaskInfo) UnPackTo(t *AppTaskInfoT) { + t.Name = string(rcv.Name()) + t.Priority = rcv.Priority() + t.Watchdog = rcv.Watchdog() + t.WatchdogTime = rcv.WatchdogTime() + t.CycleTime = rcv.CycleTime() + t.AverageCycleTime = rcv.AverageCycleTime() + t.MaxCycleTime = rcv.MaxCycleTime() + t.MinCycleTime = rcv.MinCycleTime() + t.CycleCount = rcv.CycleCount() + t.WatchdogSensitivity = rcv.WatchdogSensitivity() + t.Interval = rcv.Interval() + t.TaskType = rcv.TaskType() + t.OsHandle = rcv.OsHandle() +} + +func (rcv *AppTaskInfo) UnPack() *AppTaskInfoT { + if rcv == nil { return nil } + t := &AppTaskInfoT{} + rcv.UnPackTo(t) + return t +} + +type AppTaskInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsAppTaskInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTaskInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppTaskInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppTaskInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTaskInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppTaskInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppTaskInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppTaskInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppTaskInfo) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *AppTaskInfo) Priority() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutatePriority(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *AppTaskInfo) Watchdog() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *AppTaskInfo) MutateWatchdog(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *AppTaskInfo) WatchdogTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateWatchdogTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func (rcv *AppTaskInfo) CycleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateCycleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func (rcv *AppTaskInfo) AverageCycleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateAverageCycleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +func (rcv *AppTaskInfo) MaxCycleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateMaxCycleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +func (rcv *AppTaskInfo) MinCycleTime() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateMinCycleTime(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +func (rcv *AppTaskInfo) CycleCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateCycleCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +func (rcv *AppTaskInfo) WatchdogSensitivity() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateWatchdogSensitivity(n uint32) bool { + return rcv._tab.MutateUint32Slot(22, n) +} + +func (rcv *AppTaskInfo) Interval() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateInterval(n uint32) bool { + return rcv._tab.MutateUint32Slot(24, n) +} + +func (rcv *AppTaskInfo) TaskType() TaskType { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return TaskType(rcv._tab.GetUint32(o + rcv._tab.Pos)) + } + return 255 +} + +func (rcv *AppTaskInfo) MutateTaskType(n TaskType) bool { + return rcv._tab.MutateUint32Slot(26, uint32(n)) +} + +func (rcv *AppTaskInfo) OsHandle() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *AppTaskInfo) MutateOsHandle(n uint64) bool { + return rcv._tab.MutateUint64Slot(28, n) +} + +func AppTaskInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(13) +} +func AppTaskInfoAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func AppTaskInfoAddPriority(builder *flatbuffers.Builder, priority uint32) { + builder.PrependUint32Slot(1, priority, 0) +} +func AppTaskInfoAddWatchdog(builder *flatbuffers.Builder, watchdog bool) { + builder.PrependBoolSlot(2, watchdog, false) +} +func AppTaskInfoAddWatchdogTime(builder *flatbuffers.Builder, watchdogTime uint32) { + builder.PrependUint32Slot(3, watchdogTime, 0) +} +func AppTaskInfoAddCycleTime(builder *flatbuffers.Builder, cycleTime uint32) { + builder.PrependUint32Slot(4, cycleTime, 0) +} +func AppTaskInfoAddAverageCycleTime(builder *flatbuffers.Builder, averageCycleTime uint32) { + builder.PrependUint32Slot(5, averageCycleTime, 0) +} +func AppTaskInfoAddMaxCycleTime(builder *flatbuffers.Builder, maxCycleTime uint32) { + builder.PrependUint32Slot(6, maxCycleTime, 0) +} +func AppTaskInfoAddMinCycleTime(builder *flatbuffers.Builder, minCycleTime uint32) { + builder.PrependUint32Slot(7, minCycleTime, 0) +} +func AppTaskInfoAddCycleCount(builder *flatbuffers.Builder, cycleCount uint32) { + builder.PrependUint32Slot(8, cycleCount, 0) +} +func AppTaskInfoAddWatchdogSensitivity(builder *flatbuffers.Builder, watchdogSensitivity uint32) { + builder.PrependUint32Slot(9, watchdogSensitivity, 0) +} +func AppTaskInfoAddInterval(builder *flatbuffers.Builder, interval uint32) { + builder.PrependUint32Slot(10, interval, 0) +} +func AppTaskInfoAddTaskType(builder *flatbuffers.Builder, taskType TaskType) { + builder.PrependUint32Slot(11, uint32(taskType), 255) +} +func AppTaskInfoAddOsHandle(builder *flatbuffers.Builder, osHandle uint64) { + builder.PrependUint64Slot(12, osHandle, 0) +} +func AppTaskInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/AppTasksInfo.go b/pkg/fbs/plc/cmp/datalayer/fbs/AppTasksInfo.go index f0b2ce2..639e55b 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/AppTasksInfo.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/AppTasksInfo.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type AppTasksInfoT struct { - Info []*AppTaskInfoT -} - -func (t *AppTasksInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - infoOffset := flatbuffers.UOffsetT(0) - if t.Info != nil { - infoLength := len(t.Info) - infoOffsets := make([]flatbuffers.UOffsetT, infoLength) - for j := 0; j < infoLength; j++ { - infoOffsets[j] = t.Info[j].Pack(builder) - } - AppTasksInfoStartInfoVector(builder, infoLength) - for j := infoLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(infoOffsets[j]) - } - infoOffset = builder.EndVector(infoLength) - } - AppTasksInfoStart(builder) - AppTasksInfoAddInfo(builder, infoOffset) - return AppTasksInfoEnd(builder) -} - -func (rcv *AppTasksInfo) UnPackTo(t *AppTasksInfoT) { - infoLength := rcv.InfoLength() - t.Info = make([]*AppTaskInfoT, infoLength) - for j := 0; j < infoLength; j++ { - x := AppTaskInfo{} - rcv.Info(&x, j) - t.Info[j] = x.UnPack() - } -} - -func (rcv *AppTasksInfo) UnPack() *AppTasksInfoT { - if rcv == nil { return nil } - t := &AppTasksInfoT{} - rcv.UnPackTo(t) - return t -} - -type AppTasksInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsAppTasksInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTasksInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &AppTasksInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsAppTasksInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTasksInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &AppTasksInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *AppTasksInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *AppTasksInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *AppTasksInfo) Info(obj *AppTaskInfo, j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Vector(o) - x += flatbuffers.UOffsetT(j) * 4 - x = rcv._tab.Indirect(x) - obj.Init(rcv._tab.Bytes, x) - return true - } - return false -} - -func (rcv *AppTasksInfo) InfoLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func AppTasksInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func AppTasksInfoAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(info), 0) -} -func AppTasksInfoStartInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func AppTasksInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type AppTasksInfoT struct { + Info []*AppTaskInfoT +} + +func (t *AppTasksInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + infoOffset := flatbuffers.UOffsetT(0) + if t.Info != nil { + infoLength := len(t.Info) + infoOffsets := make([]flatbuffers.UOffsetT, infoLength) + for j := 0; j < infoLength; j++ { + infoOffsets[j] = t.Info[j].Pack(builder) + } + AppTasksInfoStartInfoVector(builder, infoLength) + for j := infoLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(infoOffsets[j]) + } + infoOffset = builder.EndVector(infoLength) + } + AppTasksInfoStart(builder) + AppTasksInfoAddInfo(builder, infoOffset) + return AppTasksInfoEnd(builder) +} + +func (rcv *AppTasksInfo) UnPackTo(t *AppTasksInfoT) { + infoLength := rcv.InfoLength() + t.Info = make([]*AppTaskInfoT, infoLength) + for j := 0; j < infoLength; j++ { + x := AppTaskInfo{} + rcv.Info(&x, j) + t.Info[j] = x.UnPack() + } +} + +func (rcv *AppTasksInfo) UnPack() *AppTasksInfoT { + if rcv == nil { return nil } + t := &AppTasksInfoT{} + rcv.UnPackTo(t) + return t +} + +type AppTasksInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsAppTasksInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTasksInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &AppTasksInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsAppTasksInfo(buf []byte, offset flatbuffers.UOffsetT) *AppTasksInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &AppTasksInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *AppTasksInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *AppTasksInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *AppTasksInfo) Info(obj *AppTaskInfo, j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Vector(o) + x += flatbuffers.UOffsetT(j) * 4 + x = rcv._tab.Indirect(x) + obj.Init(rcv._tab.Bytes, x) + return true + } + return false +} + +func (rcv *AppTasksInfo) InfoLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func AppTasksInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func AppTasksInfoAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(info), 0) +} +func AppTasksInfoStartInfoVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func AppTasksInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Area.go b/pkg/fbs/plc/cmp/datalayer/fbs/Area.go index 0882f1a..a956a96 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Area.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Area.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type Area uint32 - -const ( - AreaMARKER Area = 0 - AreaINPUT Area = 1 - AreaOUTPUT Area = 2 -) - -var EnumNamesArea = map[Area]string{ - AreaMARKER: "MARKER", - AreaINPUT: "INPUT", - AreaOUTPUT: "OUTPUT", -} - -var EnumValuesArea = map[string]Area{ - "MARKER": AreaMARKER, - "INPUT": AreaINPUT, - "OUTPUT": AreaOUTPUT, -} - -func (v Area) String() string { - if s, ok := EnumNamesArea[v]; ok { - return s - } - return "Area(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type Area uint32 + +const ( + AreaMARKER Area = 0 + AreaINPUT Area = 1 + AreaOUTPUT Area = 2 +) + +var EnumNamesArea = map[Area]string{ + AreaMARKER: "MARKER", + AreaINPUT: "INPUT", + AreaOUTPUT: "OUTPUT", +} + +var EnumValuesArea = map[string]Area{ + "MARKER": AreaMARKER, + "INPUT": AreaINPUT, + "OUTPUT": AreaOUTPUT, +} + +func (v Area) String() string { + if s, ok := EnumNamesArea[v]; ok { + return s + } + return "Area(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayBool_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayBool_t.go index 96775a6..534e8f8 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayBool_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayBool_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayBool_tT struct { - Data []bool -} - -func (t *ArrayBool_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayBool_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependBool(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayBool_tStart(builder) - ArrayBool_tAddData(builder, dataOffset) - return ArrayBool_tEnd(builder) -} - -func (rcv *ArrayBool_t) UnPackTo(t *ArrayBool_tT) { - dataLength := rcv.DataLength() - t.Data = make([]bool, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayBool_t) UnPack() *ArrayBool_tT { - if rcv == nil { return nil } - t := &ArrayBool_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayBool_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayBool_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayBool_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayBool_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayBool_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayBool_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayBool_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayBool_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayBool_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayBool_t) Data(j int) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) - } - return false -} - -func (rcv *ArrayBool_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayBool_t) MutateData(j int, n bool) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ArrayBool_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayBool_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayBool_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ArrayBool_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayBool_tT struct { + Data []bool +} + +func (t *ArrayBool_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayBool_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependBool(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayBool_tStart(builder) + ArrayBool_tAddData(builder, dataOffset) + return ArrayBool_tEnd(builder) +} + +func (rcv *ArrayBool_t) UnPackTo(t *ArrayBool_tT) { + dataLength := rcv.DataLength() + t.Data = make([]bool, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayBool_t) UnPack() *ArrayBool_tT { + if rcv == nil { return nil } + t := &ArrayBool_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayBool_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayBool_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayBool_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayBool_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayBool_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayBool_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayBool_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayBool_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayBool_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayBool_t) Data(j int) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetBool(a + flatbuffers.UOffsetT(j*1)) + } + return false +} + +func (rcv *ArrayBool_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayBool_t) MutateData(j int, n bool) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateBool(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ArrayBool_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayBool_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayBool_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ArrayBool_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat32_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat32_t.go index 1cdd2db..f1e3a77 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat32_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat32_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayFloat32_tT struct { - Data []float32 -} - -func (t *ArrayFloat32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayFloat32_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependFloat32(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayFloat32_tStart(builder) - ArrayFloat32_tAddData(builder, dataOffset) - return ArrayFloat32_tEnd(builder) -} - -func (rcv *ArrayFloat32_t) UnPackTo(t *ArrayFloat32_tT) { - dataLength := rcv.DataLength() - t.Data = make([]float32, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayFloat32_t) UnPack() *ArrayFloat32_tT { - if rcv == nil { return nil } - t := &ArrayFloat32_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayFloat32_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat32_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayFloat32_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat32_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayFloat32_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayFloat32_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayFloat32_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayFloat32_t) Data(j int) float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *ArrayFloat32_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayFloat32_t) MutateData(j int, n float32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func ArrayFloat32_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayFloat32_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayFloat32_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayFloat32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayFloat32_tT struct { + Data []float32 +} + +func (t *ArrayFloat32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayFloat32_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependFloat32(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayFloat32_tStart(builder) + ArrayFloat32_tAddData(builder, dataOffset) + return ArrayFloat32_tEnd(builder) +} + +func (rcv *ArrayFloat32_t) UnPackTo(t *ArrayFloat32_tT) { + dataLength := rcv.DataLength() + t.Data = make([]float32, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayFloat32_t) UnPack() *ArrayFloat32_tT { + if rcv == nil { return nil } + t := &ArrayFloat32_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayFloat32_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat32_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayFloat32_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat32_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayFloat32_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayFloat32_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayFloat32_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayFloat32_t) Data(j int) float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *ArrayFloat32_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayFloat32_t) MutateData(j int, n float32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func ArrayFloat32_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayFloat32_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayFloat32_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayFloat32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat64_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat64_t.go index eda83ab..2c167b5 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat64_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayFloat64_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayFloat64_tT struct { - Data []float64 -} - -func (t *ArrayFloat64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayFloat64_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayFloat64_tStart(builder) - ArrayFloat64_tAddData(builder, dataOffset) - return ArrayFloat64_tEnd(builder) -} - -func (rcv *ArrayFloat64_t) UnPackTo(t *ArrayFloat64_tT) { - dataLength := rcv.DataLength() - t.Data = make([]float64, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayFloat64_t) UnPack() *ArrayFloat64_tT { - if rcv == nil { return nil } - t := &ArrayFloat64_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayFloat64_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat64_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayFloat64_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat64_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayFloat64_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayFloat64_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayFloat64_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayFloat64_t) Data(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *ArrayFloat64_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayFloat64_t) MutateData(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func ArrayFloat64_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayFloat64_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayFloat64_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func ArrayFloat64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayFloat64_tT struct { + Data []float64 +} + +func (t *ArrayFloat64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayFloat64_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayFloat64_tStart(builder) + ArrayFloat64_tAddData(builder, dataOffset) + return ArrayFloat64_tEnd(builder) +} + +func (rcv *ArrayFloat64_t) UnPackTo(t *ArrayFloat64_tT) { + dataLength := rcv.DataLength() + t.Data = make([]float64, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayFloat64_t) UnPack() *ArrayFloat64_tT { + if rcv == nil { return nil } + t := &ArrayFloat64_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayFloat64_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat64_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayFloat64_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayFloat64_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayFloat64_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayFloat64_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayFloat64_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayFloat64_t) Data(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayFloat64_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayFloat64_t) MutateData(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayFloat64_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayFloat64_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayFloat64_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayFloat64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt16_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt16_t.go index 0df35db..9a30e37 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt16_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt16_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayInt16_tT struct { - Data []int16 -} - -func (t *ArrayInt16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayInt16_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependInt16(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayInt16_tStart(builder) - ArrayInt16_tAddData(builder, dataOffset) - return ArrayInt16_tEnd(builder) -} - -func (rcv *ArrayInt16_t) UnPackTo(t *ArrayInt16_tT) { - dataLength := rcv.DataLength() - t.Data = make([]int16, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayInt16_t) UnPack() *ArrayInt16_tT { - if rcv == nil { return nil } - t := &ArrayInt16_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayInt16_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayInt16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt16_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayInt16_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayInt16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt16_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayInt16_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayInt16_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayInt16_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayInt16_t) Data(j int) int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *ArrayInt16_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayInt16_t) MutateData(j int, n int16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func ArrayInt16_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayInt16_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayInt16_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func ArrayInt16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayInt16_tT struct { + Data []int16 +} + +func (t *ArrayInt16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayInt16_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependInt16(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayInt16_tStart(builder) + ArrayInt16_tAddData(builder, dataOffset) + return ArrayInt16_tEnd(builder) +} + +func (rcv *ArrayInt16_t) UnPackTo(t *ArrayInt16_tT) { + dataLength := rcv.DataLength() + t.Data = make([]int16, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayInt16_t) UnPack() *ArrayInt16_tT { + if rcv == nil { return nil } + t := &ArrayInt16_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayInt16_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayInt16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt16_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayInt16_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayInt16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt16_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayInt16_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayInt16_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayInt16_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayInt16_t) Data(j int) int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *ArrayInt16_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayInt16_t) MutateData(j int, n int16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func ArrayInt16_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayInt16_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayInt16_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func ArrayInt16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt32_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt32_t.go index 68e1fa3..2cdfaf1 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt32_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt32_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayInt32_tT struct { - Data []int32 -} - -func (t *ArrayInt32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayInt32_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependInt32(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayInt32_tStart(builder) - ArrayInt32_tAddData(builder, dataOffset) - return ArrayInt32_tEnd(builder) -} - -func (rcv *ArrayInt32_t) UnPackTo(t *ArrayInt32_tT) { - dataLength := rcv.DataLength() - t.Data = make([]int32, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayInt32_t) UnPack() *ArrayInt32_tT { - if rcv == nil { return nil } - t := &ArrayInt32_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayInt32_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayInt32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt32_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayInt32_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayInt32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt32_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayInt32_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayInt32_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayInt32_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayInt32_t) Data(j int) int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *ArrayInt32_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayInt32_t) MutateData(j int, n int32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func ArrayInt32_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayInt32_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayInt32_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayInt32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayInt32_tT struct { + Data []int32 +} + +func (t *ArrayInt32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayInt32_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependInt32(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayInt32_tStart(builder) + ArrayInt32_tAddData(builder, dataOffset) + return ArrayInt32_tEnd(builder) +} + +func (rcv *ArrayInt32_t) UnPackTo(t *ArrayInt32_tT) { + dataLength := rcv.DataLength() + t.Data = make([]int32, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayInt32_t) UnPack() *ArrayInt32_tT { + if rcv == nil { return nil } + t := &ArrayInt32_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayInt32_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayInt32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt32_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayInt32_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayInt32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt32_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayInt32_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayInt32_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayInt32_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayInt32_t) Data(j int) int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *ArrayInt32_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayInt32_t) MutateData(j int, n int32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func ArrayInt32_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayInt32_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayInt32_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayInt32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt64_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt64_t.go index 12c7574..ac60e16 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt64_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt64_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayInt64_tT struct { - Data []int64 -} - -func (t *ArrayInt64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayInt64_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependInt64(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayInt64_tStart(builder) - ArrayInt64_tAddData(builder, dataOffset) - return ArrayInt64_tEnd(builder) -} - -func (rcv *ArrayInt64_t) UnPackTo(t *ArrayInt64_tT) { - dataLength := rcv.DataLength() - t.Data = make([]int64, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayInt64_t) UnPack() *ArrayInt64_tT { - if rcv == nil { return nil } - t := &ArrayInt64_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayInt64_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayInt64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt64_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayInt64_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayInt64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt64_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayInt64_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayInt64_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayInt64_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayInt64_t) Data(j int) int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *ArrayInt64_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayInt64_t) MutateData(j int, n int64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func ArrayInt64_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayInt64_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayInt64_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func ArrayInt64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayInt64_tT struct { + Data []int64 +} + +func (t *ArrayInt64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayInt64_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependInt64(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayInt64_tStart(builder) + ArrayInt64_tAddData(builder, dataOffset) + return ArrayInt64_tEnd(builder) +} + +func (rcv *ArrayInt64_t) UnPackTo(t *ArrayInt64_tT) { + dataLength := rcv.DataLength() + t.Data = make([]int64, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayInt64_t) UnPack() *ArrayInt64_tT { + if rcv == nil { return nil } + t := &ArrayInt64_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayInt64_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayInt64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt64_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayInt64_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayInt64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt64_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayInt64_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayInt64_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayInt64_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayInt64_t) Data(j int) int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayInt64_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayInt64_t) MutateData(j int, n int64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayInt64_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayInt64_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayInt64_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayInt64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt8_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt8_t.go index 6b51621..1384f84 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt8_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayInt8_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayInt8_tT struct { - Data []int8 -} - -func (t *ArrayInt8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayInt8_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependInt8(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayInt8_tStart(builder) - ArrayInt8_tAddData(builder, dataOffset) - return ArrayInt8_tEnd(builder) -} - -func (rcv *ArrayInt8_t) UnPackTo(t *ArrayInt8_tT) { - dataLength := rcv.DataLength() - t.Data = make([]int8, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayInt8_t) UnPack() *ArrayInt8_tT { - if rcv == nil { return nil } - t := &ArrayInt8_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayInt8_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayInt8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt8_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayInt8_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayInt8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt8_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayInt8_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayInt8_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayInt8_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayInt8_t) Data(j int) int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ArrayInt8_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayInt8_t) MutateData(j int, n int8) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ArrayInt8_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayInt8_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayInt8_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ArrayInt8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayInt8_tT struct { + Data []int8 +} + +func (t *ArrayInt8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayInt8_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependInt8(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayInt8_tStart(builder) + ArrayInt8_tAddData(builder, dataOffset) + return ArrayInt8_tEnd(builder) +} + +func (rcv *ArrayInt8_t) UnPackTo(t *ArrayInt8_tT) { + dataLength := rcv.DataLength() + t.Data = make([]int8, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayInt8_t) UnPack() *ArrayInt8_tT { + if rcv == nil { return nil } + t := &ArrayInt8_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayInt8_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayInt8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt8_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayInt8_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayInt8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayInt8_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayInt8_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayInt8_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayInt8_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayInt8_t) Data(j int) int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ArrayInt8_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayInt8_t) MutateData(j int, n int8) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ArrayInt8_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayInt8_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayInt8_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ArrayInt8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint16_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint16_t.go index 792c23b..f036d45 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint16_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint16_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayUint16_tT struct { - Data []uint16 -} - -func (t *ArrayUint16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayUint16_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependUint16(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayUint16_tStart(builder) - ArrayUint16_tAddData(builder, dataOffset) - return ArrayUint16_tEnd(builder) -} - -func (rcv *ArrayUint16_t) UnPackTo(t *ArrayUint16_tT) { - dataLength := rcv.DataLength() - t.Data = make([]uint16, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayUint16_t) UnPack() *ArrayUint16_tT { - if rcv == nil { return nil } - t := &ArrayUint16_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayUint16_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayUint16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint16_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayUint16_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayUint16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint16_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayUint16_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayUint16_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayUint16_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayUint16_t) Data(j int) uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) - } - return 0 -} - -func (rcv *ArrayUint16_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayUint16_t) MutateData(j int, n uint16) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) - } - return false -} - -func ArrayUint16_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayUint16_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayUint16_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(2, numElems, 2) -} -func ArrayUint16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayUint16_tT struct { + Data []uint16 +} + +func (t *ArrayUint16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayUint16_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependUint16(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayUint16_tStart(builder) + ArrayUint16_tAddData(builder, dataOffset) + return ArrayUint16_tEnd(builder) +} + +func (rcv *ArrayUint16_t) UnPackTo(t *ArrayUint16_tT) { + dataLength := rcv.DataLength() + t.Data = make([]uint16, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayUint16_t) UnPack() *ArrayUint16_tT { + if rcv == nil { return nil } + t := &ArrayUint16_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayUint16_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayUint16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint16_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayUint16_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayUint16_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint16_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayUint16_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayUint16_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayUint16_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayUint16_t) Data(j int) uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint16(a + flatbuffers.UOffsetT(j*2)) + } + return 0 +} + +func (rcv *ArrayUint16_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayUint16_t) MutateData(j int, n uint16) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint16(a+flatbuffers.UOffsetT(j*2), n) + } + return false +} + +func ArrayUint16_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayUint16_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayUint16_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(2, numElems, 2) +} +func ArrayUint16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint32_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint32_t.go index 11a8c13..2ce6bb8 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint32_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint32_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayUint32_tT struct { - Data []uint32 -} - -func (t *ArrayUint32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayUint32_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependUint32(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayUint32_tStart(builder) - ArrayUint32_tAddData(builder, dataOffset) - return ArrayUint32_tEnd(builder) -} - -func (rcv *ArrayUint32_t) UnPackTo(t *ArrayUint32_tT) { - dataLength := rcv.DataLength() - t.Data = make([]uint32, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayUint32_t) UnPack() *ArrayUint32_tT { - if rcv == nil { return nil } - t := &ArrayUint32_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayUint32_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayUint32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint32_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayUint32_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayUint32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint32_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayUint32_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayUint32_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayUint32_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayUint32_t) Data(j int) uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) - } - return 0 -} - -func (rcv *ArrayUint32_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayUint32_t) MutateData(j int, n uint32) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) - } - return false -} - -func ArrayUint32_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayUint32_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayUint32_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ArrayUint32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayUint32_tT struct { + Data []uint32 +} + +func (t *ArrayUint32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayUint32_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependUint32(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayUint32_tStart(builder) + ArrayUint32_tAddData(builder, dataOffset) + return ArrayUint32_tEnd(builder) +} + +func (rcv *ArrayUint32_t) UnPackTo(t *ArrayUint32_tT) { + dataLength := rcv.DataLength() + t.Data = make([]uint32, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayUint32_t) UnPack() *ArrayUint32_tT { + if rcv == nil { return nil } + t := &ArrayUint32_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayUint32_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayUint32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint32_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayUint32_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayUint32_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint32_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayUint32_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayUint32_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayUint32_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayUint32_t) Data(j int) uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) + } + return 0 +} + +func (rcv *ArrayUint32_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayUint32_t) MutateData(j int, n uint32) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) + } + return false +} + +func ArrayUint32_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayUint32_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayUint32_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ArrayUint32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint64_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint64_t.go index 3647021..8f85454 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint64_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint64_t.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayUint64_tT struct { - Data []uint64 -} - -func (t *ArrayUint64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataLength := len(t.Data) - ArrayUint64_tStartDataVector(builder, dataLength) - for j := dataLength - 1; j >= 0; j-- { - builder.PrependUint64(t.Data[j]) - } - dataOffset = builder.EndVector(dataLength) - } - ArrayUint64_tStart(builder) - ArrayUint64_tAddData(builder, dataOffset) - return ArrayUint64_tEnd(builder) -} - -func (rcv *ArrayUint64_t) UnPackTo(t *ArrayUint64_tT) { - dataLength := rcv.DataLength() - t.Data = make([]uint64, dataLength) - for j := 0; j < dataLength; j++ { - t.Data[j] = rcv.Data(j) - } -} - -func (rcv *ArrayUint64_t) UnPack() *ArrayUint64_tT { - if rcv == nil { return nil } - t := &ArrayUint64_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayUint64_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayUint64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint64_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayUint64_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayUint64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint64_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayUint64_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayUint64_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayUint64_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayUint64_t) Data(j int) uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *ArrayUint64_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayUint64_t) MutateData(j int, n uint64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func ArrayUint64_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayUint64_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayUint64_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func ArrayUint64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayUint64_tT struct { + Data []uint64 +} + +func (t *ArrayUint64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataLength := len(t.Data) + ArrayUint64_tStartDataVector(builder, dataLength) + for j := dataLength - 1; j >= 0; j-- { + builder.PrependUint64(t.Data[j]) + } + dataOffset = builder.EndVector(dataLength) + } + ArrayUint64_tStart(builder) + ArrayUint64_tAddData(builder, dataOffset) + return ArrayUint64_tEnd(builder) +} + +func (rcv *ArrayUint64_t) UnPackTo(t *ArrayUint64_tT) { + dataLength := rcv.DataLength() + t.Data = make([]uint64, dataLength) + for j := 0; j < dataLength; j++ { + t.Data[j] = rcv.Data(j) + } +} + +func (rcv *ArrayUint64_t) UnPack() *ArrayUint64_tT { + if rcv == nil { return nil } + t := &ArrayUint64_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayUint64_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayUint64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint64_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayUint64_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayUint64_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint64_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayUint64_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayUint64_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayUint64_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayUint64_t) Data(j int) uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetUint64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *ArrayUint64_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayUint64_t) MutateData(j int, n uint64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateUint64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func ArrayUint64_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayUint64_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayUint64_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func ArrayUint64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint8_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint8_t.go index 7656043..8c0ab57 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint8_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/ArrayUint8_t.go @@ -1,107 +1,107 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ArrayUint8_tT struct { - Data []byte -} - -func (t *ArrayUint8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - dataOffset := flatbuffers.UOffsetT(0) - if t.Data != nil { - dataOffset = builder.CreateByteString(t.Data) - } - ArrayUint8_tStart(builder) - ArrayUint8_tAddData(builder, dataOffset) - return ArrayUint8_tEnd(builder) -} - -func (rcv *ArrayUint8_t) UnPackTo(t *ArrayUint8_tT) { - t.Data = rcv.DataBytes() -} - -func (rcv *ArrayUint8_t) UnPack() *ArrayUint8_tT { - if rcv == nil { return nil } - t := &ArrayUint8_tT{} - rcv.UnPackTo(t) - return t -} - -type ArrayUint8_t struct { - _tab flatbuffers.Table -} - -func GetRootAsArrayUint8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint8_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ArrayUint8_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsArrayUint8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint8_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ArrayUint8_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ArrayUint8_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ArrayUint8_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ArrayUint8_t) Data(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *ArrayUint8_t) DataLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ArrayUint8_t) DataBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ArrayUint8_t) MutateData(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func ArrayUint8_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func ArrayUint8_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) -} -func ArrayUint8_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func ArrayUint8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ArrayUint8_tT struct { + Data []byte +} + +func (t *ArrayUint8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + dataOffset := flatbuffers.UOffsetT(0) + if t.Data != nil { + dataOffset = builder.CreateByteString(t.Data) + } + ArrayUint8_tStart(builder) + ArrayUint8_tAddData(builder, dataOffset) + return ArrayUint8_tEnd(builder) +} + +func (rcv *ArrayUint8_t) UnPackTo(t *ArrayUint8_tT) { + t.Data = rcv.DataBytes() +} + +func (rcv *ArrayUint8_t) UnPack() *ArrayUint8_tT { + if rcv == nil { return nil } + t := &ArrayUint8_tT{} + rcv.UnPackTo(t) + return t +} + +type ArrayUint8_t struct { + _tab flatbuffers.Table +} + +func GetRootAsArrayUint8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint8_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ArrayUint8_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsArrayUint8_t(buf []byte, offset flatbuffers.UOffsetT) *ArrayUint8_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ArrayUint8_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ArrayUint8_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ArrayUint8_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ArrayUint8_t) Data(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *ArrayUint8_t) DataLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ArrayUint8_t) DataBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ArrayUint8_t) MutateData(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func ArrayUint8_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func ArrayUint8_tAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(data), 0) +} +func ArrayUint8_tStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func ArrayUint8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Bool_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Bool_t.go index a09370b..207f76c 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Bool_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Bool_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Bool_tT struct { - Data bool -} - -func (t *Bool_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Bool_tStart(builder) - Bool_tAddData(builder, t.Data) - return Bool_tEnd(builder) -} - -func (rcv *Bool_t) UnPackTo(t *Bool_tT) { - t.Data = rcv.Data() -} - -func (rcv *Bool_t) UnPack() *Bool_tT { - if rcv == nil { return nil } - t := &Bool_tT{} - rcv.UnPackTo(t) - return t -} - -type Bool_t struct { - _tab flatbuffers.Table -} - -func GetRootAsBool_t(buf []byte, offset flatbuffers.UOffsetT) *Bool_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Bool_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsBool_t(buf []byte, offset flatbuffers.UOffsetT) *Bool_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Bool_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Bool_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Bool_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Bool_t) Data() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Bool_t) MutateData(n bool) bool { - return rcv._tab.MutateBoolSlot(4, n) -} - -func Bool_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Bool_tAddData(builder *flatbuffers.Builder, data bool) { - builder.PrependBoolSlot(0, data, false) -} -func Bool_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Bool_tT struct { + Data bool +} + +func (t *Bool_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Bool_tStart(builder) + Bool_tAddData(builder, t.Data) + return Bool_tEnd(builder) +} + +func (rcv *Bool_t) UnPackTo(t *Bool_tT) { + t.Data = rcv.Data() +} + +func (rcv *Bool_t) UnPack() *Bool_tT { + if rcv == nil { return nil } + t := &Bool_tT{} + rcv.UnPackTo(t) + return t +} + +type Bool_t struct { + _tab flatbuffers.Table +} + +func GetRootAsBool_t(buf []byte, offset flatbuffers.UOffsetT) *Bool_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Bool_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsBool_t(buf []byte, offset flatbuffers.UOffsetT) *Bool_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Bool_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Bool_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Bool_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Bool_t) Data() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Bool_t) MutateData(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +func Bool_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Bool_tAddData(builder *flatbuffers.Builder, data bool) { + builder.PrependBoolSlot(0, data, false) +} +func Bool_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Float32_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Float32_t.go index bcf7637..082190e 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Float32_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Float32_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Float32_tT struct { - Data float32 -} - -func (t *Float32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Float32_tStart(builder) - Float32_tAddData(builder, t.Data) - return Float32_tEnd(builder) -} - -func (rcv *Float32_t) UnPackTo(t *Float32_tT) { - t.Data = rcv.Data() -} - -func (rcv *Float32_t) UnPack() *Float32_tT { - if rcv == nil { return nil } - t := &Float32_tT{} - rcv.UnPackTo(t) - return t -} - -type Float32_t struct { - _tab flatbuffers.Table -} - -func GetRootAsFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *Float32_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Float32_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *Float32_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Float32_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Float32_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Float32_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Float32_t) Data() float32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat32(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Float32_t) MutateData(n float32) bool { - return rcv._tab.MutateFloat32Slot(4, n) -} - -func Float32_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Float32_tAddData(builder *flatbuffers.Builder, data float32) { - builder.PrependFloat32Slot(0, data, 0.0) -} -func Float32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Float32_tT struct { + Data float32 +} + +func (t *Float32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Float32_tStart(builder) + Float32_tAddData(builder, t.Data) + return Float32_tEnd(builder) +} + +func (rcv *Float32_t) UnPackTo(t *Float32_tT) { + t.Data = rcv.Data() +} + +func (rcv *Float32_t) UnPack() *Float32_tT { + if rcv == nil { return nil } + t := &Float32_tT{} + rcv.UnPackTo(t) + return t +} + +type Float32_t struct { + _tab flatbuffers.Table +} + +func GetRootAsFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *Float32_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Float32_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFloat32_t(buf []byte, offset flatbuffers.UOffsetT) *Float32_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Float32_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Float32_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Float32_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Float32_t) Data() float32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat32(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Float32_t) MutateData(n float32) bool { + return rcv._tab.MutateFloat32Slot(4, n) +} + +func Float32_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Float32_tAddData(builder *flatbuffers.Builder, data float32) { + builder.PrependFloat32Slot(0, data, 0.0) +} +func Float32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Float64_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Float64_t.go index c4dd3c2..f6e6bf7 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Float64_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Float64_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Float64_tT struct { - Data float64 -} - -func (t *Float64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Float64_tStart(builder) - Float64_tAddData(builder, t.Data) - return Float64_tEnd(builder) -} - -func (rcv *Float64_t) UnPackTo(t *Float64_tT) { - t.Data = rcv.Data() -} - -func (rcv *Float64_t) UnPack() *Float64_tT { - if rcv == nil { return nil } - t := &Float64_tT{} - rcv.UnPackTo(t) - return t -} - -type Float64_t struct { - _tab flatbuffers.Table -} - -func GetRootAsFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *Float64_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Float64_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *Float64_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Float64_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Float64_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Float64_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Float64_t) Data() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Float64_t) MutateData(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func Float64_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Float64_tAddData(builder *flatbuffers.Builder, data float64) { - builder.PrependFloat64Slot(0, data, 0.0) -} -func Float64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Float64_tT struct { + Data float64 +} + +func (t *Float64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Float64_tStart(builder) + Float64_tAddData(builder, t.Data) + return Float64_tEnd(builder) +} + +func (rcv *Float64_t) UnPackTo(t *Float64_tT) { + t.Data = rcv.Data() +} + +func (rcv *Float64_t) UnPack() *Float64_tT { + if rcv == nil { return nil } + t := &Float64_tT{} + rcv.UnPackTo(t) + return t +} + +type Float64_t struct { + _tab flatbuffers.Table +} + +func GetRootAsFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *Float64_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Float64_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsFloat64_t(buf []byte, offset flatbuffers.UOffsetT) *Float64_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Float64_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Float64_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Float64_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Float64_t) Data() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Float64_t) MutateData(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func Float64_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Float64_tAddData(builder *flatbuffers.Builder, data float64) { + builder.PrependFloat64Slot(0, data, 0.0) +} +func Float64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Int16_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Int16_t.go index c5e5acd..580bc3a 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Int16_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Int16_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int16_tT struct { - Data int16 -} - -func (t *Int16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int16_tStart(builder) - Int16_tAddData(builder, t.Data) - return Int16_tEnd(builder) -} - -func (rcv *Int16_t) UnPackTo(t *Int16_tT) { - t.Data = rcv.Data() -} - -func (rcv *Int16_t) UnPack() *Int16_tT { - if rcv == nil { return nil } - t := &Int16_tT{} - rcv.UnPackTo(t) - return t -} - -type Int16_t struct { - _tab flatbuffers.Table -} - -func GetRootAsInt16_t(buf []byte, offset flatbuffers.UOffsetT) *Int16_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int16_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt16_t(buf []byte, offset flatbuffers.UOffsetT) *Int16_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int16_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int16_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int16_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int16_t) Data() int16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int16_t) MutateData(n int16) bool { - return rcv._tab.MutateInt16Slot(4, n) -} - -func Int16_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int16_tAddData(builder *flatbuffers.Builder, data int16) { - builder.PrependInt16Slot(0, data, 0) -} -func Int16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int16_tT struct { + Data int16 +} + +func (t *Int16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int16_tStart(builder) + Int16_tAddData(builder, t.Data) + return Int16_tEnd(builder) +} + +func (rcv *Int16_t) UnPackTo(t *Int16_tT) { + t.Data = rcv.Data() +} + +func (rcv *Int16_t) UnPack() *Int16_tT { + if rcv == nil { return nil } + t := &Int16_tT{} + rcv.UnPackTo(t) + return t +} + +type Int16_t struct { + _tab flatbuffers.Table +} + +func GetRootAsInt16_t(buf []byte, offset flatbuffers.UOffsetT) *Int16_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int16_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt16_t(buf []byte, offset flatbuffers.UOffsetT) *Int16_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int16_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int16_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int16_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int16_t) Data() int16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int16_t) MutateData(n int16) bool { + return rcv._tab.MutateInt16Slot(4, n) +} + +func Int16_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int16_tAddData(builder *flatbuffers.Builder, data int16) { + builder.PrependInt16Slot(0, data, 0) +} +func Int16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Int32_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Int32_t.go index 26c0980..9bba646 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Int32_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Int32_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int32_tT struct { - Data int32 -} - -func (t *Int32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int32_tStart(builder) - Int32_tAddData(builder, t.Data) - return Int32_tEnd(builder) -} - -func (rcv *Int32_t) UnPackTo(t *Int32_tT) { - t.Data = rcv.Data() -} - -func (rcv *Int32_t) UnPack() *Int32_tT { - if rcv == nil { return nil } - t := &Int32_tT{} - rcv.UnPackTo(t) - return t -} - -type Int32_t struct { - _tab flatbuffers.Table -} - -func GetRootAsInt32_t(buf []byte, offset flatbuffers.UOffsetT) *Int32_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int32_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt32_t(buf []byte, offset flatbuffers.UOffsetT) *Int32_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int32_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int32_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int32_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int32_t) Data() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int32_t) MutateData(n int32) bool { - return rcv._tab.MutateInt32Slot(4, n) -} - -func Int32_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int32_tAddData(builder *flatbuffers.Builder, data int32) { - builder.PrependInt32Slot(0, data, 0) -} -func Int32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int32_tT struct { + Data int32 +} + +func (t *Int32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int32_tStart(builder) + Int32_tAddData(builder, t.Data) + return Int32_tEnd(builder) +} + +func (rcv *Int32_t) UnPackTo(t *Int32_tT) { + t.Data = rcv.Data() +} + +func (rcv *Int32_t) UnPack() *Int32_tT { + if rcv == nil { return nil } + t := &Int32_tT{} + rcv.UnPackTo(t) + return t +} + +type Int32_t struct { + _tab flatbuffers.Table +} + +func GetRootAsInt32_t(buf []byte, offset flatbuffers.UOffsetT) *Int32_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int32_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt32_t(buf []byte, offset flatbuffers.UOffsetT) *Int32_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int32_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int32_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int32_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int32_t) Data() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int32_t) MutateData(n int32) bool { + return rcv._tab.MutateInt32Slot(4, n) +} + +func Int32_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int32_tAddData(builder *flatbuffers.Builder, data int32) { + builder.PrependInt32Slot(0, data, 0) +} +func Int32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Int64_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Int64_t.go index 84a94a9..69ce532 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Int64_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Int64_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int64_tT struct { - Data int64 -} - -func (t *Int64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int64_tStart(builder) - Int64_tAddData(builder, t.Data) - return Int64_tEnd(builder) -} - -func (rcv *Int64_t) UnPackTo(t *Int64_tT) { - t.Data = rcv.Data() -} - -func (rcv *Int64_t) UnPack() *Int64_tT { - if rcv == nil { return nil } - t := &Int64_tT{} - rcv.UnPackTo(t) - return t -} - -type Int64_t struct { - _tab flatbuffers.Table -} - -func GetRootAsInt64_t(buf []byte, offset flatbuffers.UOffsetT) *Int64_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int64_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt64_t(buf []byte, offset flatbuffers.UOffsetT) *Int64_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int64_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int64_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int64_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int64_t) Data() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int64_t) MutateData(n int64) bool { - return rcv._tab.MutateInt64Slot(4, n) -} - -func Int64_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int64_tAddData(builder *flatbuffers.Builder, data int64) { - builder.PrependInt64Slot(0, data, 0) -} -func Int64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int64_tT struct { + Data int64 +} + +func (t *Int64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int64_tStart(builder) + Int64_tAddData(builder, t.Data) + return Int64_tEnd(builder) +} + +func (rcv *Int64_t) UnPackTo(t *Int64_tT) { + t.Data = rcv.Data() +} + +func (rcv *Int64_t) UnPack() *Int64_tT { + if rcv == nil { return nil } + t := &Int64_tT{} + rcv.UnPackTo(t) + return t +} + +type Int64_t struct { + _tab flatbuffers.Table +} + +func GetRootAsInt64_t(buf []byte, offset flatbuffers.UOffsetT) *Int64_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int64_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt64_t(buf []byte, offset flatbuffers.UOffsetT) *Int64_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int64_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int64_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int64_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int64_t) Data() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int64_t) MutateData(n int64) bool { + return rcv._tab.MutateInt64Slot(4, n) +} + +func Int64_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int64_tAddData(builder *flatbuffers.Builder, data int64) { + builder.PrependInt64Slot(0, data, 0) +} +func Int64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Int8_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Int8_t.go index baff4ea..63f655e 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Int8_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Int8_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Int8_tT struct { - Data int8 -} - -func (t *Int8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Int8_tStart(builder) - Int8_tAddData(builder, t.Data) - return Int8_tEnd(builder) -} - -func (rcv *Int8_t) UnPackTo(t *Int8_tT) { - t.Data = rcv.Data() -} - -func (rcv *Int8_t) UnPack() *Int8_tT { - if rcv == nil { return nil } - t := &Int8_tT{} - rcv.UnPackTo(t) - return t -} - -type Int8_t struct { - _tab flatbuffers.Table -} - -func GetRootAsInt8_t(buf []byte, offset flatbuffers.UOffsetT) *Int8_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Int8_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsInt8_t(buf []byte, offset flatbuffers.UOffsetT) *Int8_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Int8_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Int8_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Int8_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Int8_t) Data() int8 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetInt8(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Int8_t) MutateData(n int8) bool { - return rcv._tab.MutateInt8Slot(4, n) -} - -func Int8_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Int8_tAddData(builder *flatbuffers.Builder, data int8) { - builder.PrependInt8Slot(0, data, 0) -} -func Int8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Int8_tT struct { + Data int8 +} + +func (t *Int8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Int8_tStart(builder) + Int8_tAddData(builder, t.Data) + return Int8_tEnd(builder) +} + +func (rcv *Int8_t) UnPackTo(t *Int8_tT) { + t.Data = rcv.Data() +} + +func (rcv *Int8_t) UnPack() *Int8_tT { + if rcv == nil { return nil } + t := &Int8_tT{} + rcv.UnPackTo(t) + return t +} + +type Int8_t struct { + _tab flatbuffers.Table +} + +func GetRootAsInt8_t(buf []byte, offset flatbuffers.UOffsetT) *Int8_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Int8_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsInt8_t(buf []byte, offset flatbuffers.UOffsetT) *Int8_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Int8_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Int8_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Int8_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Int8_t) Data() int8 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetInt8(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Int8_t) MutateData(n int8) bool { + return rcv._tab.MutateInt8Slot(4, n) +} + +func Int8_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Int8_tAddData(builder *flatbuffers.Builder, data int8) { + builder.PrependInt8Slot(0, data, 0) +} +func Int8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Reset.go b/pkg/fbs/plc/cmp/datalayer/fbs/Reset.go index d6a3c58..d9cfbfe 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Reset.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Reset.go @@ -1,35 +1,35 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type Reset uint32 - -const ( - ResetWARM Reset = 0 - ResetCOLD Reset = 1 - ResetORIGIN Reset = 2 - ResetORIGIN_DEVICE Reset = 3 -) - -var EnumNamesReset = map[Reset]string{ - ResetWARM: "WARM", - ResetCOLD: "COLD", - ResetORIGIN: "ORIGIN", - ResetORIGIN_DEVICE: "ORIGIN_DEVICE", -} - -var EnumValuesReset = map[string]Reset{ - "WARM": ResetWARM, - "COLD": ResetCOLD, - "ORIGIN": ResetORIGIN, - "ORIGIN_DEVICE": ResetORIGIN_DEVICE, -} - -func (v Reset) String() string { - if s, ok := EnumNamesReset[v]; ok { - return s - } - return "Reset(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type Reset uint32 + +const ( + ResetWARM Reset = 0 + ResetCOLD Reset = 1 + ResetORIGIN Reset = 2 + ResetORIGIN_DEVICE Reset = 3 +) + +var EnumNamesReset = map[Reset]string{ + ResetWARM: "WARM", + ResetCOLD: "COLD", + ResetORIGIN: "ORIGIN", + ResetORIGIN_DEVICE: "ORIGIN_DEVICE", +} + +var EnumValuesReset = map[string]Reset{ + "WARM": ResetWARM, + "COLD": ResetCOLD, + "ORIGIN": ResetORIGIN, + "ORIGIN_DEVICE": ResetORIGIN_DEVICE, +} + +func (v Reset) String() string { + if s, ok := EnumNamesReset[v]; ok { + return s + } + return "Reset(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/State.go b/pkg/fbs/plc/cmp/datalayer/fbs/State.go index ca55c34..737f357 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/State.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/State.go @@ -1,44 +1,44 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type State uint32 - -const ( - StateNONE State = 0 - StateRUN State = 1 - StateSTOP State = 2 - StateDEBUG_BREAKPOINT State = 3 - StateDEBUG_STEP State = 4 - StateSINGLE_CYCLE State = 5 - StateSYSTEM State = 6 -) - -var EnumNamesState = map[State]string{ - StateNONE: "NONE", - StateRUN: "RUN", - StateSTOP: "STOP", - StateDEBUG_BREAKPOINT: "DEBUG_BREAKPOINT", - StateDEBUG_STEP: "DEBUG_STEP", - StateSINGLE_CYCLE: "SINGLE_CYCLE", - StateSYSTEM: "SYSTEM", -} - -var EnumValuesState = map[string]State{ - "NONE": StateNONE, - "RUN": StateRUN, - "STOP": StateSTOP, - "DEBUG_BREAKPOINT": StateDEBUG_BREAKPOINT, - "DEBUG_STEP": StateDEBUG_STEP, - "SINGLE_CYCLE": StateSINGLE_CYCLE, - "SYSTEM": StateSYSTEM, -} - -func (v State) String() string { - if s, ok := EnumNamesState[v]; ok { - return s - } - return "State(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type State uint32 + +const ( + StateNONE State = 0 + StateRUN State = 1 + StateSTOP State = 2 + StateDEBUG_BREAKPOINT State = 3 + StateDEBUG_STEP State = 4 + StateSINGLE_CYCLE State = 5 + StateSYSTEM State = 6 +) + +var EnumNamesState = map[State]string{ + StateNONE: "NONE", + StateRUN: "RUN", + StateSTOP: "STOP", + StateDEBUG_BREAKPOINT: "DEBUG_BREAKPOINT", + StateDEBUG_STEP: "DEBUG_STEP", + StateSINGLE_CYCLE: "SINGLE_CYCLE", + StateSYSTEM: "SYSTEM", +} + +var EnumValuesState = map[string]State{ + "NONE": StateNONE, + "RUN": StateRUN, + "STOP": StateSTOP, + "DEBUG_BREAKPOINT": StateDEBUG_BREAKPOINT, + "DEBUG_STEP": StateDEBUG_STEP, + "SINGLE_CYCLE": StateSINGLE_CYCLE, + "SYSTEM": StateSYSTEM, +} + +func (v State) String() string { + if s, ok := EnumNamesState[v]; ok { + return s + } + return "State(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/TaskType.go b/pkg/fbs/plc/cmp/datalayer/fbs/TaskType.go index 5bdbd37..f85a2b3 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/TaskType.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/TaskType.go @@ -1,38 +1,38 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import "strconv" - -type TaskType uint32 - -const ( - TaskTypeCYCLIC TaskType = 0 - TaskTypeEVENT TaskType = 1 - TaskTypeEXTERNAL TaskType = 2 - TaskTypeFREEWHEELING TaskType = 3 - TaskTypeOTHER TaskType = 255 -) - -var EnumNamesTaskType = map[TaskType]string{ - TaskTypeCYCLIC: "CYCLIC", - TaskTypeEVENT: "EVENT", - TaskTypeEXTERNAL: "EXTERNAL", - TaskTypeFREEWHEELING: "FREEWHEELING", - TaskTypeOTHER: "OTHER", -} - -var EnumValuesTaskType = map[string]TaskType{ - "CYCLIC": TaskTypeCYCLIC, - "EVENT": TaskTypeEVENT, - "EXTERNAL": TaskTypeEXTERNAL, - "FREEWHEELING": TaskTypeFREEWHEELING, - "OTHER": TaskTypeOTHER, -} - -func (v TaskType) String() string { - if s, ok := EnumNamesTaskType[v]; ok { - return s - } - return "TaskType(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import "strconv" + +type TaskType uint32 + +const ( + TaskTypeCYCLIC TaskType = 0 + TaskTypeEVENT TaskType = 1 + TaskTypeEXTERNAL TaskType = 2 + TaskTypeFREEWHEELING TaskType = 3 + TaskTypeOTHER TaskType = 255 +) + +var EnumNamesTaskType = map[TaskType]string{ + TaskTypeCYCLIC: "CYCLIC", + TaskTypeEVENT: "EVENT", + TaskTypeEXTERNAL: "EXTERNAL", + TaskTypeFREEWHEELING: "FREEWHEELING", + TaskTypeOTHER: "OTHER", +} + +var EnumValuesTaskType = map[string]TaskType{ + "CYCLIC": TaskTypeCYCLIC, + "EVENT": TaskTypeEVENT, + "EXTERNAL": TaskTypeEXTERNAL, + "FREEWHEELING": TaskTypeFREEWHEELING, + "OTHER": TaskTypeOTHER, +} + +func (v TaskType) String() string { + if s, ok := EnumNamesTaskType[v]; ok { + return s + } + return "TaskType(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Uint16_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Uint16_t.go index 288e89e..754c75d 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Uint16_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Uint16_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Uint16_tT struct { - Data uint16 -} - -func (t *Uint16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Uint16_tStart(builder) - Uint16_tAddData(builder, t.Data) - return Uint16_tEnd(builder) -} - -func (rcv *Uint16_t) UnPackTo(t *Uint16_tT) { - t.Data = rcv.Data() -} - -func (rcv *Uint16_t) UnPack() *Uint16_tT { - if rcv == nil { return nil } - t := &Uint16_tT{} - rcv.UnPackTo(t) - return t -} - -type Uint16_t struct { - _tab flatbuffers.Table -} - -func GetRootAsUint16_t(buf []byte, offset flatbuffers.UOffsetT) *Uint16_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Uint16_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUint16_t(buf []byte, offset flatbuffers.UOffsetT) *Uint16_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Uint16_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Uint16_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Uint16_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Uint16_t) Data() uint16 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint16(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Uint16_t) MutateData(n uint16) bool { - return rcv._tab.MutateUint16Slot(4, n) -} - -func Uint16_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Uint16_tAddData(builder *flatbuffers.Builder, data uint16) { - builder.PrependUint16Slot(0, data, 0) -} -func Uint16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Uint16_tT struct { + Data uint16 +} + +func (t *Uint16_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Uint16_tStart(builder) + Uint16_tAddData(builder, t.Data) + return Uint16_tEnd(builder) +} + +func (rcv *Uint16_t) UnPackTo(t *Uint16_tT) { + t.Data = rcv.Data() +} + +func (rcv *Uint16_t) UnPack() *Uint16_tT { + if rcv == nil { return nil } + t := &Uint16_tT{} + rcv.UnPackTo(t) + return t +} + +type Uint16_t struct { + _tab flatbuffers.Table +} + +func GetRootAsUint16_t(buf []byte, offset flatbuffers.UOffsetT) *Uint16_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Uint16_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUint16_t(buf []byte, offset flatbuffers.UOffsetT) *Uint16_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Uint16_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Uint16_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Uint16_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Uint16_t) Data() uint16 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint16(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Uint16_t) MutateData(n uint16) bool { + return rcv._tab.MutateUint16Slot(4, n) +} + +func Uint16_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Uint16_tAddData(builder *flatbuffers.Builder, data uint16) { + builder.PrependUint16Slot(0, data, 0) +} +func Uint16_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Uint32_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Uint32_t.go index 0ca5498..087d0d1 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Uint32_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Uint32_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Uint32_tT struct { - Data uint32 -} - -func (t *Uint32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Uint32_tStart(builder) - Uint32_tAddData(builder, t.Data) - return Uint32_tEnd(builder) -} - -func (rcv *Uint32_t) UnPackTo(t *Uint32_tT) { - t.Data = rcv.Data() -} - -func (rcv *Uint32_t) UnPack() *Uint32_tT { - if rcv == nil { return nil } - t := &Uint32_tT{} - rcv.UnPackTo(t) - return t -} - -type Uint32_t struct { - _tab flatbuffers.Table -} - -func GetRootAsUint32_t(buf []byte, offset flatbuffers.UOffsetT) *Uint32_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Uint32_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUint32_t(buf []byte, offset flatbuffers.UOffsetT) *Uint32_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Uint32_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Uint32_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Uint32_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Uint32_t) Data() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Uint32_t) MutateData(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func Uint32_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Uint32_tAddData(builder *flatbuffers.Builder, data uint32) { - builder.PrependUint32Slot(0, data, 0) -} -func Uint32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Uint32_tT struct { + Data uint32 +} + +func (t *Uint32_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Uint32_tStart(builder) + Uint32_tAddData(builder, t.Data) + return Uint32_tEnd(builder) +} + +func (rcv *Uint32_t) UnPackTo(t *Uint32_tT) { + t.Data = rcv.Data() +} + +func (rcv *Uint32_t) UnPack() *Uint32_tT { + if rcv == nil { return nil } + t := &Uint32_tT{} + rcv.UnPackTo(t) + return t +} + +type Uint32_t struct { + _tab flatbuffers.Table +} + +func GetRootAsUint32_t(buf []byte, offset flatbuffers.UOffsetT) *Uint32_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Uint32_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUint32_t(buf []byte, offset flatbuffers.UOffsetT) *Uint32_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Uint32_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Uint32_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Uint32_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Uint32_t) Data() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Uint32_t) MutateData(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func Uint32_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Uint32_tAddData(builder *flatbuffers.Builder, data uint32) { + builder.PrependUint32Slot(0, data, 0) +} +func Uint32_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Uint64_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Uint64_t.go index 60aaacb..46dd243 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Uint64_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Uint64_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Uint64_tT struct { - Data uint64 -} - -func (t *Uint64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Uint64_tStart(builder) - Uint64_tAddData(builder, t.Data) - return Uint64_tEnd(builder) -} - -func (rcv *Uint64_t) UnPackTo(t *Uint64_tT) { - t.Data = rcv.Data() -} - -func (rcv *Uint64_t) UnPack() *Uint64_tT { - if rcv == nil { return nil } - t := &Uint64_tT{} - rcv.UnPackTo(t) - return t -} - -type Uint64_t struct { - _tab flatbuffers.Table -} - -func GetRootAsUint64_t(buf []byte, offset flatbuffers.UOffsetT) *Uint64_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Uint64_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUint64_t(buf []byte, offset flatbuffers.UOffsetT) *Uint64_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Uint64_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Uint64_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Uint64_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Uint64_t) Data() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Uint64_t) MutateData(n uint64) bool { - return rcv._tab.MutateUint64Slot(4, n) -} - -func Uint64_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Uint64_tAddData(builder *flatbuffers.Builder, data uint64) { - builder.PrependUint64Slot(0, data, 0) -} -func Uint64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Uint64_tT struct { + Data uint64 +} + +func (t *Uint64_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Uint64_tStart(builder) + Uint64_tAddData(builder, t.Data) + return Uint64_tEnd(builder) +} + +func (rcv *Uint64_t) UnPackTo(t *Uint64_tT) { + t.Data = rcv.Data() +} + +func (rcv *Uint64_t) UnPack() *Uint64_tT { + if rcv == nil { return nil } + t := &Uint64_tT{} + rcv.UnPackTo(t) + return t +} + +type Uint64_t struct { + _tab flatbuffers.Table +} + +func GetRootAsUint64_t(buf []byte, offset flatbuffers.UOffsetT) *Uint64_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Uint64_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUint64_t(buf []byte, offset flatbuffers.UOffsetT) *Uint64_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Uint64_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Uint64_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Uint64_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Uint64_t) Data() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Uint64_t) MutateData(n uint64) bool { + return rcv._tab.MutateUint64Slot(4, n) +} + +func Uint64_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Uint64_tAddData(builder *flatbuffers.Builder, data uint64) { + builder.PrependUint64Slot(0, data, 0) +} +func Uint64_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Uint8_t.go b/pkg/fbs/plc/cmp/datalayer/fbs/Uint8_t.go index 0edb8e3..f868370 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Uint8_t.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Uint8_t.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Uint8_tT struct { - Data byte -} - -func (t *Uint8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Uint8_tStart(builder) - Uint8_tAddData(builder, t.Data) - return Uint8_tEnd(builder) -} - -func (rcv *Uint8_t) UnPackTo(t *Uint8_tT) { - t.Data = rcv.Data() -} - -func (rcv *Uint8_t) UnPack() *Uint8_tT { - if rcv == nil { return nil } - t := &Uint8_tT{} - rcv.UnPackTo(t) - return t -} - -type Uint8_t struct { - _tab flatbuffers.Table -} - -func GetRootAsUint8_t(buf []byte, offset flatbuffers.UOffsetT) *Uint8_t { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Uint8_t{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsUint8_t(buf []byte, offset flatbuffers.UOffsetT) *Uint8_t { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Uint8_t{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Uint8_t) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Uint8_t) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Uint8_t) Data() byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetByte(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Uint8_t) MutateData(n byte) bool { - return rcv._tab.MutateByteSlot(4, n) -} - -func Uint8_tStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func Uint8_tAddData(builder *flatbuffers.Builder, data byte) { - builder.PrependByteSlot(0, data, 0) -} -func Uint8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Uint8_tT struct { + Data byte +} + +func (t *Uint8_tT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Uint8_tStart(builder) + Uint8_tAddData(builder, t.Data) + return Uint8_tEnd(builder) +} + +func (rcv *Uint8_t) UnPackTo(t *Uint8_tT) { + t.Data = rcv.Data() +} + +func (rcv *Uint8_t) UnPack() *Uint8_tT { + if rcv == nil { return nil } + t := &Uint8_tT{} + rcv.UnPackTo(t) + return t +} + +type Uint8_t struct { + _tab flatbuffers.Table +} + +func GetRootAsUint8_t(buf []byte, offset flatbuffers.UOffsetT) *Uint8_t { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Uint8_t{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsUint8_t(buf []byte, offset flatbuffers.UOffsetT) *Uint8_t { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Uint8_t{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Uint8_t) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Uint8_t) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Uint8_t) Data() byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetByte(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Uint8_t) MutateData(n byte) bool { + return rcv._tab.MutateByteSlot(4, n) +} + +func Uint8_tStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func Uint8_tAddData(builder *flatbuffers.Builder, data byte) { + builder.PrependByteSlot(0, data, 0) +} +func Uint8_tEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/plc/cmp/datalayer/fbs/Value.go b/pkg/fbs/plc/cmp/datalayer/fbs/Value.go index 66e5cef..817bc5c 100644 --- a/pkg/fbs/plc/cmp/datalayer/fbs/Value.go +++ b/pkg/fbs/plc/cmp/datalayer/fbs/Value.go @@ -1,226 +1,226 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbs - -import ( - "strconv" - - flatbuffers "github.com/google/flatbuffers/go" -) - -type Value byte - -const ( - ValueNONE Value = 0 - ValueBool_t Value = 1 - ValueArrayBool_t Value = 2 - ValueInt8_t Value = 3 - ValueInt16_t Value = 4 - ValueInt32_t Value = 5 - ValueInt64_t Value = 6 - ValueUint8_t Value = 7 - ValueUint16_t Value = 8 - ValueUint32_t Value = 9 - ValueUint64_t Value = 10 - ValueFloat32_t Value = 11 - ValueFloat64_t Value = 12 - ValueArrayInt8_t Value = 13 - ValueArrayInt16_t Value = 14 - ValueArrayInt32_t Value = 15 - ValueArrayUint64_t Value = 16 - ValueArrayUint8_t Value = 17 - ValueArrayUint16_t Value = 18 - ValueArrayUint32_t Value = 19 - ValueArrayInt64_t Value = 20 - ValueArrayFloat32_t Value = 21 - ValueArrayFloat64_t Value = 22 -) - -var EnumNamesValue = map[Value]string{ - ValueNONE: "NONE", - ValueBool_t: "Bool_t", - ValueArrayBool_t: "ArrayBool_t", - ValueInt8_t: "Int8_t", - ValueInt16_t: "Int16_t", - ValueInt32_t: "Int32_t", - ValueInt64_t: "Int64_t", - ValueUint8_t: "Uint8_t", - ValueUint16_t: "Uint16_t", - ValueUint32_t: "Uint32_t", - ValueUint64_t: "Uint64_t", - ValueFloat32_t: "Float32_t", - ValueFloat64_t: "Float64_t", - ValueArrayInt8_t: "ArrayInt8_t", - ValueArrayInt16_t: "ArrayInt16_t", - ValueArrayInt32_t: "ArrayInt32_t", - ValueArrayUint64_t: "ArrayUint64_t", - ValueArrayUint8_t: "ArrayUint8_t", - ValueArrayUint16_t: "ArrayUint16_t", - ValueArrayUint32_t: "ArrayUint32_t", - ValueArrayInt64_t: "ArrayInt64_t", - ValueArrayFloat32_t: "ArrayFloat32_t", - ValueArrayFloat64_t: "ArrayFloat64_t", -} - -var EnumValuesValue = map[string]Value{ - "NONE": ValueNONE, - "Bool_t": ValueBool_t, - "ArrayBool_t": ValueArrayBool_t, - "Int8_t": ValueInt8_t, - "Int16_t": ValueInt16_t, - "Int32_t": ValueInt32_t, - "Int64_t": ValueInt64_t, - "Uint8_t": ValueUint8_t, - "Uint16_t": ValueUint16_t, - "Uint32_t": ValueUint32_t, - "Uint64_t": ValueUint64_t, - "Float32_t": ValueFloat32_t, - "Float64_t": ValueFloat64_t, - "ArrayInt8_t": ValueArrayInt8_t, - "ArrayInt16_t": ValueArrayInt16_t, - "ArrayInt32_t": ValueArrayInt32_t, - "ArrayUint64_t": ValueArrayUint64_t, - "ArrayUint8_t": ValueArrayUint8_t, - "ArrayUint16_t": ValueArrayUint16_t, - "ArrayUint32_t": ValueArrayUint32_t, - "ArrayInt64_t": ValueArrayInt64_t, - "ArrayFloat32_t": ValueArrayFloat32_t, - "ArrayFloat64_t": ValueArrayFloat64_t, -} - -func (v Value) String() string { - if s, ok := EnumNamesValue[v]; ok { - return s - } - return "Value(" + strconv.FormatInt(int64(v), 10) + ")" -} - -type ValueT struct { - Type Value - Value interface{} -} - -func (t *ValueT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { - return 0 - } - switch t.Type { - case ValueBool_t: - return t.Value.(*Bool_tT).Pack(builder) - case ValueArrayBool_t: - return t.Value.(*ArrayBool_tT).Pack(builder) - case ValueInt8_t: - return t.Value.(*Int8_tT).Pack(builder) - case ValueInt16_t: - return t.Value.(*Int16_tT).Pack(builder) - case ValueInt32_t: - return t.Value.(*Int32_tT).Pack(builder) - case ValueInt64_t: - return t.Value.(*Int64_tT).Pack(builder) - case ValueUint8_t: - return t.Value.(*Uint8_tT).Pack(builder) - case ValueUint16_t: - return t.Value.(*Uint16_tT).Pack(builder) - case ValueUint32_t: - return t.Value.(*Uint32_tT).Pack(builder) - case ValueUint64_t: - return t.Value.(*Uint64_tT).Pack(builder) - case ValueFloat32_t: - return t.Value.(*Float32_tT).Pack(builder) - case ValueFloat64_t: - return t.Value.(*Float64_tT).Pack(builder) - case ValueArrayInt8_t: - return t.Value.(*ArrayInt8_tT).Pack(builder) - case ValueArrayInt16_t: - return t.Value.(*ArrayInt16_tT).Pack(builder) - case ValueArrayInt32_t: - return t.Value.(*ArrayInt32_tT).Pack(builder) - case ValueArrayUint64_t: - return t.Value.(*ArrayUint64_tT).Pack(builder) - case ValueArrayUint8_t: - return t.Value.(*ArrayUint8_tT).Pack(builder) - case ValueArrayUint16_t: - return t.Value.(*ArrayUint16_tT).Pack(builder) - case ValueArrayUint32_t: - return t.Value.(*ArrayUint32_tT).Pack(builder) - case ValueArrayInt64_t: - return t.Value.(*ArrayInt64_tT).Pack(builder) - case ValueArrayFloat32_t: - return t.Value.(*ArrayFloat32_tT).Pack(builder) - case ValueArrayFloat64_t: - return t.Value.(*ArrayFloat64_tT).Pack(builder) - } - return 0 -} - -func (rcv Value) UnPack(table flatbuffers.Table) *ValueT { - switch rcv { - case ValueBool_t: - x := Bool_t{_tab: table} - return &ValueT{ Type: ValueBool_t, Value: x.UnPack() } - case ValueArrayBool_t: - x := ArrayBool_t{_tab: table} - return &ValueT{ Type: ValueArrayBool_t, Value: x.UnPack() } - case ValueInt8_t: - x := Int8_t{_tab: table} - return &ValueT{ Type: ValueInt8_t, Value: x.UnPack() } - case ValueInt16_t: - x := Int16_t{_tab: table} - return &ValueT{ Type: ValueInt16_t, Value: x.UnPack() } - case ValueInt32_t: - x := Int32_t{_tab: table} - return &ValueT{ Type: ValueInt32_t, Value: x.UnPack() } - case ValueInt64_t: - x := Int64_t{_tab: table} - return &ValueT{ Type: ValueInt64_t, Value: x.UnPack() } - case ValueUint8_t: - x := Uint8_t{_tab: table} - return &ValueT{ Type: ValueUint8_t, Value: x.UnPack() } - case ValueUint16_t: - x := Uint16_t{_tab: table} - return &ValueT{ Type: ValueUint16_t, Value: x.UnPack() } - case ValueUint32_t: - x := Uint32_t{_tab: table} - return &ValueT{ Type: ValueUint32_t, Value: x.UnPack() } - case ValueUint64_t: - x := Uint64_t{_tab: table} - return &ValueT{ Type: ValueUint64_t, Value: x.UnPack() } - case ValueFloat32_t: - x := Float32_t{_tab: table} - return &ValueT{ Type: ValueFloat32_t, Value: x.UnPack() } - case ValueFloat64_t: - x := Float64_t{_tab: table} - return &ValueT{ Type: ValueFloat64_t, Value: x.UnPack() } - case ValueArrayInt8_t: - x := ArrayInt8_t{_tab: table} - return &ValueT{ Type: ValueArrayInt8_t, Value: x.UnPack() } - case ValueArrayInt16_t: - x := ArrayInt16_t{_tab: table} - return &ValueT{ Type: ValueArrayInt16_t, Value: x.UnPack() } - case ValueArrayInt32_t: - x := ArrayInt32_t{_tab: table} - return &ValueT{ Type: ValueArrayInt32_t, Value: x.UnPack() } - case ValueArrayUint64_t: - x := ArrayUint64_t{_tab: table} - return &ValueT{ Type: ValueArrayUint64_t, Value: x.UnPack() } - case ValueArrayUint8_t: - x := ArrayUint8_t{_tab: table} - return &ValueT{ Type: ValueArrayUint8_t, Value: x.UnPack() } - case ValueArrayUint16_t: - x := ArrayUint16_t{_tab: table} - return &ValueT{ Type: ValueArrayUint16_t, Value: x.UnPack() } - case ValueArrayUint32_t: - x := ArrayUint32_t{_tab: table} - return &ValueT{ Type: ValueArrayUint32_t, Value: x.UnPack() } - case ValueArrayInt64_t: - x := ArrayInt64_t{_tab: table} - return &ValueT{ Type: ValueArrayInt64_t, Value: x.UnPack() } - case ValueArrayFloat32_t: - x := ArrayFloat32_t{_tab: table} - return &ValueT{ Type: ValueArrayFloat32_t, Value: x.UnPack() } - case ValueArrayFloat64_t: - x := ArrayFloat64_t{_tab: table} - return &ValueT{ Type: ValueArrayFloat64_t, Value: x.UnPack() } - } - return nil -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbs + +import ( + "strconv" + + flatbuffers "github.com/google/flatbuffers/go" +) + +type Value byte + +const ( + ValueNONE Value = 0 + ValueBool_t Value = 1 + ValueArrayBool_t Value = 2 + ValueInt8_t Value = 3 + ValueInt16_t Value = 4 + ValueInt32_t Value = 5 + ValueInt64_t Value = 6 + ValueUint8_t Value = 7 + ValueUint16_t Value = 8 + ValueUint32_t Value = 9 + ValueUint64_t Value = 10 + ValueFloat32_t Value = 11 + ValueFloat64_t Value = 12 + ValueArrayInt8_t Value = 13 + ValueArrayInt16_t Value = 14 + ValueArrayInt32_t Value = 15 + ValueArrayUint64_t Value = 16 + ValueArrayUint8_t Value = 17 + ValueArrayUint16_t Value = 18 + ValueArrayUint32_t Value = 19 + ValueArrayInt64_t Value = 20 + ValueArrayFloat32_t Value = 21 + ValueArrayFloat64_t Value = 22 +) + +var EnumNamesValue = map[Value]string{ + ValueNONE: "NONE", + ValueBool_t: "Bool_t", + ValueArrayBool_t: "ArrayBool_t", + ValueInt8_t: "Int8_t", + ValueInt16_t: "Int16_t", + ValueInt32_t: "Int32_t", + ValueInt64_t: "Int64_t", + ValueUint8_t: "Uint8_t", + ValueUint16_t: "Uint16_t", + ValueUint32_t: "Uint32_t", + ValueUint64_t: "Uint64_t", + ValueFloat32_t: "Float32_t", + ValueFloat64_t: "Float64_t", + ValueArrayInt8_t: "ArrayInt8_t", + ValueArrayInt16_t: "ArrayInt16_t", + ValueArrayInt32_t: "ArrayInt32_t", + ValueArrayUint64_t: "ArrayUint64_t", + ValueArrayUint8_t: "ArrayUint8_t", + ValueArrayUint16_t: "ArrayUint16_t", + ValueArrayUint32_t: "ArrayUint32_t", + ValueArrayInt64_t: "ArrayInt64_t", + ValueArrayFloat32_t: "ArrayFloat32_t", + ValueArrayFloat64_t: "ArrayFloat64_t", +} + +var EnumValuesValue = map[string]Value{ + "NONE": ValueNONE, + "Bool_t": ValueBool_t, + "ArrayBool_t": ValueArrayBool_t, + "Int8_t": ValueInt8_t, + "Int16_t": ValueInt16_t, + "Int32_t": ValueInt32_t, + "Int64_t": ValueInt64_t, + "Uint8_t": ValueUint8_t, + "Uint16_t": ValueUint16_t, + "Uint32_t": ValueUint32_t, + "Uint64_t": ValueUint64_t, + "Float32_t": ValueFloat32_t, + "Float64_t": ValueFloat64_t, + "ArrayInt8_t": ValueArrayInt8_t, + "ArrayInt16_t": ValueArrayInt16_t, + "ArrayInt32_t": ValueArrayInt32_t, + "ArrayUint64_t": ValueArrayUint64_t, + "ArrayUint8_t": ValueArrayUint8_t, + "ArrayUint16_t": ValueArrayUint16_t, + "ArrayUint32_t": ValueArrayUint32_t, + "ArrayInt64_t": ValueArrayInt64_t, + "ArrayFloat32_t": ValueArrayFloat32_t, + "ArrayFloat64_t": ValueArrayFloat64_t, +} + +func (v Value) String() string { + if s, ok := EnumNamesValue[v]; ok { + return s + } + return "Value(" + strconv.FormatInt(int64(v), 10) + ")" +} + +type ValueT struct { + Type Value + Value interface{} +} + +func (t *ValueT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { + return 0 + } + switch t.Type { + case ValueBool_t: + return t.Value.(*Bool_tT).Pack(builder) + case ValueArrayBool_t: + return t.Value.(*ArrayBool_tT).Pack(builder) + case ValueInt8_t: + return t.Value.(*Int8_tT).Pack(builder) + case ValueInt16_t: + return t.Value.(*Int16_tT).Pack(builder) + case ValueInt32_t: + return t.Value.(*Int32_tT).Pack(builder) + case ValueInt64_t: + return t.Value.(*Int64_tT).Pack(builder) + case ValueUint8_t: + return t.Value.(*Uint8_tT).Pack(builder) + case ValueUint16_t: + return t.Value.(*Uint16_tT).Pack(builder) + case ValueUint32_t: + return t.Value.(*Uint32_tT).Pack(builder) + case ValueUint64_t: + return t.Value.(*Uint64_tT).Pack(builder) + case ValueFloat32_t: + return t.Value.(*Float32_tT).Pack(builder) + case ValueFloat64_t: + return t.Value.(*Float64_tT).Pack(builder) + case ValueArrayInt8_t: + return t.Value.(*ArrayInt8_tT).Pack(builder) + case ValueArrayInt16_t: + return t.Value.(*ArrayInt16_tT).Pack(builder) + case ValueArrayInt32_t: + return t.Value.(*ArrayInt32_tT).Pack(builder) + case ValueArrayUint64_t: + return t.Value.(*ArrayUint64_tT).Pack(builder) + case ValueArrayUint8_t: + return t.Value.(*ArrayUint8_tT).Pack(builder) + case ValueArrayUint16_t: + return t.Value.(*ArrayUint16_tT).Pack(builder) + case ValueArrayUint32_t: + return t.Value.(*ArrayUint32_tT).Pack(builder) + case ValueArrayInt64_t: + return t.Value.(*ArrayInt64_tT).Pack(builder) + case ValueArrayFloat32_t: + return t.Value.(*ArrayFloat32_tT).Pack(builder) + case ValueArrayFloat64_t: + return t.Value.(*ArrayFloat64_tT).Pack(builder) + } + return 0 +} + +func (rcv Value) UnPack(table flatbuffers.Table) *ValueT { + switch rcv { + case ValueBool_t: + x := Bool_t{_tab: table} + return &ValueT{ Type: ValueBool_t, Value: x.UnPack() } + case ValueArrayBool_t: + x := ArrayBool_t{_tab: table} + return &ValueT{ Type: ValueArrayBool_t, Value: x.UnPack() } + case ValueInt8_t: + x := Int8_t{_tab: table} + return &ValueT{ Type: ValueInt8_t, Value: x.UnPack() } + case ValueInt16_t: + x := Int16_t{_tab: table} + return &ValueT{ Type: ValueInt16_t, Value: x.UnPack() } + case ValueInt32_t: + x := Int32_t{_tab: table} + return &ValueT{ Type: ValueInt32_t, Value: x.UnPack() } + case ValueInt64_t: + x := Int64_t{_tab: table} + return &ValueT{ Type: ValueInt64_t, Value: x.UnPack() } + case ValueUint8_t: + x := Uint8_t{_tab: table} + return &ValueT{ Type: ValueUint8_t, Value: x.UnPack() } + case ValueUint16_t: + x := Uint16_t{_tab: table} + return &ValueT{ Type: ValueUint16_t, Value: x.UnPack() } + case ValueUint32_t: + x := Uint32_t{_tab: table} + return &ValueT{ Type: ValueUint32_t, Value: x.UnPack() } + case ValueUint64_t: + x := Uint64_t{_tab: table} + return &ValueT{ Type: ValueUint64_t, Value: x.UnPack() } + case ValueFloat32_t: + x := Float32_t{_tab: table} + return &ValueT{ Type: ValueFloat32_t, Value: x.UnPack() } + case ValueFloat64_t: + x := Float64_t{_tab: table} + return &ValueT{ Type: ValueFloat64_t, Value: x.UnPack() } + case ValueArrayInt8_t: + x := ArrayInt8_t{_tab: table} + return &ValueT{ Type: ValueArrayInt8_t, Value: x.UnPack() } + case ValueArrayInt16_t: + x := ArrayInt16_t{_tab: table} + return &ValueT{ Type: ValueArrayInt16_t, Value: x.UnPack() } + case ValueArrayInt32_t: + x := ArrayInt32_t{_tab: table} + return &ValueT{ Type: ValueArrayInt32_t, Value: x.UnPack() } + case ValueArrayUint64_t: + x := ArrayUint64_t{_tab: table} + return &ValueT{ Type: ValueArrayUint64_t, Value: x.UnPack() } + case ValueArrayUint8_t: + x := ArrayUint8_t{_tab: table} + return &ValueT{ Type: ValueArrayUint8_t, Value: x.UnPack() } + case ValueArrayUint16_t: + x := ArrayUint16_t{_tab: table} + return &ValueT{ Type: ValueArrayUint16_t, Value: x.UnPack() } + case ValueArrayUint32_t: + x := ArrayUint32_t{_tab: table} + return &ValueT{ Type: ValueArrayUint32_t, Value: x.UnPack() } + case ValueArrayInt64_t: + x := ArrayInt64_t{_tab: table} + return &ValueT{ Type: ValueArrayInt64_t, Value: x.UnPack() } + case ValueArrayFloat32_t: + x := ArrayFloat32_t{_tab: table} + return &ValueT{ Type: ValueArrayFloat32_t, Value: x.UnPack() } + case ValueArrayFloat64_t: + x := ArrayFloat64_t{_tab: table} + return &ValueT{ Type: ValueArrayFloat64_t, Value: x.UnPack() } + } + return nil +} diff --git a/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeReq.go b/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeReq.go index af87aee..f82751b 100644 --- a/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeReq.go +++ b/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeReq.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type BrakingDistanceTypeReq int8 - -const ( - BrakingDistanceTypeReqUNDEFINED BrakingDistanceTypeReq = 0 - BrakingDistanceTypeReqESTOP BrakingDistanceTypeReq = 1 - BrakingDistanceTypeReqSOFT_STOP BrakingDistanceTypeReq = 2 -) - -var EnumNamesBrakingDistanceTypeReq = map[BrakingDistanceTypeReq]string{ - BrakingDistanceTypeReqUNDEFINED: "UNDEFINED", - BrakingDistanceTypeReqESTOP: "ESTOP", - BrakingDistanceTypeReqSOFT_STOP: "SOFT_STOP", -} - -var EnumValuesBrakingDistanceTypeReq = map[string]BrakingDistanceTypeReq{ - "UNDEFINED": BrakingDistanceTypeReqUNDEFINED, - "ESTOP": BrakingDistanceTypeReqESTOP, - "SOFT_STOP": BrakingDistanceTypeReqSOFT_STOP, -} - -func (v BrakingDistanceTypeReq) String() string { - if s, ok := EnumNamesBrakingDistanceTypeReq[v]; ok { - return s - } - return "BrakingDistanceTypeReq(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type BrakingDistanceTypeReq int8 + +const ( + BrakingDistanceTypeReqUNDEFINED BrakingDistanceTypeReq = 0 + BrakingDistanceTypeReqESTOP BrakingDistanceTypeReq = 1 + BrakingDistanceTypeReqSOFT_STOP BrakingDistanceTypeReq = 2 +) + +var EnumNamesBrakingDistanceTypeReq = map[BrakingDistanceTypeReq]string{ + BrakingDistanceTypeReqUNDEFINED: "UNDEFINED", + BrakingDistanceTypeReqESTOP: "ESTOP", + BrakingDistanceTypeReqSOFT_STOP: "SOFT_STOP", +} + +var EnumValuesBrakingDistanceTypeReq = map[string]BrakingDistanceTypeReq{ + "UNDEFINED": BrakingDistanceTypeReqUNDEFINED, + "ESTOP": BrakingDistanceTypeReqESTOP, + "SOFT_STOP": BrakingDistanceTypeReqSOFT_STOP, +} + +func (v BrakingDistanceTypeReq) String() string { + if s, ok := EnumNamesBrakingDistanceTypeReq[v]; ok { + return s + } + return "BrakingDistanceTypeReq(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeResp.go b/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeResp.go index afa56fc..eeb67fb 100644 --- a/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeResp.go +++ b/pkg/fbs/script/manager/fbtypes/BrakingDistanceTypeResp.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type BrakingDistanceTypeResp int8 - -const ( - BrakingDistanceTypeRespUNDEFINED BrakingDistanceTypeResp = 0 - BrakingDistanceTypeRespESTOP BrakingDistanceTypeResp = 1 - BrakingDistanceTypeRespSOFT_STOP BrakingDistanceTypeResp = 2 -) - -var EnumNamesBrakingDistanceTypeResp = map[BrakingDistanceTypeResp]string{ - BrakingDistanceTypeRespUNDEFINED: "UNDEFINED", - BrakingDistanceTypeRespESTOP: "ESTOP", - BrakingDistanceTypeRespSOFT_STOP: "SOFT_STOP", -} - -var EnumValuesBrakingDistanceTypeResp = map[string]BrakingDistanceTypeResp{ - "UNDEFINED": BrakingDistanceTypeRespUNDEFINED, - "ESTOP": BrakingDistanceTypeRespESTOP, - "SOFT_STOP": BrakingDistanceTypeRespSOFT_STOP, -} - -func (v BrakingDistanceTypeResp) String() string { - if s, ok := EnumNamesBrakingDistanceTypeResp[v]; ok { - return s - } - return "BrakingDistanceTypeResp(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type BrakingDistanceTypeResp int8 + +const ( + BrakingDistanceTypeRespUNDEFINED BrakingDistanceTypeResp = 0 + BrakingDistanceTypeRespESTOP BrakingDistanceTypeResp = 1 + BrakingDistanceTypeRespSOFT_STOP BrakingDistanceTypeResp = 2 +) + +var EnumNamesBrakingDistanceTypeResp = map[BrakingDistanceTypeResp]string{ + BrakingDistanceTypeRespUNDEFINED: "UNDEFINED", + BrakingDistanceTypeRespESTOP: "ESTOP", + BrakingDistanceTypeRespSOFT_STOP: "SOFT_STOP", +} + +var EnumValuesBrakingDistanceTypeResp = map[string]BrakingDistanceTypeResp{ + "UNDEFINED": BrakingDistanceTypeRespUNDEFINED, + "ESTOP": BrakingDistanceTypeRespESTOP, + "SOFT_STOP": BrakingDistanceTypeRespSOFT_STOP, +} + +func (v BrakingDistanceTypeResp) String() string { + if s, ok := EnumNamesBrakingDistanceTypeResp[v]; ok { + return s + } + return "BrakingDistanceTypeResp(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/CfgGlobal.go b/pkg/fbs/script/manager/fbtypes/CfgGlobal.go index 7463fae..f1f30ae 100644 --- a/pkg/fbs/script/manager/fbtypes/CfgGlobal.go +++ b/pkg/fbs/script/manager/fbtypes/CfgGlobal.go @@ -1,80 +1,80 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CfgGlobalT struct { - InitScript *CfgInitScriptT -} - -func (t *CfgGlobalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - initScriptOffset := t.InitScript.Pack(builder) - CfgGlobalStart(builder) - CfgGlobalAddInitScript(builder, initScriptOffset) - return CfgGlobalEnd(builder) -} - -func (rcv *CfgGlobal) UnPackTo(t *CfgGlobalT) { - t.InitScript = rcv.InitScript(nil).UnPack() -} - -func (rcv *CfgGlobal) UnPack() *CfgGlobalT { - if rcv == nil { return nil } - t := &CfgGlobalT{} - rcv.UnPackTo(t) - return t -} - -type CfgGlobal struct { - _tab flatbuffers.Table -} - -func GetRootAsCfgGlobal(buf []byte, offset flatbuffers.UOffsetT) *CfgGlobal { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CfgGlobal{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCfgGlobal(buf []byte, offset flatbuffers.UOffsetT) *CfgGlobal { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CfgGlobal{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CfgGlobal) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CfgGlobal) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CfgGlobal) InitScript(obj *CfgInitScript) *CfgInitScript { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CfgInitScript) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func CfgGlobalStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func CfgGlobalAddInitScript(builder *flatbuffers.Builder, initScript flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(initScript), 0) -} -func CfgGlobalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CfgGlobalT struct { + InitScript *CfgInitScriptT +} + +func (t *CfgGlobalT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + initScriptOffset := t.InitScript.Pack(builder) + CfgGlobalStart(builder) + CfgGlobalAddInitScript(builder, initScriptOffset) + return CfgGlobalEnd(builder) +} + +func (rcv *CfgGlobal) UnPackTo(t *CfgGlobalT) { + t.InitScript = rcv.InitScript(nil).UnPack() +} + +func (rcv *CfgGlobal) UnPack() *CfgGlobalT { + if rcv == nil { return nil } + t := &CfgGlobalT{} + rcv.UnPackTo(t) + return t +} + +type CfgGlobal struct { + _tab flatbuffers.Table +} + +func GetRootAsCfgGlobal(buf []byte, offset flatbuffers.UOffsetT) *CfgGlobal { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CfgGlobal{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCfgGlobal(buf []byte, offset flatbuffers.UOffsetT) *CfgGlobal { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CfgGlobal{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CfgGlobal) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CfgGlobal) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CfgGlobal) InitScript(obj *CfgInitScript) *CfgInitScript { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CfgInitScript) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func CfgGlobalStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func CfgGlobalAddInitScript(builder *flatbuffers.Builder, initScript flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(initScript), 0) +} +func CfgGlobalEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CfgInitScript.go b/pkg/fbs/script/manager/fbtypes/CfgInitScript.go index 8f1ddf0..fd76872 100644 --- a/pkg/fbs/script/manager/fbtypes/CfgInitScript.go +++ b/pkg/fbs/script/manager/fbtypes/CfgInitScript.go @@ -1,133 +1,133 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CfgInitScriptT struct { - File string - Language string - Parameter []string -} - -func (t *CfgInitScriptT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - fileOffset := builder.CreateString(t.File) - languageOffset := builder.CreateString(t.Language) - parameterOffset := flatbuffers.UOffsetT(0) - if t.Parameter != nil { - parameterLength := len(t.Parameter) - parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) - for j := 0; j < parameterLength; j++ { - parameterOffsets[j] = builder.CreateString(t.Parameter[j]) - } - CfgInitScriptStartParameterVector(builder, parameterLength) - for j := parameterLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(parameterOffsets[j]) - } - parameterOffset = builder.EndVector(parameterLength) - } - CfgInitScriptStart(builder) - CfgInitScriptAddFile(builder, fileOffset) - CfgInitScriptAddLanguage(builder, languageOffset) - CfgInitScriptAddParameter(builder, parameterOffset) - return CfgInitScriptEnd(builder) -} - -func (rcv *CfgInitScript) UnPackTo(t *CfgInitScriptT) { - t.File = string(rcv.File()) - t.Language = string(rcv.Language()) - parameterLength := rcv.ParameterLength() - t.Parameter = make([]string, parameterLength) - for j := 0; j < parameterLength; j++ { - t.Parameter[j] = string(rcv.Parameter(j)) - } -} - -func (rcv *CfgInitScript) UnPack() *CfgInitScriptT { - if rcv == nil { return nil } - t := &CfgInitScriptT{} - rcv.UnPackTo(t) - return t -} - -type CfgInitScript struct { - _tab flatbuffers.Table -} - -func GetRootAsCfgInitScript(buf []byte, offset flatbuffers.UOffsetT) *CfgInitScript { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CfgInitScript{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCfgInitScript(buf []byte, offset flatbuffers.UOffsetT) *CfgInitScript { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CfgInitScript{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CfgInitScript) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CfgInitScript) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CfgInitScript) File() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CfgInitScript) Language() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CfgInitScript) Parameter(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *CfgInitScript) ParameterLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func CfgInitScriptStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CfgInitScriptAddFile(builder *flatbuffers.Builder, file flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(file), 0) -} -func CfgInitScriptAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(language), 0) -} -func CfgInitScriptAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(parameter), 0) -} -func CfgInitScriptStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func CfgInitScriptEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CfgInitScriptT struct { + File string + Language string + Parameter []string +} + +func (t *CfgInitScriptT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + fileOffset := builder.CreateString(t.File) + languageOffset := builder.CreateString(t.Language) + parameterOffset := flatbuffers.UOffsetT(0) + if t.Parameter != nil { + parameterLength := len(t.Parameter) + parameterOffsets := make([]flatbuffers.UOffsetT, parameterLength) + for j := 0; j < parameterLength; j++ { + parameterOffsets[j] = builder.CreateString(t.Parameter[j]) + } + CfgInitScriptStartParameterVector(builder, parameterLength) + for j := parameterLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(parameterOffsets[j]) + } + parameterOffset = builder.EndVector(parameterLength) + } + CfgInitScriptStart(builder) + CfgInitScriptAddFile(builder, fileOffset) + CfgInitScriptAddLanguage(builder, languageOffset) + CfgInitScriptAddParameter(builder, parameterOffset) + return CfgInitScriptEnd(builder) +} + +func (rcv *CfgInitScript) UnPackTo(t *CfgInitScriptT) { + t.File = string(rcv.File()) + t.Language = string(rcv.Language()) + parameterLength := rcv.ParameterLength() + t.Parameter = make([]string, parameterLength) + for j := 0; j < parameterLength; j++ { + t.Parameter[j] = string(rcv.Parameter(j)) + } +} + +func (rcv *CfgInitScript) UnPack() *CfgInitScriptT { + if rcv == nil { return nil } + t := &CfgInitScriptT{} + rcv.UnPackTo(t) + return t +} + +type CfgInitScript struct { + _tab flatbuffers.Table +} + +func GetRootAsCfgInitScript(buf []byte, offset flatbuffers.UOffsetT) *CfgInitScript { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CfgInitScript{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCfgInitScript(buf []byte, offset flatbuffers.UOffsetT) *CfgInitScript { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CfgInitScript{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CfgInitScript) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CfgInitScript) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CfgInitScript) File() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CfgInitScript) Language() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CfgInitScript) Parameter(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *CfgInitScript) ParameterLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func CfgInitScriptStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CfgInitScriptAddFile(builder *flatbuffers.Builder, file flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(file), 0) +} +func CfgInitScriptAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(language), 0) +} +func CfgInitScriptAddParameter(builder *flatbuffers.Builder, parameter flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(parameter), 0) +} +func CfgInitScriptStartParameterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func CfgInitScriptEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CfgProbeData.go b/pkg/fbs/script/manager/fbtypes/CfgProbeData.go new file mode 100644 index 0000000..c99209b --- /dev/null +++ b/pkg/fbs/script/manager/fbtypes/CfgProbeData.go @@ -0,0 +1,329 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// data of the axis probe +type CfgProbeDataT struct { + MeasurSigSel string + MeasurType string + EvalEdgeType string + EvalDiffType string + ExpWindowEdgeEnable bool + ExpWindowStart float64 + ExpWindowEnd float64 + EnableMarkFailure bool + MaxNumOfMarkFailuer uint32 + TimeCompEnable bool + TimeCompPosEdge float64 + TimeCompNegEdge float64 + LvlMonitorActive bool + IsAutoActivated bool +} + +func (t *CfgProbeDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + measurSigSelOffset := builder.CreateString(t.MeasurSigSel) + measurTypeOffset := builder.CreateString(t.MeasurType) + evalEdgeTypeOffset := builder.CreateString(t.EvalEdgeType) + evalDiffTypeOffset := builder.CreateString(t.EvalDiffType) + CfgProbeDataStart(builder) + CfgProbeDataAddMeasurSigSel(builder, measurSigSelOffset) + CfgProbeDataAddMeasurType(builder, measurTypeOffset) + CfgProbeDataAddEvalEdgeType(builder, evalEdgeTypeOffset) + CfgProbeDataAddEvalDiffType(builder, evalDiffTypeOffset) + CfgProbeDataAddExpWindowEdgeEnable(builder, t.ExpWindowEdgeEnable) + CfgProbeDataAddExpWindowStart(builder, t.ExpWindowStart) + CfgProbeDataAddExpWindowEnd(builder, t.ExpWindowEnd) + CfgProbeDataAddEnableMarkFailure(builder, t.EnableMarkFailure) + CfgProbeDataAddMaxNumOfMarkFailuer(builder, t.MaxNumOfMarkFailuer) + CfgProbeDataAddTimeCompEnable(builder, t.TimeCompEnable) + CfgProbeDataAddTimeCompPosEdge(builder, t.TimeCompPosEdge) + CfgProbeDataAddTimeCompNegEdge(builder, t.TimeCompNegEdge) + CfgProbeDataAddLvlMonitorActive(builder, t.LvlMonitorActive) + CfgProbeDataAddIsAutoActivated(builder, t.IsAutoActivated) + return CfgProbeDataEnd(builder) +} + +func (rcv *CfgProbeData) UnPackTo(t *CfgProbeDataT) { + t.MeasurSigSel = string(rcv.MeasurSigSel()) + t.MeasurType = string(rcv.MeasurType()) + t.EvalEdgeType = string(rcv.EvalEdgeType()) + t.EvalDiffType = string(rcv.EvalDiffType()) + t.ExpWindowEdgeEnable = rcv.ExpWindowEdgeEnable() + t.ExpWindowStart = rcv.ExpWindowStart() + t.ExpWindowEnd = rcv.ExpWindowEnd() + t.EnableMarkFailure = rcv.EnableMarkFailure() + t.MaxNumOfMarkFailuer = rcv.MaxNumOfMarkFailuer() + t.TimeCompEnable = rcv.TimeCompEnable() + t.TimeCompPosEdge = rcv.TimeCompPosEdge() + t.TimeCompNegEdge = rcv.TimeCompNegEdge() + t.LvlMonitorActive = rcv.LvlMonitorActive() + t.IsAutoActivated = rcv.IsAutoActivated() +} + +func (rcv *CfgProbeData) UnPack() *CfgProbeDataT { + if rcv == nil { return nil } + t := &CfgProbeDataT{} + rcv.UnPackTo(t) + return t +} + +type CfgProbeData struct { + _tab flatbuffers.Table +} + +func GetRootAsCfgProbeData(buf []byte, offset flatbuffers.UOffsetT) *CfgProbeData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CfgProbeData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCfgProbeData(buf []byte, offset flatbuffers.UOffsetT) *CfgProbeData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CfgProbeData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CfgProbeData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CfgProbeData) Table() flatbuffers.Table { + return rcv._tab +} + +/// measuring signal select +func (rcv *CfgProbeData) MeasurSigSel() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// measuring signal select +/// selection of measuring type +func (rcv *CfgProbeData) MeasurType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// selection of measuring type +/// selection which edge is evaluated +func (rcv *CfgProbeData) EvalEdgeType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// selection which edge is evaluated +/// probe difference measuring type +func (rcv *CfgProbeData) EvalDiffType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// probe difference measuring type +/// enable of expectation window +func (rcv *CfgProbeData) ExpWindowEdgeEnable() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// enable of expectation window +func (rcv *CfgProbeData) MutateExpWindowEdgeEnable(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +/// start of the expectation window if the positive edge is evaluated +func (rcv *CfgProbeData) ExpWindowStart() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// start of the expectation window if the positive edge is evaluated +func (rcv *CfgProbeData) MutateExpWindowStart(n float64) bool { + return rcv._tab.MutateFloat64Slot(14, n) +} + +/// end of the expectation window if the positive edge is evaluated +func (rcv *CfgProbeData) ExpWindowEnd() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// end of the expectation window if the positive edge is evaluated +func (rcv *CfgProbeData) MutateExpWindowEnd(n float64) bool { + return rcv._tab.MutateFloat64Slot(16, n) +} + +/// enable lost mark check +func (rcv *CfgProbeData) EnableMarkFailure() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// enable lost mark check +func (rcv *CfgProbeData) MutateEnableMarkFailure(n bool) bool { + return rcv._tab.MutateBoolSlot(18, n) +} + +/// threshold for the registered number of marker failure +func (rcv *CfgProbeData) MaxNumOfMarkFailuer() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// threshold for the registered number of marker failure +func (rcv *CfgProbeData) MutateMaxNumOfMarkFailuer(n uint32) bool { + return rcv._tab.MutateUint32Slot(20, n) +} + +/// probe dead time compensation enable +func (rcv *CfgProbeData) TimeCompEnable() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(22)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// probe dead time compensation enable +func (rcv *CfgProbeData) MutateTimeCompEnable(n bool) bool { + return rcv._tab.MutateBoolSlot(22, n) +} + +/// dead time compensation for the positive edge if evaluated +func (rcv *CfgProbeData) TimeCompPosEdge() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(24)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// dead time compensation for the positive edge if evaluated +func (rcv *CfgProbeData) MutateTimeCompPosEdge(n float64) bool { + return rcv._tab.MutateFloat64Slot(24, n) +} + +/// dead time compensation for the negative edge if evaluated +func (rcv *CfgProbeData) TimeCompNegEdge() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(26)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// dead time compensation for the negative edge if evaluated +func (rcv *CfgProbeData) MutateTimeCompNegEdge(n float64) bool { + return rcv._tab.MutateFloat64Slot(26, n) +} + +/// switch-on level monitoring active, only worked for drive based touch probe 1 +func (rcv *CfgProbeData) LvlMonitorActive() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(28)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// switch-on level monitoring active, only worked for drive based touch probe 1 +func (rcv *CfgProbeData) MutateLvlMonitorActive(n bool) bool { + return rcv._tab.MutateBoolSlot(28, n) +} + +/// probe auto activated after config +func (rcv *CfgProbeData) IsAutoActivated() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(30)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// probe auto activated after config +func (rcv *CfgProbeData) MutateIsAutoActivated(n bool) bool { + return rcv._tab.MutateBoolSlot(30, n) +} + +func CfgProbeDataStart(builder *flatbuffers.Builder) { + builder.StartObject(14) +} +func CfgProbeDataAddMeasurSigSel(builder *flatbuffers.Builder, measurSigSel flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(measurSigSel), 0) +} +func CfgProbeDataAddMeasurType(builder *flatbuffers.Builder, measurType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(measurType), 0) +} +func CfgProbeDataAddEvalEdgeType(builder *flatbuffers.Builder, evalEdgeType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(evalEdgeType), 0) +} +func CfgProbeDataAddEvalDiffType(builder *flatbuffers.Builder, evalDiffType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(evalDiffType), 0) +} +func CfgProbeDataAddExpWindowEdgeEnable(builder *flatbuffers.Builder, expWindowEdgeEnable bool) { + builder.PrependBoolSlot(4, expWindowEdgeEnable, false) +} +func CfgProbeDataAddExpWindowStart(builder *flatbuffers.Builder, expWindowStart float64) { + builder.PrependFloat64Slot(5, expWindowStart, 0.0) +} +func CfgProbeDataAddExpWindowEnd(builder *flatbuffers.Builder, expWindowEnd float64) { + builder.PrependFloat64Slot(6, expWindowEnd, 0.0) +} +func CfgProbeDataAddEnableMarkFailure(builder *flatbuffers.Builder, enableMarkFailure bool) { + builder.PrependBoolSlot(7, enableMarkFailure, false) +} +func CfgProbeDataAddMaxNumOfMarkFailuer(builder *flatbuffers.Builder, maxNumOfMarkFailuer uint32) { + builder.PrependUint32Slot(8, maxNumOfMarkFailuer, 0) +} +func CfgProbeDataAddTimeCompEnable(builder *flatbuffers.Builder, timeCompEnable bool) { + builder.PrependBoolSlot(9, timeCompEnable, false) +} +func CfgProbeDataAddTimeCompPosEdge(builder *flatbuffers.Builder, timeCompPosEdge float64) { + builder.PrependFloat64Slot(10, timeCompPosEdge, 0.0) +} +func CfgProbeDataAddTimeCompNegEdge(builder *flatbuffers.Builder, timeCompNegEdge float64) { + builder.PrependFloat64Slot(11, timeCompNegEdge, 0.0) +} +func CfgProbeDataAddLvlMonitorActive(builder *flatbuffers.Builder, lvlMonitorActive bool) { + builder.PrependBoolSlot(12, lvlMonitorActive, false) +} +func CfgProbeDataAddIsAutoActivated(builder *flatbuffers.Builder, isAutoActivated bool) { + builder.PrependBoolSlot(13, isAutoActivated, false) +} +func CfgProbeDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_Base.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_Base.go index 606f29b..9fe9737 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_Base.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_Base.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_BaseT struct { - Base *Cmd_BaseT - PermType string -} - -func (t *CmdOpt_BaseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - permTypeOffset := builder.CreateString(t.PermType) - CmdOpt_BaseStart(builder) - CmdOpt_BaseAddBase(builder, baseOffset) - CmdOpt_BaseAddPermType(builder, permTypeOffset) - return CmdOpt_BaseEnd(builder) -} - -func (rcv *CmdOpt_Base) UnPackTo(t *CmdOpt_BaseT) { - t.Base = rcv.Base(nil).UnPack() - t.PermType = string(rcv.PermType()) -} - -func (rcv *CmdOpt_Base) UnPack() *CmdOpt_BaseT { - if rcv == nil { return nil } - t := &CmdOpt_BaseT{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_Base struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_Base(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_Base { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_Base{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_Base(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_Base { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_Base{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_Base) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_Base) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_Base) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_Base) PermType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func CmdOpt_BaseStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdOpt_BaseAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_BaseAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(permType), 0) -} -func CmdOpt_BaseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_BaseT struct { + Base *Cmd_BaseT + PermType string +} + +func (t *CmdOpt_BaseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + permTypeOffset := builder.CreateString(t.PermType) + CmdOpt_BaseStart(builder) + CmdOpt_BaseAddBase(builder, baseOffset) + CmdOpt_BaseAddPermType(builder, permTypeOffset) + return CmdOpt_BaseEnd(builder) +} + +func (rcv *CmdOpt_Base) UnPackTo(t *CmdOpt_BaseT) { + t.Base = rcv.Base(nil).UnPack() + t.PermType = string(rcv.PermType()) +} + +func (rcv *CmdOpt_Base) UnPack() *CmdOpt_BaseT { + if rcv == nil { return nil } + t := &CmdOpt_BaseT{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_Base struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_Base(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_Base { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_Base{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_Base(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_Base { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_Base{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_Base) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_Base) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_Base) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_Base) PermType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func CmdOpt_BaseStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdOpt_BaseAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_BaseAddPermType(builder *flatbuffers.Builder, permType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(permType), 0) +} +func CmdOpt_BaseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinAxsDynLim.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinAxsDynLim.go index f3869c6..7e2776a 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinAxsDynLim.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinAxsDynLim.go @@ -1,115 +1,115 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_KinAxsDynLimT struct { - Base *CmdOpt_BaseT - AxsName string - Lim *Cmd_DynLimitsT -} - -func (t *CmdOpt_KinAxsDynLimT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - axsNameOffset := builder.CreateString(t.AxsName) - limOffset := t.Lim.Pack(builder) - CmdOpt_KinAxsDynLimStart(builder) - CmdOpt_KinAxsDynLimAddBase(builder, baseOffset) - CmdOpt_KinAxsDynLimAddAxsName(builder, axsNameOffset) - CmdOpt_KinAxsDynLimAddLim(builder, limOffset) - return CmdOpt_KinAxsDynLimEnd(builder) -} - -func (rcv *CmdOpt_KinAxsDynLim) UnPackTo(t *CmdOpt_KinAxsDynLimT) { - t.Base = rcv.Base(nil).UnPack() - t.AxsName = string(rcv.AxsName()) - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *CmdOpt_KinAxsDynLim) UnPack() *CmdOpt_KinAxsDynLimT { - if rcv == nil { return nil } - t := &CmdOpt_KinAxsDynLimT{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_KinAxsDynLim struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_KinAxsDynLim(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinAxsDynLim { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_KinAxsDynLim{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_KinAxsDynLim(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinAxsDynLim { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_KinAxsDynLim{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_KinAxsDynLim) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_KinAxsDynLim) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_KinAxsDynLim) Base(obj *CmdOpt_Base) *CmdOpt_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdOpt_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_KinAxsDynLim) AxsName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *CmdOpt_KinAxsDynLim) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_DynLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func CmdOpt_KinAxsDynLimStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CmdOpt_KinAxsDynLimAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_KinAxsDynLimAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axsName), 0) -} -func CmdOpt_KinAxsDynLimAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) -} -func CmdOpt_KinAxsDynLimEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_KinAxsDynLimT struct { + Base *CmdOpt_BaseT + AxsName string + Lim *Cmd_DynLimitsT +} + +func (t *CmdOpt_KinAxsDynLimT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + axsNameOffset := builder.CreateString(t.AxsName) + limOffset := t.Lim.Pack(builder) + CmdOpt_KinAxsDynLimStart(builder) + CmdOpt_KinAxsDynLimAddBase(builder, baseOffset) + CmdOpt_KinAxsDynLimAddAxsName(builder, axsNameOffset) + CmdOpt_KinAxsDynLimAddLim(builder, limOffset) + return CmdOpt_KinAxsDynLimEnd(builder) +} + +func (rcv *CmdOpt_KinAxsDynLim) UnPackTo(t *CmdOpt_KinAxsDynLimT) { + t.Base = rcv.Base(nil).UnPack() + t.AxsName = string(rcv.AxsName()) + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *CmdOpt_KinAxsDynLim) UnPack() *CmdOpt_KinAxsDynLimT { + if rcv == nil { return nil } + t := &CmdOpt_KinAxsDynLimT{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_KinAxsDynLim struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_KinAxsDynLim(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinAxsDynLim { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_KinAxsDynLim{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_KinAxsDynLim(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinAxsDynLim { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_KinAxsDynLim{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_KinAxsDynLim) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_KinAxsDynLim) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_KinAxsDynLim) Base(obj *CmdOpt_Base) *CmdOpt_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdOpt_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_KinAxsDynLim) AxsName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *CmdOpt_KinAxsDynLim) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_DynLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func CmdOpt_KinAxsDynLimStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CmdOpt_KinAxsDynLimAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_KinAxsDynLimAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(axsName), 0) +} +func CmdOpt_KinAxsDynLimAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lim), 0) +} +func CmdOpt_KinAxsDynLimEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinBlend.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinBlend.go index 53caf68..33ed1f2 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinBlend.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinBlend.go @@ -1,116 +1,116 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_KinBlendT struct { - Base *CmdOpt_BaseT - Dist1 float64 - Dist2 float64 -} - -func (t *CmdOpt_KinBlendT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - CmdOpt_KinBlendStart(builder) - CmdOpt_KinBlendAddBase(builder, baseOffset) - CmdOpt_KinBlendAddDist1(builder, t.Dist1) - CmdOpt_KinBlendAddDist2(builder, t.Dist2) - return CmdOpt_KinBlendEnd(builder) -} - -func (rcv *CmdOpt_KinBlend) UnPackTo(t *CmdOpt_KinBlendT) { - t.Base = rcv.Base(nil).UnPack() - t.Dist1 = rcv.Dist1() - t.Dist2 = rcv.Dist2() -} - -func (rcv *CmdOpt_KinBlend) UnPack() *CmdOpt_KinBlendT { - if rcv == nil { return nil } - t := &CmdOpt_KinBlendT{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_KinBlend struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_KinBlend(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinBlend { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_KinBlend{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_KinBlend(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinBlend { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_KinBlend{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_KinBlend) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_KinBlend) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_KinBlend) Base(obj *CmdOpt_Base) *CmdOpt_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdOpt_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_KinBlend) Dist1() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *CmdOpt_KinBlend) MutateDist1(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *CmdOpt_KinBlend) Dist2() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *CmdOpt_KinBlend) MutateDist2(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func CmdOpt_KinBlendStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func CmdOpt_KinBlendAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_KinBlendAddDist1(builder *flatbuffers.Builder, dist1 float64) { - builder.PrependFloat64Slot(1, dist1, 0.0) -} -func CmdOpt_KinBlendAddDist2(builder *flatbuffers.Builder, dist2 float64) { - builder.PrependFloat64Slot(2, dist2, 0.0) -} -func CmdOpt_KinBlendEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_KinBlendT struct { + Base *CmdOpt_BaseT + Dist1 float64 + Dist2 float64 +} + +func (t *CmdOpt_KinBlendT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + CmdOpt_KinBlendStart(builder) + CmdOpt_KinBlendAddBase(builder, baseOffset) + CmdOpt_KinBlendAddDist1(builder, t.Dist1) + CmdOpt_KinBlendAddDist2(builder, t.Dist2) + return CmdOpt_KinBlendEnd(builder) +} + +func (rcv *CmdOpt_KinBlend) UnPackTo(t *CmdOpt_KinBlendT) { + t.Base = rcv.Base(nil).UnPack() + t.Dist1 = rcv.Dist1() + t.Dist2 = rcv.Dist2() +} + +func (rcv *CmdOpt_KinBlend) UnPack() *CmdOpt_KinBlendT { + if rcv == nil { return nil } + t := &CmdOpt_KinBlendT{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_KinBlend struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_KinBlend(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinBlend { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_KinBlend{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_KinBlend(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinBlend { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_KinBlend{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_KinBlend) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_KinBlend) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_KinBlend) Base(obj *CmdOpt_Base) *CmdOpt_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdOpt_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_KinBlend) Dist1() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *CmdOpt_KinBlend) MutateDist1(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *CmdOpt_KinBlend) Dist2() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *CmdOpt_KinBlend) MutateDist2(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func CmdOpt_KinBlendStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func CmdOpt_KinBlendAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_KinBlendAddDist1(builder *flatbuffers.Builder, dist1 float64) { + builder.PrependFloat64Slot(1, dist1, 0.0) +} +func CmdOpt_KinBlendAddDist2(builder *flatbuffers.Builder, dist2 float64) { + builder.PrependFloat64Slot(2, dist2, 0.0) +} +func CmdOpt_KinBlendEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinFeedGroup.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinFeedGroup.go index dc73c90..37e8f3a 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinFeedGroup.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinFeedGroup.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_KinFeedGroupT struct { - Base *CmdOpt_BaseT - FeedGroup FeedGroup -} - -func (t *CmdOpt_KinFeedGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - CmdOpt_KinFeedGroupStart(builder) - CmdOpt_KinFeedGroupAddBase(builder, baseOffset) - CmdOpt_KinFeedGroupAddFeedGroup(builder, t.FeedGroup) - return CmdOpt_KinFeedGroupEnd(builder) -} - -func (rcv *CmdOpt_KinFeedGroup) UnPackTo(t *CmdOpt_KinFeedGroupT) { - t.Base = rcv.Base(nil).UnPack() - t.FeedGroup = rcv.FeedGroup() -} - -func (rcv *CmdOpt_KinFeedGroup) UnPack() *CmdOpt_KinFeedGroupT { - if rcv == nil { return nil } - t := &CmdOpt_KinFeedGroupT{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_KinFeedGroup struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_KinFeedGroup(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinFeedGroup { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_KinFeedGroup{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_KinFeedGroup(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinFeedGroup { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_KinFeedGroup{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_KinFeedGroup) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_KinFeedGroup) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_KinFeedGroup) Base(obj *CmdOpt_Base) *CmdOpt_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdOpt_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_KinFeedGroup) FeedGroup() FeedGroup { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return FeedGroup(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *CmdOpt_KinFeedGroup) MutateFeedGroup(n FeedGroup) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func CmdOpt_KinFeedGroupStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdOpt_KinFeedGroupAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_KinFeedGroupAddFeedGroup(builder *flatbuffers.Builder, feedGroup FeedGroup) { - builder.PrependInt8Slot(1, int8(feedGroup), 0) -} -func CmdOpt_KinFeedGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_KinFeedGroupT struct { + Base *CmdOpt_BaseT + FeedGroup FeedGroup +} + +func (t *CmdOpt_KinFeedGroupT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + CmdOpt_KinFeedGroupStart(builder) + CmdOpt_KinFeedGroupAddBase(builder, baseOffset) + CmdOpt_KinFeedGroupAddFeedGroup(builder, t.FeedGroup) + return CmdOpt_KinFeedGroupEnd(builder) +} + +func (rcv *CmdOpt_KinFeedGroup) UnPackTo(t *CmdOpt_KinFeedGroupT) { + t.Base = rcv.Base(nil).UnPack() + t.FeedGroup = rcv.FeedGroup() +} + +func (rcv *CmdOpt_KinFeedGroup) UnPack() *CmdOpt_KinFeedGroupT { + if rcv == nil { return nil } + t := &CmdOpt_KinFeedGroupT{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_KinFeedGroup struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_KinFeedGroup(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinFeedGroup { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_KinFeedGroup{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_KinFeedGroup(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinFeedGroup { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_KinFeedGroup{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_KinFeedGroup) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_KinFeedGroup) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_KinFeedGroup) Base(obj *CmdOpt_Base) *CmdOpt_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdOpt_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_KinFeedGroup) FeedGroup() FeedGroup { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return FeedGroup(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *CmdOpt_KinFeedGroup) MutateFeedGroup(n FeedGroup) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func CmdOpt_KinFeedGroupStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdOpt_KinFeedGroupAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_KinFeedGroupAddFeedGroup(builder *flatbuffers.Builder, feedGroup FeedGroup) { + builder.PrependInt8Slot(1, int8(feedGroup), 0) +} +func CmdOpt_KinFeedGroupEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinPolyTrans.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinPolyTrans.go index 7b443c9..c832695 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinPolyTrans.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinPolyTrans.go @@ -1,134 +1,134 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_KinPolyTransT struct { - Base *CmdOpt_BaseT - Dist1 float64 - Dist2 float64 - Eps float64 -} - -func (t *CmdOpt_KinPolyTransT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - CmdOpt_KinPolyTransStart(builder) - CmdOpt_KinPolyTransAddBase(builder, baseOffset) - CmdOpt_KinPolyTransAddDist1(builder, t.Dist1) - CmdOpt_KinPolyTransAddDist2(builder, t.Dist2) - CmdOpt_KinPolyTransAddEps(builder, t.Eps) - return CmdOpt_KinPolyTransEnd(builder) -} - -func (rcv *CmdOpt_KinPolyTrans) UnPackTo(t *CmdOpt_KinPolyTransT) { - t.Base = rcv.Base(nil).UnPack() - t.Dist1 = rcv.Dist1() - t.Dist2 = rcv.Dist2() - t.Eps = rcv.Eps() -} - -func (rcv *CmdOpt_KinPolyTrans) UnPack() *CmdOpt_KinPolyTransT { - if rcv == nil { return nil } - t := &CmdOpt_KinPolyTransT{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_KinPolyTrans struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_KinPolyTrans(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinPolyTrans { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_KinPolyTrans{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_KinPolyTrans(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinPolyTrans { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_KinPolyTrans{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_KinPolyTrans) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_KinPolyTrans) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_KinPolyTrans) Base(obj *CmdOpt_Base) *CmdOpt_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdOpt_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_KinPolyTrans) Dist1() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *CmdOpt_KinPolyTrans) MutateDist1(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *CmdOpt_KinPolyTrans) Dist2() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *CmdOpt_KinPolyTrans) MutateDist2(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *CmdOpt_KinPolyTrans) Eps() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *CmdOpt_KinPolyTrans) MutateEps(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func CmdOpt_KinPolyTransStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func CmdOpt_KinPolyTransAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_KinPolyTransAddDist1(builder *flatbuffers.Builder, dist1 float64) { - builder.PrependFloat64Slot(1, dist1, 0.0) -} -func CmdOpt_KinPolyTransAddDist2(builder *flatbuffers.Builder, dist2 float64) { - builder.PrependFloat64Slot(2, dist2, 0.0) -} -func CmdOpt_KinPolyTransAddEps(builder *flatbuffers.Builder, eps float64) { - builder.PrependFloat64Slot(3, eps, 0.0) -} -func CmdOpt_KinPolyTransEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_KinPolyTransT struct { + Base *CmdOpt_BaseT + Dist1 float64 + Dist2 float64 + Eps float64 +} + +func (t *CmdOpt_KinPolyTransT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + CmdOpt_KinPolyTransStart(builder) + CmdOpt_KinPolyTransAddBase(builder, baseOffset) + CmdOpt_KinPolyTransAddDist1(builder, t.Dist1) + CmdOpt_KinPolyTransAddDist2(builder, t.Dist2) + CmdOpt_KinPolyTransAddEps(builder, t.Eps) + return CmdOpt_KinPolyTransEnd(builder) +} + +func (rcv *CmdOpt_KinPolyTrans) UnPackTo(t *CmdOpt_KinPolyTransT) { + t.Base = rcv.Base(nil).UnPack() + t.Dist1 = rcv.Dist1() + t.Dist2 = rcv.Dist2() + t.Eps = rcv.Eps() +} + +func (rcv *CmdOpt_KinPolyTrans) UnPack() *CmdOpt_KinPolyTransT { + if rcv == nil { return nil } + t := &CmdOpt_KinPolyTransT{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_KinPolyTrans struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_KinPolyTrans(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinPolyTrans { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_KinPolyTrans{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_KinPolyTrans(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinPolyTrans { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_KinPolyTrans{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_KinPolyTrans) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_KinPolyTrans) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_KinPolyTrans) Base(obj *CmdOpt_Base) *CmdOpt_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdOpt_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_KinPolyTrans) Dist1() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *CmdOpt_KinPolyTrans) MutateDist1(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *CmdOpt_KinPolyTrans) Dist2() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *CmdOpt_KinPolyTrans) MutateDist2(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *CmdOpt_KinPolyTrans) Eps() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *CmdOpt_KinPolyTrans) MutateEps(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func CmdOpt_KinPolyTransStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func CmdOpt_KinPolyTransAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_KinPolyTransAddDist1(builder *flatbuffers.Builder, dist1 float64) { + builder.PrependFloat64Slot(1, dist1, 0.0) +} +func CmdOpt_KinPolyTransAddDist2(builder *flatbuffers.Builder, dist2 float64) { + builder.PrependFloat64Slot(2, dist2, 0.0) +} +func CmdOpt_KinPolyTransAddEps(builder *flatbuffers.Builder, eps float64) { + builder.PrependFloat64Slot(3, eps, 0.0) +} +func CmdOpt_KinPolyTransEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetMCS.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetMCS.go index 3d09f53..649e521 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetMCS.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetMCS.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_KinSetMCST struct { - Base *CmdOpt_BaseT - SetName string -} - -func (t *CmdOpt_KinSetMCST) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - setNameOffset := builder.CreateString(t.SetName) - CmdOpt_KinSetMCSStart(builder) - CmdOpt_KinSetMCSAddBase(builder, baseOffset) - CmdOpt_KinSetMCSAddSetName(builder, setNameOffset) - return CmdOpt_KinSetMCSEnd(builder) -} - -func (rcv *CmdOpt_KinSetMCS) UnPackTo(t *CmdOpt_KinSetMCST) { - t.Base = rcv.Base(nil).UnPack() - t.SetName = string(rcv.SetName()) -} - -func (rcv *CmdOpt_KinSetMCS) UnPack() *CmdOpt_KinSetMCST { - if rcv == nil { return nil } - t := &CmdOpt_KinSetMCST{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_KinSetMCS struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_KinSetMCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetMCS { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_KinSetMCS{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_KinSetMCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetMCS { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_KinSetMCS{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_KinSetMCS) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_KinSetMCS) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_KinSetMCS) Base(obj *CmdOpt_Base) *CmdOpt_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdOpt_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_KinSetMCS) SetName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func CmdOpt_KinSetMCSStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdOpt_KinSetMCSAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_KinSetMCSAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) -} -func CmdOpt_KinSetMCSEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_KinSetMCST struct { + Base *CmdOpt_BaseT + SetName string +} + +func (t *CmdOpt_KinSetMCST) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + setNameOffset := builder.CreateString(t.SetName) + CmdOpt_KinSetMCSStart(builder) + CmdOpt_KinSetMCSAddBase(builder, baseOffset) + CmdOpt_KinSetMCSAddSetName(builder, setNameOffset) + return CmdOpt_KinSetMCSEnd(builder) +} + +func (rcv *CmdOpt_KinSetMCS) UnPackTo(t *CmdOpt_KinSetMCST) { + t.Base = rcv.Base(nil).UnPack() + t.SetName = string(rcv.SetName()) +} + +func (rcv *CmdOpt_KinSetMCS) UnPack() *CmdOpt_KinSetMCST { + if rcv == nil { return nil } + t := &CmdOpt_KinSetMCST{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_KinSetMCS struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_KinSetMCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetMCS { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_KinSetMCS{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_KinSetMCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetMCS { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_KinSetMCS{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_KinSetMCS) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_KinSetMCS) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_KinSetMCS) Base(obj *CmdOpt_Base) *CmdOpt_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdOpt_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_KinSetMCS) SetName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func CmdOpt_KinSetMCSStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdOpt_KinSetMCSAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_KinSetMCSAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) +} +func CmdOpt_KinSetMCSEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetPCS.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetPCS.go index ea4a281..436ed8d 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetPCS.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetPCS.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_KinSetPCST struct { - Base *CmdOpt_BaseT - SetName string -} - -func (t *CmdOpt_KinSetPCST) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - setNameOffset := builder.CreateString(t.SetName) - CmdOpt_KinSetPCSStart(builder) - CmdOpt_KinSetPCSAddBase(builder, baseOffset) - CmdOpt_KinSetPCSAddSetName(builder, setNameOffset) - return CmdOpt_KinSetPCSEnd(builder) -} - -func (rcv *CmdOpt_KinSetPCS) UnPackTo(t *CmdOpt_KinSetPCST) { - t.Base = rcv.Base(nil).UnPack() - t.SetName = string(rcv.SetName()) -} - -func (rcv *CmdOpt_KinSetPCS) UnPack() *CmdOpt_KinSetPCST { - if rcv == nil { return nil } - t := &CmdOpt_KinSetPCST{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_KinSetPCS struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_KinSetPCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetPCS { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_KinSetPCS{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_KinSetPCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetPCS { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_KinSetPCS{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_KinSetPCS) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_KinSetPCS) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_KinSetPCS) Base(obj *CmdOpt_Base) *CmdOpt_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdOpt_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_KinSetPCS) SetName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func CmdOpt_KinSetPCSStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdOpt_KinSetPCSAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_KinSetPCSAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) -} -func CmdOpt_KinSetPCSEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_KinSetPCST struct { + Base *CmdOpt_BaseT + SetName string +} + +func (t *CmdOpt_KinSetPCST) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + setNameOffset := builder.CreateString(t.SetName) + CmdOpt_KinSetPCSStart(builder) + CmdOpt_KinSetPCSAddBase(builder, baseOffset) + CmdOpt_KinSetPCSAddSetName(builder, setNameOffset) + return CmdOpt_KinSetPCSEnd(builder) +} + +func (rcv *CmdOpt_KinSetPCS) UnPackTo(t *CmdOpt_KinSetPCST) { + t.Base = rcv.Base(nil).UnPack() + t.SetName = string(rcv.SetName()) +} + +func (rcv *CmdOpt_KinSetPCS) UnPack() *CmdOpt_KinSetPCST { + if rcv == nil { return nil } + t := &CmdOpt_KinSetPCST{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_KinSetPCS struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_KinSetPCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetPCS { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_KinSetPCS{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_KinSetPCS(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetPCS { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_KinSetPCS{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_KinSetPCS) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_KinSetPCS) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_KinSetPCS) Base(obj *CmdOpt_Base) *CmdOpt_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdOpt_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_KinSetPCS) SetName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func CmdOpt_KinSetPCSStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdOpt_KinSetPCSAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_KinSetPCSAddSetName(builder *flatbuffers.Builder, setName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(setName), 0) +} +func CmdOpt_KinSetPCSEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetSafeArea.go b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetSafeArea.go index 6e7d454..c262a80 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetSafeArea.go +++ b/pkg/fbs/script/manager/fbtypes/CmdOpt_KinSetSafeArea.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type CmdOpt_KinSetSafeAreaT struct { - Base *CmdOpt_BaseT - SafeArea string -} - -func (t *CmdOpt_KinSetSafeAreaT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - safeAreaOffset := builder.CreateString(t.SafeArea) - CmdOpt_KinSetSafeAreaStart(builder) - CmdOpt_KinSetSafeAreaAddBase(builder, baseOffset) - CmdOpt_KinSetSafeAreaAddSafeArea(builder, safeAreaOffset) - return CmdOpt_KinSetSafeAreaEnd(builder) -} - -func (rcv *CmdOpt_KinSetSafeArea) UnPackTo(t *CmdOpt_KinSetSafeAreaT) { - t.Base = rcv.Base(nil).UnPack() - t.SafeArea = string(rcv.SafeArea()) -} - -func (rcv *CmdOpt_KinSetSafeArea) UnPack() *CmdOpt_KinSetSafeAreaT { - if rcv == nil { return nil } - t := &CmdOpt_KinSetSafeAreaT{} - rcv.UnPackTo(t) - return t -} - -type CmdOpt_KinSetSafeArea struct { - _tab flatbuffers.Table -} - -func GetRootAsCmdOpt_KinSetSafeArea(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetSafeArea { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &CmdOpt_KinSetSafeArea{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmdOpt_KinSetSafeArea(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetSafeArea { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &CmdOpt_KinSetSafeArea{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *CmdOpt_KinSetSafeArea) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *CmdOpt_KinSetSafeArea) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *CmdOpt_KinSetSafeArea) Base(obj *CmdOpt_Base) *CmdOpt_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(CmdOpt_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *CmdOpt_KinSetSafeArea) SafeArea() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func CmdOpt_KinSetSafeAreaStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func CmdOpt_KinSetSafeAreaAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func CmdOpt_KinSetSafeAreaAddSafeArea(builder *flatbuffers.Builder, safeArea flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(safeArea), 0) -} -func CmdOpt_KinSetSafeAreaEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type CmdOpt_KinSetSafeAreaT struct { + Base *CmdOpt_BaseT + SafeArea string +} + +func (t *CmdOpt_KinSetSafeAreaT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + safeAreaOffset := builder.CreateString(t.SafeArea) + CmdOpt_KinSetSafeAreaStart(builder) + CmdOpt_KinSetSafeAreaAddBase(builder, baseOffset) + CmdOpt_KinSetSafeAreaAddSafeArea(builder, safeAreaOffset) + return CmdOpt_KinSetSafeAreaEnd(builder) +} + +func (rcv *CmdOpt_KinSetSafeArea) UnPackTo(t *CmdOpt_KinSetSafeAreaT) { + t.Base = rcv.Base(nil).UnPack() + t.SafeArea = string(rcv.SafeArea()) +} + +func (rcv *CmdOpt_KinSetSafeArea) UnPack() *CmdOpt_KinSetSafeAreaT { + if rcv == nil { return nil } + t := &CmdOpt_KinSetSafeAreaT{} + rcv.UnPackTo(t) + return t +} + +type CmdOpt_KinSetSafeArea struct { + _tab flatbuffers.Table +} + +func GetRootAsCmdOpt_KinSetSafeArea(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetSafeArea { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &CmdOpt_KinSetSafeArea{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmdOpt_KinSetSafeArea(buf []byte, offset flatbuffers.UOffsetT) *CmdOpt_KinSetSafeArea { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &CmdOpt_KinSetSafeArea{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *CmdOpt_KinSetSafeArea) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *CmdOpt_KinSetSafeArea) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *CmdOpt_KinSetSafeArea) Base(obj *CmdOpt_Base) *CmdOpt_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CmdOpt_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *CmdOpt_KinSetSafeArea) SafeArea() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func CmdOpt_KinSetSafeAreaStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func CmdOpt_KinSetSafeAreaAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func CmdOpt_KinSetSafeAreaAddSafeArea(builder *flatbuffers.Builder, safeArea flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(safeArea), 0) +} +func CmdOpt_KinSetSafeAreaEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdType_CmdOptionInfoReq.go b/pkg/fbs/script/manager/fbtypes/CmdType_CmdOptionInfoReq.go index 93140a7..d8a476b 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdType_CmdOptionInfoReq.go +++ b/pkg/fbs/script/manager/fbtypes/CmdType_CmdOptionInfoReq.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type CmdTypeCmdOptionInfoReq int8 - -const ( - CmdType_CmdOptionInfoReqUNKNOWN CmdTypeCmdOptionInfoReq = 0 - CmdType_CmdOptionInfoReqCMD CmdTypeCmdOptionInfoReq = 1 - CmdType_CmdOptionInfoReqCMD_OPTION CmdTypeCmdOptionInfoReq = 2 -) - -var EnumNamesCmdType_CmdOptionInfoReq = map[CmdTypeCmdOptionInfoReq]string{ - CmdType_CmdOptionInfoReqUNKNOWN: "UNKNOWN", - CmdType_CmdOptionInfoReqCMD: "CMD", - CmdType_CmdOptionInfoReqCMD_OPTION: "CMD_OPTION", -} - -var EnumValuesCmdType_CmdOptionInfoReq = map[string]CmdTypeCmdOptionInfoReq{ - "UNKNOWN": CmdType_CmdOptionInfoReqUNKNOWN, - "CMD": CmdType_CmdOptionInfoReqCMD, - "CMD_OPTION": CmdType_CmdOptionInfoReqCMD_OPTION, -} - -func (v CmdTypeCmdOptionInfoReq) String() string { - if s, ok := EnumNamesCmdType_CmdOptionInfoReq[v]; ok { - return s - } - return "CmdTypeCmdOptionInfoReq(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type CmdTypeCmdOptionInfoReq int8 + +const ( + CmdType_CmdOptionInfoReqUNKNOWN CmdTypeCmdOptionInfoReq = 0 + CmdType_CmdOptionInfoReqCMD CmdTypeCmdOptionInfoReq = 1 + CmdType_CmdOptionInfoReqCMD_OPTION CmdTypeCmdOptionInfoReq = 2 +) + +var EnumNamesCmdType_CmdOptionInfoReq = map[CmdTypeCmdOptionInfoReq]string{ + CmdType_CmdOptionInfoReqUNKNOWN: "UNKNOWN", + CmdType_CmdOptionInfoReqCMD: "CMD", + CmdType_CmdOptionInfoReqCMD_OPTION: "CMD_OPTION", +} + +var EnumValuesCmdType_CmdOptionInfoReq = map[string]CmdTypeCmdOptionInfoReq{ + "UNKNOWN": CmdType_CmdOptionInfoReqUNKNOWN, + "CMD": CmdType_CmdOptionInfoReqCMD, + "CMD_OPTION": CmdType_CmdOptionInfoReqCMD_OPTION, +} + +func (v CmdTypeCmdOptionInfoReq) String() string { + if s, ok := EnumNamesCmdType_CmdOptionInfoReq[v]; ok { + return s + } + return "CmdType_CmdOptionInfoReq(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/CmdType_ListRegisteredCmdsOptions.go b/pkg/fbs/script/manager/fbtypes/CmdType_ListRegisteredCmdsOptions.go index 09fb90c..07c9c32 100644 --- a/pkg/fbs/script/manager/fbtypes/CmdType_ListRegisteredCmdsOptions.go +++ b/pkg/fbs/script/manager/fbtypes/CmdType_ListRegisteredCmdsOptions.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type CmdTypeListRegisteredCmdsOptions int8 - -const ( - CmdType_ListRegisteredCmdsOptionsUNKNOWN CmdTypeListRegisteredCmdsOptions = 0 - CmdType_ListRegisteredCmdsOptionsCMD CmdTypeListRegisteredCmdsOptions = 1 - CmdType_ListRegisteredCmdsOptionsCMD_OPTION CmdTypeListRegisteredCmdsOptions = 2 -) - -var EnumNamesCmdType_ListRegisteredCmdsOptions = map[CmdTypeListRegisteredCmdsOptions]string{ - CmdType_ListRegisteredCmdsOptionsUNKNOWN: "UNKNOWN", - CmdType_ListRegisteredCmdsOptionsCMD: "CMD", - CmdType_ListRegisteredCmdsOptionsCMD_OPTION: "CMD_OPTION", -} - -var EnumValuesCmdType_ListRegisteredCmdsOptions = map[string]CmdTypeListRegisteredCmdsOptions{ - "UNKNOWN": CmdType_ListRegisteredCmdsOptionsUNKNOWN, - "CMD": CmdType_ListRegisteredCmdsOptionsCMD, - "CMD_OPTION": CmdType_ListRegisteredCmdsOptionsCMD_OPTION, -} - -func (v CmdTypeListRegisteredCmdsOptions) String() string { - if s, ok := EnumNamesCmdType_ListRegisteredCmdsOptions[v]; ok { - return s - } - return "CmdTypeListRegisteredCmdsOptions(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type CmdTypeListRegisteredCmdsOptions int8 + +const ( + CmdType_ListRegisteredCmdsOptionsUNKNOWN CmdTypeListRegisteredCmdsOptions = 0 + CmdType_ListRegisteredCmdsOptionsCMD CmdTypeListRegisteredCmdsOptions = 1 + CmdType_ListRegisteredCmdsOptionsCMD_OPTION CmdTypeListRegisteredCmdsOptions = 2 +) + +var EnumNamesCmdType_ListRegisteredCmdsOptions = map[CmdTypeListRegisteredCmdsOptions]string{ + CmdType_ListRegisteredCmdsOptionsUNKNOWN: "UNKNOWN", + CmdType_ListRegisteredCmdsOptionsCMD: "CMD", + CmdType_ListRegisteredCmdsOptionsCMD_OPTION: "CMD_OPTION", +} + +var EnumValuesCmdType_ListRegisteredCmdsOptions = map[string]CmdTypeListRegisteredCmdsOptions{ + "UNKNOWN": CmdType_ListRegisteredCmdsOptionsUNKNOWN, + "CMD": CmdType_ListRegisteredCmdsOptionsCMD, + "CMD_OPTION": CmdType_ListRegisteredCmdsOptionsCMD_OPTION, +} + +func (v CmdTypeListRegisteredCmdsOptions) String() string { + if s, ok := EnumNamesCmdType_ListRegisteredCmdsOptions[v]; ok { + return s + } + return "CmdType_ListRegisteredCmdsOptions(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_AxsAbort.go b/pkg/fbs/script/manager/fbtypes/Cmd_AxsAbort.go index 6b36cb4..4dec089 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_AxsAbort.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_AxsAbort.go @@ -1,116 +1,116 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_AxsAbortT struct { - Base *Cmd_BaseT - Dec float64 - JrkDec float64 -} - -func (t *Cmd_AxsAbortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - Cmd_AxsAbortStart(builder) - Cmd_AxsAbortAddBase(builder, baseOffset) - Cmd_AxsAbortAddDec(builder, t.Dec) - Cmd_AxsAbortAddJrkDec(builder, t.JrkDec) - return Cmd_AxsAbortEnd(builder) -} - -func (rcv *Cmd_AxsAbort) UnPackTo(t *Cmd_AxsAbortT) { - t.Base = rcv.Base(nil).UnPack() - t.Dec = rcv.Dec() - t.JrkDec = rcv.JrkDec() -} - -func (rcv *Cmd_AxsAbort) UnPack() *Cmd_AxsAbortT { - if rcv == nil { return nil } - t := &Cmd_AxsAbortT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_AxsAbort struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_AxsAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAbort { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_AxsAbort{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_AxsAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAbort { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_AxsAbort{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_AxsAbort) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_AxsAbort) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_AxsAbort) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_AxsAbort) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_AxsAbort) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *Cmd_AxsAbort) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_AxsAbort) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func Cmd_AxsAbortStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func Cmd_AxsAbortAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_AxsAbortAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(1, dec, 0.0) -} -func Cmd_AxsAbortAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(2, jrkDec, 0.0) -} -func Cmd_AxsAbortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_AxsAbortT struct { + Base *Cmd_BaseT + Dec float64 + JrkDec float64 +} + +func (t *Cmd_AxsAbortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + Cmd_AxsAbortStart(builder) + Cmd_AxsAbortAddBase(builder, baseOffset) + Cmd_AxsAbortAddDec(builder, t.Dec) + Cmd_AxsAbortAddJrkDec(builder, t.JrkDec) + return Cmd_AxsAbortEnd(builder) +} + +func (rcv *Cmd_AxsAbort) UnPackTo(t *Cmd_AxsAbortT) { + t.Base = rcv.Base(nil).UnPack() + t.Dec = rcv.Dec() + t.JrkDec = rcv.JrkDec() +} + +func (rcv *Cmd_AxsAbort) UnPack() *Cmd_AxsAbortT { + if rcv == nil { return nil } + t := &Cmd_AxsAbortT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_AxsAbort struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_AxsAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAbort { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_AxsAbort{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_AxsAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAbort { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_AxsAbort{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_AxsAbort) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_AxsAbort) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_AxsAbort) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_AxsAbort) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_AxsAbort) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *Cmd_AxsAbort) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_AxsAbort) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func Cmd_AxsAbortStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func Cmd_AxsAbortAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_AxsAbortAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(1, dec, 0.0) +} +func Cmd_AxsAbortAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(2, jrkDec, 0.0) +} +func Cmd_AxsAbortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToGantry.go b/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToGantry.go index 29635ee..32ac3a7 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToGantry.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToGantry.go @@ -1,113 +1,113 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_AxsAddToGantryT struct { - Base *Cmd_BaseT - MasterName string - Buffered bool -} - -func (t *Cmd_AxsAddToGantryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - masterNameOffset := builder.CreateString(t.MasterName) - Cmd_AxsAddToGantryStart(builder) - Cmd_AxsAddToGantryAddBase(builder, baseOffset) - Cmd_AxsAddToGantryAddMasterName(builder, masterNameOffset) - Cmd_AxsAddToGantryAddBuffered(builder, t.Buffered) - return Cmd_AxsAddToGantryEnd(builder) -} - -func (rcv *Cmd_AxsAddToGantry) UnPackTo(t *Cmd_AxsAddToGantryT) { - t.Base = rcv.Base(nil).UnPack() - t.MasterName = string(rcv.MasterName()) - t.Buffered = rcv.Buffered() -} - -func (rcv *Cmd_AxsAddToGantry) UnPack() *Cmd_AxsAddToGantryT { - if rcv == nil { return nil } - t := &Cmd_AxsAddToGantryT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_AxsAddToGantry struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_AxsAddToGantry(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToGantry { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_AxsAddToGantry{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_AxsAddToGantry(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToGantry { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_AxsAddToGantry{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_AxsAddToGantry) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_AxsAddToGantry) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_AxsAddToGantry) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_AxsAddToGantry) MasterName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_AxsAddToGantry) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Cmd_AxsAddToGantry) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func Cmd_AxsAddToGantryStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func Cmd_AxsAddToGantryAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_AxsAddToGantryAddMasterName(builder *flatbuffers.Builder, masterName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(masterName), 0) -} -func Cmd_AxsAddToGantryAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(2, buffered, false) -} -func Cmd_AxsAddToGantryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_AxsAddToGantryT struct { + Base *Cmd_BaseT + MasterName string + Buffered bool +} + +func (t *Cmd_AxsAddToGantryT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + masterNameOffset := builder.CreateString(t.MasterName) + Cmd_AxsAddToGantryStart(builder) + Cmd_AxsAddToGantryAddBase(builder, baseOffset) + Cmd_AxsAddToGantryAddMasterName(builder, masterNameOffset) + Cmd_AxsAddToGantryAddBuffered(builder, t.Buffered) + return Cmd_AxsAddToGantryEnd(builder) +} + +func (rcv *Cmd_AxsAddToGantry) UnPackTo(t *Cmd_AxsAddToGantryT) { + t.Base = rcv.Base(nil).UnPack() + t.MasterName = string(rcv.MasterName()) + t.Buffered = rcv.Buffered() +} + +func (rcv *Cmd_AxsAddToGantry) UnPack() *Cmd_AxsAddToGantryT { + if rcv == nil { return nil } + t := &Cmd_AxsAddToGantryT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_AxsAddToGantry struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_AxsAddToGantry(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToGantry { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_AxsAddToGantry{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_AxsAddToGantry(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToGantry { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_AxsAddToGantry{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_AxsAddToGantry) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_AxsAddToGantry) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_AxsAddToGantry) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_AxsAddToGantry) MasterName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_AxsAddToGantry) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Cmd_AxsAddToGantry) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func Cmd_AxsAddToGantryStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func Cmd_AxsAddToGantryAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_AxsAddToGantryAddMasterName(builder *flatbuffers.Builder, masterName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(masterName), 0) +} +func Cmd_AxsAddToGantryAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(2, buffered, false) +} +func Cmd_AxsAddToGantryEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToKin.go b/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToKin.go index 165d775..9090238 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToKin.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_AxsAddToKin.go @@ -1,113 +1,113 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_AxsAddToKinT struct { - Base *Cmd_BaseT - KinName string - Buffered bool -} - -func (t *Cmd_AxsAddToKinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - kinNameOffset := builder.CreateString(t.KinName) - Cmd_AxsAddToKinStart(builder) - Cmd_AxsAddToKinAddBase(builder, baseOffset) - Cmd_AxsAddToKinAddKinName(builder, kinNameOffset) - Cmd_AxsAddToKinAddBuffered(builder, t.Buffered) - return Cmd_AxsAddToKinEnd(builder) -} - -func (rcv *Cmd_AxsAddToKin) UnPackTo(t *Cmd_AxsAddToKinT) { - t.Base = rcv.Base(nil).UnPack() - t.KinName = string(rcv.KinName()) - t.Buffered = rcv.Buffered() -} - -func (rcv *Cmd_AxsAddToKin) UnPack() *Cmd_AxsAddToKinT { - if rcv == nil { return nil } - t := &Cmd_AxsAddToKinT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_AxsAddToKin struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_AxsAddToKin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToKin { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_AxsAddToKin{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_AxsAddToKin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToKin { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_AxsAddToKin{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_AxsAddToKin) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_AxsAddToKin) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_AxsAddToKin) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_AxsAddToKin) KinName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_AxsAddToKin) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Cmd_AxsAddToKin) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func Cmd_AxsAddToKinStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func Cmd_AxsAddToKinAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_AxsAddToKinAddKinName(builder *flatbuffers.Builder, kinName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(kinName), 0) -} -func Cmd_AxsAddToKinAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(2, buffered, false) -} -func Cmd_AxsAddToKinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_AxsAddToKinT struct { + Base *Cmd_BaseT + KinName string + Buffered bool +} + +func (t *Cmd_AxsAddToKinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + kinNameOffset := builder.CreateString(t.KinName) + Cmd_AxsAddToKinStart(builder) + Cmd_AxsAddToKinAddBase(builder, baseOffset) + Cmd_AxsAddToKinAddKinName(builder, kinNameOffset) + Cmd_AxsAddToKinAddBuffered(builder, t.Buffered) + return Cmd_AxsAddToKinEnd(builder) +} + +func (rcv *Cmd_AxsAddToKin) UnPackTo(t *Cmd_AxsAddToKinT) { + t.Base = rcv.Base(nil).UnPack() + t.KinName = string(rcv.KinName()) + t.Buffered = rcv.Buffered() +} + +func (rcv *Cmd_AxsAddToKin) UnPack() *Cmd_AxsAddToKinT { + if rcv == nil { return nil } + t := &Cmd_AxsAddToKinT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_AxsAddToKin struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_AxsAddToKin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToKin { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_AxsAddToKin{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_AxsAddToKin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsAddToKin { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_AxsAddToKin{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_AxsAddToKin) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_AxsAddToKin) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_AxsAddToKin) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_AxsAddToKin) KinName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_AxsAddToKin) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Cmd_AxsAddToKin) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func Cmd_AxsAddToKinStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func Cmd_AxsAddToKinAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_AxsAddToKinAddKinName(builder *flatbuffers.Builder, kinName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(kinName), 0) +} +func Cmd_AxsAddToKinAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(2, buffered, false) +} +func Cmd_AxsAddToKinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_AxsJog.go b/pkg/fbs/script/manager/fbtypes/Cmd_AxsJog.go index ad6381b..e331deb 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_AxsJog.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_AxsJog.go @@ -1,133 +1,133 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_AxsJogT struct { - Base *Cmd_BaseT - Dir string - Incr float64 - Lim *Cmd_DynLimitsT -} - -func (t *Cmd_AxsJogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - dirOffset := builder.CreateString(t.Dir) - limOffset := t.Lim.Pack(builder) - Cmd_AxsJogStart(builder) - Cmd_AxsJogAddBase(builder, baseOffset) - Cmd_AxsJogAddDir(builder, dirOffset) - Cmd_AxsJogAddIncr(builder, t.Incr) - Cmd_AxsJogAddLim(builder, limOffset) - return Cmd_AxsJogEnd(builder) -} - -func (rcv *Cmd_AxsJog) UnPackTo(t *Cmd_AxsJogT) { - t.Base = rcv.Base(nil).UnPack() - t.Dir = string(rcv.Dir()) - t.Incr = rcv.Incr() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *Cmd_AxsJog) UnPack() *Cmd_AxsJogT { - if rcv == nil { return nil } - t := &Cmd_AxsJogT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_AxsJog struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_AxsJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsJog { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_AxsJog{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_AxsJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsJog { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_AxsJog{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_AxsJog) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_AxsJog) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_AxsJog) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_AxsJog) Dir() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_AxsJog) Incr() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_AxsJog) MutateIncr(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *Cmd_AxsJog) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_DynLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func Cmd_AxsJogStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func Cmd_AxsJogAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_AxsJogAddDir(builder *flatbuffers.Builder, dir flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dir), 0) -} -func Cmd_AxsJogAddIncr(builder *flatbuffers.Builder, incr float64) { - builder.PrependFloat64Slot(2, incr, 0.0) -} -func Cmd_AxsJogAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) -} -func Cmd_AxsJogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_AxsJogT struct { + Base *Cmd_BaseT + Dir string + Incr float64 + Lim *Cmd_DynLimitsT +} + +func (t *Cmd_AxsJogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + dirOffset := builder.CreateString(t.Dir) + limOffset := t.Lim.Pack(builder) + Cmd_AxsJogStart(builder) + Cmd_AxsJogAddBase(builder, baseOffset) + Cmd_AxsJogAddDir(builder, dirOffset) + Cmd_AxsJogAddIncr(builder, t.Incr) + Cmd_AxsJogAddLim(builder, limOffset) + return Cmd_AxsJogEnd(builder) +} + +func (rcv *Cmd_AxsJog) UnPackTo(t *Cmd_AxsJogT) { + t.Base = rcv.Base(nil).UnPack() + t.Dir = string(rcv.Dir()) + t.Incr = rcv.Incr() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *Cmd_AxsJog) UnPack() *Cmd_AxsJogT { + if rcv == nil { return nil } + t := &Cmd_AxsJogT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_AxsJog struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_AxsJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsJog { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_AxsJog{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_AxsJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsJog { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_AxsJog{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_AxsJog) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_AxsJog) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_AxsJog) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_AxsJog) Dir() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_AxsJog) Incr() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_AxsJog) MutateIncr(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *Cmd_AxsJog) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_DynLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func Cmd_AxsJogStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func Cmd_AxsJogAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_AxsJogAddDir(builder *flatbuffers.Builder, dir flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dir), 0) +} +func Cmd_AxsJogAddIncr(builder *flatbuffers.Builder, incr float64) { + builder.PrependFloat64Slot(2, incr, 0.0) +} +func Cmd_AxsJogAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) +} +func Cmd_AxsJogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_AxsPos.go b/pkg/fbs/script/manager/fbtypes/Cmd_AxsPos.go index 5af4bb1..19f2a3d 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_AxsPos.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_AxsPos.go @@ -1,136 +1,136 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_AxsPosT struct { - Base *Cmd_BaseT - Pos float64 - Buffered bool - Lim *Cmd_DynLimitsT -} - -func (t *Cmd_AxsPosT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - limOffset := t.Lim.Pack(builder) - Cmd_AxsPosStart(builder) - Cmd_AxsPosAddBase(builder, baseOffset) - Cmd_AxsPosAddPos(builder, t.Pos) - Cmd_AxsPosAddBuffered(builder, t.Buffered) - Cmd_AxsPosAddLim(builder, limOffset) - return Cmd_AxsPosEnd(builder) -} - -func (rcv *Cmd_AxsPos) UnPackTo(t *Cmd_AxsPosT) { - t.Base = rcv.Base(nil).UnPack() - t.Pos = rcv.Pos() - t.Buffered = rcv.Buffered() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *Cmd_AxsPos) UnPack() *Cmd_AxsPosT { - if rcv == nil { return nil } - t := &Cmd_AxsPosT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_AxsPos struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_AxsPos(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPos { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_AxsPos{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_AxsPos(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPos { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_AxsPos{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_AxsPos) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_AxsPos) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_AxsPos) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_AxsPos) Pos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_AxsPos) MutatePos(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *Cmd_AxsPos) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Cmd_AxsPos) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *Cmd_AxsPos) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_DynLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func Cmd_AxsPosStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func Cmd_AxsPosAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_AxsPosAddPos(builder *flatbuffers.Builder, pos float64) { - builder.PrependFloat64Slot(1, pos, 0.0) -} -func Cmd_AxsPosAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(2, buffered, false) -} -func Cmd_AxsPosAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) -} -func Cmd_AxsPosEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_AxsPosT struct { + Base *Cmd_BaseT + Pos float64 + Buffered bool + Lim *Cmd_DynLimitsT +} + +func (t *Cmd_AxsPosT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + limOffset := t.Lim.Pack(builder) + Cmd_AxsPosStart(builder) + Cmd_AxsPosAddBase(builder, baseOffset) + Cmd_AxsPosAddPos(builder, t.Pos) + Cmd_AxsPosAddBuffered(builder, t.Buffered) + Cmd_AxsPosAddLim(builder, limOffset) + return Cmd_AxsPosEnd(builder) +} + +func (rcv *Cmd_AxsPos) UnPackTo(t *Cmd_AxsPosT) { + t.Base = rcv.Base(nil).UnPack() + t.Pos = rcv.Pos() + t.Buffered = rcv.Buffered() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *Cmd_AxsPos) UnPack() *Cmd_AxsPosT { + if rcv == nil { return nil } + t := &Cmd_AxsPosT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_AxsPos struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_AxsPos(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPos { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_AxsPos{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_AxsPos(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPos { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_AxsPos{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_AxsPos) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_AxsPos) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_AxsPos) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_AxsPos) Pos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_AxsPos) MutatePos(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *Cmd_AxsPos) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Cmd_AxsPos) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *Cmd_AxsPos) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_DynLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func Cmd_AxsPosStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func Cmd_AxsPosAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_AxsPosAddPos(builder *flatbuffers.Builder, pos float64) { + builder.PrependFloat64Slot(1, pos, 0.0) +} +func Cmd_AxsPosAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(2, buffered, false) +} +func Cmd_AxsPosAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) +} +func Cmd_AxsPosEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_AxsPower.go b/pkg/fbs/script/manager/fbtypes/Cmd_AxsPower.go index 959a3de..60684d7 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_AxsPower.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_AxsPower.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_AxsPowerT struct { - Base *Cmd_BaseT - SwitchOn bool -} - -func (t *Cmd_AxsPowerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - Cmd_AxsPowerStart(builder) - Cmd_AxsPowerAddBase(builder, baseOffset) - Cmd_AxsPowerAddSwitchOn(builder, t.SwitchOn) - return Cmd_AxsPowerEnd(builder) -} - -func (rcv *Cmd_AxsPower) UnPackTo(t *Cmd_AxsPowerT) { - t.Base = rcv.Base(nil).UnPack() - t.SwitchOn = rcv.SwitchOn() -} - -func (rcv *Cmd_AxsPower) UnPack() *Cmd_AxsPowerT { - if rcv == nil { return nil } - t := &Cmd_AxsPowerT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_AxsPower struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_AxsPower(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPower { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_AxsPower{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_AxsPower(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPower { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_AxsPower{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_AxsPower) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_AxsPower) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_AxsPower) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_AxsPower) SwitchOn() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Cmd_AxsPower) MutateSwitchOn(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func Cmd_AxsPowerStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Cmd_AxsPowerAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_AxsPowerAddSwitchOn(builder *flatbuffers.Builder, switchOn bool) { - builder.PrependBoolSlot(1, switchOn, false) -} -func Cmd_AxsPowerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_AxsPowerT struct { + Base *Cmd_BaseT + SwitchOn bool +} + +func (t *Cmd_AxsPowerT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + Cmd_AxsPowerStart(builder) + Cmd_AxsPowerAddBase(builder, baseOffset) + Cmd_AxsPowerAddSwitchOn(builder, t.SwitchOn) + return Cmd_AxsPowerEnd(builder) +} + +func (rcv *Cmd_AxsPower) UnPackTo(t *Cmd_AxsPowerT) { + t.Base = rcv.Base(nil).UnPack() + t.SwitchOn = rcv.SwitchOn() +} + +func (rcv *Cmd_AxsPower) UnPack() *Cmd_AxsPowerT { + if rcv == nil { return nil } + t := &Cmd_AxsPowerT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_AxsPower struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_AxsPower(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPower { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_AxsPower{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_AxsPower(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsPower { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_AxsPower{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_AxsPower) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_AxsPower) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_AxsPower) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_AxsPower) SwitchOn() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Cmd_AxsPower) MutateSwitchOn(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func Cmd_AxsPowerStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Cmd_AxsPowerAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_AxsPowerAddSwitchOn(builder *flatbuffers.Builder, switchOn bool) { + builder.PrependBoolSlot(1, switchOn, false) +} +func Cmd_AxsPowerEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_AxsVelocity.go b/pkg/fbs/script/manager/fbtypes/Cmd_AxsVelocity.go index 96de9fe..046fb94 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_AxsVelocity.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_AxsVelocity.go @@ -1,154 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_AxsVelocityT struct { - Base *Cmd_BaseT - Vel float64 - DriveVelMode bool - Buffered bool - Lim *Cmd_DynLimitsT -} - -func (t *Cmd_AxsVelocityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - limOffset := t.Lim.Pack(builder) - Cmd_AxsVelocityStart(builder) - Cmd_AxsVelocityAddBase(builder, baseOffset) - Cmd_AxsVelocityAddVel(builder, t.Vel) - Cmd_AxsVelocityAddDriveVelMode(builder, t.DriveVelMode) - Cmd_AxsVelocityAddBuffered(builder, t.Buffered) - Cmd_AxsVelocityAddLim(builder, limOffset) - return Cmd_AxsVelocityEnd(builder) -} - -func (rcv *Cmd_AxsVelocity) UnPackTo(t *Cmd_AxsVelocityT) { - t.Base = rcv.Base(nil).UnPack() - t.Vel = rcv.Vel() - t.DriveVelMode = rcv.DriveVelMode() - t.Buffered = rcv.Buffered() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *Cmd_AxsVelocity) UnPack() *Cmd_AxsVelocityT { - if rcv == nil { return nil } - t := &Cmd_AxsVelocityT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_AxsVelocity struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_AxsVelocity(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsVelocity { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_AxsVelocity{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_AxsVelocity(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsVelocity { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_AxsVelocity{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_AxsVelocity) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_AxsVelocity) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_AxsVelocity) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_AxsVelocity) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_AxsVelocity) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *Cmd_AxsVelocity) DriveVelMode() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Cmd_AxsVelocity) MutateDriveVelMode(n bool) bool { - return rcv._tab.MutateBoolSlot(8, n) -} - -func (rcv *Cmd_AxsVelocity) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *Cmd_AxsVelocity) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func (rcv *Cmd_AxsVelocity) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_DynLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func Cmd_AxsVelocityStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func Cmd_AxsVelocityAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_AxsVelocityAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(1, vel, 0.0) -} -func Cmd_AxsVelocityAddDriveVelMode(builder *flatbuffers.Builder, driveVelMode bool) { - builder.PrependBoolSlot(2, driveVelMode, false) -} -func Cmd_AxsVelocityAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(3, buffered, false) -} -func Cmd_AxsVelocityAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(lim), 0) -} -func Cmd_AxsVelocityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_AxsVelocityT struct { + Base *Cmd_BaseT + Vel float64 + DriveVelMode bool + Buffered bool + Lim *Cmd_DynLimitsT +} + +func (t *Cmd_AxsVelocityT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + limOffset := t.Lim.Pack(builder) + Cmd_AxsVelocityStart(builder) + Cmd_AxsVelocityAddBase(builder, baseOffset) + Cmd_AxsVelocityAddVel(builder, t.Vel) + Cmd_AxsVelocityAddDriveVelMode(builder, t.DriveVelMode) + Cmd_AxsVelocityAddBuffered(builder, t.Buffered) + Cmd_AxsVelocityAddLim(builder, limOffset) + return Cmd_AxsVelocityEnd(builder) +} + +func (rcv *Cmd_AxsVelocity) UnPackTo(t *Cmd_AxsVelocityT) { + t.Base = rcv.Base(nil).UnPack() + t.Vel = rcv.Vel() + t.DriveVelMode = rcv.DriveVelMode() + t.Buffered = rcv.Buffered() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *Cmd_AxsVelocity) UnPack() *Cmd_AxsVelocityT { + if rcv == nil { return nil } + t := &Cmd_AxsVelocityT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_AxsVelocity struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_AxsVelocity(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsVelocity { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_AxsVelocity{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_AxsVelocity(buf []byte, offset flatbuffers.UOffsetT) *Cmd_AxsVelocity { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_AxsVelocity{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_AxsVelocity) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_AxsVelocity) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_AxsVelocity) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_AxsVelocity) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_AxsVelocity) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *Cmd_AxsVelocity) DriveVelMode() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Cmd_AxsVelocity) MutateDriveVelMode(n bool) bool { + return rcv._tab.MutateBoolSlot(8, n) +} + +func (rcv *Cmd_AxsVelocity) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *Cmd_AxsVelocity) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func (rcv *Cmd_AxsVelocity) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_DynLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func Cmd_AxsVelocityStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func Cmd_AxsVelocityAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_AxsVelocityAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(1, vel, 0.0) +} +func Cmd_AxsVelocityAddDriveVelMode(builder *flatbuffers.Builder, driveVelMode bool) { + builder.PrependBoolSlot(2, driveVelMode, false) +} +func Cmd_AxsVelocityAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(3, buffered, false) +} +func Cmd_AxsVelocityAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(lim), 0) +} +func Cmd_AxsVelocityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_Base.go b/pkg/fbs/script/manager/fbtypes/Cmd_Base.go index 723599f..fff7ef4 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_Base.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_Base.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_BaseT struct { - Name string - Source string - Line uint64 -} - -func (t *Cmd_BaseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - sourceOffset := builder.CreateString(t.Source) - Cmd_BaseStart(builder) - Cmd_BaseAddName(builder, nameOffset) - Cmd_BaseAddSource(builder, sourceOffset) - Cmd_BaseAddLine(builder, t.Line) - return Cmd_BaseEnd(builder) -} - -func (rcv *Cmd_Base) UnPackTo(t *Cmd_BaseT) { - t.Name = string(rcv.Name()) - t.Source = string(rcv.Source()) - t.Line = rcv.Line() -} - -func (rcv *Cmd_Base) UnPack() *Cmd_BaseT { - if rcv == nil { return nil } - t := &Cmd_BaseT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_Base struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_Base(buf []byte, offset flatbuffers.UOffsetT) *Cmd_Base { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_Base{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_Base(buf []byte, offset flatbuffers.UOffsetT) *Cmd_Base { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_Base{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_Base) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_Base) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_Base) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_Base) Source() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_Base) Line() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Cmd_Base) MutateLine(n uint64) bool { - return rcv._tab.MutateUint64Slot(8, n) -} - -func Cmd_BaseStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func Cmd_BaseAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func Cmd_BaseAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(source), 0) -} -func Cmd_BaseAddLine(builder *flatbuffers.Builder, line uint64) { - builder.PrependUint64Slot(2, line, 0) -} -func Cmd_BaseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_BaseT struct { + Name string + Source string + Line uint64 +} + +func (t *Cmd_BaseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + sourceOffset := builder.CreateString(t.Source) + Cmd_BaseStart(builder) + Cmd_BaseAddName(builder, nameOffset) + Cmd_BaseAddSource(builder, sourceOffset) + Cmd_BaseAddLine(builder, t.Line) + return Cmd_BaseEnd(builder) +} + +func (rcv *Cmd_Base) UnPackTo(t *Cmd_BaseT) { + t.Name = string(rcv.Name()) + t.Source = string(rcv.Source()) + t.Line = rcv.Line() +} + +func (rcv *Cmd_Base) UnPack() *Cmd_BaseT { + if rcv == nil { return nil } + t := &Cmd_BaseT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_Base struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_Base(buf []byte, offset flatbuffers.UOffsetT) *Cmd_Base { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_Base{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_Base(buf []byte, offset flatbuffers.UOffsetT) *Cmd_Base { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_Base{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_Base) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_Base) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_Base) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_Base) Source() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_Base) Line() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Cmd_Base) MutateLine(n uint64) bool { + return rcv._tab.MutateUint64Slot(8, n) +} + +func Cmd_BaseStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func Cmd_BaseAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func Cmd_BaseAddSource(builder *flatbuffers.Builder, source flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(source), 0) +} +func Cmd_BaseAddLine(builder *flatbuffers.Builder, line uint64) { + builder.PrependUint64Slot(2, line, 0) +} +func Cmd_BaseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_DynLimits.go b/pkg/fbs/script/manager/fbtypes/Cmd_DynLimits.go index 0e25e0a..428f7f7 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_DynLimits.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_DynLimits.go @@ -1,150 +1,150 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_DynLimitsT struct { - Vel float64 - Acc float64 - Dec float64 - JrkAcc float64 - JrkDec float64 -} - -func (t *Cmd_DynLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Cmd_DynLimitsStart(builder) - Cmd_DynLimitsAddVel(builder, t.Vel) - Cmd_DynLimitsAddAcc(builder, t.Acc) - Cmd_DynLimitsAddDec(builder, t.Dec) - Cmd_DynLimitsAddJrkAcc(builder, t.JrkAcc) - Cmd_DynLimitsAddJrkDec(builder, t.JrkDec) - return Cmd_DynLimitsEnd(builder) -} - -func (rcv *Cmd_DynLimits) UnPackTo(t *Cmd_DynLimitsT) { - t.Vel = rcv.Vel() - t.Acc = rcv.Acc() - t.Dec = rcv.Dec() - t.JrkAcc = rcv.JrkAcc() - t.JrkDec = rcv.JrkDec() -} - -func (rcv *Cmd_DynLimits) UnPack() *Cmd_DynLimitsT { - if rcv == nil { return nil } - t := &Cmd_DynLimitsT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_DynLimits struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_DynLimits(buf []byte, offset flatbuffers.UOffsetT) *Cmd_DynLimits { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_DynLimits{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_DynLimits(buf []byte, offset flatbuffers.UOffsetT) *Cmd_DynLimits { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_DynLimits{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_DynLimits) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_DynLimits) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_DynLimits) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_DynLimits) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func (rcv *Cmd_DynLimits) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_DynLimits) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *Cmd_DynLimits) Dec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_DynLimits) MutateDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *Cmd_DynLimits) JrkAcc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_DynLimits) MutateJrkAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func (rcv *Cmd_DynLimits) JrkDec() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_DynLimits) MutateJrkDec(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -func Cmd_DynLimitsStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func Cmd_DynLimitsAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(0, vel, 0.0) -} -func Cmd_DynLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(1, acc, 0.0) -} -func Cmd_DynLimitsAddDec(builder *flatbuffers.Builder, dec float64) { - builder.PrependFloat64Slot(2, dec, 0.0) -} -func Cmd_DynLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { - builder.PrependFloat64Slot(3, jrkAcc, 0.0) -} -func Cmd_DynLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { - builder.PrependFloat64Slot(4, jrkDec, 0.0) -} -func Cmd_DynLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_DynLimitsT struct { + Vel float64 + Acc float64 + Dec float64 + JrkAcc float64 + JrkDec float64 +} + +func (t *Cmd_DynLimitsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Cmd_DynLimitsStart(builder) + Cmd_DynLimitsAddVel(builder, t.Vel) + Cmd_DynLimitsAddAcc(builder, t.Acc) + Cmd_DynLimitsAddDec(builder, t.Dec) + Cmd_DynLimitsAddJrkAcc(builder, t.JrkAcc) + Cmd_DynLimitsAddJrkDec(builder, t.JrkDec) + return Cmd_DynLimitsEnd(builder) +} + +func (rcv *Cmd_DynLimits) UnPackTo(t *Cmd_DynLimitsT) { + t.Vel = rcv.Vel() + t.Acc = rcv.Acc() + t.Dec = rcv.Dec() + t.JrkAcc = rcv.JrkAcc() + t.JrkDec = rcv.JrkDec() +} + +func (rcv *Cmd_DynLimits) UnPack() *Cmd_DynLimitsT { + if rcv == nil { return nil } + t := &Cmd_DynLimitsT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_DynLimits struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_DynLimits(buf []byte, offset flatbuffers.UOffsetT) *Cmd_DynLimits { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_DynLimits{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_DynLimits(buf []byte, offset flatbuffers.UOffsetT) *Cmd_DynLimits { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_DynLimits{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_DynLimits) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_DynLimits) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_DynLimits) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_DynLimits) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func (rcv *Cmd_DynLimits) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_DynLimits) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *Cmd_DynLimits) Dec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_DynLimits) MutateDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *Cmd_DynLimits) JrkAcc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_DynLimits) MutateJrkAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func (rcv *Cmd_DynLimits) JrkDec() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_DynLimits) MutateJrkDec(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +func Cmd_DynLimitsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func Cmd_DynLimitsAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(0, vel, 0.0) +} +func Cmd_DynLimitsAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(1, acc, 0.0) +} +func Cmd_DynLimitsAddDec(builder *flatbuffers.Builder, dec float64) { + builder.PrependFloat64Slot(2, dec, 0.0) +} +func Cmd_DynLimitsAddJrkAcc(builder *flatbuffers.Builder, jrkAcc float64) { + builder.PrependFloat64Slot(3, jrkAcc, 0.0) +} +func Cmd_DynLimitsAddJrkDec(builder *flatbuffers.Builder, jrkDec float64) { + builder.PrependFloat64Slot(4, jrkDec, 0.0) +} +func Cmd_DynLimitsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_GenCmdOption.go b/pkg/fbs/script/manager/fbtypes/Cmd_GenCmdOption.go index 1f950bf..8f2c765 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_GenCmdOption.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_GenCmdOption.go @@ -1,160 +1,160 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_GenCmdOptionT struct { - Base *Cmd_BaseT - CmdName string - ObjType ObjectTypeGenCmdOption - Params []byte -} - -func (t *Cmd_GenCmdOptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - cmdNameOffset := builder.CreateString(t.CmdName) - paramsOffset := flatbuffers.UOffsetT(0) - if t.Params != nil { - paramsOffset = builder.CreateByteString(t.Params) - } - Cmd_GenCmdOptionStart(builder) - Cmd_GenCmdOptionAddBase(builder, baseOffset) - Cmd_GenCmdOptionAddCmdName(builder, cmdNameOffset) - Cmd_GenCmdOptionAddObjType(builder, t.ObjType) - Cmd_GenCmdOptionAddParams(builder, paramsOffset) - return Cmd_GenCmdOptionEnd(builder) -} - -func (rcv *Cmd_GenCmdOption) UnPackTo(t *Cmd_GenCmdOptionT) { - t.Base = rcv.Base(nil).UnPack() - t.CmdName = string(rcv.CmdName()) - t.ObjType = rcv.ObjType() - t.Params = rcv.ParamsBytes() -} - -func (rcv *Cmd_GenCmdOption) UnPack() *Cmd_GenCmdOptionT { - if rcv == nil { return nil } - t := &Cmd_GenCmdOptionT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_GenCmdOption struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_GenCmdOption(buf []byte, offset flatbuffers.UOffsetT) *Cmd_GenCmdOption { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_GenCmdOption{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_GenCmdOption(buf []byte, offset flatbuffers.UOffsetT) *Cmd_GenCmdOption { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_GenCmdOption{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_GenCmdOption) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_GenCmdOption) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_GenCmdOption) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_GenCmdOption) CmdName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_GenCmdOption) ObjType() ObjectTypeGenCmdOption { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return ObjectTypeGenCmdOption(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Cmd_GenCmdOption) MutateObjType(n ObjectTypeGenCmdOption) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func (rcv *Cmd_GenCmdOption) Params(j int) byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) - } - return 0 -} - -func (rcv *Cmd_GenCmdOption) ParamsLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Cmd_GenCmdOption) ParamsBytes() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_GenCmdOption) MutateParams(j int, n byte) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) - } - return false -} - -func Cmd_GenCmdOptionStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func Cmd_GenCmdOptionAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_GenCmdOptionAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(cmdName), 0) -} -func Cmd_GenCmdOptionAddObjType(builder *flatbuffers.Builder, objType ObjectTypeGenCmdOption) { - builder.PrependInt8Slot(2, int8(objType), 0) -} -func Cmd_GenCmdOptionAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(params), 0) -} -func Cmd_GenCmdOptionStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func Cmd_GenCmdOptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_GenCmdOptionT struct { + Base *Cmd_BaseT + CmdName string + ObjType ObjectTypeGenCmdOption + Params []byte +} + +func (t *Cmd_GenCmdOptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + cmdNameOffset := builder.CreateString(t.CmdName) + paramsOffset := flatbuffers.UOffsetT(0) + if t.Params != nil { + paramsOffset = builder.CreateByteString(t.Params) + } + Cmd_GenCmdOptionStart(builder) + Cmd_GenCmdOptionAddBase(builder, baseOffset) + Cmd_GenCmdOptionAddCmdName(builder, cmdNameOffset) + Cmd_GenCmdOptionAddObjType(builder, t.ObjType) + Cmd_GenCmdOptionAddParams(builder, paramsOffset) + return Cmd_GenCmdOptionEnd(builder) +} + +func (rcv *Cmd_GenCmdOption) UnPackTo(t *Cmd_GenCmdOptionT) { + t.Base = rcv.Base(nil).UnPack() + t.CmdName = string(rcv.CmdName()) + t.ObjType = rcv.ObjType() + t.Params = rcv.ParamsBytes() +} + +func (rcv *Cmd_GenCmdOption) UnPack() *Cmd_GenCmdOptionT { + if rcv == nil { return nil } + t := &Cmd_GenCmdOptionT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_GenCmdOption struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_GenCmdOption(buf []byte, offset flatbuffers.UOffsetT) *Cmd_GenCmdOption { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_GenCmdOption{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_GenCmdOption(buf []byte, offset flatbuffers.UOffsetT) *Cmd_GenCmdOption { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_GenCmdOption{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_GenCmdOption) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_GenCmdOption) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_GenCmdOption) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_GenCmdOption) CmdName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_GenCmdOption) ObjType() ObjectTypeGenCmdOption { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return ObjectTypeGenCmdOption(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Cmd_GenCmdOption) MutateObjType(n ObjectTypeGenCmdOption) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func (rcv *Cmd_GenCmdOption) Params(j int) byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) + } + return 0 +} + +func (rcv *Cmd_GenCmdOption) ParamsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Cmd_GenCmdOption) ParamsBytes() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_GenCmdOption) MutateParams(j int, n byte) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) + } + return false +} + +func Cmd_GenCmdOptionStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func Cmd_GenCmdOptionAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_GenCmdOptionAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(cmdName), 0) +} +func Cmd_GenCmdOptionAddObjType(builder *flatbuffers.Builder, objType ObjectTypeGenCmdOption) { + builder.PrependInt8Slot(2, int8(objType), 0) +} +func Cmd_GenCmdOptionAddParams(builder *flatbuffers.Builder, params flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(params), 0) +} +func Cmd_GenCmdOptionStartParamsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func Cmd_GenCmdOptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_KinAbort.go b/pkg/fbs/script/manager/fbtypes/Cmd_KinAbort.go index adb9c07..2b5d911 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_KinAbort.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_KinAbort.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_KinAbortT struct { - Base *Cmd_BaseT - Type string -} - -func (t *Cmd_KinAbortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - typeOffset := builder.CreateString(t.Type) - Cmd_KinAbortStart(builder) - Cmd_KinAbortAddBase(builder, baseOffset) - Cmd_KinAbortAddType(builder, typeOffset) - return Cmd_KinAbortEnd(builder) -} - -func (rcv *Cmd_KinAbort) UnPackTo(t *Cmd_KinAbortT) { - t.Base = rcv.Base(nil).UnPack() - t.Type = string(rcv.Type()) -} - -func (rcv *Cmd_KinAbort) UnPack() *Cmd_KinAbortT { - if rcv == nil { return nil } - t := &Cmd_KinAbortT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_KinAbort struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_KinAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinAbort { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_KinAbort{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_KinAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinAbort { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_KinAbort{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_KinAbort) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_KinAbort) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_KinAbort) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinAbort) Type() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func Cmd_KinAbortStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Cmd_KinAbortAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_KinAbortAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) -} -func Cmd_KinAbortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_KinAbortT struct { + Base *Cmd_BaseT + Type string +} + +func (t *Cmd_KinAbortT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + typeOffset := builder.CreateString(t.Type) + Cmd_KinAbortStart(builder) + Cmd_KinAbortAddBase(builder, baseOffset) + Cmd_KinAbortAddType(builder, typeOffset) + return Cmd_KinAbortEnd(builder) +} + +func (rcv *Cmd_KinAbort) UnPackTo(t *Cmd_KinAbortT) { + t.Base = rcv.Base(nil).UnPack() + t.Type = string(rcv.Type()) +} + +func (rcv *Cmd_KinAbort) UnPack() *Cmd_KinAbortT { + if rcv == nil { return nil } + t := &Cmd_KinAbortT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_KinAbort struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_KinAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinAbort { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_KinAbort{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_KinAbort(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinAbort { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_KinAbort{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_KinAbort) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_KinAbort) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_KinAbort) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinAbort) Type() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func Cmd_KinAbortStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Cmd_KinAbortAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_KinAbortAddType(builder *flatbuffers.Builder, type_ flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(type_), 0) +} +func Cmd_KinAbortEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_KinContour.go b/pkg/fbs/script/manager/fbtypes/Cmd_KinContour.go index 2e677c3..7304944 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_KinContour.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_KinContour.go @@ -1,116 +1,116 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_KinContourT struct { - Base *Cmd_BaseT - IsStart bool - PrepCmds uint32 -} - -func (t *Cmd_KinContourT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - Cmd_KinContourStart(builder) - Cmd_KinContourAddBase(builder, baseOffset) - Cmd_KinContourAddIsStart(builder, t.IsStart) - Cmd_KinContourAddPrepCmds(builder, t.PrepCmds) - return Cmd_KinContourEnd(builder) -} - -func (rcv *Cmd_KinContour) UnPackTo(t *Cmd_KinContourT) { - t.Base = rcv.Base(nil).UnPack() - t.IsStart = rcv.IsStart() - t.PrepCmds = rcv.PrepCmds() -} - -func (rcv *Cmd_KinContour) UnPack() *Cmd_KinContourT { - if rcv == nil { return nil } - t := &Cmd_KinContourT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_KinContour struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_KinContour(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinContour { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_KinContour{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_KinContour(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinContour { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_KinContour{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_KinContour) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_KinContour) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_KinContour) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinContour) IsStart() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -func (rcv *Cmd_KinContour) MutateIsStart(n bool) bool { - return rcv._tab.MutateBoolSlot(6, n) -} - -func (rcv *Cmd_KinContour) PrepCmds() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Cmd_KinContour) MutatePrepCmds(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func Cmd_KinContourStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func Cmd_KinContourAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_KinContourAddIsStart(builder *flatbuffers.Builder, isStart bool) { - builder.PrependBoolSlot(1, isStart, true) -} -func Cmd_KinContourAddPrepCmds(builder *flatbuffers.Builder, prepCmds uint32) { - builder.PrependUint32Slot(2, prepCmds, 0) -} -func Cmd_KinContourEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_KinContourT struct { + Base *Cmd_BaseT + IsStart bool + PrepCmds uint32 +} + +func (t *Cmd_KinContourT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + Cmd_KinContourStart(builder) + Cmd_KinContourAddBase(builder, baseOffset) + Cmd_KinContourAddIsStart(builder, t.IsStart) + Cmd_KinContourAddPrepCmds(builder, t.PrepCmds) + return Cmd_KinContourEnd(builder) +} + +func (rcv *Cmd_KinContour) UnPackTo(t *Cmd_KinContourT) { + t.Base = rcv.Base(nil).UnPack() + t.IsStart = rcv.IsStart() + t.PrepCmds = rcv.PrepCmds() +} + +func (rcv *Cmd_KinContour) UnPack() *Cmd_KinContourT { + if rcv == nil { return nil } + t := &Cmd_KinContourT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_KinContour struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_KinContour(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinContour { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_KinContour{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_KinContour(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinContour { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_KinContour{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_KinContour) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_KinContour) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_KinContour) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinContour) IsStart() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +func (rcv *Cmd_KinContour) MutateIsStart(n bool) bool { + return rcv._tab.MutateBoolSlot(6, n) +} + +func (rcv *Cmd_KinContour) PrepCmds() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Cmd_KinContour) MutatePrepCmds(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func Cmd_KinContourStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func Cmd_KinContourAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_KinContourAddIsStart(builder *flatbuffers.Builder, isStart bool) { + builder.PrependBoolSlot(1, isStart, true) +} +func Cmd_KinContourAddPrepCmds(builder *flatbuffers.Builder, prepCmds uint32) { + builder.PrependUint32Slot(2, prepCmds, 0) +} +func Cmd_KinContourEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_KinJog.go b/pkg/fbs/script/manager/fbtypes/Cmd_KinJog.go index 5bdf991..3dd6606 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_KinJog.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_KinJog.go @@ -1,181 +1,181 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_KinJogT struct { - Base *Cmd_BaseT - Dir []float64 - CoordSys string - Incr float64 - Lim *Cmd_DynLimitsT -} - -func (t *Cmd_KinJogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - dirOffset := flatbuffers.UOffsetT(0) - if t.Dir != nil { - dirLength := len(t.Dir) - Cmd_KinJogStartDirVector(builder, dirLength) - for j := dirLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Dir[j]) - } - dirOffset = builder.EndVector(dirLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - limOffset := t.Lim.Pack(builder) - Cmd_KinJogStart(builder) - Cmd_KinJogAddBase(builder, baseOffset) - Cmd_KinJogAddDir(builder, dirOffset) - Cmd_KinJogAddCoordSys(builder, coordSysOffset) - Cmd_KinJogAddIncr(builder, t.Incr) - Cmd_KinJogAddLim(builder, limOffset) - return Cmd_KinJogEnd(builder) -} - -func (rcv *Cmd_KinJog) UnPackTo(t *Cmd_KinJogT) { - t.Base = rcv.Base(nil).UnPack() - dirLength := rcv.DirLength() - t.Dir = make([]float64, dirLength) - for j := 0; j < dirLength; j++ { - t.Dir[j] = rcv.Dir(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.Incr = rcv.Incr() - t.Lim = rcv.Lim(nil).UnPack() -} - -func (rcv *Cmd_KinJog) UnPack() *Cmd_KinJogT { - if rcv == nil { return nil } - t := &Cmd_KinJogT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_KinJog struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_KinJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinJog { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_KinJog{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_KinJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinJog { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_KinJog{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_KinJog) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_KinJog) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_KinJog) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinJog) Dir(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *Cmd_KinJog) DirLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Cmd_KinJog) MutateDir(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *Cmd_KinJog) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_KinJog) Incr() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Cmd_KinJog) MutateIncr(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func (rcv *Cmd_KinJog) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_DynLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func Cmd_KinJogStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func Cmd_KinJogAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_KinJogAddDir(builder *flatbuffers.Builder, dir flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dir), 0) -} -func Cmd_KinJogStartDirVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func Cmd_KinJogAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) -} -func Cmd_KinJogAddIncr(builder *flatbuffers.Builder, incr float64) { - builder.PrependFloat64Slot(3, incr, 0.0) -} -func Cmd_KinJogAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(lim), 0) -} -func Cmd_KinJogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_KinJogT struct { + Base *Cmd_BaseT + Dir []float64 + CoordSys string + Incr float64 + Lim *Cmd_DynLimitsT +} + +func (t *Cmd_KinJogT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + dirOffset := flatbuffers.UOffsetT(0) + if t.Dir != nil { + dirLength := len(t.Dir) + Cmd_KinJogStartDirVector(builder, dirLength) + for j := dirLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Dir[j]) + } + dirOffset = builder.EndVector(dirLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + limOffset := t.Lim.Pack(builder) + Cmd_KinJogStart(builder) + Cmd_KinJogAddBase(builder, baseOffset) + Cmd_KinJogAddDir(builder, dirOffset) + Cmd_KinJogAddCoordSys(builder, coordSysOffset) + Cmd_KinJogAddIncr(builder, t.Incr) + Cmd_KinJogAddLim(builder, limOffset) + return Cmd_KinJogEnd(builder) +} + +func (rcv *Cmd_KinJog) UnPackTo(t *Cmd_KinJogT) { + t.Base = rcv.Base(nil).UnPack() + dirLength := rcv.DirLength() + t.Dir = make([]float64, dirLength) + for j := 0; j < dirLength; j++ { + t.Dir[j] = rcv.Dir(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.Incr = rcv.Incr() + t.Lim = rcv.Lim(nil).UnPack() +} + +func (rcv *Cmd_KinJog) UnPack() *Cmd_KinJogT { + if rcv == nil { return nil } + t := &Cmd_KinJogT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_KinJog struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_KinJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinJog { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_KinJog{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_KinJog(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinJog { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_KinJog{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_KinJog) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_KinJog) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_KinJog) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinJog) Dir(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *Cmd_KinJog) DirLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Cmd_KinJog) MutateDir(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *Cmd_KinJog) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_KinJog) Incr() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Cmd_KinJog) MutateIncr(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func (rcv *Cmd_KinJog) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_DynLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func Cmd_KinJogStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func Cmd_KinJogAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_KinJogAddDir(builder *flatbuffers.Builder, dir flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dir), 0) +} +func Cmd_KinJogStartDirVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func Cmd_KinJogAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) +} +func Cmd_KinJogAddIncr(builder *flatbuffers.Builder, incr float64) { + builder.PrependFloat64Slot(3, incr, 0.0) +} +func Cmd_KinJogAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(lim), 0) +} +func Cmd_KinJogEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirect.go b/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirect.go index dfbc8c2..ae3f176 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirect.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirect.go @@ -1,161 +1,161 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_KinMoveDirectT struct { - Base *Cmd_BaseT - Pos []float64 - CoordSys string - Buffered bool -} - -func (t *Cmd_KinMoveDirectT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - posOffset := flatbuffers.UOffsetT(0) - if t.Pos != nil { - posLength := len(t.Pos) - Cmd_KinMoveDirectStartPosVector(builder, posLength) - for j := posLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Pos[j]) - } - posOffset = builder.EndVector(posLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - Cmd_KinMoveDirectStart(builder) - Cmd_KinMoveDirectAddBase(builder, baseOffset) - Cmd_KinMoveDirectAddPos(builder, posOffset) - Cmd_KinMoveDirectAddCoordSys(builder, coordSysOffset) - Cmd_KinMoveDirectAddBuffered(builder, t.Buffered) - return Cmd_KinMoveDirectEnd(builder) -} - -func (rcv *Cmd_KinMoveDirect) UnPackTo(t *Cmd_KinMoveDirectT) { - t.Base = rcv.Base(nil).UnPack() - posLength := rcv.PosLength() - t.Pos = make([]float64, posLength) - for j := 0; j < posLength; j++ { - t.Pos[j] = rcv.Pos(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.Buffered = rcv.Buffered() -} - -func (rcv *Cmd_KinMoveDirect) UnPack() *Cmd_KinMoveDirectT { - if rcv == nil { return nil } - t := &Cmd_KinMoveDirectT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_KinMoveDirect struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_KinMoveDirect(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirect { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_KinMoveDirect{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_KinMoveDirect(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirect { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_KinMoveDirect{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_KinMoveDirect) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_KinMoveDirect) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_KinMoveDirect) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinMoveDirect) Pos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *Cmd_KinMoveDirect) PosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Cmd_KinMoveDirect) MutatePos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *Cmd_KinMoveDirect) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_KinMoveDirect) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -func (rcv *Cmd_KinMoveDirect) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(10, n) -} - -func Cmd_KinMoveDirectStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func Cmd_KinMoveDirectAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_KinMoveDirectAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pos), 0) -} -func Cmd_KinMoveDirectStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func Cmd_KinMoveDirectAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) -} -func Cmd_KinMoveDirectAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(3, buffered, true) -} -func Cmd_KinMoveDirectEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_KinMoveDirectT struct { + Base *Cmd_BaseT + Pos []float64 + CoordSys string + Buffered bool +} + +func (t *Cmd_KinMoveDirectT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + posOffset := flatbuffers.UOffsetT(0) + if t.Pos != nil { + posLength := len(t.Pos) + Cmd_KinMoveDirectStartPosVector(builder, posLength) + for j := posLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Pos[j]) + } + posOffset = builder.EndVector(posLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + Cmd_KinMoveDirectStart(builder) + Cmd_KinMoveDirectAddBase(builder, baseOffset) + Cmd_KinMoveDirectAddPos(builder, posOffset) + Cmd_KinMoveDirectAddCoordSys(builder, coordSysOffset) + Cmd_KinMoveDirectAddBuffered(builder, t.Buffered) + return Cmd_KinMoveDirectEnd(builder) +} + +func (rcv *Cmd_KinMoveDirect) UnPackTo(t *Cmd_KinMoveDirectT) { + t.Base = rcv.Base(nil).UnPack() + posLength := rcv.PosLength() + t.Pos = make([]float64, posLength) + for j := 0; j < posLength; j++ { + t.Pos[j] = rcv.Pos(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.Buffered = rcv.Buffered() +} + +func (rcv *Cmd_KinMoveDirect) UnPack() *Cmd_KinMoveDirectT { + if rcv == nil { return nil } + t := &Cmd_KinMoveDirectT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_KinMoveDirect struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_KinMoveDirect(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirect { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_KinMoveDirect{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_KinMoveDirect(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirect { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_KinMoveDirect{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_KinMoveDirect) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_KinMoveDirect) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_KinMoveDirect) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinMoveDirect) Pos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *Cmd_KinMoveDirect) PosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Cmd_KinMoveDirect) MutatePos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *Cmd_KinMoveDirect) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_KinMoveDirect) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +func (rcv *Cmd_KinMoveDirect) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(10, n) +} + +func Cmd_KinMoveDirectStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func Cmd_KinMoveDirectAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_KinMoveDirectAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pos), 0) +} +func Cmd_KinMoveDirectStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func Cmd_KinMoveDirectAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) +} +func Cmd_KinMoveDirectAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(3, buffered, true) +} +func Cmd_KinMoveDirectEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirectAsync.go b/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirectAsync.go index 27376f8..5fc2103 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirectAsync.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveDirectAsync.go @@ -1,181 +1,181 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_KinMoveDirectAsyncT struct { - Base *Cmd_BaseT - Pos []float64 - CoordSys string - DynLimFactors *Cmd_DynLimitsT - Buffered bool -} - -func (t *Cmd_KinMoveDirectAsyncT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - posOffset := flatbuffers.UOffsetT(0) - if t.Pos != nil { - posLength := len(t.Pos) - Cmd_KinMoveDirectAsyncStartPosVector(builder, posLength) - for j := posLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Pos[j]) - } - posOffset = builder.EndVector(posLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - dynLimFactorsOffset := t.DynLimFactors.Pack(builder) - Cmd_KinMoveDirectAsyncStart(builder) - Cmd_KinMoveDirectAsyncAddBase(builder, baseOffset) - Cmd_KinMoveDirectAsyncAddPos(builder, posOffset) - Cmd_KinMoveDirectAsyncAddCoordSys(builder, coordSysOffset) - Cmd_KinMoveDirectAsyncAddDynLimFactors(builder, dynLimFactorsOffset) - Cmd_KinMoveDirectAsyncAddBuffered(builder, t.Buffered) - return Cmd_KinMoveDirectAsyncEnd(builder) -} - -func (rcv *Cmd_KinMoveDirectAsync) UnPackTo(t *Cmd_KinMoveDirectAsyncT) { - t.Base = rcv.Base(nil).UnPack() - posLength := rcv.PosLength() - t.Pos = make([]float64, posLength) - for j := 0; j < posLength; j++ { - t.Pos[j] = rcv.Pos(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.DynLimFactors = rcv.DynLimFactors(nil).UnPack() - t.Buffered = rcv.Buffered() -} - -func (rcv *Cmd_KinMoveDirectAsync) UnPack() *Cmd_KinMoveDirectAsyncT { - if rcv == nil { return nil } - t := &Cmd_KinMoveDirectAsyncT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_KinMoveDirectAsync struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_KinMoveDirectAsync(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirectAsync { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_KinMoveDirectAsync{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_KinMoveDirectAsync(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirectAsync { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_KinMoveDirectAsync{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_KinMoveDirectAsync) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_KinMoveDirectAsync) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_KinMoveDirectAsync) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinMoveDirectAsync) Pos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *Cmd_KinMoveDirectAsync) PosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Cmd_KinMoveDirectAsync) MutatePos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *Cmd_KinMoveDirectAsync) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_KinMoveDirectAsync) DynLimFactors(obj *Cmd_DynLimits) *Cmd_DynLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_DynLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinMoveDirectAsync) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -func (rcv *Cmd_KinMoveDirectAsync) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -func Cmd_KinMoveDirectAsyncStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func Cmd_KinMoveDirectAsyncAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_KinMoveDirectAsyncAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pos), 0) -} -func Cmd_KinMoveDirectAsyncStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func Cmd_KinMoveDirectAsyncAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) -} -func Cmd_KinMoveDirectAsyncAddDynLimFactors(builder *flatbuffers.Builder, dynLimFactors flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(dynLimFactors), 0) -} -func Cmd_KinMoveDirectAsyncAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(4, buffered, true) -} -func Cmd_KinMoveDirectAsyncEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_KinMoveDirectAsyncT struct { + Base *Cmd_BaseT + Pos []float64 + CoordSys string + DynLimFactors *Cmd_DynLimitsT + Buffered bool +} + +func (t *Cmd_KinMoveDirectAsyncT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + posOffset := flatbuffers.UOffsetT(0) + if t.Pos != nil { + posLength := len(t.Pos) + Cmd_KinMoveDirectAsyncStartPosVector(builder, posLength) + for j := posLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Pos[j]) + } + posOffset = builder.EndVector(posLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + dynLimFactorsOffset := t.DynLimFactors.Pack(builder) + Cmd_KinMoveDirectAsyncStart(builder) + Cmd_KinMoveDirectAsyncAddBase(builder, baseOffset) + Cmd_KinMoveDirectAsyncAddPos(builder, posOffset) + Cmd_KinMoveDirectAsyncAddCoordSys(builder, coordSysOffset) + Cmd_KinMoveDirectAsyncAddDynLimFactors(builder, dynLimFactorsOffset) + Cmd_KinMoveDirectAsyncAddBuffered(builder, t.Buffered) + return Cmd_KinMoveDirectAsyncEnd(builder) +} + +func (rcv *Cmd_KinMoveDirectAsync) UnPackTo(t *Cmd_KinMoveDirectAsyncT) { + t.Base = rcv.Base(nil).UnPack() + posLength := rcv.PosLength() + t.Pos = make([]float64, posLength) + for j := 0; j < posLength; j++ { + t.Pos[j] = rcv.Pos(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.DynLimFactors = rcv.DynLimFactors(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *Cmd_KinMoveDirectAsync) UnPack() *Cmd_KinMoveDirectAsyncT { + if rcv == nil { return nil } + t := &Cmd_KinMoveDirectAsyncT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_KinMoveDirectAsync struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_KinMoveDirectAsync(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirectAsync { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_KinMoveDirectAsync{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_KinMoveDirectAsync(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveDirectAsync { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_KinMoveDirectAsync{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_KinMoveDirectAsync) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_KinMoveDirectAsync) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_KinMoveDirectAsync) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinMoveDirectAsync) Pos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *Cmd_KinMoveDirectAsync) PosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Cmd_KinMoveDirectAsync) MutatePos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *Cmd_KinMoveDirectAsync) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_KinMoveDirectAsync) DynLimFactors(obj *Cmd_DynLimits) *Cmd_DynLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_DynLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinMoveDirectAsync) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +func (rcv *Cmd_KinMoveDirectAsync) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func Cmd_KinMoveDirectAsyncStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func Cmd_KinMoveDirectAsyncAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_KinMoveDirectAsyncAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pos), 0) +} +func Cmd_KinMoveDirectAsyncStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func Cmd_KinMoveDirectAsyncAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) +} +func Cmd_KinMoveDirectAsyncAddDynLimFactors(builder *flatbuffers.Builder, dynLimFactors flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(dynLimFactors), 0) +} +func Cmd_KinMoveDirectAsyncAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(4, buffered, true) +} +func Cmd_KinMoveDirectAsyncEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveLin.go b/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveLin.go index c6c275f..758529d 100644 --- a/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveLin.go +++ b/pkg/fbs/script/manager/fbtypes/Cmd_KinMoveLin.go @@ -1,181 +1,181 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Cmd_KinMoveLinT struct { - Base *Cmd_BaseT - Pos []float64 - CoordSys string - Lim *Cmd_DynLimitsT - Buffered bool -} - -func (t *Cmd_KinMoveLinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - posOffset := flatbuffers.UOffsetT(0) - if t.Pos != nil { - posLength := len(t.Pos) - Cmd_KinMoveLinStartPosVector(builder, posLength) - for j := posLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Pos[j]) - } - posOffset = builder.EndVector(posLength) - } - coordSysOffset := builder.CreateString(t.CoordSys) - limOffset := t.Lim.Pack(builder) - Cmd_KinMoveLinStart(builder) - Cmd_KinMoveLinAddBase(builder, baseOffset) - Cmd_KinMoveLinAddPos(builder, posOffset) - Cmd_KinMoveLinAddCoordSys(builder, coordSysOffset) - Cmd_KinMoveLinAddLim(builder, limOffset) - Cmd_KinMoveLinAddBuffered(builder, t.Buffered) - return Cmd_KinMoveLinEnd(builder) -} - -func (rcv *Cmd_KinMoveLin) UnPackTo(t *Cmd_KinMoveLinT) { - t.Base = rcv.Base(nil).UnPack() - posLength := rcv.PosLength() - t.Pos = make([]float64, posLength) - for j := 0; j < posLength; j++ { - t.Pos[j] = rcv.Pos(j) - } - t.CoordSys = string(rcv.CoordSys()) - t.Lim = rcv.Lim(nil).UnPack() - t.Buffered = rcv.Buffered() -} - -func (rcv *Cmd_KinMoveLin) UnPack() *Cmd_KinMoveLinT { - if rcv == nil { return nil } - t := &Cmd_KinMoveLinT{} - rcv.UnPackTo(t) - return t -} - -type Cmd_KinMoveLin struct { - _tab flatbuffers.Table -} - -func GetRootAsCmd_KinMoveLin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveLin { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Cmd_KinMoveLin{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsCmd_KinMoveLin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveLin { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Cmd_KinMoveLin{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Cmd_KinMoveLin) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Cmd_KinMoveLin) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Cmd_KinMoveLin) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinMoveLin) Pos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *Cmd_KinMoveLin) PosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *Cmd_KinMoveLin) MutatePos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *Cmd_KinMoveLin) CoordSys() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Cmd_KinMoveLin) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_DynLimits) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Cmd_KinMoveLin) Buffered() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return true -} - -func (rcv *Cmd_KinMoveLin) MutateBuffered(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -func Cmd_KinMoveLinStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func Cmd_KinMoveLinAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Cmd_KinMoveLinAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pos), 0) -} -func Cmd_KinMoveLinStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func Cmd_KinMoveLinAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) -} -func Cmd_KinMoveLinAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) -} -func Cmd_KinMoveLinAddBuffered(builder *flatbuffers.Builder, buffered bool) { - builder.PrependBoolSlot(4, buffered, true) -} -func Cmd_KinMoveLinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Cmd_KinMoveLinT struct { + Base *Cmd_BaseT + Pos []float64 + CoordSys string + Lim *Cmd_DynLimitsT + Buffered bool +} + +func (t *Cmd_KinMoveLinT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + posOffset := flatbuffers.UOffsetT(0) + if t.Pos != nil { + posLength := len(t.Pos) + Cmd_KinMoveLinStartPosVector(builder, posLength) + for j := posLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Pos[j]) + } + posOffset = builder.EndVector(posLength) + } + coordSysOffset := builder.CreateString(t.CoordSys) + limOffset := t.Lim.Pack(builder) + Cmd_KinMoveLinStart(builder) + Cmd_KinMoveLinAddBase(builder, baseOffset) + Cmd_KinMoveLinAddPos(builder, posOffset) + Cmd_KinMoveLinAddCoordSys(builder, coordSysOffset) + Cmd_KinMoveLinAddLim(builder, limOffset) + Cmd_KinMoveLinAddBuffered(builder, t.Buffered) + return Cmd_KinMoveLinEnd(builder) +} + +func (rcv *Cmd_KinMoveLin) UnPackTo(t *Cmd_KinMoveLinT) { + t.Base = rcv.Base(nil).UnPack() + posLength := rcv.PosLength() + t.Pos = make([]float64, posLength) + for j := 0; j < posLength; j++ { + t.Pos[j] = rcv.Pos(j) + } + t.CoordSys = string(rcv.CoordSys()) + t.Lim = rcv.Lim(nil).UnPack() + t.Buffered = rcv.Buffered() +} + +func (rcv *Cmd_KinMoveLin) UnPack() *Cmd_KinMoveLinT { + if rcv == nil { return nil } + t := &Cmd_KinMoveLinT{} + rcv.UnPackTo(t) + return t +} + +type Cmd_KinMoveLin struct { + _tab flatbuffers.Table +} + +func GetRootAsCmd_KinMoveLin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveLin { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Cmd_KinMoveLin{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsCmd_KinMoveLin(buf []byte, offset flatbuffers.UOffsetT) *Cmd_KinMoveLin { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Cmd_KinMoveLin{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Cmd_KinMoveLin) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Cmd_KinMoveLin) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Cmd_KinMoveLin) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinMoveLin) Pos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *Cmd_KinMoveLin) PosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *Cmd_KinMoveLin) MutatePos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *Cmd_KinMoveLin) CoordSys() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Cmd_KinMoveLin) Lim(obj *Cmd_DynLimits) *Cmd_DynLimits { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_DynLimits) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Cmd_KinMoveLin) Buffered() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return true +} + +func (rcv *Cmd_KinMoveLin) MutateBuffered(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func Cmd_KinMoveLinStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func Cmd_KinMoveLinAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Cmd_KinMoveLinAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pos), 0) +} +func Cmd_KinMoveLinStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func Cmd_KinMoveLinAddCoordSys(builder *flatbuffers.Builder, coordSys flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSys), 0) +} +func Cmd_KinMoveLinAddLim(builder *flatbuffers.Builder, lim flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lim), 0) +} +func Cmd_KinMoveLinAddBuffered(builder *flatbuffers.Builder, buffered bool) { + builder.PrependBoolSlot(4, buffered, true) +} +func Cmd_KinMoveLinEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/DL_Write.go b/pkg/fbs/script/manager/fbtypes/DL_Write.go index d112bb7..750f27a 100644 --- a/pkg/fbs/script/manager/fbtypes/DL_Write.go +++ b/pkg/fbs/script/manager/fbtypes/DL_Write.go @@ -1,162 +1,162 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DL_WriteT struct { - Path string - Type int32 - S string - I int64 - B bool - D float64 -} - -func (t *DL_WriteT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - pathOffset := builder.CreateString(t.Path) - sOffset := builder.CreateString(t.S) - DL_WriteStart(builder) - DL_WriteAddPath(builder, pathOffset) - DL_WriteAddType(builder, t.Type) - DL_WriteAddS(builder, sOffset) - DL_WriteAddI(builder, t.I) - DL_WriteAddB(builder, t.B) - DL_WriteAddD(builder, t.D) - return DL_WriteEnd(builder) -} - -func (rcv *DL_Write) UnPackTo(t *DL_WriteT) { - t.Path = string(rcv.Path()) - t.Type = rcv.Type() - t.S = string(rcv.S()) - t.I = rcv.I() - t.B = rcv.B() - t.D = rcv.D() -} - -func (rcv *DL_Write) UnPack() *DL_WriteT { - if rcv == nil { return nil } - t := &DL_WriteT{} - rcv.UnPackTo(t) - return t -} - -type DL_Write struct { - _tab flatbuffers.Table -} - -func GetRootAsDL_Write(buf []byte, offset flatbuffers.UOffsetT) *DL_Write { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DL_Write{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDL_Write(buf []byte, offset flatbuffers.UOffsetT) *DL_Write { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DL_Write{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DL_Write) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DL_Write) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DL_Write) Path() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DL_Write) Type() int32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetInt32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DL_Write) MutateType(n int32) bool { - return rcv._tab.MutateInt32Slot(6, n) -} - -func (rcv *DL_Write) S() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DL_Write) I() int64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetInt64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DL_Write) MutateI(n int64) bool { - return rcv._tab.MutateInt64Slot(10, n) -} - -func (rcv *DL_Write) B() bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetBool(o + rcv._tab.Pos) - } - return false -} - -func (rcv *DL_Write) MutateB(n bool) bool { - return rcv._tab.MutateBoolSlot(12, n) -} - -func (rcv *DL_Write) D() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *DL_Write) MutateD(n float64) bool { - return rcv._tab.MutateFloat64Slot(14, n) -} - -func DL_WriteStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func DL_WriteAddPath(builder *flatbuffers.Builder, path flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(path), 0) -} -func DL_WriteAddType(builder *flatbuffers.Builder, type_ int32) { - builder.PrependInt32Slot(1, type_, 0) -} -func DL_WriteAddS(builder *flatbuffers.Builder, s flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(s), 0) -} -func DL_WriteAddI(builder *flatbuffers.Builder, i int64) { - builder.PrependInt64Slot(3, i, 0) -} -func DL_WriteAddB(builder *flatbuffers.Builder, b bool) { - builder.PrependBoolSlot(4, b, false) -} -func DL_WriteAddD(builder *flatbuffers.Builder, d float64) { - builder.PrependFloat64Slot(5, d, 0.0) -} -func DL_WriteEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DL_WriteT struct { + Path string + Type int32 + S string + I int64 + B bool + D float64 +} + +func (t *DL_WriteT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + pathOffset := builder.CreateString(t.Path) + sOffset := builder.CreateString(t.S) + DL_WriteStart(builder) + DL_WriteAddPath(builder, pathOffset) + DL_WriteAddType(builder, t.Type) + DL_WriteAddS(builder, sOffset) + DL_WriteAddI(builder, t.I) + DL_WriteAddB(builder, t.B) + DL_WriteAddD(builder, t.D) + return DL_WriteEnd(builder) +} + +func (rcv *DL_Write) UnPackTo(t *DL_WriteT) { + t.Path = string(rcv.Path()) + t.Type = rcv.Type() + t.S = string(rcv.S()) + t.I = rcv.I() + t.B = rcv.B() + t.D = rcv.D() +} + +func (rcv *DL_Write) UnPack() *DL_WriteT { + if rcv == nil { return nil } + t := &DL_WriteT{} + rcv.UnPackTo(t) + return t +} + +type DL_Write struct { + _tab flatbuffers.Table +} + +func GetRootAsDL_Write(buf []byte, offset flatbuffers.UOffsetT) *DL_Write { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DL_Write{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDL_Write(buf []byte, offset flatbuffers.UOffsetT) *DL_Write { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DL_Write{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DL_Write) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DL_Write) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DL_Write) Path() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DL_Write) Type() int32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetInt32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DL_Write) MutateType(n int32) bool { + return rcv._tab.MutateInt32Slot(6, n) +} + +func (rcv *DL_Write) S() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DL_Write) I() int64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetInt64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DL_Write) MutateI(n int64) bool { + return rcv._tab.MutateInt64Slot(10, n) +} + +func (rcv *DL_Write) B() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +func (rcv *DL_Write) MutateB(n bool) bool { + return rcv._tab.MutateBoolSlot(12, n) +} + +func (rcv *DL_Write) D() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *DL_Write) MutateD(n float64) bool { + return rcv._tab.MutateFloat64Slot(14, n) +} + +func DL_WriteStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func DL_WriteAddPath(builder *flatbuffers.Builder, path flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(path), 0) +} +func DL_WriteAddType(builder *flatbuffers.Builder, type_ int32) { + builder.PrependInt32Slot(1, type_, 0) +} +func DL_WriteAddS(builder *flatbuffers.Builder, s flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(s), 0) +} +func DL_WriteAddI(builder *flatbuffers.Builder, i int64) { + builder.PrependInt64Slot(3, i, 0) +} +func DL_WriteAddB(builder *flatbuffers.Builder, b bool) { + builder.PrependBoolSlot(4, b, false) +} +func DL_WriteAddD(builder *flatbuffers.Builder, d float64) { + builder.PrependFloat64Slot(5, d, 0.0) +} +func DL_WriteEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/DiagInfo.go b/pkg/fbs/script/manager/fbtypes/DiagInfo.go index 9c0ce49..9ac4a11 100644 --- a/pkg/fbs/script/manager/fbtypes/DiagInfo.go +++ b/pkg/fbs/script/manager/fbtypes/DiagInfo.go @@ -1,154 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type DiagInfoT struct { - LastMainDiag uint32 - LastDetailDiag uint32 - LastErrText string - LastErrTrace []string -} - -func (t *DiagInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - lastErrTextOffset := builder.CreateString(t.LastErrText) - lastErrTraceOffset := flatbuffers.UOffsetT(0) - if t.LastErrTrace != nil { - lastErrTraceLength := len(t.LastErrTrace) - lastErrTraceOffsets := make([]flatbuffers.UOffsetT, lastErrTraceLength) - for j := 0; j < lastErrTraceLength; j++ { - lastErrTraceOffsets[j] = builder.CreateString(t.LastErrTrace[j]) - } - DiagInfoStartLastErrTraceVector(builder, lastErrTraceLength) - for j := lastErrTraceLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(lastErrTraceOffsets[j]) - } - lastErrTraceOffset = builder.EndVector(lastErrTraceLength) - } - DiagInfoStart(builder) - DiagInfoAddLastMainDiag(builder, t.LastMainDiag) - DiagInfoAddLastDetailDiag(builder, t.LastDetailDiag) - DiagInfoAddLastErrText(builder, lastErrTextOffset) - DiagInfoAddLastErrTrace(builder, lastErrTraceOffset) - return DiagInfoEnd(builder) -} - -func (rcv *DiagInfo) UnPackTo(t *DiagInfoT) { - t.LastMainDiag = rcv.LastMainDiag() - t.LastDetailDiag = rcv.LastDetailDiag() - t.LastErrText = string(rcv.LastErrText()) - lastErrTraceLength := rcv.LastErrTraceLength() - t.LastErrTrace = make([]string, lastErrTraceLength) - for j := 0; j < lastErrTraceLength; j++ { - t.LastErrTrace[j] = string(rcv.LastErrTrace(j)) - } -} - -func (rcv *DiagInfo) UnPack() *DiagInfoT { - if rcv == nil { return nil } - t := &DiagInfoT{} - rcv.UnPackTo(t) - return t -} - -type DiagInfo struct { - _tab flatbuffers.Table -} - -func GetRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &DiagInfo{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &DiagInfo{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *DiagInfo) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *DiagInfo) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *DiagInfo) LastMainDiag() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DiagInfo) MutateLastMainDiag(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *DiagInfo) LastDetailDiag() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *DiagInfo) MutateLastDetailDiag(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *DiagInfo) LastErrText() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *DiagInfo) LastErrTrace(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *DiagInfo) LastErrTraceLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func DiagInfoStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func DiagInfoAddLastMainDiag(builder *flatbuffers.Builder, lastMainDiag uint32) { - builder.PrependUint32Slot(0, lastMainDiag, 0) -} -func DiagInfoAddLastDetailDiag(builder *flatbuffers.Builder, lastDetailDiag uint32) { - builder.PrependUint32Slot(1, lastDetailDiag, 0) -} -func DiagInfoAddLastErrText(builder *flatbuffers.Builder, lastErrText flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lastErrText), 0) -} -func DiagInfoAddLastErrTrace(builder *flatbuffers.Builder, lastErrTrace flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lastErrTrace), 0) -} -func DiagInfoStartLastErrTraceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func DiagInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type DiagInfoT struct { + LastMainDiag uint32 + LastDetailDiag uint32 + LastErrText string + LastErrTrace []string +} + +func (t *DiagInfoT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + lastErrTextOffset := builder.CreateString(t.LastErrText) + lastErrTraceOffset := flatbuffers.UOffsetT(0) + if t.LastErrTrace != nil { + lastErrTraceLength := len(t.LastErrTrace) + lastErrTraceOffsets := make([]flatbuffers.UOffsetT, lastErrTraceLength) + for j := 0; j < lastErrTraceLength; j++ { + lastErrTraceOffsets[j] = builder.CreateString(t.LastErrTrace[j]) + } + DiagInfoStartLastErrTraceVector(builder, lastErrTraceLength) + for j := lastErrTraceLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(lastErrTraceOffsets[j]) + } + lastErrTraceOffset = builder.EndVector(lastErrTraceLength) + } + DiagInfoStart(builder) + DiagInfoAddLastMainDiag(builder, t.LastMainDiag) + DiagInfoAddLastDetailDiag(builder, t.LastDetailDiag) + DiagInfoAddLastErrText(builder, lastErrTextOffset) + DiagInfoAddLastErrTrace(builder, lastErrTraceOffset) + return DiagInfoEnd(builder) +} + +func (rcv *DiagInfo) UnPackTo(t *DiagInfoT) { + t.LastMainDiag = rcv.LastMainDiag() + t.LastDetailDiag = rcv.LastDetailDiag() + t.LastErrText = string(rcv.LastErrText()) + lastErrTraceLength := rcv.LastErrTraceLength() + t.LastErrTrace = make([]string, lastErrTraceLength) + for j := 0; j < lastErrTraceLength; j++ { + t.LastErrTrace[j] = string(rcv.LastErrTrace(j)) + } +} + +func (rcv *DiagInfo) UnPack() *DiagInfoT { + if rcv == nil { return nil } + t := &DiagInfoT{} + rcv.UnPackTo(t) + return t +} + +type DiagInfo struct { + _tab flatbuffers.Table +} + +func GetRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &DiagInfo{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsDiagInfo(buf []byte, offset flatbuffers.UOffsetT) *DiagInfo { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &DiagInfo{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *DiagInfo) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *DiagInfo) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *DiagInfo) LastMainDiag() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DiagInfo) MutateLastMainDiag(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *DiagInfo) LastDetailDiag() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *DiagInfo) MutateLastDetailDiag(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *DiagInfo) LastErrText() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *DiagInfo) LastErrTrace(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *DiagInfo) LastErrTraceLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func DiagInfoStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func DiagInfoAddLastMainDiag(builder *flatbuffers.Builder, lastMainDiag uint32) { + builder.PrependUint32Slot(0, lastMainDiag, 0) +} +func DiagInfoAddLastDetailDiag(builder *flatbuffers.Builder, lastDetailDiag uint32) { + builder.PrependUint32Slot(1, lastDetailDiag, 0) +} +func DiagInfoAddLastErrText(builder *flatbuffers.Builder, lastErrText flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(lastErrText), 0) +} +func DiagInfoAddLastErrTrace(builder *flatbuffers.Builder, lastErrTrace flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(lastErrTrace), 0) +} +func DiagInfoStartLastErrTraceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func DiagInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/FeedGroup.go b/pkg/fbs/script/manager/fbtypes/FeedGroup.go index f2df996..6896520 100644 --- a/pkg/fbs/script/manager/fbtypes/FeedGroup.go +++ b/pkg/fbs/script/manager/fbtypes/FeedGroup.go @@ -1,40 +1,40 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -/// type of the feedGroup -type FeedGroup int8 - -const ( - /// feedGroup x,y,z coordinate without orientation and without auxiliary axes - FeedGroupFG_XYZ FeedGroup = 0 - /// feedGroup x,y,z coordinate with orientation and without auxiliary axes - FeedGroupFG_XYZ_O FeedGroup = 1 - /// feedGroup x,y,z coordinate without orientation and with auxiliary axes - FeedGroupFG_XYZ_A FeedGroup = 2 - /// feedGroup x,y,z coordinate with orientation and with auxiliary axes - FeedGroupFG_XYZ_O_A FeedGroup = 3 -) - -var EnumNamesFeedGroup = map[FeedGroup]string{ - FeedGroupFG_XYZ: "FG_XYZ", - FeedGroupFG_XYZ_O: "FG_XYZ_O", - FeedGroupFG_XYZ_A: "FG_XYZ_A", - FeedGroupFG_XYZ_O_A: "FG_XYZ_O_A", -} - -var EnumValuesFeedGroup = map[string]FeedGroup{ - "FG_XYZ": FeedGroupFG_XYZ, - "FG_XYZ_O": FeedGroupFG_XYZ_O, - "FG_XYZ_A": FeedGroupFG_XYZ_A, - "FG_XYZ_O_A": FeedGroupFG_XYZ_O_A, -} - -func (v FeedGroup) String() string { - if s, ok := EnumNamesFeedGroup[v]; ok { - return s - } - return "FeedGroup(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// type of the feedGroup +type FeedGroup int8 + +const ( + /// feedGroup x,y,z coordinate without orientation and without auxiliary axes + FeedGroupFG_XYZ FeedGroup = 0 + /// feedGroup x,y,z coordinate with orientation and without auxiliary axes + FeedGroupFG_XYZ_O FeedGroup = 1 + /// feedGroup x,y,z coordinate without orientation and with auxiliary axes + FeedGroupFG_XYZ_A FeedGroup = 2 + /// feedGroup x,y,z coordinate with orientation and with auxiliary axes + FeedGroupFG_XYZ_O_A FeedGroup = 3 +) + +var EnumNamesFeedGroup = map[FeedGroup]string{ + FeedGroupFG_XYZ: "FG_XYZ", + FeedGroupFG_XYZ_O: "FG_XYZ_O", + FeedGroupFG_XYZ_A: "FG_XYZ_A", + FeedGroupFG_XYZ_O_A: "FG_XYZ_O_A", +} + +var EnumValuesFeedGroup = map[string]FeedGroup{ + "FG_XYZ": FeedGroupFG_XYZ, + "FG_XYZ_O": FeedGroupFG_XYZ_O, + "FG_XYZ_A": FeedGroupFG_XYZ_A, + "FG_XYZ_O_A": FeedGroupFG_XYZ_O_A, +} + +func (v FeedGroup) String() string { + if s, ok := EnumNamesFeedGroup[v]; ok { + return s + } + return "FeedGroup(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/GlobalCfg.go b/pkg/fbs/script/manager/fbtypes/GlobalCfg.go index ad5bded..55234a8 100644 --- a/pkg/fbs/script/manager/fbtypes/GlobalCfg.go +++ b/pkg/fbs/script/manager/fbtypes/GlobalCfg.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type GlobalCfgT struct { - InitScript string - InitScriptParam []string -} - -func (t *GlobalCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - initScriptOffset := builder.CreateString(t.InitScript) - initScriptParamOffset := flatbuffers.UOffsetT(0) - if t.InitScriptParam != nil { - initScriptParamLength := len(t.InitScriptParam) - initScriptParamOffsets := make([]flatbuffers.UOffsetT, initScriptParamLength) - for j := 0; j < initScriptParamLength; j++ { - initScriptParamOffsets[j] = builder.CreateString(t.InitScriptParam[j]) - } - GlobalCfgStartInitScriptParamVector(builder, initScriptParamLength) - for j := initScriptParamLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(initScriptParamOffsets[j]) - } - initScriptParamOffset = builder.EndVector(initScriptParamLength) - } - GlobalCfgStart(builder) - GlobalCfgAddInitScript(builder, initScriptOffset) - GlobalCfgAddInitScriptParam(builder, initScriptParamOffset) - return GlobalCfgEnd(builder) -} - -func (rcv *GlobalCfg) UnPackTo(t *GlobalCfgT) { - t.InitScript = string(rcv.InitScript()) - initScriptParamLength := rcv.InitScriptParamLength() - t.InitScriptParam = make([]string, initScriptParamLength) - for j := 0; j < initScriptParamLength; j++ { - t.InitScriptParam[j] = string(rcv.InitScriptParam(j)) - } -} - -func (rcv *GlobalCfg) UnPack() *GlobalCfgT { - if rcv == nil { return nil } - t := &GlobalCfgT{} - rcv.UnPackTo(t) - return t -} - -type GlobalCfg struct { - _tab flatbuffers.Table -} - -func GetRootAsGlobalCfg(buf []byte, offset flatbuffers.UOffsetT) *GlobalCfg { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &GlobalCfg{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsGlobalCfg(buf []byte, offset flatbuffers.UOffsetT) *GlobalCfg { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &GlobalCfg{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *GlobalCfg) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *GlobalCfg) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *GlobalCfg) InitScript() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *GlobalCfg) InitScriptParam(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *GlobalCfg) InitScriptParamLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func GlobalCfgStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func GlobalCfgAddInitScript(builder *flatbuffers.Builder, initScript flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(initScript), 0) -} -func GlobalCfgAddInitScriptParam(builder *flatbuffers.Builder, initScriptParam flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(initScriptParam), 0) -} -func GlobalCfgStartInitScriptParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func GlobalCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type GlobalCfgT struct { + InitScript string + InitScriptParam []string +} + +func (t *GlobalCfgT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + initScriptOffset := builder.CreateString(t.InitScript) + initScriptParamOffset := flatbuffers.UOffsetT(0) + if t.InitScriptParam != nil { + initScriptParamLength := len(t.InitScriptParam) + initScriptParamOffsets := make([]flatbuffers.UOffsetT, initScriptParamLength) + for j := 0; j < initScriptParamLength; j++ { + initScriptParamOffsets[j] = builder.CreateString(t.InitScriptParam[j]) + } + GlobalCfgStartInitScriptParamVector(builder, initScriptParamLength) + for j := initScriptParamLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(initScriptParamOffsets[j]) + } + initScriptParamOffset = builder.EndVector(initScriptParamLength) + } + GlobalCfgStart(builder) + GlobalCfgAddInitScript(builder, initScriptOffset) + GlobalCfgAddInitScriptParam(builder, initScriptParamOffset) + return GlobalCfgEnd(builder) +} + +func (rcv *GlobalCfg) UnPackTo(t *GlobalCfgT) { + t.InitScript = string(rcv.InitScript()) + initScriptParamLength := rcv.InitScriptParamLength() + t.InitScriptParam = make([]string, initScriptParamLength) + for j := 0; j < initScriptParamLength; j++ { + t.InitScriptParam[j] = string(rcv.InitScriptParam(j)) + } +} + +func (rcv *GlobalCfg) UnPack() *GlobalCfgT { + if rcv == nil { return nil } + t := &GlobalCfgT{} + rcv.UnPackTo(t) + return t +} + +type GlobalCfg struct { + _tab flatbuffers.Table +} + +func GetRootAsGlobalCfg(buf []byte, offset flatbuffers.UOffsetT) *GlobalCfg { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &GlobalCfg{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsGlobalCfg(buf []byte, offset flatbuffers.UOffsetT) *GlobalCfg { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &GlobalCfg{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *GlobalCfg) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *GlobalCfg) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *GlobalCfg) InitScript() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *GlobalCfg) InitScriptParam(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *GlobalCfg) InitScriptParamLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func GlobalCfgStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func GlobalCfgAddInitScript(builder *flatbuffers.Builder, initScript flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(initScript), 0) +} +func GlobalCfgAddInitScriptParam(builder *flatbuffers.Builder, initScriptParam flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(initScriptParam), 0) +} +func GlobalCfgStartInitScriptParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func GlobalCfgEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Misc_ActCmdData.go b/pkg/fbs/script/manager/fbtypes/Misc_ActCmdData.go index 0befbd8..2250159 100644 --- a/pkg/fbs/script/manager/fbtypes/Misc_ActCmdData.go +++ b/pkg/fbs/script/manager/fbtypes/Misc_ActCmdData.go @@ -1,108 +1,108 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Misc_ActCmdDataT struct { - SrcName string - SrcType string - SrcLine uint64 -} - -func (t *Misc_ActCmdDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - srcNameOffset := builder.CreateString(t.SrcName) - srcTypeOffset := builder.CreateString(t.SrcType) - Misc_ActCmdDataStart(builder) - Misc_ActCmdDataAddSrcName(builder, srcNameOffset) - Misc_ActCmdDataAddSrcType(builder, srcTypeOffset) - Misc_ActCmdDataAddSrcLine(builder, t.SrcLine) - return Misc_ActCmdDataEnd(builder) -} - -func (rcv *Misc_ActCmdData) UnPackTo(t *Misc_ActCmdDataT) { - t.SrcName = string(rcv.SrcName()) - t.SrcType = string(rcv.SrcType()) - t.SrcLine = rcv.SrcLine() -} - -func (rcv *Misc_ActCmdData) UnPack() *Misc_ActCmdDataT { - if rcv == nil { return nil } - t := &Misc_ActCmdDataT{} - rcv.UnPackTo(t) - return t -} - -type Misc_ActCmdData struct { - _tab flatbuffers.Table -} - -func GetRootAsMisc_ActCmdData(buf []byte, offset flatbuffers.UOffsetT) *Misc_ActCmdData { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Misc_ActCmdData{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMisc_ActCmdData(buf []byte, offset flatbuffers.UOffsetT) *Misc_ActCmdData { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Misc_ActCmdData{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Misc_ActCmdData) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Misc_ActCmdData) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Misc_ActCmdData) SrcName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Misc_ActCmdData) SrcType() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Misc_ActCmdData) SrcLine() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Misc_ActCmdData) MutateSrcLine(n uint64) bool { - return rcv._tab.MutateUint64Slot(8, n) -} - -func Misc_ActCmdDataStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func Misc_ActCmdDataAddSrcName(builder *flatbuffers.Builder, srcName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(srcName), 0) -} -func Misc_ActCmdDataAddSrcType(builder *flatbuffers.Builder, srcType flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(srcType), 0) -} -func Misc_ActCmdDataAddSrcLine(builder *flatbuffers.Builder, srcLine uint64) { - builder.PrependUint64Slot(2, srcLine, 0) -} -func Misc_ActCmdDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Misc_ActCmdDataT struct { + SrcName string + SrcType string + SrcLine uint64 +} + +func (t *Misc_ActCmdDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + srcNameOffset := builder.CreateString(t.SrcName) + srcTypeOffset := builder.CreateString(t.SrcType) + Misc_ActCmdDataStart(builder) + Misc_ActCmdDataAddSrcName(builder, srcNameOffset) + Misc_ActCmdDataAddSrcType(builder, srcTypeOffset) + Misc_ActCmdDataAddSrcLine(builder, t.SrcLine) + return Misc_ActCmdDataEnd(builder) +} + +func (rcv *Misc_ActCmdData) UnPackTo(t *Misc_ActCmdDataT) { + t.SrcName = string(rcv.SrcName()) + t.SrcType = string(rcv.SrcType()) + t.SrcLine = rcv.SrcLine() +} + +func (rcv *Misc_ActCmdData) UnPack() *Misc_ActCmdDataT { + if rcv == nil { return nil } + t := &Misc_ActCmdDataT{} + rcv.UnPackTo(t) + return t +} + +type Misc_ActCmdData struct { + _tab flatbuffers.Table +} + +func GetRootAsMisc_ActCmdData(buf []byte, offset flatbuffers.UOffsetT) *Misc_ActCmdData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Misc_ActCmdData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMisc_ActCmdData(buf []byte, offset flatbuffers.UOffsetT) *Misc_ActCmdData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Misc_ActCmdData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Misc_ActCmdData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Misc_ActCmdData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Misc_ActCmdData) SrcName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Misc_ActCmdData) SrcType() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Misc_ActCmdData) SrcLine() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Misc_ActCmdData) MutateSrcLine(n uint64) bool { + return rcv._tab.MutateUint64Slot(8, n) +} + +func Misc_ActCmdDataStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func Misc_ActCmdDataAddSrcName(builder *flatbuffers.Builder, srcName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(srcName), 0) +} +func Misc_ActCmdDataAddSrcType(builder *flatbuffers.Builder, srcType flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(srcType), 0) +} +func Misc_ActCmdDataAddSrcLine(builder *flatbuffers.Builder, srcLine uint64) { + builder.PrependUint64Slot(2, srcLine, 0) +} +func Misc_ActCmdDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoReq.go b/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoReq.go index 45399e8..d001fa1 100644 --- a/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoReq.go +++ b/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoReq.go @@ -1,111 +1,111 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Misc_CmdOptionInfoReqT struct { - CmdName string - ObjType ObjectTypeCmdOptionInfoReq - CmdType CmdTypeCmdOptionInfoReq -} - -func (t *Misc_CmdOptionInfoReqT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - cmdNameOffset := builder.CreateString(t.CmdName) - Misc_CmdOptionInfoReqStart(builder) - Misc_CmdOptionInfoReqAddCmdName(builder, cmdNameOffset) - Misc_CmdOptionInfoReqAddObjType(builder, t.ObjType) - Misc_CmdOptionInfoReqAddCmdType(builder, t.CmdType) - return Misc_CmdOptionInfoReqEnd(builder) -} - -func (rcv *Misc_CmdOptionInfoReq) UnPackTo(t *Misc_CmdOptionInfoReqT) { - t.CmdName = string(rcv.CmdName()) - t.ObjType = rcv.ObjType() - t.CmdType = rcv.CmdType() -} - -func (rcv *Misc_CmdOptionInfoReq) UnPack() *Misc_CmdOptionInfoReqT { - if rcv == nil { return nil } - t := &Misc_CmdOptionInfoReqT{} - rcv.UnPackTo(t) - return t -} - -type Misc_CmdOptionInfoReq struct { - _tab flatbuffers.Table -} - -func GetRootAsMisc_CmdOptionInfoReq(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoReq { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Misc_CmdOptionInfoReq{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMisc_CmdOptionInfoReq(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoReq { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Misc_CmdOptionInfoReq{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Misc_CmdOptionInfoReq) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Misc_CmdOptionInfoReq) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Misc_CmdOptionInfoReq) CmdName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Misc_CmdOptionInfoReq) ObjType() ObjectTypeCmdOptionInfoReq { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return ObjectTypeCmdOptionInfoReq(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Misc_CmdOptionInfoReq) MutateObjType(n ObjectTypeCmdOptionInfoReq) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func (rcv *Misc_CmdOptionInfoReq) CmdType() CmdTypeCmdOptionInfoReq { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return CmdTypeCmdOptionInfoReq(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Misc_CmdOptionInfoReq) MutateCmdType(n CmdTypeCmdOptionInfoReq) bool { - return rcv._tab.MutateInt8Slot(8, int8(n)) -} - -func Misc_CmdOptionInfoReqStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func Misc_CmdOptionInfoReqAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdName), 0) -} -func Misc_CmdOptionInfoReqAddObjType(builder *flatbuffers.Builder, objType ObjectTypeCmdOptionInfoReq) { - builder.PrependInt8Slot(1, int8(objType), 0) -} -func Misc_CmdOptionInfoReqAddCmdType(builder *flatbuffers.Builder, cmdType CmdTypeCmdOptionInfoReq) { - builder.PrependInt8Slot(2, int8(cmdType), 0) -} -func Misc_CmdOptionInfoReqEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Misc_CmdOptionInfoReqT struct { + CmdName string + ObjType ObjectTypeCmdOptionInfoReq + CmdType CmdTypeCmdOptionInfoReq +} + +func (t *Misc_CmdOptionInfoReqT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + cmdNameOffset := builder.CreateString(t.CmdName) + Misc_CmdOptionInfoReqStart(builder) + Misc_CmdOptionInfoReqAddCmdName(builder, cmdNameOffset) + Misc_CmdOptionInfoReqAddObjType(builder, t.ObjType) + Misc_CmdOptionInfoReqAddCmdType(builder, t.CmdType) + return Misc_CmdOptionInfoReqEnd(builder) +} + +func (rcv *Misc_CmdOptionInfoReq) UnPackTo(t *Misc_CmdOptionInfoReqT) { + t.CmdName = string(rcv.CmdName()) + t.ObjType = rcv.ObjType() + t.CmdType = rcv.CmdType() +} + +func (rcv *Misc_CmdOptionInfoReq) UnPack() *Misc_CmdOptionInfoReqT { + if rcv == nil { return nil } + t := &Misc_CmdOptionInfoReqT{} + rcv.UnPackTo(t) + return t +} + +type Misc_CmdOptionInfoReq struct { + _tab flatbuffers.Table +} + +func GetRootAsMisc_CmdOptionInfoReq(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoReq { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Misc_CmdOptionInfoReq{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMisc_CmdOptionInfoReq(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoReq { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Misc_CmdOptionInfoReq{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Misc_CmdOptionInfoReq) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Misc_CmdOptionInfoReq) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Misc_CmdOptionInfoReq) CmdName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Misc_CmdOptionInfoReq) ObjType() ObjectTypeCmdOptionInfoReq { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return ObjectTypeCmdOptionInfoReq(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Misc_CmdOptionInfoReq) MutateObjType(n ObjectTypeCmdOptionInfoReq) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func (rcv *Misc_CmdOptionInfoReq) CmdType() CmdTypeCmdOptionInfoReq { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return CmdTypeCmdOptionInfoReq(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Misc_CmdOptionInfoReq) MutateCmdType(n CmdTypeCmdOptionInfoReq) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func Misc_CmdOptionInfoReqStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func Misc_CmdOptionInfoReqAddCmdName(builder *flatbuffers.Builder, cmdName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(cmdName), 0) +} +func Misc_CmdOptionInfoReqAddObjType(builder *flatbuffers.Builder, objType ObjectTypeCmdOptionInfoReq) { + builder.PrependInt8Slot(1, int8(objType), 0) +} +func Misc_CmdOptionInfoReqAddCmdType(builder *flatbuffers.Builder, cmdType CmdTypeCmdOptionInfoReq) { + builder.PrependInt8Slot(2, int8(cmdType), 0) +} +func Misc_CmdOptionInfoReqEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoResp.go b/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoResp.go index b1e18e4..d3146fe 100644 --- a/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoResp.go +++ b/pkg/fbs/script/manager/fbtypes/Misc_CmdOptionInfoResp.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Misc_CmdOptionInfoRespT struct { - Bfbs string - Description string -} - -func (t *Misc_CmdOptionInfoRespT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - bfbsOffset := builder.CreateString(t.Bfbs) - descriptionOffset := builder.CreateString(t.Description) - Misc_CmdOptionInfoRespStart(builder) - Misc_CmdOptionInfoRespAddBfbs(builder, bfbsOffset) - Misc_CmdOptionInfoRespAddDescription(builder, descriptionOffset) - return Misc_CmdOptionInfoRespEnd(builder) -} - -func (rcv *Misc_CmdOptionInfoResp) UnPackTo(t *Misc_CmdOptionInfoRespT) { - t.Bfbs = string(rcv.Bfbs()) - t.Description = string(rcv.Description()) -} - -func (rcv *Misc_CmdOptionInfoResp) UnPack() *Misc_CmdOptionInfoRespT { - if rcv == nil { return nil } - t := &Misc_CmdOptionInfoRespT{} - rcv.UnPackTo(t) - return t -} - -type Misc_CmdOptionInfoResp struct { - _tab flatbuffers.Table -} - -func GetRootAsMisc_CmdOptionInfoResp(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoResp { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Misc_CmdOptionInfoResp{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMisc_CmdOptionInfoResp(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoResp { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Misc_CmdOptionInfoResp{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Misc_CmdOptionInfoResp) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Misc_CmdOptionInfoResp) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Misc_CmdOptionInfoResp) Bfbs() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Misc_CmdOptionInfoResp) Description() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func Misc_CmdOptionInfoRespStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Misc_CmdOptionInfoRespAddBfbs(builder *flatbuffers.Builder, bfbs flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(bfbs), 0) -} -func Misc_CmdOptionInfoRespAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) -} -func Misc_CmdOptionInfoRespEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Misc_CmdOptionInfoRespT struct { + Bfbs string + Description string +} + +func (t *Misc_CmdOptionInfoRespT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + bfbsOffset := builder.CreateString(t.Bfbs) + descriptionOffset := builder.CreateString(t.Description) + Misc_CmdOptionInfoRespStart(builder) + Misc_CmdOptionInfoRespAddBfbs(builder, bfbsOffset) + Misc_CmdOptionInfoRespAddDescription(builder, descriptionOffset) + return Misc_CmdOptionInfoRespEnd(builder) +} + +func (rcv *Misc_CmdOptionInfoResp) UnPackTo(t *Misc_CmdOptionInfoRespT) { + t.Bfbs = string(rcv.Bfbs()) + t.Description = string(rcv.Description()) +} + +func (rcv *Misc_CmdOptionInfoResp) UnPack() *Misc_CmdOptionInfoRespT { + if rcv == nil { return nil } + t := &Misc_CmdOptionInfoRespT{} + rcv.UnPackTo(t) + return t +} + +type Misc_CmdOptionInfoResp struct { + _tab flatbuffers.Table +} + +func GetRootAsMisc_CmdOptionInfoResp(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoResp { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Misc_CmdOptionInfoResp{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMisc_CmdOptionInfoResp(buf []byte, offset flatbuffers.UOffsetT) *Misc_CmdOptionInfoResp { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Misc_CmdOptionInfoResp{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Misc_CmdOptionInfoResp) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Misc_CmdOptionInfoResp) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Misc_CmdOptionInfoResp) Bfbs() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Misc_CmdOptionInfoResp) Description() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func Misc_CmdOptionInfoRespStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Misc_CmdOptionInfoRespAddBfbs(builder *flatbuffers.Builder, bfbs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(bfbs), 0) +} +func Misc_CmdOptionInfoRespAddDescription(builder *flatbuffers.Builder, description flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(description), 0) +} +func Misc_CmdOptionInfoRespEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Misc_ListRegisteredCmdsOptions.go b/pkg/fbs/script/manager/fbtypes/Misc_ListRegisteredCmdsOptions.go index e564ed2..c928956 100644 --- a/pkg/fbs/script/manager/fbtypes/Misc_ListRegisteredCmdsOptions.go +++ b/pkg/fbs/script/manager/fbtypes/Misc_ListRegisteredCmdsOptions.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Misc_ListRegisteredCmdsOptionsT struct { - ObjType ObjectTypeListRegisteredCmdsOptions - CmdType CmdTypeListRegisteredCmdsOptions -} - -func (t *Misc_ListRegisteredCmdsOptionsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - Misc_ListRegisteredCmdsOptionsStart(builder) - Misc_ListRegisteredCmdsOptionsAddObjType(builder, t.ObjType) - Misc_ListRegisteredCmdsOptionsAddCmdType(builder, t.CmdType) - return Misc_ListRegisteredCmdsOptionsEnd(builder) -} - -func (rcv *Misc_ListRegisteredCmdsOptions) UnPackTo(t *Misc_ListRegisteredCmdsOptionsT) { - t.ObjType = rcv.ObjType() - t.CmdType = rcv.CmdType() -} - -func (rcv *Misc_ListRegisteredCmdsOptions) UnPack() *Misc_ListRegisteredCmdsOptionsT { - if rcv == nil { return nil } - t := &Misc_ListRegisteredCmdsOptionsT{} - rcv.UnPackTo(t) - return t -} - -type Misc_ListRegisteredCmdsOptions struct { - _tab flatbuffers.Table -} - -func GetRootAsMisc_ListRegisteredCmdsOptions(buf []byte, offset flatbuffers.UOffsetT) *Misc_ListRegisteredCmdsOptions { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Misc_ListRegisteredCmdsOptions{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMisc_ListRegisteredCmdsOptions(buf []byte, offset flatbuffers.UOffsetT) *Misc_ListRegisteredCmdsOptions { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Misc_ListRegisteredCmdsOptions{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Misc_ListRegisteredCmdsOptions) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Misc_ListRegisteredCmdsOptions) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Misc_ListRegisteredCmdsOptions) ObjType() ObjectTypeListRegisteredCmdsOptions { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return ObjectTypeListRegisteredCmdsOptions(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Misc_ListRegisteredCmdsOptions) MutateObjType(n ObjectTypeListRegisteredCmdsOptions) bool { - return rcv._tab.MutateInt8Slot(4, int8(n)) -} - -func (rcv *Misc_ListRegisteredCmdsOptions) CmdType() CmdTypeListRegisteredCmdsOptions { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return CmdTypeListRegisteredCmdsOptions(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *Misc_ListRegisteredCmdsOptions) MutateCmdType(n CmdTypeListRegisteredCmdsOptions) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func Misc_ListRegisteredCmdsOptionsStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Misc_ListRegisteredCmdsOptionsAddObjType(builder *flatbuffers.Builder, objType ObjectTypeListRegisteredCmdsOptions) { - builder.PrependInt8Slot(0, int8(objType), 0) -} -func Misc_ListRegisteredCmdsOptionsAddCmdType(builder *flatbuffers.Builder, cmdType CmdTypeListRegisteredCmdsOptions) { - builder.PrependInt8Slot(1, int8(cmdType), 0) -} -func Misc_ListRegisteredCmdsOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Misc_ListRegisteredCmdsOptionsT struct { + ObjType ObjectTypeListRegisteredCmdsOptions + CmdType CmdTypeListRegisteredCmdsOptions +} + +func (t *Misc_ListRegisteredCmdsOptionsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + Misc_ListRegisteredCmdsOptionsStart(builder) + Misc_ListRegisteredCmdsOptionsAddObjType(builder, t.ObjType) + Misc_ListRegisteredCmdsOptionsAddCmdType(builder, t.CmdType) + return Misc_ListRegisteredCmdsOptionsEnd(builder) +} + +func (rcv *Misc_ListRegisteredCmdsOptions) UnPackTo(t *Misc_ListRegisteredCmdsOptionsT) { + t.ObjType = rcv.ObjType() + t.CmdType = rcv.CmdType() +} + +func (rcv *Misc_ListRegisteredCmdsOptions) UnPack() *Misc_ListRegisteredCmdsOptionsT { + if rcv == nil { return nil } + t := &Misc_ListRegisteredCmdsOptionsT{} + rcv.UnPackTo(t) + return t +} + +type Misc_ListRegisteredCmdsOptions struct { + _tab flatbuffers.Table +} + +func GetRootAsMisc_ListRegisteredCmdsOptions(buf []byte, offset flatbuffers.UOffsetT) *Misc_ListRegisteredCmdsOptions { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Misc_ListRegisteredCmdsOptions{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMisc_ListRegisteredCmdsOptions(buf []byte, offset flatbuffers.UOffsetT) *Misc_ListRegisteredCmdsOptions { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Misc_ListRegisteredCmdsOptions{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Misc_ListRegisteredCmdsOptions) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Misc_ListRegisteredCmdsOptions) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Misc_ListRegisteredCmdsOptions) ObjType() ObjectTypeListRegisteredCmdsOptions { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return ObjectTypeListRegisteredCmdsOptions(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Misc_ListRegisteredCmdsOptions) MutateObjType(n ObjectTypeListRegisteredCmdsOptions) bool { + return rcv._tab.MutateInt8Slot(4, int8(n)) +} + +func (rcv *Misc_ListRegisteredCmdsOptions) CmdType() CmdTypeListRegisteredCmdsOptions { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return CmdTypeListRegisteredCmdsOptions(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *Misc_ListRegisteredCmdsOptions) MutateCmdType(n CmdTypeListRegisteredCmdsOptions) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func Misc_ListRegisteredCmdsOptionsStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Misc_ListRegisteredCmdsOptionsAddObjType(builder *flatbuffers.Builder, objType ObjectTypeListRegisteredCmdsOptions) { + builder.PrependInt8Slot(0, int8(objType), 0) +} +func Misc_ListRegisteredCmdsOptionsAddCmdType(builder *flatbuffers.Builder, cmdType CmdTypeListRegisteredCmdsOptions) { + builder.PrependInt8Slot(1, int8(cmdType), 0) +} +func Misc_ListRegisteredCmdsOptionsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Misc_SetErrLevel.go b/pkg/fbs/script/manager/fbtypes/Misc_SetErrLevel.go index 08995f7..9b27cf2 100644 --- a/pkg/fbs/script/manager/fbtypes/Misc_SetErrLevel.go +++ b/pkg/fbs/script/manager/fbtypes/Misc_SetErrLevel.go @@ -1,95 +1,95 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Misc_SetErrLevelT struct { - Base *Cmd_BaseT - ErrLvl string -} - -func (t *Misc_SetErrLevelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - errLvlOffset := builder.CreateString(t.ErrLvl) - Misc_SetErrLevelStart(builder) - Misc_SetErrLevelAddBase(builder, baseOffset) - Misc_SetErrLevelAddErrLvl(builder, errLvlOffset) - return Misc_SetErrLevelEnd(builder) -} - -func (rcv *Misc_SetErrLevel) UnPackTo(t *Misc_SetErrLevelT) { - t.Base = rcv.Base(nil).UnPack() - t.ErrLvl = string(rcv.ErrLvl()) -} - -func (rcv *Misc_SetErrLevel) UnPack() *Misc_SetErrLevelT { - if rcv == nil { return nil } - t := &Misc_SetErrLevelT{} - rcv.UnPackTo(t) - return t -} - -type Misc_SetErrLevel struct { - _tab flatbuffers.Table -} - -func GetRootAsMisc_SetErrLevel(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetErrLevel { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Misc_SetErrLevel{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMisc_SetErrLevel(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetErrLevel { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Misc_SetErrLevel{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Misc_SetErrLevel) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Misc_SetErrLevel) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Misc_SetErrLevel) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Misc_SetErrLevel) ErrLvl() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func Misc_SetErrLevelStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Misc_SetErrLevelAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Misc_SetErrLevelAddErrLvl(builder *flatbuffers.Builder, errLvl flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(errLvl), 0) -} -func Misc_SetErrLevelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Misc_SetErrLevelT struct { + Base *Cmd_BaseT + ErrLvl string +} + +func (t *Misc_SetErrLevelT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + errLvlOffset := builder.CreateString(t.ErrLvl) + Misc_SetErrLevelStart(builder) + Misc_SetErrLevelAddBase(builder, baseOffset) + Misc_SetErrLevelAddErrLvl(builder, errLvlOffset) + return Misc_SetErrLevelEnd(builder) +} + +func (rcv *Misc_SetErrLevel) UnPackTo(t *Misc_SetErrLevelT) { + t.Base = rcv.Base(nil).UnPack() + t.ErrLvl = string(rcv.ErrLvl()) +} + +func (rcv *Misc_SetErrLevel) UnPack() *Misc_SetErrLevelT { + if rcv == nil { return nil } + t := &Misc_SetErrLevelT{} + rcv.UnPackTo(t) + return t +} + +type Misc_SetErrLevel struct { + _tab flatbuffers.Table +} + +func GetRootAsMisc_SetErrLevel(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetErrLevel { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Misc_SetErrLevel{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMisc_SetErrLevel(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetErrLevel { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Misc_SetErrLevel{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Misc_SetErrLevel) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Misc_SetErrLevel) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Misc_SetErrLevel) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Misc_SetErrLevel) ErrLvl() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func Misc_SetErrLevelStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Misc_SetErrLevelAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Misc_SetErrLevelAddErrLvl(builder *flatbuffers.Builder, errLvl flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(errLvl), 0) +} +func Misc_SetErrLevelEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/Misc_SetOverride.go b/pkg/fbs/script/manager/fbtypes/Misc_SetOverride.go index 6d4da09..92b745e 100644 --- a/pkg/fbs/script/manager/fbtypes/Misc_SetOverride.go +++ b/pkg/fbs/script/manager/fbtypes/Misc_SetOverride.go @@ -1,98 +1,98 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Misc_SetOverrideT struct { - Base *Cmd_BaseT - Value float64 -} - -func (t *Misc_SetOverrideT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - baseOffset := t.Base.Pack(builder) - Misc_SetOverrideStart(builder) - Misc_SetOverrideAddBase(builder, baseOffset) - Misc_SetOverrideAddValue(builder, t.Value) - return Misc_SetOverrideEnd(builder) -} - -func (rcv *Misc_SetOverride) UnPackTo(t *Misc_SetOverrideT) { - t.Base = rcv.Base(nil).UnPack() - t.Value = rcv.Value() -} - -func (rcv *Misc_SetOverride) UnPack() *Misc_SetOverrideT { - if rcv == nil { return nil } - t := &Misc_SetOverrideT{} - rcv.UnPackTo(t) - return t -} - -type Misc_SetOverride struct { - _tab flatbuffers.Table -} - -func GetRootAsMisc_SetOverride(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetOverride { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Misc_SetOverride{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsMisc_SetOverride(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetOverride { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Misc_SetOverride{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Misc_SetOverride) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Misc_SetOverride) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Misc_SetOverride) Base(obj *Cmd_Base) *Cmd_Base { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(Cmd_Base) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Misc_SetOverride) Value() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *Misc_SetOverride) MutateValue(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func Misc_SetOverrideStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Misc_SetOverrideAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) -} -func Misc_SetOverrideAddValue(builder *flatbuffers.Builder, value float64) { - builder.PrependFloat64Slot(1, value, 0.0) -} -func Misc_SetOverrideEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Misc_SetOverrideT struct { + Base *Cmd_BaseT + Value float64 +} + +func (t *Misc_SetOverrideT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + Misc_SetOverrideStart(builder) + Misc_SetOverrideAddBase(builder, baseOffset) + Misc_SetOverrideAddValue(builder, t.Value) + return Misc_SetOverrideEnd(builder) +} + +func (rcv *Misc_SetOverride) UnPackTo(t *Misc_SetOverrideT) { + t.Base = rcv.Base(nil).UnPack() + t.Value = rcv.Value() +} + +func (rcv *Misc_SetOverride) UnPack() *Misc_SetOverrideT { + if rcv == nil { return nil } + t := &Misc_SetOverrideT{} + rcv.UnPackTo(t) + return t +} + +type Misc_SetOverride struct { + _tab flatbuffers.Table +} + +func GetRootAsMisc_SetOverride(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetOverride { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Misc_SetOverride{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsMisc_SetOverride(buf []byte, offset flatbuffers.UOffsetT) *Misc_SetOverride { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Misc_SetOverride{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Misc_SetOverride) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Misc_SetOverride) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Misc_SetOverride) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Misc_SetOverride) Value() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *Misc_SetOverride) MutateValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func Misc_SetOverrideStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Misc_SetOverrideAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func Misc_SetOverrideAddValue(builder *flatbuffers.Builder, value float64) { + builder.PrependFloat64Slot(1, value, 0.0) +} +func Misc_SetOverrideEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/ObjectType_CmdOptionInfoReq.go b/pkg/fbs/script/manager/fbtypes/ObjectType_CmdOptionInfoReq.go index eead80c..808f9e5 100644 --- a/pkg/fbs/script/manager/fbtypes/ObjectType_CmdOptionInfoReq.go +++ b/pkg/fbs/script/manager/fbtypes/ObjectType_CmdOptionInfoReq.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type ObjectTypeCmdOptionInfoReq int8 - -const ( - ObjectType_CmdOptionInfoReqUNKNOWN ObjectTypeCmdOptionInfoReq = 0 - ObjectType_CmdOptionInfoReqAXS ObjectTypeCmdOptionInfoReq = 1 - ObjectType_CmdOptionInfoReqKIN ObjectTypeCmdOptionInfoReq = 2 -) - -var EnumNamesObjectType_CmdOptionInfoReq = map[ObjectTypeCmdOptionInfoReq]string{ - ObjectType_CmdOptionInfoReqUNKNOWN: "UNKNOWN", - ObjectType_CmdOptionInfoReqAXS: "AXS", - ObjectType_CmdOptionInfoReqKIN: "KIN", -} - -var EnumValuesObjectType_CmdOptionInfoReq = map[string]ObjectTypeCmdOptionInfoReq{ - "UNKNOWN": ObjectType_CmdOptionInfoReqUNKNOWN, - "AXS": ObjectType_CmdOptionInfoReqAXS, - "KIN": ObjectType_CmdOptionInfoReqKIN, -} - -func (v ObjectTypeCmdOptionInfoReq) String() string { - if s, ok := EnumNamesObjectType_CmdOptionInfoReq[v]; ok { - return s - } - return "ObjectTypeCmdOptionInfoReq(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type ObjectTypeCmdOptionInfoReq int8 + +const ( + ObjectType_CmdOptionInfoReqUNKNOWN ObjectTypeCmdOptionInfoReq = 0 + ObjectType_CmdOptionInfoReqAXS ObjectTypeCmdOptionInfoReq = 1 + ObjectType_CmdOptionInfoReqKIN ObjectTypeCmdOptionInfoReq = 2 +) + +var EnumNamesObjectType_CmdOptionInfoReq = map[ObjectTypeCmdOptionInfoReq]string{ + ObjectType_CmdOptionInfoReqUNKNOWN: "UNKNOWN", + ObjectType_CmdOptionInfoReqAXS: "AXS", + ObjectType_CmdOptionInfoReqKIN: "KIN", +} + +var EnumValuesObjectType_CmdOptionInfoReq = map[string]ObjectTypeCmdOptionInfoReq{ + "UNKNOWN": ObjectType_CmdOptionInfoReqUNKNOWN, + "AXS": ObjectType_CmdOptionInfoReqAXS, + "KIN": ObjectType_CmdOptionInfoReqKIN, +} + +func (v ObjectTypeCmdOptionInfoReq) String() string { + if s, ok := EnumNamesObjectType_CmdOptionInfoReq[v]; ok { + return s + } + return "ObjectType_CmdOptionInfoReq(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/ObjectType_GenCmdOption.go b/pkg/fbs/script/manager/fbtypes/ObjectType_GenCmdOption.go index 0e00463..d3c16ef 100644 --- a/pkg/fbs/script/manager/fbtypes/ObjectType_GenCmdOption.go +++ b/pkg/fbs/script/manager/fbtypes/ObjectType_GenCmdOption.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type ObjectTypeGenCmdOption int8 - -const ( - ObjectType_GenCmdOptionUNKNOWN ObjectTypeGenCmdOption = 0 - ObjectType_GenCmdOptionAXS ObjectTypeGenCmdOption = 1 - ObjectType_GenCmdOptionKIN ObjectTypeGenCmdOption = 2 -) - -var EnumNamesObjectType_GenCmdOption = map[ObjectTypeGenCmdOption]string{ - ObjectType_GenCmdOptionUNKNOWN: "UNKNOWN", - ObjectType_GenCmdOptionAXS: "AXS", - ObjectType_GenCmdOptionKIN: "KIN", -} - -var EnumValuesObjectType_GenCmdOption = map[string]ObjectTypeGenCmdOption{ - "UNKNOWN": ObjectType_GenCmdOptionUNKNOWN, - "AXS": ObjectType_GenCmdOptionAXS, - "KIN": ObjectType_GenCmdOptionKIN, -} - -func (v ObjectTypeGenCmdOption) String() string { - if s, ok := EnumNamesObjectType_GenCmdOption[v]; ok { - return s - } - return "ObjectTypeGenCmdOption(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type ObjectTypeGenCmdOption int8 + +const ( + ObjectType_GenCmdOptionUNKNOWN ObjectTypeGenCmdOption = 0 + ObjectType_GenCmdOptionAXS ObjectTypeGenCmdOption = 1 + ObjectType_GenCmdOptionKIN ObjectTypeGenCmdOption = 2 +) + +var EnumNamesObjectType_GenCmdOption = map[ObjectTypeGenCmdOption]string{ + ObjectType_GenCmdOptionUNKNOWN: "UNKNOWN", + ObjectType_GenCmdOptionAXS: "AXS", + ObjectType_GenCmdOptionKIN: "KIN", +} + +var EnumValuesObjectType_GenCmdOption = map[string]ObjectTypeGenCmdOption{ + "UNKNOWN": ObjectType_GenCmdOptionUNKNOWN, + "AXS": ObjectType_GenCmdOptionAXS, + "KIN": ObjectType_GenCmdOptionKIN, +} + +func (v ObjectTypeGenCmdOption) String() string { + if s, ok := EnumNamesObjectType_GenCmdOption[v]; ok { + return s + } + return "ObjectType_GenCmdOption(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/ObjectType_ListRegisteredCmdsOptions.go b/pkg/fbs/script/manager/fbtypes/ObjectType_ListRegisteredCmdsOptions.go index 64bc68f..b1c6354 100644 --- a/pkg/fbs/script/manager/fbtypes/ObjectType_ListRegisteredCmdsOptions.go +++ b/pkg/fbs/script/manager/fbtypes/ObjectType_ListRegisteredCmdsOptions.go @@ -1,32 +1,32 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import "strconv" - -type ObjectTypeListRegisteredCmdsOptions int8 - -const ( - ObjectType_ListRegisteredCmdsOptionsUNKNOWN ObjectTypeListRegisteredCmdsOptions = 0 - ObjectType_ListRegisteredCmdsOptionsAXS ObjectTypeListRegisteredCmdsOptions = 1 - ObjectType_ListRegisteredCmdsOptionsKIN ObjectTypeListRegisteredCmdsOptions = 2 -) - -var EnumNamesObjectType_ListRegisteredCmdsOptions = map[ObjectTypeListRegisteredCmdsOptions]string{ - ObjectType_ListRegisteredCmdsOptionsUNKNOWN: "UNKNOWN", - ObjectType_ListRegisteredCmdsOptionsAXS: "AXS", - ObjectType_ListRegisteredCmdsOptionsKIN: "KIN", -} - -var EnumValuesObjectType_ListRegisteredCmdsOptions = map[string]ObjectTypeListRegisteredCmdsOptions{ - "UNKNOWN": ObjectType_ListRegisteredCmdsOptionsUNKNOWN, - "AXS": ObjectType_ListRegisteredCmdsOptionsAXS, - "KIN": ObjectType_ListRegisteredCmdsOptionsKIN, -} - -func (v ObjectTypeListRegisteredCmdsOptions) String() string { - if s, ok := EnumNamesObjectType_ListRegisteredCmdsOptions[v]; ok { - return s - } - return "ObjectTypeListRegisteredCmdsOptions(" + strconv.FormatInt(int64(v), 10) + ")" -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +type ObjectTypeListRegisteredCmdsOptions int8 + +const ( + ObjectType_ListRegisteredCmdsOptionsUNKNOWN ObjectTypeListRegisteredCmdsOptions = 0 + ObjectType_ListRegisteredCmdsOptionsAXS ObjectTypeListRegisteredCmdsOptions = 1 + ObjectType_ListRegisteredCmdsOptionsKIN ObjectTypeListRegisteredCmdsOptions = 2 +) + +var EnumNamesObjectType_ListRegisteredCmdsOptions = map[ObjectTypeListRegisteredCmdsOptions]string{ + ObjectType_ListRegisteredCmdsOptionsUNKNOWN: "UNKNOWN", + ObjectType_ListRegisteredCmdsOptionsAXS: "AXS", + ObjectType_ListRegisteredCmdsOptionsKIN: "KIN", +} + +var EnumValuesObjectType_ListRegisteredCmdsOptions = map[string]ObjectTypeListRegisteredCmdsOptions{ + "UNKNOWN": ObjectType_ListRegisteredCmdsOptionsUNKNOWN, + "AXS": ObjectType_ListRegisteredCmdsOptionsAXS, + "KIN": ObjectType_ListRegisteredCmdsOptionsKIN, +} + +func (v ObjectTypeListRegisteredCmdsOptions) String() string { + if s, ok := EnumNamesObjectType_ListRegisteredCmdsOptions[v]; ok { + return s + } + return "ObjectType_ListRegisteredCmdsOptions(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/Resp_Error.go b/pkg/fbs/script/manager/fbtypes/Resp_Error.go index 5372bcc..0bbe59d 100644 --- a/pkg/fbs/script/manager/fbtypes/Resp_Error.go +++ b/pkg/fbs/script/manager/fbtypes/Resp_Error.go @@ -1,154 +1,154 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Resp_ErrorT struct { - MainCode uint32 - DetailCode uint32 - Text string - Trace []string -} - -func (t *Resp_ErrorT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - textOffset := builder.CreateString(t.Text) - traceOffset := flatbuffers.UOffsetT(0) - if t.Trace != nil { - traceLength := len(t.Trace) - traceOffsets := make([]flatbuffers.UOffsetT, traceLength) - for j := 0; j < traceLength; j++ { - traceOffsets[j] = builder.CreateString(t.Trace[j]) - } - Resp_ErrorStartTraceVector(builder, traceLength) - for j := traceLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(traceOffsets[j]) - } - traceOffset = builder.EndVector(traceLength) - } - Resp_ErrorStart(builder) - Resp_ErrorAddMainCode(builder, t.MainCode) - Resp_ErrorAddDetailCode(builder, t.DetailCode) - Resp_ErrorAddText(builder, textOffset) - Resp_ErrorAddTrace(builder, traceOffset) - return Resp_ErrorEnd(builder) -} - -func (rcv *Resp_Error) UnPackTo(t *Resp_ErrorT) { - t.MainCode = rcv.MainCode() - t.DetailCode = rcv.DetailCode() - t.Text = string(rcv.Text()) - traceLength := rcv.TraceLength() - t.Trace = make([]string, traceLength) - for j := 0; j < traceLength; j++ { - t.Trace[j] = string(rcv.Trace(j)) - } -} - -func (rcv *Resp_Error) UnPack() *Resp_ErrorT { - if rcv == nil { return nil } - t := &Resp_ErrorT{} - rcv.UnPackTo(t) - return t -} - -type Resp_Error struct { - _tab flatbuffers.Table -} - -func GetRootAsResp_Error(buf []byte, offset flatbuffers.UOffsetT) *Resp_Error { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Resp_Error{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsResp_Error(buf []byte, offset flatbuffers.UOffsetT) *Resp_Error { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Resp_Error{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Resp_Error) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Resp_Error) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Resp_Error) MainCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Resp_Error) MutateMainCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *Resp_Error) DetailCode() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Resp_Error) MutateDetailCode(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *Resp_Error) Text() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Resp_Error) Trace(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Resp_Error) TraceLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func Resp_ErrorStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func Resp_ErrorAddMainCode(builder *flatbuffers.Builder, mainCode uint32) { - builder.PrependUint32Slot(0, mainCode, 0) -} -func Resp_ErrorAddDetailCode(builder *flatbuffers.Builder, detailCode uint32) { - builder.PrependUint32Slot(1, detailCode, 0) -} -func Resp_ErrorAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(text), 0) -} -func Resp_ErrorAddTrace(builder *flatbuffers.Builder, trace flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(trace), 0) -} -func Resp_ErrorStartTraceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func Resp_ErrorEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Resp_ErrorT struct { + MainCode uint32 + DetailCode uint32 + Text string + Trace []string +} + +func (t *Resp_ErrorT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + textOffset := builder.CreateString(t.Text) + traceOffset := flatbuffers.UOffsetT(0) + if t.Trace != nil { + traceLength := len(t.Trace) + traceOffsets := make([]flatbuffers.UOffsetT, traceLength) + for j := 0; j < traceLength; j++ { + traceOffsets[j] = builder.CreateString(t.Trace[j]) + } + Resp_ErrorStartTraceVector(builder, traceLength) + for j := traceLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(traceOffsets[j]) + } + traceOffset = builder.EndVector(traceLength) + } + Resp_ErrorStart(builder) + Resp_ErrorAddMainCode(builder, t.MainCode) + Resp_ErrorAddDetailCode(builder, t.DetailCode) + Resp_ErrorAddText(builder, textOffset) + Resp_ErrorAddTrace(builder, traceOffset) + return Resp_ErrorEnd(builder) +} + +func (rcv *Resp_Error) UnPackTo(t *Resp_ErrorT) { + t.MainCode = rcv.MainCode() + t.DetailCode = rcv.DetailCode() + t.Text = string(rcv.Text()) + traceLength := rcv.TraceLength() + t.Trace = make([]string, traceLength) + for j := 0; j < traceLength; j++ { + t.Trace[j] = string(rcv.Trace(j)) + } +} + +func (rcv *Resp_Error) UnPack() *Resp_ErrorT { + if rcv == nil { return nil } + t := &Resp_ErrorT{} + rcv.UnPackTo(t) + return t +} + +type Resp_Error struct { + _tab flatbuffers.Table +} + +func GetRootAsResp_Error(buf []byte, offset flatbuffers.UOffsetT) *Resp_Error { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Resp_Error{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsResp_Error(buf []byte, offset flatbuffers.UOffsetT) *Resp_Error { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Resp_Error{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Resp_Error) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Resp_Error) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Resp_Error) MainCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Resp_Error) MutateMainCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *Resp_Error) DetailCode() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Resp_Error) MutateDetailCode(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *Resp_Error) Text() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Resp_Error) Trace(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Resp_Error) TraceLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func Resp_ErrorStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func Resp_ErrorAddMainCode(builder *flatbuffers.Builder, mainCode uint32) { + builder.PrependUint32Slot(0, mainCode, 0) +} +func Resp_ErrorAddDetailCode(builder *flatbuffers.Builder, detailCode uint32) { + builder.PrependUint32Slot(1, detailCode, 0) +} +func Resp_ErrorAddText(builder *flatbuffers.Builder, text flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(text), 0) +} +func Resp_ErrorAddTrace(builder *flatbuffers.Builder, trace flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(trace), 0) +} +func Resp_ErrorStartTraceVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func Resp_ErrorEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/ScriptDescription.go b/pkg/fbs/script/manager/fbtypes/ScriptDescription.go index c61c4ec..e81c463 100644 --- a/pkg/fbs/script/manager/fbtypes/ScriptDescription.go +++ b/pkg/fbs/script/manager/fbtypes/ScriptDescription.go @@ -1,178 +1,178 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type ScriptDescriptionT struct { - Language string - Version string - Executable string - FileEnding []string - License string - LicenseVersion string -} - -func (t *ScriptDescriptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - languageOffset := builder.CreateString(t.Language) - versionOffset := builder.CreateString(t.Version) - executableOffset := builder.CreateString(t.Executable) - fileEndingOffset := flatbuffers.UOffsetT(0) - if t.FileEnding != nil { - fileEndingLength := len(t.FileEnding) - fileEndingOffsets := make([]flatbuffers.UOffsetT, fileEndingLength) - for j := 0; j < fileEndingLength; j++ { - fileEndingOffsets[j] = builder.CreateString(t.FileEnding[j]) - } - ScriptDescriptionStartFileEndingVector(builder, fileEndingLength) - for j := fileEndingLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(fileEndingOffsets[j]) - } - fileEndingOffset = builder.EndVector(fileEndingLength) - } - licenseOffset := builder.CreateString(t.License) - licenseVersionOffset := builder.CreateString(t.LicenseVersion) - ScriptDescriptionStart(builder) - ScriptDescriptionAddLanguage(builder, languageOffset) - ScriptDescriptionAddVersion(builder, versionOffset) - ScriptDescriptionAddExecutable(builder, executableOffset) - ScriptDescriptionAddFileEnding(builder, fileEndingOffset) - ScriptDescriptionAddLicense(builder, licenseOffset) - ScriptDescriptionAddLicenseVersion(builder, licenseVersionOffset) - return ScriptDescriptionEnd(builder) -} - -func (rcv *ScriptDescription) UnPackTo(t *ScriptDescriptionT) { - t.Language = string(rcv.Language()) - t.Version = string(rcv.Version()) - t.Executable = string(rcv.Executable()) - fileEndingLength := rcv.FileEndingLength() - t.FileEnding = make([]string, fileEndingLength) - for j := 0; j < fileEndingLength; j++ { - t.FileEnding[j] = string(rcv.FileEnding(j)) - } - t.License = string(rcv.License()) - t.LicenseVersion = string(rcv.LicenseVersion()) -} - -func (rcv *ScriptDescription) UnPack() *ScriptDescriptionT { - if rcv == nil { return nil } - t := &ScriptDescriptionT{} - rcv.UnPackTo(t) - return t -} - -type ScriptDescription struct { - _tab flatbuffers.Table -} - -func GetRootAsScriptDescription(buf []byte, offset flatbuffers.UOffsetT) *ScriptDescription { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &ScriptDescription{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsScriptDescription(buf []byte, offset flatbuffers.UOffsetT) *ScriptDescription { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &ScriptDescription{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *ScriptDescription) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *ScriptDescription) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *ScriptDescription) Language() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ScriptDescription) Version() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ScriptDescription) Executable() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ScriptDescription) FileEnding(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *ScriptDescription) FileEndingLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *ScriptDescription) License() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *ScriptDescription) LicenseVersion() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func ScriptDescriptionStart(builder *flatbuffers.Builder) { - builder.StartObject(6) -} -func ScriptDescriptionAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(language), 0) -} -func ScriptDescriptionAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) -} -func ScriptDescriptionAddExecutable(builder *flatbuffers.Builder, executable flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(executable), 0) -} -func ScriptDescriptionAddFileEnding(builder *flatbuffers.Builder, fileEnding flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(fileEnding), 0) -} -func ScriptDescriptionStartFileEndingVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func ScriptDescriptionAddLicense(builder *flatbuffers.Builder, license flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(license), 0) -} -func ScriptDescriptionAddLicenseVersion(builder *flatbuffers.Builder, licenseVersion flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(licenseVersion), 0) -} -func ScriptDescriptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type ScriptDescriptionT struct { + Language string + Version string + Executable string + FileEnding []string + License string + LicenseVersion string +} + +func (t *ScriptDescriptionT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + languageOffset := builder.CreateString(t.Language) + versionOffset := builder.CreateString(t.Version) + executableOffset := builder.CreateString(t.Executable) + fileEndingOffset := flatbuffers.UOffsetT(0) + if t.FileEnding != nil { + fileEndingLength := len(t.FileEnding) + fileEndingOffsets := make([]flatbuffers.UOffsetT, fileEndingLength) + for j := 0; j < fileEndingLength; j++ { + fileEndingOffsets[j] = builder.CreateString(t.FileEnding[j]) + } + ScriptDescriptionStartFileEndingVector(builder, fileEndingLength) + for j := fileEndingLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(fileEndingOffsets[j]) + } + fileEndingOffset = builder.EndVector(fileEndingLength) + } + licenseOffset := builder.CreateString(t.License) + licenseVersionOffset := builder.CreateString(t.LicenseVersion) + ScriptDescriptionStart(builder) + ScriptDescriptionAddLanguage(builder, languageOffset) + ScriptDescriptionAddVersion(builder, versionOffset) + ScriptDescriptionAddExecutable(builder, executableOffset) + ScriptDescriptionAddFileEnding(builder, fileEndingOffset) + ScriptDescriptionAddLicense(builder, licenseOffset) + ScriptDescriptionAddLicenseVersion(builder, licenseVersionOffset) + return ScriptDescriptionEnd(builder) +} + +func (rcv *ScriptDescription) UnPackTo(t *ScriptDescriptionT) { + t.Language = string(rcv.Language()) + t.Version = string(rcv.Version()) + t.Executable = string(rcv.Executable()) + fileEndingLength := rcv.FileEndingLength() + t.FileEnding = make([]string, fileEndingLength) + for j := 0; j < fileEndingLength; j++ { + t.FileEnding[j] = string(rcv.FileEnding(j)) + } + t.License = string(rcv.License()) + t.LicenseVersion = string(rcv.LicenseVersion()) +} + +func (rcv *ScriptDescription) UnPack() *ScriptDescriptionT { + if rcv == nil { return nil } + t := &ScriptDescriptionT{} + rcv.UnPackTo(t) + return t +} + +type ScriptDescription struct { + _tab flatbuffers.Table +} + +func GetRootAsScriptDescription(buf []byte, offset flatbuffers.UOffsetT) *ScriptDescription { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &ScriptDescription{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsScriptDescription(buf []byte, offset flatbuffers.UOffsetT) *ScriptDescription { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &ScriptDescription{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *ScriptDescription) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *ScriptDescription) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *ScriptDescription) Language() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ScriptDescription) Version() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ScriptDescription) Executable() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ScriptDescription) FileEnding(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *ScriptDescription) FileEndingLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *ScriptDescription) License() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *ScriptDescription) LicenseVersion() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func ScriptDescriptionStart(builder *flatbuffers.Builder) { + builder.StartObject(6) +} +func ScriptDescriptionAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(language), 0) +} +func ScriptDescriptionAddVersion(builder *flatbuffers.Builder, version flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(version), 0) +} +func ScriptDescriptionAddExecutable(builder *flatbuffers.Builder, executable flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(executable), 0) +} +func ScriptDescriptionAddFileEnding(builder *flatbuffers.Builder, fileEnding flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(fileEnding), 0) +} +func ScriptDescriptionStartFileEndingVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func ScriptDescriptionAddLicense(builder *flatbuffers.Builder, license flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(license), 0) +} +func ScriptDescriptionAddLicenseVersion(builder *flatbuffers.Builder, licenseVersion flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(5, flatbuffers.UOffsetT(licenseVersion), 0) +} +func ScriptDescriptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_AxsActValues.go b/pkg/fbs/script/manager/fbtypes/State_AxsActValues.go index 9b4eeb6..a37905e 100644 --- a/pkg/fbs/script/manager/fbtypes/State_AxsActValues.go +++ b/pkg/fbs/script/manager/fbtypes/State_AxsActValues.go @@ -1,150 +1,150 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_AxsActValuesT struct { - Pos float64 - DistLeft float64 - Vel float64 - Acc float64 - Torque float64 -} - -func (t *State_AxsActValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - State_AxsActValuesStart(builder) - State_AxsActValuesAddPos(builder, t.Pos) - State_AxsActValuesAddDistLeft(builder, t.DistLeft) - State_AxsActValuesAddVel(builder, t.Vel) - State_AxsActValuesAddAcc(builder, t.Acc) - State_AxsActValuesAddTorque(builder, t.Torque) - return State_AxsActValuesEnd(builder) -} - -func (rcv *State_AxsActValues) UnPackTo(t *State_AxsActValuesT) { - t.Pos = rcv.Pos() - t.DistLeft = rcv.DistLeft() - t.Vel = rcv.Vel() - t.Acc = rcv.Acc() - t.Torque = rcv.Torque() -} - -func (rcv *State_AxsActValues) UnPack() *State_AxsActValuesT { - if rcv == nil { return nil } - t := &State_AxsActValuesT{} - rcv.UnPackTo(t) - return t -} - -type State_AxsActValues struct { - _tab flatbuffers.Table -} - -func GetRootAsState_AxsActValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsActValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_AxsActValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_AxsActValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsActValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_AxsActValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_AxsActValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_AxsActValues) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_AxsActValues) Pos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsActValues) MutatePos(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func (rcv *State_AxsActValues) DistLeft() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsActValues) MutateDistLeft(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *State_AxsActValues) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsActValues) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *State_AxsActValues) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsActValues) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func (rcv *State_AxsActValues) Torque() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsActValues) MutateTorque(n float64) bool { - return rcv._tab.MutateFloat64Slot(12, n) -} - -func State_AxsActValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func State_AxsActValuesAddPos(builder *flatbuffers.Builder, pos float64) { - builder.PrependFloat64Slot(0, pos, 0.0) -} -func State_AxsActValuesAddDistLeft(builder *flatbuffers.Builder, distLeft float64) { - builder.PrependFloat64Slot(1, distLeft, 0.0) -} -func State_AxsActValuesAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(2, vel, 0.0) -} -func State_AxsActValuesAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(3, acc, 0.0) -} -func State_AxsActValuesAddTorque(builder *flatbuffers.Builder, torque float64) { - builder.PrependFloat64Slot(4, torque, 0.0) -} -func State_AxsActValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_AxsActValuesT struct { + Pos float64 + DistLeft float64 + Vel float64 + Acc float64 + Torque float64 +} + +func (t *State_AxsActValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + State_AxsActValuesStart(builder) + State_AxsActValuesAddPos(builder, t.Pos) + State_AxsActValuesAddDistLeft(builder, t.DistLeft) + State_AxsActValuesAddVel(builder, t.Vel) + State_AxsActValuesAddAcc(builder, t.Acc) + State_AxsActValuesAddTorque(builder, t.Torque) + return State_AxsActValuesEnd(builder) +} + +func (rcv *State_AxsActValues) UnPackTo(t *State_AxsActValuesT) { + t.Pos = rcv.Pos() + t.DistLeft = rcv.DistLeft() + t.Vel = rcv.Vel() + t.Acc = rcv.Acc() + t.Torque = rcv.Torque() +} + +func (rcv *State_AxsActValues) UnPack() *State_AxsActValuesT { + if rcv == nil { return nil } + t := &State_AxsActValuesT{} + rcv.UnPackTo(t) + return t +} + +type State_AxsActValues struct { + _tab flatbuffers.Table +} + +func GetRootAsState_AxsActValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsActValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_AxsActValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_AxsActValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsActValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_AxsActValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_AxsActValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_AxsActValues) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_AxsActValues) Pos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsActValues) MutatePos(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func (rcv *State_AxsActValues) DistLeft() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsActValues) MutateDistLeft(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *State_AxsActValues) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsActValues) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *State_AxsActValues) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsActValues) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func (rcv *State_AxsActValues) Torque() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsActValues) MutateTorque(n float64) bool { + return rcv._tab.MutateFloat64Slot(12, n) +} + +func State_AxsActValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func State_AxsActValuesAddPos(builder *flatbuffers.Builder, pos float64) { + builder.PrependFloat64Slot(0, pos, 0.0) +} +func State_AxsActValuesAddDistLeft(builder *flatbuffers.Builder, distLeft float64) { + builder.PrependFloat64Slot(1, distLeft, 0.0) +} +func State_AxsActValuesAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(2, vel, 0.0) +} +func State_AxsActValuesAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(3, acc, 0.0) +} +func State_AxsActValuesAddTorque(builder *flatbuffers.Builder, torque float64) { + builder.PrependFloat64Slot(4, torque, 0.0) +} +func State_AxsActValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExReq.go b/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExReq.go index 135d39e..3996921 100644 --- a/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExReq.go +++ b/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExReq.go @@ -1,123 +1,123 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_AxsBrakingDistanceExReqT struct { - AxsName string - SelectedTypes []BrakingDistanceTypeReq -} - -func (t *State_AxsBrakingDistanceExReqT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - axsNameOffset := builder.CreateString(t.AxsName) - selectedTypesOffset := flatbuffers.UOffsetT(0) - if t.SelectedTypes != nil { - selectedTypesLength := len(t.SelectedTypes) - State_AxsBrakingDistanceExReqStartSelectedTypesVector(builder, selectedTypesLength) - for j := selectedTypesLength - 1; j >= 0; j-- { - builder.PrependInt8(int8(t.SelectedTypes[j])) - } - selectedTypesOffset = builder.EndVector(selectedTypesLength) - } - State_AxsBrakingDistanceExReqStart(builder) - State_AxsBrakingDistanceExReqAddAxsName(builder, axsNameOffset) - State_AxsBrakingDistanceExReqAddSelectedTypes(builder, selectedTypesOffset) - return State_AxsBrakingDistanceExReqEnd(builder) -} - -func (rcv *State_AxsBrakingDistanceExReq) UnPackTo(t *State_AxsBrakingDistanceExReqT) { - t.AxsName = string(rcv.AxsName()) - selectedTypesLength := rcv.SelectedTypesLength() - t.SelectedTypes = make([]BrakingDistanceTypeReq, selectedTypesLength) - for j := 0; j < selectedTypesLength; j++ { - t.SelectedTypes[j] = rcv.SelectedTypes(j) - } -} - -func (rcv *State_AxsBrakingDistanceExReq) UnPack() *State_AxsBrakingDistanceExReqT { - if rcv == nil { return nil } - t := &State_AxsBrakingDistanceExReqT{} - rcv.UnPackTo(t) - return t -} - -type State_AxsBrakingDistanceExReq struct { - _tab flatbuffers.Table -} - -func GetRootAsState_AxsBrakingDistanceExReq(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExReq { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_AxsBrakingDistanceExReq{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_AxsBrakingDistanceExReq(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExReq { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_AxsBrakingDistanceExReq{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_AxsBrakingDistanceExReq) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_AxsBrakingDistanceExReq) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_AxsBrakingDistanceExReq) AxsName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *State_AxsBrakingDistanceExReq) SelectedTypes(j int) BrakingDistanceTypeReq { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return BrakingDistanceTypeReq(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) - } - return 0 -} - -func (rcv *State_AxsBrakingDistanceExReq) SelectedTypesLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *State_AxsBrakingDistanceExReq) MutateSelectedTypes(j int, n BrakingDistanceTypeReq) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) - } - return false -} - -func State_AxsBrakingDistanceExReqStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func State_AxsBrakingDistanceExReqAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) -} -func State_AxsBrakingDistanceExReqAddSelectedTypes(builder *flatbuffers.Builder, selectedTypes flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(selectedTypes), 0) -} -func State_AxsBrakingDistanceExReqStartSelectedTypesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(1, numElems, 1) -} -func State_AxsBrakingDistanceExReqEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_AxsBrakingDistanceExReqT struct { + AxsName string + SelectedTypes []BrakingDistanceTypeReq +} + +func (t *State_AxsBrakingDistanceExReqT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsNameOffset := builder.CreateString(t.AxsName) + selectedTypesOffset := flatbuffers.UOffsetT(0) + if t.SelectedTypes != nil { + selectedTypesLength := len(t.SelectedTypes) + State_AxsBrakingDistanceExReqStartSelectedTypesVector(builder, selectedTypesLength) + for j := selectedTypesLength - 1; j >= 0; j-- { + builder.PrependInt8(int8(t.SelectedTypes[j])) + } + selectedTypesOffset = builder.EndVector(selectedTypesLength) + } + State_AxsBrakingDistanceExReqStart(builder) + State_AxsBrakingDistanceExReqAddAxsName(builder, axsNameOffset) + State_AxsBrakingDistanceExReqAddSelectedTypes(builder, selectedTypesOffset) + return State_AxsBrakingDistanceExReqEnd(builder) +} + +func (rcv *State_AxsBrakingDistanceExReq) UnPackTo(t *State_AxsBrakingDistanceExReqT) { + t.AxsName = string(rcv.AxsName()) + selectedTypesLength := rcv.SelectedTypesLength() + t.SelectedTypes = make([]BrakingDistanceTypeReq, selectedTypesLength) + for j := 0; j < selectedTypesLength; j++ { + t.SelectedTypes[j] = rcv.SelectedTypes(j) + } +} + +func (rcv *State_AxsBrakingDistanceExReq) UnPack() *State_AxsBrakingDistanceExReqT { + if rcv == nil { return nil } + t := &State_AxsBrakingDistanceExReqT{} + rcv.UnPackTo(t) + return t +} + +type State_AxsBrakingDistanceExReq struct { + _tab flatbuffers.Table +} + +func GetRootAsState_AxsBrakingDistanceExReq(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExReq { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_AxsBrakingDistanceExReq{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_AxsBrakingDistanceExReq(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExReq { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_AxsBrakingDistanceExReq{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_AxsBrakingDistanceExReq) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_AxsBrakingDistanceExReq) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_AxsBrakingDistanceExReq) AxsName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_AxsBrakingDistanceExReq) SelectedTypes(j int) BrakingDistanceTypeReq { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return BrakingDistanceTypeReq(rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1))) + } + return 0 +} + +func (rcv *State_AxsBrakingDistanceExReq) SelectedTypesLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *State_AxsBrakingDistanceExReq) MutateSelectedTypes(j int, n BrakingDistanceTypeReq) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateInt8(a+flatbuffers.UOffsetT(j*1), int8(n)) + } + return false +} + +func State_AxsBrakingDistanceExReqStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func State_AxsBrakingDistanceExReqAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) +} +func State_AxsBrakingDistanceExReqAddSelectedTypes(builder *flatbuffers.Builder, selectedTypes flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(selectedTypes), 0) +} +func State_AxsBrakingDistanceExReqStartSelectedTypesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(1, numElems, 1) +} +func State_AxsBrakingDistanceExReqEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExResp.go b/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExResp.go index 621929a..abcd1a4 100644 --- a/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExResp.go +++ b/pkg/fbs/script/manager/fbtypes/State_AxsBrakingDistanceExResp.go @@ -1,96 +1,96 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_AxsBrakingDistanceExRespT struct { - BrakingDistance float64 - DistanceType BrakingDistanceTypeResp -} - -func (t *State_AxsBrakingDistanceExRespT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - State_AxsBrakingDistanceExRespStart(builder) - State_AxsBrakingDistanceExRespAddBrakingDistance(builder, t.BrakingDistance) - State_AxsBrakingDistanceExRespAddDistanceType(builder, t.DistanceType) - return State_AxsBrakingDistanceExRespEnd(builder) -} - -func (rcv *State_AxsBrakingDistanceExResp) UnPackTo(t *State_AxsBrakingDistanceExRespT) { - t.BrakingDistance = rcv.BrakingDistance() - t.DistanceType = rcv.DistanceType() -} - -func (rcv *State_AxsBrakingDistanceExResp) UnPack() *State_AxsBrakingDistanceExRespT { - if rcv == nil { return nil } - t := &State_AxsBrakingDistanceExRespT{} - rcv.UnPackTo(t) - return t -} - -type State_AxsBrakingDistanceExResp struct { - _tab flatbuffers.Table -} - -func GetRootAsState_AxsBrakingDistanceExResp(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExResp { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_AxsBrakingDistanceExResp{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_AxsBrakingDistanceExResp(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExResp { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_AxsBrakingDistanceExResp{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_AxsBrakingDistanceExResp) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_AxsBrakingDistanceExResp) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_AxsBrakingDistanceExResp) BrakingDistance() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsBrakingDistanceExResp) MutateBrakingDistance(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func (rcv *State_AxsBrakingDistanceExResp) DistanceType() BrakingDistanceTypeResp { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return BrakingDistanceTypeResp(rcv._tab.GetInt8(o + rcv._tab.Pos)) - } - return 0 -} - -func (rcv *State_AxsBrakingDistanceExResp) MutateDistanceType(n BrakingDistanceTypeResp) bool { - return rcv._tab.MutateInt8Slot(6, int8(n)) -} - -func State_AxsBrakingDistanceExRespStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func State_AxsBrakingDistanceExRespAddBrakingDistance(builder *flatbuffers.Builder, brakingDistance float64) { - builder.PrependFloat64Slot(0, brakingDistance, 0.0) -} -func State_AxsBrakingDistanceExRespAddDistanceType(builder *flatbuffers.Builder, distanceType BrakingDistanceTypeResp) { - builder.PrependInt8Slot(1, int8(distanceType), 0) -} -func State_AxsBrakingDistanceExRespEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_AxsBrakingDistanceExRespT struct { + BrakingDistance float64 + DistanceType BrakingDistanceTypeResp +} + +func (t *State_AxsBrakingDistanceExRespT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + State_AxsBrakingDistanceExRespStart(builder) + State_AxsBrakingDistanceExRespAddBrakingDistance(builder, t.BrakingDistance) + State_AxsBrakingDistanceExRespAddDistanceType(builder, t.DistanceType) + return State_AxsBrakingDistanceExRespEnd(builder) +} + +func (rcv *State_AxsBrakingDistanceExResp) UnPackTo(t *State_AxsBrakingDistanceExRespT) { + t.BrakingDistance = rcv.BrakingDistance() + t.DistanceType = rcv.DistanceType() +} + +func (rcv *State_AxsBrakingDistanceExResp) UnPack() *State_AxsBrakingDistanceExRespT { + if rcv == nil { return nil } + t := &State_AxsBrakingDistanceExRespT{} + rcv.UnPackTo(t) + return t +} + +type State_AxsBrakingDistanceExResp struct { + _tab flatbuffers.Table +} + +func GetRootAsState_AxsBrakingDistanceExResp(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExResp { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_AxsBrakingDistanceExResp{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_AxsBrakingDistanceExResp(buf []byte, offset flatbuffers.UOffsetT) *State_AxsBrakingDistanceExResp { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_AxsBrakingDistanceExResp{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_AxsBrakingDistanceExResp) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_AxsBrakingDistanceExResp) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_AxsBrakingDistanceExResp) BrakingDistance() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsBrakingDistanceExResp) MutateBrakingDistance(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func (rcv *State_AxsBrakingDistanceExResp) DistanceType() BrakingDistanceTypeResp { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return BrakingDistanceTypeResp(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *State_AxsBrakingDistanceExResp) MutateDistanceType(n BrakingDistanceTypeResp) bool { + return rcv._tab.MutateInt8Slot(6, int8(n)) +} + +func State_AxsBrakingDistanceExRespStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func State_AxsBrakingDistanceExRespAddBrakingDistance(builder *flatbuffers.Builder, brakingDistance float64) { + builder.PrependFloat64Slot(0, brakingDistance, 0.0) +} +func State_AxsBrakingDistanceExRespAddDistanceType(builder *flatbuffers.Builder, distanceType BrakingDistanceTypeResp) { + builder.PrependInt8Slot(1, int8(distanceType), 0) +} +func State_AxsBrakingDistanceExRespEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_AxsIpoValues.go b/pkg/fbs/script/manager/fbtypes/State_AxsIpoValues.go index 46ec476..f801272 100644 --- a/pkg/fbs/script/manager/fbtypes/State_AxsIpoValues.go +++ b/pkg/fbs/script/manager/fbtypes/State_AxsIpoValues.go @@ -1,132 +1,132 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_AxsIpoValuesT struct { - Pos float64 - Vel float64 - Acc float64 - Jrk float64 -} - -func (t *State_AxsIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - State_AxsIpoValuesStart(builder) - State_AxsIpoValuesAddPos(builder, t.Pos) - State_AxsIpoValuesAddVel(builder, t.Vel) - State_AxsIpoValuesAddAcc(builder, t.Acc) - State_AxsIpoValuesAddJrk(builder, t.Jrk) - return State_AxsIpoValuesEnd(builder) -} - -func (rcv *State_AxsIpoValues) UnPackTo(t *State_AxsIpoValuesT) { - t.Pos = rcv.Pos() - t.Vel = rcv.Vel() - t.Acc = rcv.Acc() - t.Jrk = rcv.Jrk() -} - -func (rcv *State_AxsIpoValues) UnPack() *State_AxsIpoValuesT { - if rcv == nil { return nil } - t := &State_AxsIpoValuesT{} - rcv.UnPackTo(t) - return t -} - -type State_AxsIpoValues struct { - _tab flatbuffers.Table -} - -func GetRootAsState_AxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_AxsIpoValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_AxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_AxsIpoValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_AxsIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_AxsIpoValues) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_AxsIpoValues) Pos() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsIpoValues) MutatePos(n float64) bool { - return rcv._tab.MutateFloat64Slot(4, n) -} - -func (rcv *State_AxsIpoValues) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsIpoValues) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *State_AxsIpoValues) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsIpoValues) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *State_AxsIpoValues) Jrk() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_AxsIpoValues) MutateJrk(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func State_AxsIpoValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func State_AxsIpoValuesAddPos(builder *flatbuffers.Builder, pos float64) { - builder.PrependFloat64Slot(0, pos, 0.0) -} -func State_AxsIpoValuesAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(1, vel, 0.0) -} -func State_AxsIpoValuesAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(2, acc, 0.0) -} -func State_AxsIpoValuesAddJrk(builder *flatbuffers.Builder, jrk float64) { - builder.PrependFloat64Slot(3, jrk, 0.0) -} -func State_AxsIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_AxsIpoValuesT struct { + Pos float64 + Vel float64 + Acc float64 + Jrk float64 +} + +func (t *State_AxsIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + State_AxsIpoValuesStart(builder) + State_AxsIpoValuesAddPos(builder, t.Pos) + State_AxsIpoValuesAddVel(builder, t.Vel) + State_AxsIpoValuesAddAcc(builder, t.Acc) + State_AxsIpoValuesAddJrk(builder, t.Jrk) + return State_AxsIpoValuesEnd(builder) +} + +func (rcv *State_AxsIpoValues) UnPackTo(t *State_AxsIpoValuesT) { + t.Pos = rcv.Pos() + t.Vel = rcv.Vel() + t.Acc = rcv.Acc() + t.Jrk = rcv.Jrk() +} + +func (rcv *State_AxsIpoValues) UnPack() *State_AxsIpoValuesT { + if rcv == nil { return nil } + t := &State_AxsIpoValuesT{} + rcv.UnPackTo(t) + return t +} + +type State_AxsIpoValues struct { + _tab flatbuffers.Table +} + +func GetRootAsState_AxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_AxsIpoValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_AxsIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_AxsIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_AxsIpoValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_AxsIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_AxsIpoValues) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_AxsIpoValues) Pos() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsIpoValues) MutatePos(n float64) bool { + return rcv._tab.MutateFloat64Slot(4, n) +} + +func (rcv *State_AxsIpoValues) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsIpoValues) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *State_AxsIpoValues) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsIpoValues) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *State_AxsIpoValues) Jrk() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_AxsIpoValues) MutateJrk(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func State_AxsIpoValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func State_AxsIpoValuesAddPos(builder *flatbuffers.Builder, pos float64) { + builder.PrependFloat64Slot(0, pos, 0.0) +} +func State_AxsIpoValuesAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(1, vel, 0.0) +} +func State_AxsIpoValuesAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(2, acc, 0.0) +} +func State_AxsIpoValuesAddJrk(builder *flatbuffers.Builder, jrk float64) { + builder.PrependFloat64Slot(3, jrk, 0.0) +} +func State_AxsIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_AxsRunCalculationPipelineData.go b/pkg/fbs/script/manager/fbtypes/State_AxsRunCalculationPipelineData.go new file mode 100644 index 0000000..51b4faf --- /dev/null +++ b/pkg/fbs/script/manager/fbtypes/State_AxsRunCalculationPipelineData.go @@ -0,0 +1,172 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// Parameters of the runCalculationPipeline function +type State_AxsRunCalculationPipelineDataT struct { + AxsName string + PipelineName string + SyncMode SyncMode + MasterName string + Inputs []float64 +} + +func (t *State_AxsRunCalculationPipelineDataT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + axsNameOffset := builder.CreateString(t.AxsName) + pipelineNameOffset := builder.CreateString(t.PipelineName) + masterNameOffset := builder.CreateString(t.MasterName) + inputsOffset := flatbuffers.UOffsetT(0) + if t.Inputs != nil { + inputsLength := len(t.Inputs) + State_AxsRunCalculationPipelineDataStartInputsVector(builder, inputsLength) + for j := inputsLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Inputs[j]) + } + inputsOffset = builder.EndVector(inputsLength) + } + State_AxsRunCalculationPipelineDataStart(builder) + State_AxsRunCalculationPipelineDataAddAxsName(builder, axsNameOffset) + State_AxsRunCalculationPipelineDataAddPipelineName(builder, pipelineNameOffset) + State_AxsRunCalculationPipelineDataAddSyncMode(builder, t.SyncMode) + State_AxsRunCalculationPipelineDataAddMasterName(builder, masterNameOffset) + State_AxsRunCalculationPipelineDataAddInputs(builder, inputsOffset) + return State_AxsRunCalculationPipelineDataEnd(builder) +} + +func (rcv *State_AxsRunCalculationPipelineData) UnPackTo(t *State_AxsRunCalculationPipelineDataT) { + t.AxsName = string(rcv.AxsName()) + t.PipelineName = string(rcv.PipelineName()) + t.SyncMode = rcv.SyncMode() + t.MasterName = string(rcv.MasterName()) + inputsLength := rcv.InputsLength() + t.Inputs = make([]float64, inputsLength) + for j := 0; j < inputsLength; j++ { + t.Inputs[j] = rcv.Inputs(j) + } +} + +func (rcv *State_AxsRunCalculationPipelineData) UnPack() *State_AxsRunCalculationPipelineDataT { + if rcv == nil { return nil } + t := &State_AxsRunCalculationPipelineDataT{} + rcv.UnPackTo(t) + return t +} + +type State_AxsRunCalculationPipelineData struct { + _tab flatbuffers.Table +} + +func GetRootAsState_AxsRunCalculationPipelineData(buf []byte, offset flatbuffers.UOffsetT) *State_AxsRunCalculationPipelineData { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_AxsRunCalculationPipelineData{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_AxsRunCalculationPipelineData(buf []byte, offset flatbuffers.UOffsetT) *State_AxsRunCalculationPipelineData { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_AxsRunCalculationPipelineData{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_AxsRunCalculationPipelineData) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_AxsRunCalculationPipelineData) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_AxsRunCalculationPipelineData) AxsName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_AxsRunCalculationPipelineData) PipelineName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_AxsRunCalculationPipelineData) SyncMode() SyncMode { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return SyncMode(rcv._tab.GetInt8(o + rcv._tab.Pos)) + } + return 0 +} + +func (rcv *State_AxsRunCalculationPipelineData) MutateSyncMode(n SyncMode) bool { + return rcv._tab.MutateInt8Slot(8, int8(n)) +} + +func (rcv *State_AxsRunCalculationPipelineData) MasterName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_AxsRunCalculationPipelineData) Inputs(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *State_AxsRunCalculationPipelineData) InputsLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *State_AxsRunCalculationPipelineData) MutateInputs(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func State_AxsRunCalculationPipelineDataStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func State_AxsRunCalculationPipelineDataAddAxsName(builder *flatbuffers.Builder, axsName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(axsName), 0) +} +func State_AxsRunCalculationPipelineDataAddPipelineName(builder *flatbuffers.Builder, pipelineName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(pipelineName), 0) +} +func State_AxsRunCalculationPipelineDataAddSyncMode(builder *flatbuffers.Builder, syncMode SyncMode) { + builder.PrependInt8Slot(2, int8(syncMode), 0) +} +func State_AxsRunCalculationPipelineDataAddMasterName(builder *flatbuffers.Builder, masterName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(masterName), 0) +} +func State_AxsRunCalculationPipelineDataAddInputs(builder *flatbuffers.Builder, inputs flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(inputs), 0) +} +func State_AxsRunCalculationPipelineDataStartInputsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func State_AxsRunCalculationPipelineDataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_CmdState.go b/pkg/fbs/script/manager/fbtypes/State_CmdState.go index bb901fc..cb64748 100644 --- a/pkg/fbs/script/manager/fbtypes/State_CmdState.go +++ b/pkg/fbs/script/manager/fbtypes/State_CmdState.go @@ -1,93 +1,93 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_CmdStateT struct { - ObjName string - CmdID uint64 -} - -func (t *State_CmdStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - objNameOffset := builder.CreateString(t.ObjName) - State_CmdStateStart(builder) - State_CmdStateAddObjName(builder, objNameOffset) - State_CmdStateAddCmdID(builder, t.CmdID) - return State_CmdStateEnd(builder) -} - -func (rcv *State_CmdState) UnPackTo(t *State_CmdStateT) { - t.ObjName = string(rcv.ObjName()) - t.CmdID = rcv.CmdID() -} - -func (rcv *State_CmdState) UnPack() *State_CmdStateT { - if rcv == nil { return nil } - t := &State_CmdStateT{} - rcv.UnPackTo(t) - return t -} - -type State_CmdState struct { - _tab flatbuffers.Table -} - -func GetRootAsState_CmdState(buf []byte, offset flatbuffers.UOffsetT) *State_CmdState { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_CmdState{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_CmdState(buf []byte, offset flatbuffers.UOffsetT) *State_CmdState { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_CmdState{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_CmdState) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_CmdState) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_CmdState) ObjName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *State_CmdState) CmdID() uint64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint64(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *State_CmdState) MutateCmdID(n uint64) bool { - return rcv._tab.MutateUint64Slot(6, n) -} - -func State_CmdStateStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func State_CmdStateAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objName), 0) -} -func State_CmdStateAddCmdID(builder *flatbuffers.Builder, cmdID uint64) { - builder.PrependUint64Slot(1, cmdID, 0) -} -func State_CmdStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_CmdStateT struct { + ObjName string + CmdID uint64 +} + +func (t *State_CmdStateT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objNameOffset := builder.CreateString(t.ObjName) + State_CmdStateStart(builder) + State_CmdStateAddObjName(builder, objNameOffset) + State_CmdStateAddCmdID(builder, t.CmdID) + return State_CmdStateEnd(builder) +} + +func (rcv *State_CmdState) UnPackTo(t *State_CmdStateT) { + t.ObjName = string(rcv.ObjName()) + t.CmdID = rcv.CmdID() +} + +func (rcv *State_CmdState) UnPack() *State_CmdStateT { + if rcv == nil { return nil } + t := &State_CmdStateT{} + rcv.UnPackTo(t) + return t +} + +type State_CmdState struct { + _tab flatbuffers.Table +} + +func GetRootAsState_CmdState(buf []byte, offset flatbuffers.UOffsetT) *State_CmdState { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_CmdState{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_CmdState(buf []byte, offset flatbuffers.UOffsetT) *State_CmdState { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_CmdState{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_CmdState) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_CmdState) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_CmdState) ObjName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_CmdState) CmdID() uint64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint64(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *State_CmdState) MutateCmdID(n uint64) bool { + return rcv._tab.MutateUint64Slot(6, n) +} + +func State_CmdStateStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func State_CmdStateAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objName), 0) +} +func State_CmdStateAddCmdID(builder *flatbuffers.Builder, cmdID uint64) { + builder.PrependUint64Slot(1, cmdID, 0) +} +func State_CmdStateEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_KinCoordTransform.go b/pkg/fbs/script/manager/fbtypes/State_KinCoordTransform.go index 4d652ec..a2a86dd 100644 --- a/pkg/fbs/script/manager/fbtypes/State_KinCoordTransform.go +++ b/pkg/fbs/script/manager/fbtypes/State_KinCoordTransform.go @@ -1,153 +1,153 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_KinCoordTransformT struct { - ObjName string - PosIn []float64 - CoordSysIn string - CoordSysOut string -} - -func (t *State_KinCoordTransformT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - objNameOffset := builder.CreateString(t.ObjName) - posInOffset := flatbuffers.UOffsetT(0) - if t.PosIn != nil { - posInLength := len(t.PosIn) - State_KinCoordTransformStartPosInVector(builder, posInLength) - for j := posInLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.PosIn[j]) - } - posInOffset = builder.EndVector(posInLength) - } - coordSysInOffset := builder.CreateString(t.CoordSysIn) - coordSysOutOffset := builder.CreateString(t.CoordSysOut) - State_KinCoordTransformStart(builder) - State_KinCoordTransformAddObjName(builder, objNameOffset) - State_KinCoordTransformAddPosIn(builder, posInOffset) - State_KinCoordTransformAddCoordSysIn(builder, coordSysInOffset) - State_KinCoordTransformAddCoordSysOut(builder, coordSysOutOffset) - return State_KinCoordTransformEnd(builder) -} - -func (rcv *State_KinCoordTransform) UnPackTo(t *State_KinCoordTransformT) { - t.ObjName = string(rcv.ObjName()) - posInLength := rcv.PosInLength() - t.PosIn = make([]float64, posInLength) - for j := 0; j < posInLength; j++ { - t.PosIn[j] = rcv.PosIn(j) - } - t.CoordSysIn = string(rcv.CoordSysIn()) - t.CoordSysOut = string(rcv.CoordSysOut()) -} - -func (rcv *State_KinCoordTransform) UnPack() *State_KinCoordTransformT { - if rcv == nil { return nil } - t := &State_KinCoordTransformT{} - rcv.UnPackTo(t) - return t -} - -type State_KinCoordTransform struct { - _tab flatbuffers.Table -} - -func GetRootAsState_KinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *State_KinCoordTransform { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_KinCoordTransform{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_KinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *State_KinCoordTransform { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_KinCoordTransform{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_KinCoordTransform) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_KinCoordTransform) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_KinCoordTransform) ObjName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *State_KinCoordTransform) PosIn(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *State_KinCoordTransform) PosInLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *State_KinCoordTransform) MutatePosIn(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *State_KinCoordTransform) CoordSysIn() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *State_KinCoordTransform) CoordSysOut() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func State_KinCoordTransformStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func State_KinCoordTransformAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objName), 0) -} -func State_KinCoordTransformAddPosIn(builder *flatbuffers.Builder, posIn flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(posIn), 0) -} -func State_KinCoordTransformStartPosInVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func State_KinCoordTransformAddCoordSysIn(builder *flatbuffers.Builder, coordSysIn flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSysIn), 0) -} -func State_KinCoordTransformAddCoordSysOut(builder *flatbuffers.Builder, coordSysOut flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(coordSysOut), 0) -} -func State_KinCoordTransformEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_KinCoordTransformT struct { + ObjName string + PosIn []float64 + CoordSysIn string + CoordSysOut string +} + +func (t *State_KinCoordTransformT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objNameOffset := builder.CreateString(t.ObjName) + posInOffset := flatbuffers.UOffsetT(0) + if t.PosIn != nil { + posInLength := len(t.PosIn) + State_KinCoordTransformStartPosInVector(builder, posInLength) + for j := posInLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.PosIn[j]) + } + posInOffset = builder.EndVector(posInLength) + } + coordSysInOffset := builder.CreateString(t.CoordSysIn) + coordSysOutOffset := builder.CreateString(t.CoordSysOut) + State_KinCoordTransformStart(builder) + State_KinCoordTransformAddObjName(builder, objNameOffset) + State_KinCoordTransformAddPosIn(builder, posInOffset) + State_KinCoordTransformAddCoordSysIn(builder, coordSysInOffset) + State_KinCoordTransformAddCoordSysOut(builder, coordSysOutOffset) + return State_KinCoordTransformEnd(builder) +} + +func (rcv *State_KinCoordTransform) UnPackTo(t *State_KinCoordTransformT) { + t.ObjName = string(rcv.ObjName()) + posInLength := rcv.PosInLength() + t.PosIn = make([]float64, posInLength) + for j := 0; j < posInLength; j++ { + t.PosIn[j] = rcv.PosIn(j) + } + t.CoordSysIn = string(rcv.CoordSysIn()) + t.CoordSysOut = string(rcv.CoordSysOut()) +} + +func (rcv *State_KinCoordTransform) UnPack() *State_KinCoordTransformT { + if rcv == nil { return nil } + t := &State_KinCoordTransformT{} + rcv.UnPackTo(t) + return t +} + +type State_KinCoordTransform struct { + _tab flatbuffers.Table +} + +func GetRootAsState_KinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *State_KinCoordTransform { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_KinCoordTransform{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_KinCoordTransform(buf []byte, offset flatbuffers.UOffsetT) *State_KinCoordTransform { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_KinCoordTransform{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_KinCoordTransform) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_KinCoordTransform) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_KinCoordTransform) ObjName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_KinCoordTransform) PosIn(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *State_KinCoordTransform) PosInLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *State_KinCoordTransform) MutatePosIn(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *State_KinCoordTransform) CoordSysIn() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_KinCoordTransform) CoordSysOut() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func State_KinCoordTransformStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func State_KinCoordTransformAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objName), 0) +} +func State_KinCoordTransformAddPosIn(builder *flatbuffers.Builder, posIn flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(posIn), 0) +} +func State_KinCoordTransformStartPosInVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func State_KinCoordTransformAddCoordSysIn(builder *flatbuffers.Builder, coordSysIn flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(coordSysIn), 0) +} +func State_KinCoordTransformAddCoordSysOut(builder *flatbuffers.Builder, coordSysOut flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(coordSysOut), 0) +} +func State_KinCoordTransformEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_KinGetPos.go b/pkg/fbs/script/manager/fbtypes/State_KinGetPos.go index 1744dcb..75ca4aa 100644 --- a/pkg/fbs/script/manager/fbtypes/State_KinGetPos.go +++ b/pkg/fbs/script/manager/fbtypes/State_KinGetPos.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_KinGetPosT struct { - ObjName string - CoordSysOut string -} - -func (t *State_KinGetPosT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - objNameOffset := builder.CreateString(t.ObjName) - coordSysOutOffset := builder.CreateString(t.CoordSysOut) - State_KinGetPosStart(builder) - State_KinGetPosAddObjName(builder, objNameOffset) - State_KinGetPosAddCoordSysOut(builder, coordSysOutOffset) - return State_KinGetPosEnd(builder) -} - -func (rcv *State_KinGetPos) UnPackTo(t *State_KinGetPosT) { - t.ObjName = string(rcv.ObjName()) - t.CoordSysOut = string(rcv.CoordSysOut()) -} - -func (rcv *State_KinGetPos) UnPack() *State_KinGetPosT { - if rcv == nil { return nil } - t := &State_KinGetPosT{} - rcv.UnPackTo(t) - return t -} - -type State_KinGetPos struct { - _tab flatbuffers.Table -} - -func GetRootAsState_KinGetPos(buf []byte, offset flatbuffers.UOffsetT) *State_KinGetPos { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_KinGetPos{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_KinGetPos(buf []byte, offset flatbuffers.UOffsetT) *State_KinGetPos { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_KinGetPos{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_KinGetPos) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_KinGetPos) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_KinGetPos) ObjName() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *State_KinGetPos) CoordSysOut() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func State_KinGetPosStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func State_KinGetPosAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objName), 0) -} -func State_KinGetPosAddCoordSysOut(builder *flatbuffers.Builder, coordSysOut flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSysOut), 0) -} -func State_KinGetPosEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_KinGetPosT struct { + ObjName string + CoordSysOut string +} + +func (t *State_KinGetPosT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objNameOffset := builder.CreateString(t.ObjName) + coordSysOutOffset := builder.CreateString(t.CoordSysOut) + State_KinGetPosStart(builder) + State_KinGetPosAddObjName(builder, objNameOffset) + State_KinGetPosAddCoordSysOut(builder, coordSysOutOffset) + return State_KinGetPosEnd(builder) +} + +func (rcv *State_KinGetPos) UnPackTo(t *State_KinGetPosT) { + t.ObjName = string(rcv.ObjName()) + t.CoordSysOut = string(rcv.CoordSysOut()) +} + +func (rcv *State_KinGetPos) UnPack() *State_KinGetPosT { + if rcv == nil { return nil } + t := &State_KinGetPosT{} + rcv.UnPackTo(t) + return t +} + +type State_KinGetPos struct { + _tab flatbuffers.Table +} + +func GetRootAsState_KinGetPos(buf []byte, offset flatbuffers.UOffsetT) *State_KinGetPos { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_KinGetPos{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_KinGetPos(buf []byte, offset flatbuffers.UOffsetT) *State_KinGetPos { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_KinGetPos{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_KinGetPos) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_KinGetPos) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_KinGetPos) ObjName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *State_KinGetPos) CoordSysOut() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func State_KinGetPosStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func State_KinGetPosAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objName), 0) +} +func State_KinGetPosAddCoordSysOut(builder *flatbuffers.Builder, coordSysOut flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(coordSysOut), 0) +} +func State_KinGetPosEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/State_KinIpoValues.go b/pkg/fbs/script/manager/fbtypes/State_KinIpoValues.go index 2b7b6e2..3707695 100644 --- a/pkg/fbs/script/manager/fbtypes/State_KinIpoValues.go +++ b/pkg/fbs/script/manager/fbtypes/State_KinIpoValues.go @@ -1,162 +1,162 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type State_KinIpoValuesT struct { - Pos []float64 - Vel float64 - Acc float64 - Jrk float64 -} - -func (t *State_KinIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - posOffset := flatbuffers.UOffsetT(0) - if t.Pos != nil { - posLength := len(t.Pos) - State_KinIpoValuesStartPosVector(builder, posLength) - for j := posLength - 1; j >= 0; j-- { - builder.PrependFloat64(t.Pos[j]) - } - posOffset = builder.EndVector(posLength) - } - State_KinIpoValuesStart(builder) - State_KinIpoValuesAddPos(builder, posOffset) - State_KinIpoValuesAddVel(builder, t.Vel) - State_KinIpoValuesAddAcc(builder, t.Acc) - State_KinIpoValuesAddJrk(builder, t.Jrk) - return State_KinIpoValuesEnd(builder) -} - -func (rcv *State_KinIpoValues) UnPackTo(t *State_KinIpoValuesT) { - posLength := rcv.PosLength() - t.Pos = make([]float64, posLength) - for j := 0; j < posLength; j++ { - t.Pos[j] = rcv.Pos(j) - } - t.Vel = rcv.Vel() - t.Acc = rcv.Acc() - t.Jrk = rcv.Jrk() -} - -func (rcv *State_KinIpoValues) UnPack() *State_KinIpoValuesT { - if rcv == nil { return nil } - t := &State_KinIpoValuesT{} - rcv.UnPackTo(t) - return t -} - -type State_KinIpoValues struct { - _tab flatbuffers.Table -} - -func GetRootAsState_KinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_KinIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &State_KinIpoValues{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsState_KinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_KinIpoValues { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &State_KinIpoValues{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *State_KinIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *State_KinIpoValues) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *State_KinIpoValues) Pos(j int) float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) - } - return 0 -} - -func (rcv *State_KinIpoValues) PosLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func (rcv *State_KinIpoValues) MutatePos(j int, n float64) bool { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) - } - return false -} - -func (rcv *State_KinIpoValues) Vel() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_KinIpoValues) MutateVel(n float64) bool { - return rcv._tab.MutateFloat64Slot(6, n) -} - -func (rcv *State_KinIpoValues) Acc() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_KinIpoValues) MutateAcc(n float64) bool { - return rcv._tab.MutateFloat64Slot(8, n) -} - -func (rcv *State_KinIpoValues) Jrk() float64 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetFloat64(o + rcv._tab.Pos) - } - return 0.0 -} - -func (rcv *State_KinIpoValues) MutateJrk(n float64) bool { - return rcv._tab.MutateFloat64Slot(10, n) -} - -func State_KinIpoValuesStart(builder *flatbuffers.Builder) { - builder.StartObject(4) -} -func State_KinIpoValuesAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pos), 0) -} -func State_KinIpoValuesStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(8, numElems, 8) -} -func State_KinIpoValuesAddVel(builder *flatbuffers.Builder, vel float64) { - builder.PrependFloat64Slot(1, vel, 0.0) -} -func State_KinIpoValuesAddAcc(builder *flatbuffers.Builder, acc float64) { - builder.PrependFloat64Slot(2, acc, 0.0) -} -func State_KinIpoValuesAddJrk(builder *flatbuffers.Builder, jrk float64) { - builder.PrependFloat64Slot(3, jrk, 0.0) -} -func State_KinIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type State_KinIpoValuesT struct { + Pos []float64 + Vel float64 + Acc float64 + Jrk float64 +} + +func (t *State_KinIpoValuesT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + posOffset := flatbuffers.UOffsetT(0) + if t.Pos != nil { + posLength := len(t.Pos) + State_KinIpoValuesStartPosVector(builder, posLength) + for j := posLength - 1; j >= 0; j-- { + builder.PrependFloat64(t.Pos[j]) + } + posOffset = builder.EndVector(posLength) + } + State_KinIpoValuesStart(builder) + State_KinIpoValuesAddPos(builder, posOffset) + State_KinIpoValuesAddVel(builder, t.Vel) + State_KinIpoValuesAddAcc(builder, t.Acc) + State_KinIpoValuesAddJrk(builder, t.Jrk) + return State_KinIpoValuesEnd(builder) +} + +func (rcv *State_KinIpoValues) UnPackTo(t *State_KinIpoValuesT) { + posLength := rcv.PosLength() + t.Pos = make([]float64, posLength) + for j := 0; j < posLength; j++ { + t.Pos[j] = rcv.Pos(j) + } + t.Vel = rcv.Vel() + t.Acc = rcv.Acc() + t.Jrk = rcv.Jrk() +} + +func (rcv *State_KinIpoValues) UnPack() *State_KinIpoValuesT { + if rcv == nil { return nil } + t := &State_KinIpoValuesT{} + rcv.UnPackTo(t) + return t +} + +type State_KinIpoValues struct { + _tab flatbuffers.Table +} + +func GetRootAsState_KinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_KinIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &State_KinIpoValues{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsState_KinIpoValues(buf []byte, offset flatbuffers.UOffsetT) *State_KinIpoValues { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &State_KinIpoValues{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *State_KinIpoValues) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *State_KinIpoValues) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *State_KinIpoValues) Pos(j int) float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.GetFloat64(a + flatbuffers.UOffsetT(j*8)) + } + return 0 +} + +func (rcv *State_KinIpoValues) PosLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func (rcv *State_KinIpoValues) MutatePos(j int, n float64) bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.MutateFloat64(a+flatbuffers.UOffsetT(j*8), n) + } + return false +} + +func (rcv *State_KinIpoValues) Vel() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_KinIpoValues) MutateVel(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +func (rcv *State_KinIpoValues) Acc() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_KinIpoValues) MutateAcc(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +func (rcv *State_KinIpoValues) Jrk() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +func (rcv *State_KinIpoValues) MutateJrk(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +func State_KinIpoValuesStart(builder *flatbuffers.Builder) { + builder.StartObject(4) +} +func State_KinIpoValuesAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(pos), 0) +} +func State_KinIpoValuesStartPosVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(8, numElems, 8) +} +func State_KinIpoValuesAddVel(builder *flatbuffers.Builder, vel float64) { + builder.PrependFloat64Slot(1, vel, 0.0) +} +func State_KinIpoValuesAddAcc(builder *flatbuffers.Builder, acc float64) { + builder.PrependFloat64Slot(2, acc, 0.0) +} +func State_KinIpoValuesAddJrk(builder *flatbuffers.Builder, jrk float64) { + builder.PrependFloat64Slot(3, jrk, 0.0) +} +func State_KinIpoValuesEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/SyncMode.go b/pkg/fbs/script/manager/fbtypes/SyncMode.go new file mode 100644 index 0000000..28732dd --- /dev/null +++ b/pkg/fbs/script/manager/fbtypes/SyncMode.go @@ -0,0 +1,40 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import "strconv" + +/// sync mode (must fit the enum class motion::sync::cmd::SyncMode) +type SyncMode int8 + +const ( + /// The slave is moved relative and the calculation pipeline is initialized new. + SyncModeSYNC_RELATIVE SyncMode = 0 + /// The slave is moved relative and the calculation pipeline keeps its state. + SyncModeSYNC_RELATIVE_KEEP_STATE SyncMode = 1 + /// The slave is moved absolute and the calculation pipeline is initialized new. + SyncModeSYNC_ABSOLUTE SyncMode = 2 + /// The slave is moved absolute and the calculation pipeline keeps its state. + SyncModeSYNC_ABSOLUTE_KEEP_STATE SyncMode = 3 +) + +var EnumNamesSyncMode = map[SyncMode]string{ + SyncModeSYNC_RELATIVE: "SYNC_RELATIVE", + SyncModeSYNC_RELATIVE_KEEP_STATE: "SYNC_RELATIVE_KEEP_STATE", + SyncModeSYNC_ABSOLUTE: "SYNC_ABSOLUTE", + SyncModeSYNC_ABSOLUTE_KEEP_STATE: "SYNC_ABSOLUTE_KEEP_STATE", +} + +var EnumValuesSyncMode = map[string]SyncMode{ + "SYNC_RELATIVE": SyncModeSYNC_RELATIVE, + "SYNC_RELATIVE_KEEP_STATE": SyncModeSYNC_RELATIVE_KEEP_STATE, + "SYNC_ABSOLUTE": SyncModeSYNC_ABSOLUTE, + "SYNC_ABSOLUTE_KEEP_STATE": SyncModeSYNC_ABSOLUTE_KEEP_STATE, +} + +func (v SyncMode) String() string { + if s, ok := EnumNamesSyncMode[v]; ok { + return s + } + return "SyncMode(" + strconv.FormatInt(int64(v), 10) + ")" +} diff --git a/pkg/fbs/script/manager/fbtypes/Task_RunScript.go b/pkg/fbs/script/manager/fbtypes/Task_RunScript.go index adc4a7d..fa98155 100644 --- a/pkg/fbs/script/manager/fbtypes/Task_RunScript.go +++ b/pkg/fbs/script/manager/fbtypes/Task_RunScript.go @@ -1,118 +1,118 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type Task_RunScriptT struct { - Name string - Param []string -} - -func (t *Task_RunScriptT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - paramOffset := flatbuffers.UOffsetT(0) - if t.Param != nil { - paramLength := len(t.Param) - paramOffsets := make([]flatbuffers.UOffsetT, paramLength) - for j := 0; j < paramLength; j++ { - paramOffsets[j] = builder.CreateString(t.Param[j]) - } - Task_RunScriptStartParamVector(builder, paramLength) - for j := paramLength - 1; j >= 0; j-- { - builder.PrependUOffsetT(paramOffsets[j]) - } - paramOffset = builder.EndVector(paramLength) - } - Task_RunScriptStart(builder) - Task_RunScriptAddName(builder, nameOffset) - Task_RunScriptAddParam(builder, paramOffset) - return Task_RunScriptEnd(builder) -} - -func (rcv *Task_RunScript) UnPackTo(t *Task_RunScriptT) { - t.Name = string(rcv.Name()) - paramLength := rcv.ParamLength() - t.Param = make([]string, paramLength) - for j := 0; j < paramLength; j++ { - t.Param[j] = string(rcv.Param(j)) - } -} - -func (rcv *Task_RunScript) UnPack() *Task_RunScriptT { - if rcv == nil { return nil } - t := &Task_RunScriptT{} - rcv.UnPackTo(t) - return t -} - -type Task_RunScript struct { - _tab flatbuffers.Table -} - -func GetRootAsTask_RunScript(buf []byte, offset flatbuffers.UOffsetT) *Task_RunScript { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Task_RunScript{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsTask_RunScript(buf []byte, offset flatbuffers.UOffsetT) *Task_RunScript { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Task_RunScript{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Task_RunScript) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Task_RunScript) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Task_RunScript) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *Task_RunScript) Param(j int) []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - a := rcv._tab.Vector(o) - return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) - } - return nil -} - -func (rcv *Task_RunScript) ParamLength() int { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.VectorLen(o) - } - return 0 -} - -func Task_RunScriptStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func Task_RunScriptAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func Task_RunScriptAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(param), 0) -} -func Task_RunScriptStartParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { - return builder.StartVector(4, numElems, 4) -} -func Task_RunScriptEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type Task_RunScriptT struct { + Name string + Param []string +} + +func (t *Task_RunScriptT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + paramOffset := flatbuffers.UOffsetT(0) + if t.Param != nil { + paramLength := len(t.Param) + paramOffsets := make([]flatbuffers.UOffsetT, paramLength) + for j := 0; j < paramLength; j++ { + paramOffsets[j] = builder.CreateString(t.Param[j]) + } + Task_RunScriptStartParamVector(builder, paramLength) + for j := paramLength - 1; j >= 0; j-- { + builder.PrependUOffsetT(paramOffsets[j]) + } + paramOffset = builder.EndVector(paramLength) + } + Task_RunScriptStart(builder) + Task_RunScriptAddName(builder, nameOffset) + Task_RunScriptAddParam(builder, paramOffset) + return Task_RunScriptEnd(builder) +} + +func (rcv *Task_RunScript) UnPackTo(t *Task_RunScriptT) { + t.Name = string(rcv.Name()) + paramLength := rcv.ParamLength() + t.Param = make([]string, paramLength) + for j := 0; j < paramLength; j++ { + t.Param[j] = string(rcv.Param(j)) + } +} + +func (rcv *Task_RunScript) UnPack() *Task_RunScriptT { + if rcv == nil { return nil } + t := &Task_RunScriptT{} + rcv.UnPackTo(t) + return t +} + +type Task_RunScript struct { + _tab flatbuffers.Table +} + +func GetRootAsTask_RunScript(buf []byte, offset flatbuffers.UOffsetT) *Task_RunScript { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Task_RunScript{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsTask_RunScript(buf []byte, offset flatbuffers.UOffsetT) *Task_RunScript { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Task_RunScript{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Task_RunScript) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Task_RunScript) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Task_RunScript) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *Task_RunScript) Param(j int) []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + a := rcv._tab.Vector(o) + return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) + } + return nil +} + +func (rcv *Task_RunScript) ParamLength() int { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.VectorLen(o) + } + return 0 +} + +func Task_RunScriptStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func Task_RunScriptAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func Task_RunScriptAddParam(builder *flatbuffers.Builder, param flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(param), 0) +} +func Task_RunScriptStartParamVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { + return builder.StartVector(4, numElems, 4) +} +func Task_RunScriptEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/cmd_AxsProbe.go b/pkg/fbs/script/manager/fbtypes/cmd_AxsProbe.go new file mode 100644 index 0000000..0292f0b --- /dev/null +++ b/pkg/fbs/script/manager/fbtypes/cmd_AxsProbe.go @@ -0,0 +1,127 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// parameters of the axis probe command +type cmd_AxsProbeT struct { + Base *Cmd_BaseT + BaseData *cmd_AxsProbeBaseT + CfgData *CfgProbeDataT +} + +func (t *cmd_AxsProbeT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + baseDataOffset := t.BaseData.Pack(builder) + cfgDataOffset := t.CfgData.Pack(builder) + cmd_AxsProbeStart(builder) + cmd_AxsProbeAddBase(builder, baseOffset) + cmd_AxsProbeAddBaseData(builder, baseDataOffset) + cmd_AxsProbeAddCfgData(builder, cfgDataOffset) + return cmd_AxsProbeEnd(builder) +} + +func (rcv *cmd_AxsProbe) UnPackTo(t *cmd_AxsProbeT) { + t.Base = rcv.Base(nil).UnPack() + t.BaseData = rcv.BaseData(nil).UnPack() + t.CfgData = rcv.CfgData(nil).UnPack() +} + +func (rcv *cmd_AxsProbe) UnPack() *cmd_AxsProbeT { + if rcv == nil { return nil } + t := &cmd_AxsProbeT{} + rcv.UnPackTo(t) + return t +} + +type cmd_AxsProbe struct { + _tab flatbuffers.Table +} + +func GetRootAscmd_AxsProbe(buf []byte, offset flatbuffers.UOffsetT) *cmd_AxsProbe { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &cmd_AxsProbe{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAscmd_AxsProbe(buf []byte, offset flatbuffers.UOffsetT) *cmd_AxsProbe { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &cmd_AxsProbe{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *cmd_AxsProbe) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *cmd_AxsProbe) Table() flatbuffers.Table { + return rcv._tab +} + +/// command base input +func (rcv *cmd_AxsProbe) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// command base input +/// probe base parameter +func (rcv *cmd_AxsProbe) BaseData(obj *cmd_AxsProbeBase) *cmd_AxsProbeBase { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(cmd_AxsProbeBase) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// probe base parameter +/// probe configure parameter +func (rcv *cmd_AxsProbe) CfgData(obj *CfgProbeData) *CfgProbeData { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(CfgProbeData) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// probe configure parameter +func cmd_AxsProbeStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func cmd_AxsProbeAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func cmd_AxsProbeAddBaseData(builder *flatbuffers.Builder, baseData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(baseData), 0) +} +func cmd_AxsProbeAddCfgData(builder *flatbuffers.Builder, cfgData flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(cfgData), 0) +} +func cmd_AxsProbeEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/cmd_AxsProbeBase.go b/pkg/fbs/script/manager/fbtypes/cmd_AxsProbeBase.go new file mode 100644 index 0000000..94f8dc1 --- /dev/null +++ b/pkg/fbs/script/manager/fbtypes/cmd_AxsProbeBase.go @@ -0,0 +1,117 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// base parameters of the axis probe and axis probe abort command +type cmd_AxsProbeBaseT struct { + Base *Cmd_BaseT + TriggerSrc string + ProbeIndex string +} + +func (t *cmd_AxsProbeBaseT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + baseOffset := t.Base.Pack(builder) + triggerSrcOffset := builder.CreateString(t.TriggerSrc) + probeIndexOffset := builder.CreateString(t.ProbeIndex) + cmd_AxsProbeBaseStart(builder) + cmd_AxsProbeBaseAddBase(builder, baseOffset) + cmd_AxsProbeBaseAddTriggerSrc(builder, triggerSrcOffset) + cmd_AxsProbeBaseAddProbeIndex(builder, probeIndexOffset) + return cmd_AxsProbeBaseEnd(builder) +} + +func (rcv *cmd_AxsProbeBase) UnPackTo(t *cmd_AxsProbeBaseT) { + t.Base = rcv.Base(nil).UnPack() + t.TriggerSrc = string(rcv.TriggerSrc()) + t.ProbeIndex = string(rcv.ProbeIndex()) +} + +func (rcv *cmd_AxsProbeBase) UnPack() *cmd_AxsProbeBaseT { + if rcv == nil { return nil } + t := &cmd_AxsProbeBaseT{} + rcv.UnPackTo(t) + return t +} + +type cmd_AxsProbeBase struct { + _tab flatbuffers.Table +} + +func GetRootAscmd_AxsProbeBase(buf []byte, offset flatbuffers.UOffsetT) *cmd_AxsProbeBase { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &cmd_AxsProbeBase{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAscmd_AxsProbeBase(buf []byte, offset flatbuffers.UOffsetT) *cmd_AxsProbeBase { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &cmd_AxsProbeBase{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *cmd_AxsProbeBase) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *cmd_AxsProbeBase) Table() flatbuffers.Table { + return rcv._tab +} + +/// command base input +func (rcv *cmd_AxsProbeBase) Base(obj *Cmd_Base) *Cmd_Base { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(Cmd_Base) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +/// command base input +/// probe trigger source +func (rcv *cmd_AxsProbeBase) TriggerSrc() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// probe trigger source +/// probe index +func (rcv *cmd_AxsProbeBase) ProbeIndex() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// probe index +func cmd_AxsProbeBaseStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func cmd_AxsProbeBaseAddBase(builder *flatbuffers.Builder, base flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(base), 0) +} +func cmd_AxsProbeBaseAddTriggerSrc(builder *flatbuffers.Builder, triggerSrc flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(triggerSrc), 0) +} +func cmd_AxsProbeBaseAddProbeIndex(builder *flatbuffers.Builder, probeIndex flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(probeIndex), 0) +} +func cmd_AxsProbeBaseEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/script_Instance.go b/pkg/fbs/script/manager/fbtypes/script_Instance.go index be07716..7bf48ec 100644 --- a/pkg/fbs/script/manager/fbtypes/script_Instance.go +++ b/pkg/fbs/script/manager/fbtypes/script_Instance.go @@ -1,90 +1,90 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package fbtypes - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type script_InstanceT struct { - Name string - Language string -} - -func (t *script_InstanceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - nameOffset := builder.CreateString(t.Name) - languageOffset := builder.CreateString(t.Language) - script_InstanceStart(builder) - script_InstanceAddName(builder, nameOffset) - script_InstanceAddLanguage(builder, languageOffset) - return script_InstanceEnd(builder) -} - -func (rcv *script_Instance) UnPackTo(t *script_InstanceT) { - t.Name = string(rcv.Name()) - t.Language = string(rcv.Language()) -} - -func (rcv *script_Instance) UnPack() *script_InstanceT { - if rcv == nil { return nil } - t := &script_InstanceT{} - rcv.UnPackTo(t) - return t -} - -type script_Instance struct { - _tab flatbuffers.Table -} - -func GetRootAsscript_Instance(buf []byte, offset flatbuffers.UOffsetT) *script_Instance { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &script_Instance{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsscript_Instance(buf []byte, offset flatbuffers.UOffsetT) *script_Instance { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &script_Instance{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *script_Instance) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *script_Instance) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *script_Instance) Name() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func (rcv *script_Instance) Language() []byte { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.ByteVector(o + rcv._tab.Pos) - } - return nil -} - -func script_InstanceStart(builder *flatbuffers.Builder) { - builder.StartObject(2) -} -func script_InstanceAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) -} -func script_InstanceAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(language), 0) -} -func script_InstanceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type script_InstanceT struct { + Name string + Language string +} + +func (t *script_InstanceT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + nameOffset := builder.CreateString(t.Name) + languageOffset := builder.CreateString(t.Language) + script_InstanceStart(builder) + script_InstanceAddName(builder, nameOffset) + script_InstanceAddLanguage(builder, languageOffset) + return script_InstanceEnd(builder) +} + +func (rcv *script_Instance) UnPackTo(t *script_InstanceT) { + t.Name = string(rcv.Name()) + t.Language = string(rcv.Language()) +} + +func (rcv *script_Instance) UnPack() *script_InstanceT { + if rcv == nil { return nil } + t := &script_InstanceT{} + rcv.UnPackTo(t) + return t +} + +type script_Instance struct { + _tab flatbuffers.Table +} + +func GetRootAsscript_Instance(buf []byte, offset flatbuffers.UOffsetT) *script_Instance { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &script_Instance{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsscript_Instance(buf []byte, offset flatbuffers.UOffsetT) *script_Instance { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &script_Instance{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *script_Instance) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *script_Instance) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *script_Instance) Name() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func (rcv *script_Instance) Language() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +func script_InstanceStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func script_InstanceAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) +} +func script_InstanceAddLanguage(builder *flatbuffers.Builder, language flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(language), 0) +} +func script_InstanceEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/state_AxsProbeActualValuesReq.go b/pkg/fbs/script/manager/fbtypes/state_AxsProbeActualValuesReq.go new file mode 100644 index 0000000..7926083 --- /dev/null +++ b/pkg/fbs/script/manager/fbtypes/state_AxsProbeActualValuesReq.go @@ -0,0 +1,95 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// currently the actual values of the probe +type state_AxsProbeActualValuesReqT struct { + ObjName string + ProbeIndex string +} + +func (t *state_AxsProbeActualValuesReqT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + objNameOffset := builder.CreateString(t.ObjName) + probeIndexOffset := builder.CreateString(t.ProbeIndex) + state_AxsProbeActualValuesReqStart(builder) + state_AxsProbeActualValuesReqAddObjName(builder, objNameOffset) + state_AxsProbeActualValuesReqAddProbeIndex(builder, probeIndexOffset) + return state_AxsProbeActualValuesReqEnd(builder) +} + +func (rcv *state_AxsProbeActualValuesReq) UnPackTo(t *state_AxsProbeActualValuesReqT) { + t.ObjName = string(rcv.ObjName()) + t.ProbeIndex = string(rcv.ProbeIndex()) +} + +func (rcv *state_AxsProbeActualValuesReq) UnPack() *state_AxsProbeActualValuesReqT { + if rcv == nil { return nil } + t := &state_AxsProbeActualValuesReqT{} + rcv.UnPackTo(t) + return t +} + +type state_AxsProbeActualValuesReq struct { + _tab flatbuffers.Table +} + +func GetRootAsstate_AxsProbeActualValuesReq(buf []byte, offset flatbuffers.UOffsetT) *state_AxsProbeActualValuesReq { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &state_AxsProbeActualValuesReq{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsstate_AxsProbeActualValuesReq(buf []byte, offset flatbuffers.UOffsetT) *state_AxsProbeActualValuesReq { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &state_AxsProbeActualValuesReq{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *state_AxsProbeActualValuesReq) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *state_AxsProbeActualValuesReq) Table() flatbuffers.Table { + return rcv._tab +} + +/// probe object name +func (rcv *state_AxsProbeActualValuesReq) ObjName() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// probe object name +/// probe index +func (rcv *state_AxsProbeActualValuesReq) ProbeIndex() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// probe index +func state_AxsProbeActualValuesReqStart(builder *flatbuffers.Builder) { + builder.StartObject(2) +} +func state_AxsProbeActualValuesReqAddObjName(builder *flatbuffers.Builder, objName flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(objName), 0) +} +func state_AxsProbeActualValuesReqAddProbeIndex(builder *flatbuffers.Builder, probeIndex flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(probeIndex), 0) +} +func state_AxsProbeActualValuesReqEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/script/manager/fbtypes/state_AxsProbeActualValuesResp.go b/pkg/fbs/script/manager/fbtypes/state_AxsProbeActualValuesResp.go new file mode 100644 index 0000000..3f2eef1 --- /dev/null +++ b/pkg/fbs/script/manager/fbtypes/state_AxsProbeActualValuesResp.go @@ -0,0 +1,238 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package fbtypes + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +/// currently the actual values of the probe +type state_AxsProbeActualValuesRespT struct { + Valid bool + PosEdgeValue float64 + NegEdgeValue float64 + DifferValue float64 + DiffCount uint32 + PosEdgeCount uint32 + NegEdgeCount uint32 + MarksEdgeCount uint32 + Status string +} + +func (t *state_AxsProbeActualValuesRespT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + statusOffset := builder.CreateString(t.Status) + state_AxsProbeActualValuesRespStart(builder) + state_AxsProbeActualValuesRespAddValid(builder, t.Valid) + state_AxsProbeActualValuesRespAddPosEdgeValue(builder, t.PosEdgeValue) + state_AxsProbeActualValuesRespAddNegEdgeValue(builder, t.NegEdgeValue) + state_AxsProbeActualValuesRespAddDifferValue(builder, t.DifferValue) + state_AxsProbeActualValuesRespAddDiffCount(builder, t.DiffCount) + state_AxsProbeActualValuesRespAddPosEdgeCount(builder, t.PosEdgeCount) + state_AxsProbeActualValuesRespAddNegEdgeCount(builder, t.NegEdgeCount) + state_AxsProbeActualValuesRespAddMarksEdgeCount(builder, t.MarksEdgeCount) + state_AxsProbeActualValuesRespAddStatus(builder, statusOffset) + return state_AxsProbeActualValuesRespEnd(builder) +} + +func (rcv *state_AxsProbeActualValuesResp) UnPackTo(t *state_AxsProbeActualValuesRespT) { + t.Valid = rcv.Valid() + t.PosEdgeValue = rcv.PosEdgeValue() + t.NegEdgeValue = rcv.NegEdgeValue() + t.DifferValue = rcv.DifferValue() + t.DiffCount = rcv.DiffCount() + t.PosEdgeCount = rcv.PosEdgeCount() + t.NegEdgeCount = rcv.NegEdgeCount() + t.MarksEdgeCount = rcv.MarksEdgeCount() + t.Status = string(rcv.Status()) +} + +func (rcv *state_AxsProbeActualValuesResp) UnPack() *state_AxsProbeActualValuesRespT { + if rcv == nil { return nil } + t := &state_AxsProbeActualValuesRespT{} + rcv.UnPackTo(t) + return t +} + +type state_AxsProbeActualValuesResp struct { + _tab flatbuffers.Table +} + +func GetRootAsstate_AxsProbeActualValuesResp(buf []byte, offset flatbuffers.UOffsetT) *state_AxsProbeActualValuesResp { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &state_AxsProbeActualValuesResp{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsstate_AxsProbeActualValuesResp(buf []byte, offset flatbuffers.UOffsetT) *state_AxsProbeActualValuesResp { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &state_AxsProbeActualValuesResp{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *state_AxsProbeActualValuesResp) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *state_AxsProbeActualValuesResp) Table() flatbuffers.Table { + return rcv._tab +} + +/// currently the data of vaild +func (rcv *state_AxsProbeActualValuesResp) Valid() bool { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetBool(o + rcv._tab.Pos) + } + return false +} + +/// currently the data of vaild +func (rcv *state_AxsProbeActualValuesResp) MutateValid(n bool) bool { + return rcv._tab.MutateBoolSlot(4, n) +} + +/// currently positive edge value +func (rcv *state_AxsProbeActualValuesResp) PosEdgeValue() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently positive edge value +func (rcv *state_AxsProbeActualValuesResp) MutatePosEdgeValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(6, n) +} + +/// currently negative edge value +func (rcv *state_AxsProbeActualValuesResp) NegEdgeValue() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently negative edge value +func (rcv *state_AxsProbeActualValuesResp) MutateNegEdgeValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(8, n) +} + +/// currently difference of probe values +func (rcv *state_AxsProbeActualValuesResp) DifferValue() float64 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetFloat64(o + rcv._tab.Pos) + } + return 0.0 +} + +/// currently difference of probe values +func (rcv *state_AxsProbeActualValuesResp) MutateDifferValue(n float64) bool { + return rcv._tab.MutateFloat64Slot(10, n) +} + +/// currently difference count +func (rcv *state_AxsProbeActualValuesResp) DiffCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently difference count +func (rcv *state_AxsProbeActualValuesResp) MutateDiffCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +/// currently positive edge count +func (rcv *state_AxsProbeActualValuesResp) PosEdgeCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently positive edge count +func (rcv *state_AxsProbeActualValuesResp) MutatePosEdgeCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(14, n) +} + +/// currently negative edge count +func (rcv *state_AxsProbeActualValuesResp) NegEdgeCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently negative edge count +func (rcv *state_AxsProbeActualValuesResp) MutateNegEdgeCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(16, n) +} + +/// currently marks edge count +func (rcv *state_AxsProbeActualValuesResp) MarksEdgeCount() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +/// currently marks edge count +func (rcv *state_AxsProbeActualValuesResp) MutateMarksEdgeCount(n uint32) bool { + return rcv._tab.MutateUint32Slot(18, n) +} + +/// currently probe status +func (rcv *state_AxsProbeActualValuesResp) Status() []byte { + o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) + if o != 0 { + return rcv._tab.ByteVector(o + rcv._tab.Pos) + } + return nil +} + +/// currently probe status +func state_AxsProbeActualValuesRespStart(builder *flatbuffers.Builder) { + builder.StartObject(9) +} +func state_AxsProbeActualValuesRespAddValid(builder *flatbuffers.Builder, valid bool) { + builder.PrependBoolSlot(0, valid, false) +} +func state_AxsProbeActualValuesRespAddPosEdgeValue(builder *flatbuffers.Builder, posEdgeValue float64) { + builder.PrependFloat64Slot(1, posEdgeValue, 0.0) +} +func state_AxsProbeActualValuesRespAddNegEdgeValue(builder *flatbuffers.Builder, negEdgeValue float64) { + builder.PrependFloat64Slot(2, negEdgeValue, 0.0) +} +func state_AxsProbeActualValuesRespAddDifferValue(builder *flatbuffers.Builder, differValue float64) { + builder.PrependFloat64Slot(3, differValue, 0.0) +} +func state_AxsProbeActualValuesRespAddDiffCount(builder *flatbuffers.Builder, diffCount uint32) { + builder.PrependUint32Slot(4, diffCount, 0) +} +func state_AxsProbeActualValuesRespAddPosEdgeCount(builder *flatbuffers.Builder, posEdgeCount uint32) { + builder.PrependUint32Slot(5, posEdgeCount, 0) +} +func state_AxsProbeActualValuesRespAddNegEdgeCount(builder *flatbuffers.Builder, negEdgeCount uint32) { + builder.PrependUint32Slot(6, negEdgeCount, 0) +} +func state_AxsProbeActualValuesRespAddMarksEdgeCount(builder *flatbuffers.Builder, marksEdgeCount uint32) { + builder.PrependUint32Slot(7, marksEdgeCount, 0) +} +func state_AxsProbeActualValuesRespAddStatus(builder *flatbuffers.Builder, status flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(8, flatbuffers.UOffsetT(status), 0) +} +func state_AxsProbeActualValuesRespEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/web/automation/Settings.go b/pkg/fbs/web/automation/Settings.go new file mode 100644 index 0000000..fa5d6d8 --- /dev/null +++ b/pkg/fbs/web/automation/Settings.go @@ -0,0 +1,80 @@ +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package automation + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type SettingsT struct { + Timeout uint32 +} + +func (t *SettingsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + SettingsStart(builder) + SettingsAddTimeout(builder, t.Timeout) + return SettingsEnd(builder) +} + +func (rcv *Settings) UnPackTo(t *SettingsT) { + t.Timeout = rcv.Timeout() +} + +func (rcv *Settings) UnPack() *SettingsT { + if rcv == nil { return nil } + t := &SettingsT{} + rcv.UnPackTo(t) + return t +} + +type Settings struct { + _tab flatbuffers.Table +} + +func GetRootAsSettings(buf []byte, offset flatbuffers.UOffsetT) *Settings { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Settings{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsSettings(buf []byte, offset flatbuffers.UOffsetT) *Settings { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Settings{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Settings) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Settings) Table() flatbuffers.Table { + return rcv._tab +} + +/// Timeout for datalayer request of webserver in milliseconds +func (rcv *Settings) Timeout() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 3000 +} + +/// Timeout for datalayer request of webserver in milliseconds +func (rcv *Settings) MutateTimeout(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func SettingsStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func SettingsAddTimeout(builder *flatbuffers.Builder, timeout uint32) { + builder.PrependUint32Slot(0, timeout, 3000) +} +func SettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/web/automation/Stats.go b/pkg/fbs/web/automation/Stats.go index ff5c626..afea304 100644 --- a/pkg/fbs/web/automation/Stats.go +++ b/pkg/fbs/web/automation/Stats.go @@ -1,156 +1,156 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package automation - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StatsT struct { - Sse *StatsSSET - DlClient *StatsDlClientT - Restbed *StatsRestbedT - RequestsV1 uint32 - RequestsV2 uint32 -} - -func (t *StatsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - sseOffset := t.Sse.Pack(builder) - dlClientOffset := t.DlClient.Pack(builder) - restbedOffset := t.Restbed.Pack(builder) - StatsStart(builder) - StatsAddSse(builder, sseOffset) - StatsAddDlClient(builder, dlClientOffset) - StatsAddRestbed(builder, restbedOffset) - StatsAddRequestsV1(builder, t.RequestsV1) - StatsAddRequestsV2(builder, t.RequestsV2) - return StatsEnd(builder) -} - -func (rcv *Stats) UnPackTo(t *StatsT) { - t.Sse = rcv.Sse(nil).UnPack() - t.DlClient = rcv.DlClient(nil).UnPack() - t.Restbed = rcv.Restbed(nil).UnPack() - t.RequestsV1 = rcv.RequestsV1() - t.RequestsV2 = rcv.RequestsV2() -} - -func (rcv *Stats) UnPack() *StatsT { - if rcv == nil { return nil } - t := &StatsT{} - rcv.UnPackTo(t) - return t -} - -type Stats struct { - _tab flatbuffers.Table -} - -func GetRootAsStats(buf []byte, offset flatbuffers.UOffsetT) *Stats { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &Stats{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStats(buf []byte, offset flatbuffers.UOffsetT) *Stats { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &Stats{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *Stats) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *Stats) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *Stats) Sse(obj *StatsSSE) *StatsSSE { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(StatsSSE) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Stats) DlClient(obj *StatsDlClient) *StatsDlClient { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(StatsDlClient) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Stats) Restbed(obj *StatsRestbed) *StatsRestbed { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - x := rcv._tab.Indirect(o + rcv._tab.Pos) - if obj == nil { - obj = new(StatsRestbed) - } - obj.Init(rcv._tab.Bytes, x) - return obj - } - return nil -} - -func (rcv *Stats) RequestsV1() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Stats) MutateRequestsV1(n uint32) bool { - return rcv._tab.MutateUint32Slot(10, n) -} - -func (rcv *Stats) RequestsV2() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *Stats) MutateRequestsV2(n uint32) bool { - return rcv._tab.MutateUint32Slot(12, n) -} - -func StatsStart(builder *flatbuffers.Builder) { - builder.StartObject(5) -} -func StatsAddSse(builder *flatbuffers.Builder, sse flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(sse), 0) -} -func StatsAddDlClient(builder *flatbuffers.Builder, dlClient flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dlClient), 0) -} -func StatsAddRestbed(builder *flatbuffers.Builder, restbed flatbuffers.UOffsetT) { - builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(restbed), 0) -} -func StatsAddRequestsV1(builder *flatbuffers.Builder, requestsV1 uint32) { - builder.PrependUint32Slot(3, requestsV1, 0) -} -func StatsAddRequestsV2(builder *flatbuffers.Builder, requestsV2 uint32) { - builder.PrependUint32Slot(4, requestsV2, 0) -} -func StatsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package automation + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StatsT struct { + Sse *StatsSSET + DlClient *StatsDlClientT + Restbed *StatsRestbedT + RequestsV1 uint32 + RequestsV2 uint32 +} + +func (t *StatsT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + sseOffset := t.Sse.Pack(builder) + dlClientOffset := t.DlClient.Pack(builder) + restbedOffset := t.Restbed.Pack(builder) + StatsStart(builder) + StatsAddSse(builder, sseOffset) + StatsAddDlClient(builder, dlClientOffset) + StatsAddRestbed(builder, restbedOffset) + StatsAddRequestsV1(builder, t.RequestsV1) + StatsAddRequestsV2(builder, t.RequestsV2) + return StatsEnd(builder) +} + +func (rcv *Stats) UnPackTo(t *StatsT) { + t.Sse = rcv.Sse(nil).UnPack() + t.DlClient = rcv.DlClient(nil).UnPack() + t.Restbed = rcv.Restbed(nil).UnPack() + t.RequestsV1 = rcv.RequestsV1() + t.RequestsV2 = rcv.RequestsV2() +} + +func (rcv *Stats) UnPack() *StatsT { + if rcv == nil { return nil } + t := &StatsT{} + rcv.UnPackTo(t) + return t +} + +type Stats struct { + _tab flatbuffers.Table +} + +func GetRootAsStats(buf []byte, offset flatbuffers.UOffsetT) *Stats { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &Stats{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStats(buf []byte, offset flatbuffers.UOffsetT) *Stats { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &Stats{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *Stats) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *Stats) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *Stats) Sse(obj *StatsSSE) *StatsSSE { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(StatsSSE) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Stats) DlClient(obj *StatsDlClient) *StatsDlClient { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(StatsDlClient) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Stats) Restbed(obj *StatsRestbed) *StatsRestbed { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + x := rcv._tab.Indirect(o + rcv._tab.Pos) + if obj == nil { + obj = new(StatsRestbed) + } + obj.Init(rcv._tab.Bytes, x) + return obj + } + return nil +} + +func (rcv *Stats) RequestsV1() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Stats) MutateRequestsV1(n uint32) bool { + return rcv._tab.MutateUint32Slot(10, n) +} + +func (rcv *Stats) RequestsV2() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *Stats) MutateRequestsV2(n uint32) bool { + return rcv._tab.MutateUint32Slot(12, n) +} + +func StatsStart(builder *flatbuffers.Builder) { + builder.StartObject(5) +} +func StatsAddSse(builder *flatbuffers.Builder, sse flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(sse), 0) +} +func StatsAddDlClient(builder *flatbuffers.Builder, dlClient flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dlClient), 0) +} +func StatsAddRestbed(builder *flatbuffers.Builder, restbed flatbuffers.UOffsetT) { + builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(restbed), 0) +} +func StatsAddRequestsV1(builder *flatbuffers.Builder, requestsV1 uint32) { + builder.PrependUint32Slot(3, requestsV1, 0) +} +func StatsAddRequestsV2(builder *flatbuffers.Builder, requestsV2 uint32) { + builder.PrependUint32Slot(4, requestsV2, 0) +} +func StatsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/web/automation/StatsDlClient.go b/pkg/fbs/web/automation/StatsDlClient.go index 9989680..bab67c3 100644 --- a/pkg/fbs/web/automation/StatsDlClient.go +++ b/pkg/fbs/web/automation/StatsDlClient.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package automation - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StatsDlClientT struct { - Converter uint32 -} - -func (t *StatsDlClientT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StatsDlClientStart(builder) - StatsDlClientAddConverter(builder, t.Converter) - return StatsDlClientEnd(builder) -} - -func (rcv *StatsDlClient) UnPackTo(t *StatsDlClientT) { - t.Converter = rcv.Converter() -} - -func (rcv *StatsDlClient) UnPack() *StatsDlClientT { - if rcv == nil { return nil } - t := &StatsDlClientT{} - rcv.UnPackTo(t) - return t -} - -type StatsDlClient struct { - _tab flatbuffers.Table -} - -func GetRootAsStatsDlClient(buf []byte, offset flatbuffers.UOffsetT) *StatsDlClient { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StatsDlClient{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStatsDlClient(buf []byte, offset flatbuffers.UOffsetT) *StatsDlClient { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StatsDlClient{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StatsDlClient) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StatsDlClient) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StatsDlClient) Converter() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StatsDlClient) MutateConverter(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func StatsDlClientStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StatsDlClientAddConverter(builder *flatbuffers.Builder, converter uint32) { - builder.PrependUint32Slot(0, converter, 0) -} -func StatsDlClientEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package automation + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StatsDlClientT struct { + Converter uint32 +} + +func (t *StatsDlClientT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StatsDlClientStart(builder) + StatsDlClientAddConverter(builder, t.Converter) + return StatsDlClientEnd(builder) +} + +func (rcv *StatsDlClient) UnPackTo(t *StatsDlClientT) { + t.Converter = rcv.Converter() +} + +func (rcv *StatsDlClient) UnPack() *StatsDlClientT { + if rcv == nil { return nil } + t := &StatsDlClientT{} + rcv.UnPackTo(t) + return t +} + +type StatsDlClient struct { + _tab flatbuffers.Table +} + +func GetRootAsStatsDlClient(buf []byte, offset flatbuffers.UOffsetT) *StatsDlClient { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StatsDlClient{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStatsDlClient(buf []byte, offset flatbuffers.UOffsetT) *StatsDlClient { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StatsDlClient{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StatsDlClient) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StatsDlClient) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *StatsDlClient) Converter() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StatsDlClient) MutateConverter(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func StatsDlClientStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StatsDlClientAddConverter(builder *flatbuffers.Builder, converter uint32) { + builder.PrependUint32Slot(0, converter, 0) +} +func StatsDlClientEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/web/automation/StatsRestbed.go b/pkg/fbs/web/automation/StatsRestbed.go index 629a6c2..576d762 100644 --- a/pkg/fbs/web/automation/StatsRestbed.go +++ b/pkg/fbs/web/automation/StatsRestbed.go @@ -1,78 +1,78 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package automation - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StatsRestbedT struct { - OpenSessions uint32 -} - -func (t *StatsRestbedT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StatsRestbedStart(builder) - StatsRestbedAddOpenSessions(builder, t.OpenSessions) - return StatsRestbedEnd(builder) -} - -func (rcv *StatsRestbed) UnPackTo(t *StatsRestbedT) { - t.OpenSessions = rcv.OpenSessions() -} - -func (rcv *StatsRestbed) UnPack() *StatsRestbedT { - if rcv == nil { return nil } - t := &StatsRestbedT{} - rcv.UnPackTo(t) - return t -} - -type StatsRestbed struct { - _tab flatbuffers.Table -} - -func GetRootAsStatsRestbed(buf []byte, offset flatbuffers.UOffsetT) *StatsRestbed { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StatsRestbed{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStatsRestbed(buf []byte, offset flatbuffers.UOffsetT) *StatsRestbed { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StatsRestbed{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StatsRestbed) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StatsRestbed) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StatsRestbed) OpenSessions() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StatsRestbed) MutateOpenSessions(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func StatsRestbedStart(builder *flatbuffers.Builder) { - builder.StartObject(1) -} -func StatsRestbedAddOpenSessions(builder *flatbuffers.Builder, openSessions uint32) { - builder.PrependUint32Slot(0, openSessions, 0) -} -func StatsRestbedEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package automation + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StatsRestbedT struct { + OpenSessions uint32 +} + +func (t *StatsRestbedT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StatsRestbedStart(builder) + StatsRestbedAddOpenSessions(builder, t.OpenSessions) + return StatsRestbedEnd(builder) +} + +func (rcv *StatsRestbed) UnPackTo(t *StatsRestbedT) { + t.OpenSessions = rcv.OpenSessions() +} + +func (rcv *StatsRestbed) UnPack() *StatsRestbedT { + if rcv == nil { return nil } + t := &StatsRestbedT{} + rcv.UnPackTo(t) + return t +} + +type StatsRestbed struct { + _tab flatbuffers.Table +} + +func GetRootAsStatsRestbed(buf []byte, offset flatbuffers.UOffsetT) *StatsRestbed { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StatsRestbed{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStatsRestbed(buf []byte, offset flatbuffers.UOffsetT) *StatsRestbed { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StatsRestbed{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StatsRestbed) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StatsRestbed) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *StatsRestbed) OpenSessions() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StatsRestbed) MutateOpenSessions(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func StatsRestbedStart(builder *flatbuffers.Builder) { + builder.StartObject(1) +} +func StatsRestbedAddOpenSessions(builder *flatbuffers.Builder, openSessions uint32) { + builder.PrependUint32Slot(0, openSessions, 0) +} +func StatsRestbedEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +} diff --git a/pkg/fbs/web/automation/StatsSSE.go b/pkg/fbs/web/automation/StatsSSE.go index b04f5f1..84f10d7 100644 --- a/pkg/fbs/web/automation/StatsSSE.go +++ b/pkg/fbs/web/automation/StatsSSE.go @@ -1,114 +1,114 @@ -// Code generated by the FlatBuffers compiler. DO NOT EDIT. - -package automation - -import ( - flatbuffers "github.com/google/flatbuffers/go" -) - -type StatsSSET struct { - OpenSubscriptions uint32 - OpenSSE uint32 - RequestsSSE uint32 -} - -func (t *StatsSSET) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - if t == nil { return 0 } - StatsSSEStart(builder) - StatsSSEAddOpenSubscriptions(builder, t.OpenSubscriptions) - StatsSSEAddOpenSSE(builder, t.OpenSSE) - StatsSSEAddRequestsSSE(builder, t.RequestsSSE) - return StatsSSEEnd(builder) -} - -func (rcv *StatsSSE) UnPackTo(t *StatsSSET) { - t.OpenSubscriptions = rcv.OpenSubscriptions() - t.OpenSSE = rcv.OpenSSE() - t.RequestsSSE = rcv.RequestsSSE() -} - -func (rcv *StatsSSE) UnPack() *StatsSSET { - if rcv == nil { return nil } - t := &StatsSSET{} - rcv.UnPackTo(t) - return t -} - -type StatsSSE struct { - _tab flatbuffers.Table -} - -func GetRootAsStatsSSE(buf []byte, offset flatbuffers.UOffsetT) *StatsSSE { - n := flatbuffers.GetUOffsetT(buf[offset:]) - x := &StatsSSE{} - x.Init(buf, n+offset) - return x -} - -func GetSizePrefixedRootAsStatsSSE(buf []byte, offset flatbuffers.UOffsetT) *StatsSSE { - n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) - x := &StatsSSE{} - x.Init(buf, n+offset+flatbuffers.SizeUint32) - return x -} - -func (rcv *StatsSSE) Init(buf []byte, i flatbuffers.UOffsetT) { - rcv._tab.Bytes = buf - rcv._tab.Pos = i -} - -func (rcv *StatsSSE) Table() flatbuffers.Table { - return rcv._tab -} - -func (rcv *StatsSSE) OpenSubscriptions() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StatsSSE) MutateOpenSubscriptions(n uint32) bool { - return rcv._tab.MutateUint32Slot(4, n) -} - -func (rcv *StatsSSE) OpenSSE() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StatsSSE) MutateOpenSSE(n uint32) bool { - return rcv._tab.MutateUint32Slot(6, n) -} - -func (rcv *StatsSSE) RequestsSSE() uint32 { - o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) - if o != 0 { - return rcv._tab.GetUint32(o + rcv._tab.Pos) - } - return 0 -} - -func (rcv *StatsSSE) MutateRequestsSSE(n uint32) bool { - return rcv._tab.MutateUint32Slot(8, n) -} - -func StatsSSEStart(builder *flatbuffers.Builder) { - builder.StartObject(3) -} -func StatsSSEAddOpenSubscriptions(builder *flatbuffers.Builder, openSubscriptions uint32) { - builder.PrependUint32Slot(0, openSubscriptions, 0) -} -func StatsSSEAddOpenSSE(builder *flatbuffers.Builder, openSSE uint32) { - builder.PrependUint32Slot(1, openSSE, 0) -} -func StatsSSEAddRequestsSSE(builder *flatbuffers.Builder, requestsSSE uint32) { - builder.PrependUint32Slot(2, requestsSSE, 0) -} -func StatsSSEEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { - return builder.EndObject() -} +// Code generated by the FlatBuffers compiler. DO NOT EDIT. + +package automation + +import ( + flatbuffers "github.com/google/flatbuffers/go" +) + +type StatsSSET struct { + OpenSubscriptions uint32 + OpenSSE uint32 + RequestsSSE uint32 +} + +func (t *StatsSSET) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + if t == nil { return 0 } + StatsSSEStart(builder) + StatsSSEAddOpenSubscriptions(builder, t.OpenSubscriptions) + StatsSSEAddOpenSSE(builder, t.OpenSSE) + StatsSSEAddRequestsSSE(builder, t.RequestsSSE) + return StatsSSEEnd(builder) +} + +func (rcv *StatsSSE) UnPackTo(t *StatsSSET) { + t.OpenSubscriptions = rcv.OpenSubscriptions() + t.OpenSSE = rcv.OpenSSE() + t.RequestsSSE = rcv.RequestsSSE() +} + +func (rcv *StatsSSE) UnPack() *StatsSSET { + if rcv == nil { return nil } + t := &StatsSSET{} + rcv.UnPackTo(t) + return t +} + +type StatsSSE struct { + _tab flatbuffers.Table +} + +func GetRootAsStatsSSE(buf []byte, offset flatbuffers.UOffsetT) *StatsSSE { + n := flatbuffers.GetUOffsetT(buf[offset:]) + x := &StatsSSE{} + x.Init(buf, n+offset) + return x +} + +func GetSizePrefixedRootAsStatsSSE(buf []byte, offset flatbuffers.UOffsetT) *StatsSSE { + n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) + x := &StatsSSE{} + x.Init(buf, n+offset+flatbuffers.SizeUint32) + return x +} + +func (rcv *StatsSSE) Init(buf []byte, i flatbuffers.UOffsetT) { + rcv._tab.Bytes = buf + rcv._tab.Pos = i +} + +func (rcv *StatsSSE) Table() flatbuffers.Table { + return rcv._tab +} + +func (rcv *StatsSSE) OpenSubscriptions() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StatsSSE) MutateOpenSubscriptions(n uint32) bool { + return rcv._tab.MutateUint32Slot(4, n) +} + +func (rcv *StatsSSE) OpenSSE() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StatsSSE) MutateOpenSSE(n uint32) bool { + return rcv._tab.MutateUint32Slot(6, n) +} + +func (rcv *StatsSSE) RequestsSSE() uint32 { + o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) + if o != 0 { + return rcv._tab.GetUint32(o + rcv._tab.Pos) + } + return 0 +} + +func (rcv *StatsSSE) MutateRequestsSSE(n uint32) bool { + return rcv._tab.MutateUint32Slot(8, n) +} + +func StatsSSEStart(builder *flatbuffers.Builder) { + builder.StartObject(3) +} +func StatsSSEAddOpenSubscriptions(builder *flatbuffers.Builder, openSubscriptions uint32) { + builder.PrependUint32Slot(0, openSubscriptions, 0) +} +func StatsSSEAddOpenSSE(builder *flatbuffers.Builder, openSSE uint32) { + builder.PrependUint32Slot(1, openSSE, 0) +} +func StatsSSEAddRequestsSSE(builder *flatbuffers.Builder, requestsSSE uint32) { + builder.PrependUint32Slot(2, requestsSSE, 0) +} +func StatsSSEEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { + return builder.EndObject() +}