예제 #1
0
 public static Offset <DmxDevice> CreateDmxDevice(FlatBufferBuilder builder,
                                                  StringOffset nameOffset = default(StringOffset),
                                                  bool disabled           = false,
                                                  bool testMode           = false,
                                                  uint channelCount       = 0,
                                                  uint settingCount       = 0)
 {
     builder.StartObject(5);
     DmxDevice.AddSettingCount(builder, settingCount);
     DmxDevice.AddChannelCount(builder, channelCount);
     DmxDevice.AddName(builder, nameOffset);
     DmxDevice.AddTestMode(builder, testMode);
     DmxDevice.AddDisabled(builder, disabled);
     return(DmxDevice.EndDmxDevice(builder));
 }
예제 #2
0
 public static DmxDevice GetRootAsDmxDevice(ByteBuffer _bb, DmxDevice obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }