blob: 21decca26f5af9a91f3bd3574833679b25fb18fd [file] [log] [blame]
Austin Schuh2dd86a92022-09-14 21:19:23 -07001// automatically generated by the FlatBuffers compiler, do not modify
2import * as flatbuffers from 'flatbuffers';
3export class HandFan {
4 constructor() {
5 this.bb = null;
6 this.bb_pos = 0;
7 }
8 __init(i, bb) {
9 this.bb_pos = i;
10 this.bb = bb;
11 return this;
12 }
13 static getRootAsHandFan(bb, obj) {
14 return (obj || new HandFan()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
15 }
16 static getSizePrefixedRootAsHandFan(bb, obj) {
17 bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
18 return (obj || new HandFan()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19 }
20 length() {
21 const offset = this.bb.__offset(this.bb_pos, 4);
22 return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
23 }
24 mutate_length(value) {
25 const offset = this.bb.__offset(this.bb_pos, 4);
26 if (offset === 0) {
27 return false;
28 }
29 this.bb.writeInt32(this.bb_pos + offset, value);
30 return true;
31 }
32 static getFullyQualifiedName() {
33 return 'HandFan';
34 }
35 static startHandFan(builder) {
36 builder.startObject(1);
37 }
38 static addLength(builder, length) {
39 builder.addFieldInt32(0, length, 0);
40 }
41 static endHandFan(builder) {
42 const offset = builder.endObject();
43 return offset;
44 }
45 static createHandFan(builder, length) {
46 HandFan.startHandFan(builder);
47 HandFan.addLength(builder, length);
48 return HandFan.endHandFan(builder);
49 }
50 unpack() {
51 return new HandFanT(this.length());
52 }
53 unpackTo(_o) {
54 _o.length = this.length();
55 }
56}
57export class HandFanT {
58 constructor(length = 0) {
59 this.length = length;
60 }
61 pack(builder) {
62 return HandFan.createHandFan(builder, this.length);
63 }
64}