public static Offset <ButtplugFFI.RawReadCmd> CreateRawReadCmd(FlatBufferBuilder builder,
                                                                Endpoint endpoint       = Endpoint.Tx,
                                                                VectorOffset dataOffset = default(VectorOffset),
                                                                uint expected_length    = 0,
                                                                uint timeout            = 0)
 {
     builder.StartTable(4);
     RawReadCmd.AddTimeout(builder, timeout);
     RawReadCmd.AddExpectedLength(builder, expected_length);
     RawReadCmd.AddData(builder, dataOffset);
     RawReadCmd.AddEndpoint(builder, endpoint);
     return(RawReadCmd.EndRawReadCmd(builder));
 }
 public static RawReadCmd GetRootAsRawReadCmd(ByteBuffer _bb, RawReadCmd obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }