Home | History | Annotate | Download | only in test
      1 // automatically generated by the FlatBuffers compiler, do not modify
      2 // ignore_for_file: unused_import, unused_field, unused_local_variable
      3 
      4 library my_game;
      5 
      6 import 'dart:typed_data' show Uint8List;
      7 import 'package:flat_buffers/flat_buffers.dart' as fb;
      8 
      9 import 'include_test1_my_game_generated.dart';
     10 import 'include_test2_my_game_generated.dart';
     11 import './monster_test_my_game.example_generated.dart' as my_game_example;
     12 import './monster_test_my_game.example2_generated.dart' as my_game_example2;
     13 
     14 class InParentNamespace {
     15   InParentNamespace._(this._bc, this._bcOffset);
     16   factory InParentNamespace(List<int> bytes) {
     17     fb.BufferContext rootRef = new fb.BufferContext.fromBytes(bytes);
     18     return reader.read(rootRef, 0);
     19   }
     20 
     21   static const fb.Reader<InParentNamespace> reader = const _InParentNamespaceReader();
     22 
     23   final fb.BufferContext _bc;
     24   final int _bcOffset;
     25 
     26 
     27   @override
     28   String toString() {
     29     return 'InParentNamespace{}';
     30   }
     31 }
     32 
     33 class _InParentNamespaceReader extends fb.TableReader<InParentNamespace> {
     34   const _InParentNamespaceReader();
     35 
     36   @override
     37   InParentNamespace createObject(fb.BufferContext bc, int offset) => 
     38     new InParentNamespace._(bc, offset);
     39 }
     40 
     41 class InParentNamespaceObjectBuilder extends fb.ObjectBuilder {
     42 
     43   InParentNamespaceObjectBuilder();
     44 
     45   /// Finish building, and store into the [fbBuilder].
     46   @override
     47   int finish(
     48     fb.Builder fbBuilder) {
     49     assert(fbBuilder != null);
     50 
     51     fbBuilder.startTable();
     52     return fbBuilder.endTable();
     53   }
     54 
     55   /// Convenience method to serialize to byte list.
     56   @override
     57   Uint8List toBytes([String fileIdentifier]) {
     58     fb.Builder fbBuilder = new fb.Builder();
     59     int offset = finish(fbBuilder);
     60     return fbBuilder.finish(offset, fileIdentifier);
     61   }
     62 }
     63