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