James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame] | 1 | // automatically generated by the FlatBuffers compiler, do not modify |
| 2 | import * as flatbuffers from 'flatbuffers'; |
| 3 | export class InParentNamespace { |
| 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 getRootAsInParentNamespace(bb, obj) { |
| 14 | return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb); |
| 15 | } |
| 16 | static getSizePrefixedRootAsInParentNamespace(bb, obj) { |
| 17 | bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH); |
| 18 | return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb); |
| 19 | } |
| 20 | static getFullyQualifiedName() { |
| 21 | return 'MyGame.InParentNamespace'; |
| 22 | } |
| 23 | static startInParentNamespace(builder) { |
| 24 | builder.startObject(0); |
| 25 | } |
| 26 | static endInParentNamespace(builder) { |
| 27 | const offset = builder.endObject(); |
| 28 | return offset; |
| 29 | } |
| 30 | static createInParentNamespace(builder) { |
| 31 | InParentNamespace.startInParentNamespace(builder); |
| 32 | return InParentNamespace.endInParentNamespace(builder); |
| 33 | } |
| 34 | serialize() { |
| 35 | return this.bb.bytes(); |
| 36 | } |
| 37 | static deserialize(buffer) { |
| 38 | return InParentNamespace.getRootAsInParentNamespace(new flatbuffers.ByteBuffer(buffer)); |
| 39 | } |
| 40 | unpack() { |
| 41 | return new InParentNamespaceT(); |
| 42 | } |
| 43 | unpackTo(_o) { } |
| 44 | } |
| 45 | export class InParentNamespaceT { |
| 46 | constructor() { } |
| 47 | pack(builder) { |
| 48 | return InParentNamespace.createInParentNamespace(builder); |
| 49 | } |
| 50 | } |