blob: 852c061eb44f137ca1529f6866edf8f3a098c716 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3import java.nio.*;
4import java.lang.*;
5import java.util.*;
6import com.google.flatbuffers.*;
7
8@SuppressWarnings("unused")
9public final class Rapunzel extends Struct {
10 public void __init(int _i, ByteBuffer _bb) { __reset(_i, _bb); }
11 public Rapunzel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
12
13 public int hairLength() { return bb.getInt(bb_pos + 0); }
14 public void mutateHairLength(int hair_length) { bb.putInt(bb_pos + 0, hair_length); }
15
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