-
Notifications
You must be signed in to change notification settings - Fork 0
/
AxsCfgDynSynchronisation.go
83 lines (70 loc) · 2.48 KB
/
AxsCfgDynSynchronisation.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// 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()
}