Home | History | Annotate | Download | only in tests
      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 './monster_test_my_game.example_generated.dart' as my_game_example;
     10 import './monster_test_my_game.example2_generated.dart' as my_game_example2;
     11 
     12 class InParentNamespace {
     13   InParentNamespace._(this._bc, this._bcOffset);
     14   factory InParentNamespace(List<int> bytes) {
     15     fb.BufferContext rootRef = new fb.BufferContext.fromBytes(bytes);
     16     return reader.read(rootRef, 0);
     17   }
     18 
     19   static const fb.Reader<InParentNamespace> reader = const _InParentNamespaceReader();
     20 
     21   final fb.BufferContext _bc;
     22   final int _bcOffset;
     23 
     24 
     25   @override
     26   String toString() {
     27     return 'InParentNamespace{}';
     28   }
     29 }
     30 
     31 class _InParentNamespaceReader extends fb.TableReader<InParentNamespace> {
     32   const _InParentNamespaceReader();
     33 
     34   @override
     35   InParentNamespace createObject(fb.BufferContext bc, int offset) => 
     36     new InParentNamespace._(bc, offset);
     37 }
     38 
     39 class InParentNamespaceObjectBuilder extends fb.ObjectBuilder {
     40 
     41   InParentNamespaceObjectBuilder();
     42 
     43   /// Finish building, and store into the [fbBuilder].
     44   @override
     45   int finish(
     46     fb.Builder fbBuilder) {
     47     assert(fbBuilder != null);
     48 
     49     fbBuilder.startTable();
     50     return fbBuilder.endTable();
     51   }
     52 
     53   /// Convenience method to serialize to byte list.
     54   @override
     55   Uint8List toBytes([String fileIdentifier]) {
     56     fb.Builder fbBuilder = new fb.Builder();
     57     int offset = finish(fbBuilder);
     58     return fbBuilder.finish(offset, fileIdentifier);
     59   }
     60 }
     61