diff options
author | Derek Bailey <derekbailey@google.com> | 2022-09-27 11:55:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 11:55:25 -0700 |
commit | 76ddae006f6e5068d2f26f235dbd167bd826a698 (patch) | |
tree | 86ffada61ad9a48a1de24e9285b49d58d0615918 /tests/optional_scalars | |
parent | cfe157ec5667ab2101a62889ac0f5260a0166116 (diff) | |
download | flatbuffers-76ddae006f6e5068d2f26f235dbd167bd826a698.tar.gz flatbuffers-76ddae006f6e5068d2f26f235dbd167bd826a698.tar.bz2 flatbuffers-76ddae006f6e5068d2f26f235dbd167bd826a698.zip |
FlatBuffers Version 22.9.24 (#7547)
Diffstat (limited to 'tests/optional_scalars')
-rw-r--r-- | tests/optional_scalars/ScalarStuff.cs | 2 | ||||
-rw-r--r-- | tests/optional_scalars/ScalarStuff.java | 2 | ||||
-rw-r--r-- | tests/optional_scalars/ScalarStuff.kt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/optional_scalars/ScalarStuff.cs b/tests/optional_scalars/ScalarStuff.cs index 85c16725..1851a9b3 100644 --- a/tests/optional_scalars/ScalarStuff.cs +++ b/tests/optional_scalars/ScalarStuff.cs @@ -13,7 +13,7 @@ public struct ScalarStuff : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_2_0_8(); } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_22_9_24(); } public static ScalarStuff GetRootAsScalarStuff(ByteBuffer _bb) { return GetRootAsScalarStuff(_bb, new ScalarStuff()); } public static ScalarStuff GetRootAsScalarStuff(ByteBuffer _bb, ScalarStuff obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public static bool ScalarStuffBufferHasIdentifier(ByteBuffer _bb) { return Table.__has_identifier(_bb, "NULL"); } diff --git a/tests/optional_scalars/ScalarStuff.java b/tests/optional_scalars/ScalarStuff.java index f4890b10..6d93230a 100644 --- a/tests/optional_scalars/ScalarStuff.java +++ b/tests/optional_scalars/ScalarStuff.java @@ -9,7 +9,7 @@ import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class ScalarStuff extends Table { - public static void ValidateVersion() { Constants.FLATBUFFERS_2_0_8(); } + public static void ValidateVersion() { Constants.FLATBUFFERS_22_9_24(); } public static ScalarStuff getRootAsScalarStuff(ByteBuffer _bb) { return getRootAsScalarStuff(_bb, new ScalarStuff()); } public static ScalarStuff getRootAsScalarStuff(ByteBuffer _bb, ScalarStuff obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public static boolean ScalarStuffBufferHasIdentifier(ByteBuffer _bb) { return __has_identifier(_bb, "NULL"); } diff --git a/tests/optional_scalars/ScalarStuff.kt b/tests/optional_scalars/ScalarStuff.kt index e9067bb2..5e5c360f 100644 --- a/tests/optional_scalars/ScalarStuff.kt +++ b/tests/optional_scalars/ScalarStuff.kt @@ -197,7 +197,7 @@ class ScalarStuff : Table() { return if(o != 0) bb.get(o + bb_pos) else 1 } companion object { - fun validateVersion() = Constants.FLATBUFFERS_2_0_8() + fun validateVersion() = Constants.FLATBUFFERS_22_9_24() fun getRootAsScalarStuff(_bb: ByteBuffer): ScalarStuff = getRootAsScalarStuff(_bb, ScalarStuff()) fun getRootAsScalarStuff(_bb: ByteBuffer, obj: ScalarStuff): ScalarStuff { _bb.order(ByteOrder.LITTLE_ENDIAN) |