8c0d56d55abcc0559f1472979ed31a817e678731 |
|
23-May-2016 |
Wouter van Oortmerssen <wvo@google.com> |
Removed BOM marker from some files. Also removed some trailing whitespace. Change-Id: I40bf4f776ca4d467b7ee6f2c9a7500c13700f9d5
/external/flatbuffers/tests/FlatBuffers.Test/Assert.cs
|
e083e466b85c1ae512193cee74e0dbd60be5ab87 |
|
05-Oct-2015 |
Michael Collins <michael.collins@neudesic.com> |
Add Get Bytes Method Generator for C# I updated idl_gen_general.cpp to add support for generating a Get Bytes method for a vector to the generated C# source code. Given a byte vector field named Foo, a method named GetFooBytes() will be generated in the C# source code that will return an ArraySegment<byte> value referencing the vector data in the underlying ByteBuffer. I added a method to Table.cs named __vector_as_arraysegment that is used by the code generated by the change to the C# generator. __vector_as_arraysegment will take the offset of the vector and will return the ArraySegment<byte> value corresponding to the bytes that store the vector data. I updated FlatBuffersExampleTests.cs to add tests to validate my implementation of Table.__vector_as_arraysegment. I added tests to demonstrate that the bytes for the monster's name can be extracted from the underlying byte array. I also added tests to show that Table.__vector_as_arraysegment returns a null value if the vector is not present in the FlatBuffer. I used the updated flatc.exe program to regenerate the C# source files for the MyGame example. The new Monster class includes the GetXXXBytes methods to return the byte arrays containing data for vectors.
/external/flatbuffers/tests/FlatBuffers.Test/Assert.cs
|
9d66af6efc0498e90e2757659761ae0c4f797eee |
|
18-Oct-2015 |
evolutional <oli@evolutional.co.uk> |
Ported some of the python fuzz tests to C# * Refactored the test runner to use attribute based test discovery * Ported value and vtable/object fuzzing tests from python to C#
/external/flatbuffers/tests/FlatBuffers.Test/Assert.cs
|
432f3f26a40dbc51691c6d461d8a137c5e6c9f2e |
|
28-Feb-2015 |
loverszhaokai <loverszhao@gmail.com> |
Added Copyright headers Change-Id: I106de8985cea572590d49c896b72c54f33e73bd2
/external/flatbuffers/tests/FlatBuffers.Test/Assert.cs
|
557c88c0396220e79e9a43c07f8393a5c68b739d |
|
17-Sep-2014 |
Wouter van Oortmerssen <wvo@google.com> |
Refactored the Java and C# code generators into one. Also made the C# implementation support unsigned types, and made it more like the Java version. Bug: 17359988 Change-Id: If5305c08cd5c97f35426639516ce05e53bbec36c Tested: on Linux and Windows.
/external/flatbuffers/tests/FlatBuffers.Test/Assert.cs
|
9a1f7be6fd318ddd9545926b5925cf0a10a083e4 |
|
09-Sep-2014 |
evolutional <oli@evolutional.co.uk> |
Initial commit of .NET port of FlatBuffers Include C# codegen in flatc and .NET FlatBuffer access via the FlatBufferBuilder class Tested: on Windows. Change-Id: If5228a8df60a10e0751b245c6c64530264ea2d8a
/external/flatbuffers/tests/FlatBuffers.Test/Assert.cs
|