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)); }
public static DeviceMessage GetRootAsDeviceMessage(ByteBuffer _bb, DeviceMessage obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }