1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 import java.nio.*; 4 import java.lang.*; 5 import java.util.*; 6 import com.google.flatbuffers.*; 7 8 @SuppressWarnings("unused") 9 public final class Rapunzel extends Struct { __init(int _i, ByteBuffer _bb)10 public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } __assign(int _i, ByteBuffer _bb)11 public Rapunzel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } 12 hairLength()13 public int hairLength() { return bb.getInt(bb_pos + 0); } mutateHairLength(int hair_length)14 public void mutateHairLength(int hair_length) { bb.putInt(bb_pos + 0, hair_length); } 15 createRapunzel(FlatBufferBuilder builder, int hairLength)16 public static int createRapunzel(FlatBufferBuilder builder, int hairLength) { 17 builder.prep(4, 4); 18 builder.putInt(hairLength); 19 return builder.offset(); 20 } 21 } 22 23