add newly generated Java and CSharp test sources

This commit is contained in:
Robert Schmidtke
2017-10-02 10:46:57 +02:00
parent 18353a4ee5
commit a5e25dc2ad
20 changed files with 62 additions and 0 deletions

View File

@@ -15,6 +15,9 @@ public struct Monster : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster()); }
public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static Monster GetSizePrefixedRootAsMonster(ByteBuffer _psbb) { return GetSizePrefixedRootAsMonster(_psbb, new Monster()); }
public static Monster GetSizePrefixedRootAsMonster(ByteBuffer _psbb, Monster obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsMonster(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public static bool MonsterBufferHasIdentifier(ByteBuffer _bb) { return Table.__has_identifier(_bb, "MONS"); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
@@ -161,6 +164,7 @@ public struct Monster : IFlatbufferObject
return new Offset<Monster>(o);
}
public static void FinishMonsterBuffer(FlatBufferBuilder builder, Offset<Monster> offset) { builder.Finish(offset.Value, "MONS"); }
public static void FinishSizePrefixedMonsterBuffer(FlatBufferBuilder builder, Offset<Monster> offset) { builder.FinishSizePrefixed(offset.Value, "MONS"); }
public static VectorOffset CreateSortedVectorOfMonster(FlatBufferBuilder builder, Offset<Monster>[] offsets) {
Array.Sort(offsets, (Offset<Monster> o1, Offset<Monster> o2) => Table.CompareStrings(Table.__offset(10, o1.Value, builder.DataBuffer), Table.__offset(10, o2.Value, builder.DataBuffer), builder.DataBuffer));

View File

@@ -14,6 +14,9 @@ import com.google.flatbuffers.*;
public final class Monster extends Table {
public static Monster getRootAsMonster(ByteBuffer _bb) { return getRootAsMonster(_bb, new Monster()); }
public static Monster getRootAsMonster(ByteBuffer _bb, Monster obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static Monster getSizePrefixedRootAsMonster(ByteBuffer _psbb) { return getSizePrefixedRootAsMonster(_psbb, new Monster()); }
public static Monster getSizePrefixedRootAsMonster(ByteBuffer _psbb, Monster obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsMonster(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public static boolean MonsterBufferHasIdentifier(ByteBuffer _bb) { return __has_identifier(_bb, "MONS"); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
@@ -171,6 +174,7 @@ public final class Monster extends Table {
return o;
}
public static void finishMonsterBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset, "MONS"); }
public static void finishSizePrefixedMonsterBuffer(FlatBufferBuilder builder, int offset) { builder.finishSizePrefixed(offset, "MONS"); }
@Override
protected int keysCompare(Integer o1, Integer o2, ByteBuffer _bb) { return compareStrings(__offset(10, o1, _bb), __offset(10, o2, _bb), _bb); }

View File

@@ -14,6 +14,9 @@ public struct Stat : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static Stat GetRootAsStat(ByteBuffer _bb) { return GetRootAsStat(_bb, new Stat()); }
public static Stat GetRootAsStat(ByteBuffer _bb, Stat obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static Stat GetSizePrefixedRootAsStat(ByteBuffer _psbb) { return GetSizePrefixedRootAsStat(_psbb, new Stat()); }
public static Stat GetSizePrefixedRootAsStat(ByteBuffer _psbb, Stat obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsStat(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public Stat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class Stat extends Table {
public static Stat getRootAsStat(ByteBuffer _bb) { return getRootAsStat(_bb, new Stat()); }
public static Stat getRootAsStat(ByteBuffer _bb, Stat obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static Stat getSizePrefixedRootAsStat(ByteBuffer _psbb) { return getSizePrefixedRootAsStat(_psbb, new Stat()); }
public static Stat getSizePrefixedRootAsStat(ByteBuffer _psbb, Stat obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsStat(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public Stat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public partial struct TestSimpleTableWithEnum : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static TestSimpleTableWithEnum GetRootAsTestSimpleTableWithEnum(ByteBuffer _bb) { return GetRootAsTestSimpleTableWithEnum(_bb, new TestSimpleTableWithEnum()); }
public static TestSimpleTableWithEnum GetRootAsTestSimpleTableWithEnum(ByteBuffer _bb, TestSimpleTableWithEnum obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static TestSimpleTableWithEnum GetSizePrefixedRootAsTestSimpleTableWithEnum(ByteBuffer _psbb) { return GetSizePrefixedRootAsTestSimpleTableWithEnum(_psbb, new TestSimpleTableWithEnum()); }
public static TestSimpleTableWithEnum GetSizePrefixedRootAsTestSimpleTableWithEnum(ByteBuffer _psbb, TestSimpleTableWithEnum obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsTestSimpleTableWithEnum(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public TestSimpleTableWithEnum __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class TestSimpleTableWithEnum extends Table {
public static TestSimpleTableWithEnum getRootAsTestSimpleTableWithEnum(ByteBuffer _bb) { return getRootAsTestSimpleTableWithEnum(_bb, new TestSimpleTableWithEnum()); }
public static TestSimpleTableWithEnum getRootAsTestSimpleTableWithEnum(ByteBuffer _bb, TestSimpleTableWithEnum obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static TestSimpleTableWithEnum getSizePrefixedRootAsTestSimpleTableWithEnum(ByteBuffer _psbb) { return getSizePrefixedRootAsTestSimpleTableWithEnum(_psbb, new TestSimpleTableWithEnum()); }
public static TestSimpleTableWithEnum getSizePrefixedRootAsTestSimpleTableWithEnum(ByteBuffer _psbb, TestSimpleTableWithEnum obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsTestSimpleTableWithEnum(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public TestSimpleTableWithEnum __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public struct TypeAliases : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static TypeAliases GetRootAsTypeAliases(ByteBuffer _bb) { return GetRootAsTypeAliases(_bb, new TypeAliases()); }
public static TypeAliases GetRootAsTypeAliases(ByteBuffer _bb, TypeAliases obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static TypeAliases GetSizePrefixedRootAsTypeAliases(ByteBuffer _psbb) { return GetSizePrefixedRootAsTypeAliases(_psbb, new TypeAliases()); }
public static TypeAliases GetSizePrefixedRootAsTypeAliases(ByteBuffer _psbb, TypeAliases obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsTypeAliases(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public TypeAliases __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class TypeAliases extends Table {
public static TypeAliases getRootAsTypeAliases(ByteBuffer _bb) { return getRootAsTypeAliases(_bb, new TypeAliases()); }
public static TypeAliases getRootAsTypeAliases(ByteBuffer _bb, TypeAliases obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static TypeAliases getSizePrefixedRootAsTypeAliases(ByteBuffer _psbb) { return getSizePrefixedRootAsTypeAliases(_psbb, new TypeAliases()); }
public static TypeAliases getSizePrefixedRootAsTypeAliases(ByteBuffer _psbb, TypeAliases obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsTypeAliases(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public TypeAliases __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public struct Monster : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster()); }
public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static Monster GetSizePrefixedRootAsMonster(ByteBuffer _psbb) { return GetSizePrefixedRootAsMonster(_psbb, new Monster()); }
public static Monster GetSizePrefixedRootAsMonster(ByteBuffer _psbb, Monster obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsMonster(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class Monster extends Table {
public static Monster getRootAsMonster(ByteBuffer _bb) { return getRootAsMonster(_bb, new Monster()); }
public static Monster getRootAsMonster(ByteBuffer _bb, Monster obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static Monster getSizePrefixedRootAsMonster(ByteBuffer _psbb) { return getSizePrefixedRootAsMonster(_psbb, new Monster()); }
public static Monster getSizePrefixedRootAsMonster(ByteBuffer _psbb, Monster obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsMonster(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public struct InParentNamespace : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static InParentNamespace GetRootAsInParentNamespace(ByteBuffer _bb) { return GetRootAsInParentNamespace(_bb, new InParentNamespace()); }
public static InParentNamespace GetRootAsInParentNamespace(ByteBuffer _bb, InParentNamespace obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static InParentNamespace GetSizePrefixedRootAsInParentNamespace(ByteBuffer _psbb) { return GetSizePrefixedRootAsInParentNamespace(_psbb, new InParentNamespace()); }
public static InParentNamespace GetSizePrefixedRootAsInParentNamespace(ByteBuffer _psbb, InParentNamespace obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsInParentNamespace(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public InParentNamespace __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class InParentNamespace extends Table {
public static InParentNamespace getRootAsInParentNamespace(ByteBuffer _bb) { return getRootAsInParentNamespace(_bb, new InParentNamespace()); }
public static InParentNamespace getRootAsInParentNamespace(ByteBuffer _bb, InParentNamespace obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static InParentNamespace getSizePrefixedRootAsInParentNamespace(ByteBuffer _psbb) { return getSizePrefixedRootAsInParentNamespace(_psbb, new InParentNamespace()); }
public static InParentNamespace getSizePrefixedRootAsInParentNamespace(ByteBuffer _psbb, InParentNamespace obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsInParentNamespace(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public InParentNamespace __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public struct TableInNestedNS : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb) { return GetRootAsTableInNestedNS(_bb, new TableInNestedNS()); }
public static TableInNestedNS GetRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static TableInNestedNS GetSizePrefixedRootAsTableInNestedNS(ByteBuffer _psbb) { return GetSizePrefixedRootAsTableInNestedNS(_psbb, new TableInNestedNS()); }
public static TableInNestedNS GetSizePrefixedRootAsTableInNestedNS(ByteBuffer _psbb, TableInNestedNS obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsTableInNestedNS(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class TableInNestedNS extends Table {
public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb) { return getRootAsTableInNestedNS(_bb, new TableInNestedNS()); }
public static TableInNestedNS getRootAsTableInNestedNS(ByteBuffer _bb, TableInNestedNS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static TableInNestedNS getSizePrefixedRootAsTableInNestedNS(ByteBuffer _psbb) { return getSizePrefixedRootAsTableInNestedNS(_psbb, new TableInNestedNS()); }
public static TableInNestedNS getSizePrefixedRootAsTableInNestedNS(ByteBuffer _psbb, TableInNestedNS obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsTableInNestedNS(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public TableInNestedNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public struct SecondTableInA : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb) { return GetRootAsSecondTableInA(_bb, new SecondTableInA()); }
public static SecondTableInA GetRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static SecondTableInA GetSizePrefixedRootAsSecondTableInA(ByteBuffer _psbb) { return GetSizePrefixedRootAsSecondTableInA(_psbb, new SecondTableInA()); }
public static SecondTableInA GetSizePrefixedRootAsSecondTableInA(ByteBuffer _psbb, SecondTableInA obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsSecondTableInA(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class SecondTableInA extends Table {
public static SecondTableInA getRootAsSecondTableInA(ByteBuffer _bb) { return getRootAsSecondTableInA(_bb, new SecondTableInA()); }
public static SecondTableInA getRootAsSecondTableInA(ByteBuffer _bb, SecondTableInA obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static SecondTableInA getSizePrefixedRootAsSecondTableInA(ByteBuffer _psbb) { return getSizePrefixedRootAsSecondTableInA(_psbb, new SecondTableInA()); }
public static SecondTableInA getSizePrefixedRootAsSecondTableInA(ByteBuffer _psbb, SecondTableInA obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsSecondTableInA(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public SecondTableInA __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public struct TableInFirstNS : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static TableInFirstNS GetRootAsTableInFirstNS(ByteBuffer _bb) { return GetRootAsTableInFirstNS(_bb, new TableInFirstNS()); }
public static TableInFirstNS GetRootAsTableInFirstNS(ByteBuffer _bb, TableInFirstNS obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static TableInFirstNS GetSizePrefixedRootAsTableInFirstNS(ByteBuffer _psbb) { return GetSizePrefixedRootAsTableInFirstNS(_psbb, new TableInFirstNS()); }
public static TableInFirstNS GetSizePrefixedRootAsTableInFirstNS(ByteBuffer _psbb, TableInFirstNS obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsTableInFirstNS(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public TableInFirstNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class TableInFirstNS extends Table {
public static TableInFirstNS getRootAsTableInFirstNS(ByteBuffer _bb) { return getRootAsTableInFirstNS(_bb, new TableInFirstNS()); }
public static TableInFirstNS getRootAsTableInFirstNS(ByteBuffer _bb, TableInFirstNS obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static TableInFirstNS getSizePrefixedRootAsTableInFirstNS(ByteBuffer _psbb) { return getSizePrefixedRootAsTableInFirstNS(_psbb, new TableInFirstNS()); }
public static TableInFirstNS getSizePrefixedRootAsTableInFirstNS(ByteBuffer _psbb, TableInFirstNS obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsTableInFirstNS(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public TableInFirstNS __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -14,6 +14,9 @@ public struct TableInC : IFlatbufferObject
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static TableInC GetRootAsTableInC(ByteBuffer _bb) { return GetRootAsTableInC(_bb, new TableInC()); }
public static TableInC GetRootAsTableInC(ByteBuffer _bb, TableInC obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public static TableInC GetSizePrefixedRootAsTableInC(ByteBuffer _psbb) { return GetSizePrefixedRootAsTableInC(_psbb, new TableInC()); }
public static TableInC GetSizePrefixedRootAsTableInC(ByteBuffer _psbb, TableInC obj) { ByteBuffer _bb = _psbb.Slice(); _bb.Position = 4; return GetRootAsTableInC(_bb, obj); }
public static int GetSizePrefix(ByteBuffer _bb) { return _bb.GetInt(_bb.Position); }
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
public TableInC __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }

View File

@@ -11,6 +11,9 @@ import com.google.flatbuffers.*;
public final class TableInC extends Table {
public static TableInC getRootAsTableInC(ByteBuffer _bb) { return getRootAsTableInC(_bb, new TableInC()); }
public static TableInC getRootAsTableInC(ByteBuffer _bb, TableInC obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
public static TableInC getSizePrefixedRootAsTableInC(ByteBuffer _psbb) { return getSizePrefixedRootAsTableInC(_psbb, new TableInC()); }
public static TableInC getSizePrefixedRootAsTableInC(ByteBuffer _psbb, TableInC obj) { ByteBuffer _bb = _psbb.slice(); _bb.position(4); return getRootAsTableInC(_bb, obj); }
public static int getSizePrefix(ByteBuffer _bb) { _bb.order(ByteOrder.LITTLE_ENDIAN); return _bb.getInt(_bb.position()); }
public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; }
public TableInC __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }