1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 import com.google.flatbuffers.BaseVector; 4 import com.google.flatbuffers.BooleanVector; 5 import com.google.flatbuffers.ByteVector; 6 import com.google.flatbuffers.Constants; 7 import com.google.flatbuffers.DoubleVector; 8 import com.google.flatbuffers.FlatBufferBuilder; 9 import com.google.flatbuffers.FloatVector; 10 import com.google.flatbuffers.IntVector; 11 import com.google.flatbuffers.LongVector; 12 import com.google.flatbuffers.ShortVector; 13 import com.google.flatbuffers.StringVector; 14 import com.google.flatbuffers.Struct; 15 import com.google.flatbuffers.Table; 16 import com.google.flatbuffers.UnionVector; 17 import java.nio.ByteBuffer; 18 import java.nio.ByteOrder; 19 20 @SuppressWarnings("unused") 21 public final class HandFan extends Table { ValidateVersion()22 public static void ValidateVersion() { Constants.FLATBUFFERS_25_1_24(); } getRootAsHandFan(ByteBuffer _bb)23 public static HandFan getRootAsHandFan(ByteBuffer _bb) { return getRootAsHandFan(_bb, new HandFan()); } getRootAsHandFan(ByteBuffer _bb, HandFan obj)24 public static HandFan getRootAsHandFan(ByteBuffer _bb, HandFan obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } __init(int _i, ByteBuffer _bb)25 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); } __assign(int _i, ByteBuffer _bb)26 public HandFan __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 27 length()28 public int length() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } mutateLength(int length)29 public boolean mutateLength(int length) { int o = __offset(4); if (o != 0) { bb.putInt(o + bb_pos, length); return true; } else { return false; } } 30 createHandFan(FlatBufferBuilder builder, int length)31 public static int createHandFan(FlatBufferBuilder builder, 32 int length) { 33 builder.startTable(1); 34 HandFan.addLength(builder, length); 35 return HandFan.endHandFan(builder); 36 } 37 startHandFan(FlatBufferBuilder builder)38 public static void startHandFan(FlatBufferBuilder builder) { builder.startTable(1); } addLength(FlatBufferBuilder builder, int length)39 public static void addLength(FlatBufferBuilder builder, int length) { builder.addInt(0, length, 0); } endHandFan(FlatBufferBuilder builder)40 public static int endHandFan(FlatBufferBuilder builder) { 41 int o = builder.endTable(); 42 return o; 43 } 44 45 public static final class Vector extends BaseVector { __assign(int _vector, int _element_size, ByteBuffer _bb)46 public Vector __assign(int _vector, int _element_size, ByteBuffer _bb) { __reset(_vector, _element_size, _bb); return this; } 47 get(int j)48 public HandFan get(int j) { return get(new HandFan(), j); } get(HandFan obj, int j)49 public HandFan get(HandFan obj, int j) { return obj.__assign(__indirect(__element(j), bb), bb); } 50 } unpack()51 public HandFanT unpack() { 52 HandFanT _o = new HandFanT(); 53 unpackTo(_o); 54 return _o; 55 } unpackTo(HandFanT _o)56 public void unpackTo(HandFanT _o) { 57 int _oLength = length(); 58 _o.setLength(_oLength); 59 } pack(FlatBufferBuilder builder, HandFanT _o)60 public static int pack(FlatBufferBuilder builder, HandFanT _o) { 61 if (_o == null) return 0; 62 return createHandFan( 63 builder, 64 _o.getLength()); 65 } 66 } 67 68