1// automatically generated by the FlatBuffers compiler, do not modify 2 3import * as flatbuffers from 'flatbuffers'; 4 5 6 7export class InParentNamespace { 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 16static getRootAsInParentNamespace(bb:flatbuffers.ByteBuffer, obj?:InParentNamespace):InParentNamespace { 17 return (obj || new InParentNamespace()).__init(bb.readInt32(bb.position()) + bb.position(), bb); 18} 19 20static 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 25static getFullyQualifiedName():string { 26 return 'MyGame.InParentNamespace'; 27} 28 29static startInParentNamespace(builder:flatbuffers.Builder) { 30 builder.startObject(0); 31} 32 33static endInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset { 34 const offset = builder.endObject(); 35 return offset; 36} 37 38static createInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset { 39 InParentNamespace.startInParentNamespace(builder); 40 return InParentNamespace.endInParentNamespace(builder); 41} 42 43serialize():Uint8Array { 44 return this.bb!.bytes(); 45} 46 47static deserialize(buffer: Uint8Array):InParentNamespace { 48 return InParentNamespace.getRootAsInParentNamespace(new flatbuffers.ByteBuffer(buffer)) 49} 50 51unpack(): InParentNamespaceT { 52 return new InParentNamespaceT(); 53} 54 55 56unpackTo(_o: InParentNamespaceT): void {} 57} 58 59export class InParentNamespaceT { 60constructor(){} 61 62 63pack(builder:flatbuffers.Builder): flatbuffers.Offset { 64 return InParentNamespace.createInParentNamespace(builder); 65} 66} 67