• 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 C {
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 getRootAsC(bb, obj) {
15        return (obj || new C()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16    }
17    static getSizePrefixedRootAsC(bb, obj) {
18        bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
19        return (obj || new C()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
20    }
21    c() {
22        const offset = this.bb.__offset(this.bb_pos, 4);
23        return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
24    }
25    mutate_c(value) {
26        const offset = this.bb.__offset(this.bb_pos, 4);
27        if (offset === 0) {
28            return false;
29        }
30        this.bb.writeInt8(this.bb_pos + offset, +value);
31        return true;
32    }
33    static getFullyQualifiedName() {
34        return 'UnionUnderlyingType.C';
35    }
36    static startC(builder) {
37        builder.startObject(1);
38    }
39    static addC(builder, c) {
40        builder.addFieldInt8(0, +c, +false);
41    }
42    static endC(builder) {
43        const offset = builder.endObject();
44        return offset;
45    }
46    static createC(builder, c) {
47        C.startC(builder);
48        C.addC(builder, c);
49        return C.endC(builder);
50    }
51    unpack() {
52        return new CT(this.c());
53    }
54    unpackTo(_o) {
55        _o.c = this.c();
56    }
57}
58export class CT {
59    constructor(c = false) {
60        this.c = c;
61    }
62    pack(builder) {
63        return C.createC(builder, this.c);
64    }
65}
66