Ejemplo n.º 1
0
 public static Offset <ButtplugFFI.DeviceMessage> CreateDeviceMessage(FlatBufferBuilder builder,
                                                                      uint id           = 0,
                                                                      uint device_index = 0,
                                                                      ButtplugFFI.DeviceMessageType message_type = ButtplugFFI.DeviceMessageType.NONE,
                                                                      int messageOffset = 0)
 {
     builder.StartTable(4);
     DeviceMessage.AddMessage(builder, messageOffset);
     DeviceMessage.AddDeviceIndex(builder, device_index);
     DeviceMessage.AddId(builder, id);
     DeviceMessage.AddMessageType(builder, message_type);
     return(DeviceMessage.EndDeviceMessage(builder));
 }
Ejemplo n.º 2
0
 public static DeviceMessage GetRootAsDeviceMessage(ByteBuffer _bb, DeviceMessage obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }