Break internal Java/C# APIs

This is done on purpose, to avoid API version mismatches that
can cause bad decoding results, see:
https://github.com/google/flatbuffers/issues/5368

Change-Id: I2c857438377e080caad0e2d8bcc758c9b19bd6ec
This commit is contained in:
Wouter van Oortmerssen
2019-05-31 13:00:55 -07:00
parent c978b9ef1f
commit b652fcc3a7
33 changed files with 125 additions and 125 deletions

View File

@@ -195,7 +195,7 @@ namespace FlatBuffers
}
/// <summary>
/// Puts an array of type T into this builder at the
/// Puts an array of type T into this builder at the
/// current offset
/// </summary>
/// <typeparam name="T">The type of the input data </typeparam>
@@ -208,7 +208,7 @@ namespace FlatBuffers
#if ENABLE_SPAN_T
/// <summary>
/// Puts a span of type T into this builder at the
/// Puts a span of type T into this builder at the
/// current offset
/// </summary>
/// <typeparam name="T">The type of the input data </typeparam>
@@ -411,7 +411,7 @@ namespace FlatBuffers
"FlatBuffers: object serialization must not be nested.");
}
public void StartObject(int numfields)
public void StartTable(int numfields)
{
if (numfields < 0)
throw new ArgumentOutOfRangeException("Flatbuffers: invalid numfields");
@@ -621,11 +621,11 @@ namespace FlatBuffers
}
}
public int EndObject()
public int EndTable()
{
if (_vtableSize < 0)
throw new InvalidOperationException(
"Flatbuffers: calling endObject without a startObject");
"Flatbuffers: calling EndTable without a StartTable");
AddInt((int)0);
var vtableloc = Offset;