flatbuffers/net/FlatBuffers
Jamie-Jameson c9651b7420
Add overloads for C# ByteBuffer/FlatBufferBuilder to allow adding vector blocks from ArraySegments or IntPtr (#7193)
* Add overloads to Add/Put for ArraySegment and IntPtr

In order to allow using code to reduce memory allocations, add overloads to ByteBuffer's and FlatBuffersBuilder's Put/Add methods that take ArraySegment<T> or IntPtr respectively.
Also, adaptions to the c# code generator in flatc to emit corresponding CreateVectorBlock() overloads

* Add missing files generated with generate_code.py

The previous commit changed the C# code generate, but didn't contain the updated generated test files.

* Incorporate review findings

(1) Adhere to 80 characters limit.
(2) In FlatBufferBuilder.Add(IntPtr,int), move zero length check topmost and add sanity check against negative input
2022-04-01 13:35:07 -07:00
..
Properties Revert "Convert net/FlatBuffers project to be compatible with netstandard (#4811)" 2018-10-29 17:21:30 -07:00
ByteBuffer.cs Add overloads for C# ByteBuffer/FlatBufferBuilder to allow adding vector blocks from ArraySegments or IntPtr (#7193) 2022-04-01 13:35:07 -07:00
ByteBufferUtil.cs Java/C#/Python prefixed size support (#4445) 2018-03-12 11:30:46 -07:00
FlatBufferBuilder.cs Add overloads for C# ByteBuffer/FlatBufferBuilder to allow adding vector blocks from ArraySegments or IntPtr (#7193) 2022-04-01 13:35:07 -07:00
FlatBufferConstants.cs Updated main version numbers to 2.0 2021-05-10 11:14:47 -07:00
FlatBuffers.csproj add xmlns to .Net (#7066) 2022-02-01 20:57:13 -08:00
FlatBuffers.net35.csproj [C#] Fix and improve project files (#6142) 2020-09-28 11:56:59 -07:00
IFlatbufferObject.cs Allow access to underlying ByteBuffer 2016-09-12 09:35:08 +02:00
Offset.cs Switched C# accessors from classes to structs 2016-08-31 17:34:51 -07:00
Struct.cs Fixed struct initialization error on older versions of C# 2019-12-23 17:35:54 -08:00
Table.cs Revert "[C#] Fix truncated ArraySegment<byte> if elementSize != 1 (#6462)" (#6488) 2021-02-23 11:30:07 -08:00