Austin Schuh | 2dd86a9 | 2022-09-14 21:19:23 -0700 | [diff] [blame^] | 1 | // automatically generated by the FlatBuffers compiler, do not modify |
| 2 | export class Rapunzel { |
| 3 | constructor() { |
| 4 | this.bb = null; |
| 5 | this.bb_pos = 0; |
| 6 | } |
| 7 | __init(i, bb) { |
| 8 | this.bb_pos = i; |
| 9 | this.bb = bb; |
| 10 | return this; |
| 11 | } |
| 12 | hairLength() { |
| 13 | return this.bb.readInt32(this.bb_pos); |
| 14 | } |
| 15 | mutate_hair_length(value) { |
| 16 | this.bb.writeInt32(this.bb_pos + 0, value); |
| 17 | return true; |
| 18 | } |
| 19 | static getFullyQualifiedName() { |
| 20 | return 'Rapunzel'; |
| 21 | } |
| 22 | static sizeOf() { |
| 23 | return 4; |
| 24 | } |
| 25 | static createRapunzel(builder, hair_length) { |
| 26 | builder.prep(4, 4); |
| 27 | builder.writeInt32(hair_length); |
| 28 | return builder.offset(); |
| 29 | } |
| 30 | unpack() { |
| 31 | return new RapunzelT(this.hairLength()); |
| 32 | } |
| 33 | unpackTo(_o) { |
| 34 | _o.hairLength = this.hairLength(); |
| 35 | } |
| 36 | } |
| 37 | export class RapunzelT { |
| 38 | constructor(hairLength = 0) { |
| 39 | this.hairLength = hairLength; |
| 40 | } |
| 41 | pack(builder) { |
| 42 | return Rapunzel.createRapunzel(builder, this.hairLength); |
| 43 | } |
| 44 | } |