public static Offset <ButtplugFFI.RawWriteCmd> CreateRawWriteCmd(FlatBufferBuilder builder, Endpoint endpoint = Endpoint.Tx, VectorOffset dataOffset = default(VectorOffset), bool write_with_response = false) { builder.StartTable(3); RawWriteCmd.AddData(builder, dataOffset); RawWriteCmd.AddEndpoint(builder, endpoint); RawWriteCmd.AddWriteWithResponse(builder, write_with_response); return(RawWriteCmd.EndRawWriteCmd(builder)); }
public static RawWriteCmd GetRootAsRawWriteCmd(ByteBuffer _bb, RawWriteCmd obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }