diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2021-05-10 11:20:09 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2021-05-10 11:30:26 -0700 |
commit | 42ca1b9140e46ab1b13e3db08b405af79626b48b (patch) | |
tree | 09f366f7e4e2e4100d201169e4a402a8b2284d66 /tests | |
parent | 6ed780dbd50f3fd4f2a12b13f5ef709da5372401 (diff) | |
download | flatbuffers-42ca1b9140e46ab1b13e3db08b405af79626b48b.tar.gz flatbuffers-42ca1b9140e46ab1b13e3db08b405af79626b48b.tar.bz2 flatbuffers-42ca1b9140e46ab1b13e3db08b405af79626b48b.zip |
Swift/Kotlin generated code version updates
Change-Id: I035163cb5edd087a190bb518e686c79887241383
Diffstat (limited to 'tests')
11 files changed, 30 insertions, 30 deletions
diff --git a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/monster_test_generated.swift b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/monster_test_generated.swift index be2dfbce..d955bb6c 100644 --- a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/monster_test_generated.swift +++ b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/monster_test_generated.swift @@ -145,7 +145,7 @@ public struct MyGame_Example_AnyAmbiguousAliasesUnion { } public struct MyGame_Example_Test: NativeStruct, NativeObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } private var _a: Int16 private var _b: Int8 @@ -172,7 +172,7 @@ public struct MyGame_Example_Test: NativeStruct, NativeObject { public struct MyGame_Example_Test_Mutable: FlatBufferObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Struct @@ -199,7 +199,7 @@ public struct MyGame_Example_Test_Mutable: FlatBufferObject { public struct MyGame_Example_Vec3: NativeStruct, NativeObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } private var _x: Float32 private var _y: Float32 @@ -249,7 +249,7 @@ public struct MyGame_Example_Vec3: NativeStruct, NativeObject { public struct MyGame_Example_Vec3_Mutable: FlatBufferObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Struct @@ -283,7 +283,7 @@ public struct MyGame_Example_Vec3_Mutable: FlatBufferObject { public struct MyGame_Example_Ability: NativeStruct, NativeObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } private var _id: UInt32 private var _distance: UInt32 @@ -309,7 +309,7 @@ public struct MyGame_Example_Ability: NativeStruct, NativeObject { public struct MyGame_Example_Ability_Mutable: FlatBufferObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Struct @@ -336,7 +336,7 @@ public struct MyGame_Example_Ability_Mutable: FlatBufferObject { public struct MyGame_Example_StructOfStructs: NativeStruct, NativeObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } private var _a: MyGame_Example_Ability private var _b: MyGame_Example_Test @@ -370,7 +370,7 @@ public struct MyGame_Example_StructOfStructs: NativeStruct, NativeObject { public struct MyGame_Example_StructOfStructs_Mutable: FlatBufferObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Struct @@ -396,7 +396,7 @@ public struct MyGame_Example_StructOfStructs_Mutable: FlatBufferObject { public struct MyGame_InParentNamespace: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -438,7 +438,7 @@ public class MyGame_InParentNamespaceT: NativeObject { } public struct MyGame_Example2_Monster: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -480,7 +480,7 @@ public class MyGame_Example2_MonsterT: NativeObject { } internal struct MyGame_Example_TestSimpleTableWithEnum: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } internal var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -543,7 +543,7 @@ internal class MyGame_Example_TestSimpleTableWithEnumT: NativeObject { } public struct MyGame_Example_Stat: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -656,7 +656,7 @@ public class MyGame_Example_StatT: NativeObject { } public struct MyGame_Example_Referrable: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -744,7 +744,7 @@ public class MyGame_Example_ReferrableT: NativeObject { /// an example documentation comment: "monster object" public struct MyGame_Example_Monster: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -1507,7 +1507,7 @@ public class MyGame_Example_MonsterT: NativeObject { } public struct MyGame_Example_TypeAliases: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table diff --git a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/more_defaults_generated.swift b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/more_defaults_generated.swift index 026fa029..aa8d5722 100644 --- a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/more_defaults_generated.swift +++ b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/more_defaults_generated.swift @@ -19,7 +19,7 @@ public enum ABC: Int32, Enum { public struct MoreDefaults: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table diff --git a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/optional_scalars_generated.swift b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/optional_scalars_generated.swift index 12f0a035..85f9555c 100644 --- a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/optional_scalars_generated.swift +++ b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/optional_scalars_generated.swift @@ -19,7 +19,7 @@ public enum optional_scalars_OptionalByte: Int8, Enum { public struct optional_scalars_ScalarStuff: FlatBufferObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table diff --git a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/union_vector_generated.swift b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/union_vector_generated.swift index d9cd26a4..46edc512 100644 --- a/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/union_vector_generated.swift +++ b/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/union_vector_generated.swift @@ -54,7 +54,7 @@ public struct CharacterUnion { } public struct Rapunzel: NativeStruct, NativeObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } private var _hairLength: Int32 @@ -75,7 +75,7 @@ public struct Rapunzel: NativeStruct, NativeObject { public struct Rapunzel_Mutable: FlatBufferObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Struct @@ -100,7 +100,7 @@ public struct Rapunzel_Mutable: FlatBufferObject { public struct BookReader: NativeStruct, NativeObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } private var _booksRead: Int32 @@ -121,7 +121,7 @@ public struct BookReader: NativeStruct, NativeObject { public struct BookReader_Mutable: FlatBufferObject { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Struct @@ -146,7 +146,7 @@ public struct BookReader_Mutable: FlatBufferObject { public struct Attacker: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table @@ -209,7 +209,7 @@ public class AttackerT: NativeObject { } public struct Movie: FlatBufferObject, ObjectAPIPacker { - static func validateVersion() { FlatBuffersVersion_1_12_0() } + static func validateVersion() { FlatBuffersVersion_2_0_0() } public var __buffer: ByteBuffer! { return _accessor.bb } private var _accessor: Table diff --git a/tests/MyGame/MonsterExtra.kt b/tests/MyGame/MonsterExtra.kt index e025c2f9..f55cfb56 100644 --- a/tests/MyGame/MonsterExtra.kt +++ b/tests/MyGame/MonsterExtra.kt @@ -176,7 +176,7 @@ class MonsterExtra : Table() { } } companion object { - fun validateVersion() = Constants.FLATBUFFERS_1_12_0() + fun validateVersion() = Constants.FLATBUFFERS_2_0_0() fun getRootAsMonsterExtra(_bb: ByteBuffer): MonsterExtra = getRootAsMonsterExtra(_bb, MonsterExtra()) fun getRootAsMonsterExtra(_bb: ByteBuffer, obj: MonsterExtra): MonsterExtra { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.kt b/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.kt index 0fb2e3cf..cb4cc10f 100644 --- a/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.kt +++ b/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.kt @@ -32,7 +32,7 @@ class TableInNestedNS : Table() { } } companion object { - fun validateVersion() = Constants.FLATBUFFERS_1_12_0() + fun validateVersion() = Constants.FLATBUFFERS_2_0_0() fun getRootAsTableInNestedNS(_bb: ByteBuffer): TableInNestedNS = getRootAsTableInNestedNS(_bb, TableInNestedNS()) fun getRootAsTableInNestedNS(_bb: ByteBuffer, obj: TableInNestedNS): TableInNestedNS { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/tests/namespace_test/NamespaceA/SecondTableInA.kt b/tests/namespace_test/NamespaceA/SecondTableInA.kt index 5b41f730..a5160701 100644 --- a/tests/namespace_test/NamespaceA/SecondTableInA.kt +++ b/tests/namespace_test/NamespaceA/SecondTableInA.kt @@ -27,7 +27,7 @@ class SecondTableInA : Table() { } } companion object { - fun validateVersion() = Constants.FLATBUFFERS_1_12_0() + fun validateVersion() = Constants.FLATBUFFERS_2_0_0() fun getRootAsSecondTableInA(_bb: ByteBuffer): SecondTableInA = getRootAsSecondTableInA(_bb, SecondTableInA()) fun getRootAsSecondTableInA(_bb: ByteBuffer, obj: SecondTableInA): SecondTableInA { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/tests/namespace_test/NamespaceA/TableInFirstNS.kt b/tests/namespace_test/NamespaceA/TableInFirstNS.kt index 308ff2b0..bec33191 100644 --- a/tests/namespace_test/NamespaceA/TableInFirstNS.kt +++ b/tests/namespace_test/NamespaceA/TableInFirstNS.kt @@ -67,7 +67,7 @@ class TableInFirstNS : Table() { } } companion object { - fun validateVersion() = Constants.FLATBUFFERS_1_12_0() + fun validateVersion() = Constants.FLATBUFFERS_2_0_0() fun getRootAsTableInFirstNS(_bb: ByteBuffer): TableInFirstNS = getRootAsTableInFirstNS(_bb, TableInFirstNS()) fun getRootAsTableInFirstNS(_bb: ByteBuffer, obj: TableInFirstNS): TableInFirstNS { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/tests/namespace_test/NamespaceC/TableInC.kt b/tests/namespace_test/NamespaceC/TableInC.kt index a5222f19..7586e251 100644 --- a/tests/namespace_test/NamespaceC/TableInC.kt +++ b/tests/namespace_test/NamespaceC/TableInC.kt @@ -36,7 +36,7 @@ class TableInC : Table() { } } companion object { - fun validateVersion() = Constants.FLATBUFFERS_1_12_0() + fun validateVersion() = Constants.FLATBUFFERS_2_0_0() fun getRootAsTableInC(_bb: ByteBuffer): TableInC = getRootAsTableInC(_bb, TableInC()) fun getRootAsTableInC(_bb: ByteBuffer, obj: TableInC): TableInC { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/tests/union_vector/Attacker.kt b/tests/union_vector/Attacker.kt index d398227a..105d3bc2 100644 --- a/tests/union_vector/Attacker.kt +++ b/tests/union_vector/Attacker.kt @@ -30,7 +30,7 @@ class Attacker : Table() { } } companion object { - fun validateVersion() = Constants.FLATBUFFERS_1_12_0() + fun validateVersion() = Constants.FLATBUFFERS_2_0_0() fun getRootAsAttacker(_bb: ByteBuffer): Attacker = getRootAsAttacker(_bb, Attacker()) fun getRootAsAttacker(_bb: ByteBuffer, obj: Attacker): Attacker { _bb.order(ByteOrder.LITTLE_ENDIAN) diff --git a/tests/union_vector/Movie.kt b/tests/union_vector/Movie.kt index 714d46ff..3342db20 100644 --- a/tests/union_vector/Movie.kt +++ b/tests/union_vector/Movie.kt @@ -68,7 +68,7 @@ class Movie : Table() { val o = __offset(10); return if (o != 0) __vector_len(o) else 0 } companion object { - fun validateVersion() = Constants.FLATBUFFERS_1_12_0() + fun validateVersion() = Constants.FLATBUFFERS_2_0_0() fun getRootAsMovie(_bb: ByteBuffer): Movie = getRootAsMovie(_bb, Movie()) fun getRootAsMovie(_bb: ByteBuffer, obj: Movie): Movie { _bb.order(ByteOrder.LITTLE_ENDIAN) |