Austin Schuh | 2dd86a9 | 2022-09-14 21:19:23 -0700 | [diff] [blame] | 1 | // automatically generated by the FlatBuffers compiler, do not modify |
| 2 | |
| 3 | import * as flatbuffers from 'flatbuffers'; |
| 4 | |
| 5 | |
| 6 | |
James Kuszmaul | 3b15b0c | 2022-11-08 14:03:16 -0800 | [diff] [blame^] | 7 | export class InParentNamespace implements flatbuffers.IUnpackableObject<InParentNamespaceT> { |
Austin Schuh | 2dd86a9 | 2022-09-14 21:19:23 -0700 | [diff] [blame] | 8 | bb: flatbuffers.ByteBuffer|null = null; |
| 9 | bb_pos = 0; |
| 10 | __init(i:number, bb:flatbuffers.ByteBuffer):InParentNamespace { |
| 11 | this.bb_pos = i; |
| 12 | this.bb = bb; |
| 13 | return this; |
| 14 | } |
| 15 | |
| 16 | static getRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:InParentNamespace):InParentNamespace { |
| 17 | return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb); |
| 18 | } |
| 19 | |
| 20 | static getSizePrefixedRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:InParentNamespace):InParentNamespace { |
| 21 | bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH); |
| 22 | return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb); |
| 23 | } |
| 24 | |
| 25 | static getFullyQualifiedName():string { |
| 26 | return 'MyGame_InParentNamespace'; |
| 27 | } |
| 28 | |
| 29 | static startInParentNamespace(builder:flatbuffers.Builder) { |
| 30 | builder.startObject(0); |
| 31 | } |
| 32 | |
| 33 | static endInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset { |
| 34 | const offset = builder.endObject(); |
| 35 | return offset; |
| 36 | } |
| 37 | |
| 38 | static createInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset { |
| 39 | InParentNamespace.startInParentNamespace(builder); |
| 40 | return InParentNamespace.endInParentNamespace(builder); |
| 41 | } |
| 42 | |
| 43 | serialize():Uint8Array { |
| 44 | return this.bb!.bytes(); |
| 45 | } |
| 46 | |
| 47 | static deserialize(buffer: Uint8Array):InParentNamespace { |
| 48 | return InParentNamespace.getRootAsInParentNamespace(new flatbuffers.ByteBuffer(buffer)) |
| 49 | } |
| 50 | |
| 51 | unpack(): InParentNamespaceT { |
| 52 | return new InParentNamespaceT(); |
| 53 | } |
| 54 | |
| 55 | |
| 56 | unpackTo(_o: InParentNamespaceT): void {} |
| 57 | } |
| 58 | |
James Kuszmaul | 3b15b0c | 2022-11-08 14:03:16 -0800 | [diff] [blame^] | 59 | export class InParentNamespaceT implements flatbuffers.IGeneratedObject { |
Austin Schuh | 2dd86a9 | 2022-09-14 21:19:23 -0700 | [diff] [blame] | 60 | constructor(){} |
| 61 | |
| 62 | |
| 63 | pack(builder:flatbuffers.Builder): flatbuffers.Offset { |
| 64 | return InParentNamespace.createInParentNamespace(builder); |
| 65 | } |
| 66 | } |