-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathHIDAllReceiversCommandRequest.java
More file actions
59 lines (50 loc) · 2.89 KB
/
HIDAllReceiversCommandRequest.java
File metadata and controls
59 lines (50 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// automatically generated by the FlatBuffers compiler, do not modify
package solarxr_protocol.rpc;
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class HIDAllReceiversCommandRequest extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_22_10_26(); }
public static HIDAllReceiversCommandRequest getRootAsHIDAllReceiversCommandRequest(ByteBuffer _bb) { return getRootAsHIDAllReceiversCommandRequest(_bb, new HIDAllReceiversCommandRequest()); }
public static HIDAllReceiversCommandRequest getRootAsHIDAllReceiversCommandRequest(ByteBuffer _bb, HIDAllReceiversCommandRequest obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
public HIDAllReceiversCommandRequest __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public String command() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; }
public ByteBuffer commandAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
public ByteBuffer commandInByteBuffer(ByteBuffer _bb) { return __vector_in_bytebuffer(_bb, 4, 1); }
public static int createHIDAllReceiversCommandRequest(FlatBufferBuilder builder,
int commandOffset) {
builder.startTable(1);
HIDAllReceiversCommandRequest.addCommand(builder, commandOffset);
return HIDAllReceiversCommandRequest.endHIDAllReceiversCommandRequest(builder);
}
public static void startHIDAllReceiversCommandRequest(FlatBufferBuilder builder) { builder.startTable(1); }
public static void addCommand(FlatBufferBuilder builder, int commandOffset) { builder.addOffset(0, commandOffset, 0); }
public static int endHIDAllReceiversCommandRequest(FlatBufferBuilder builder) {
int o = builder.endTable();
return o;
}
public static final class Vector extends BaseVector {
public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; }
public HIDAllReceiversCommandRequest get(int j) { return get(new HIDAllReceiversCommandRequest(), j); }
public HIDAllReceiversCommandRequest get(HIDAllReceiversCommandRequest obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); }
}
public HIDAllReceiversCommandRequestT unpack() {
HIDAllReceiversCommandRequestT _o = new HIDAllReceiversCommandRequestT();
unpackTo(_o);
return _o;
}
public void unpackTo(HIDAllReceiversCommandRequestT _o) {
String _oCommand = command();
_o.setCommand(_oCommand);
}
public static int pack(FlatBufferBuilder builder, HIDAllReceiversCommandRequestT _o) {
if (_o == null) return 0;
int _command = _o.getCommand() == null ? 0 : builder.createString(_o.getCommand());
return createHIDAllReceiversCommandRequest(
builder,
_command);
}
}