- Sep 12, 2016
-
-
Alberto Fernández authored
-
- Sep 01, 2016
-
-
Wouter van Oortmerssen authored
-
- Aug 26, 2016
-
-
Wouter van Oortmerssen authored
Change-Id: Ice94f09197235cf71b41a22d0767bd7b119284e1
-
Wouter van Oortmerssen authored
Tested: on Linux. Change-Id: Iea336f75a3b6e722743563813c3c9ed9db4d02fe
-
TGIshib authored
-
- Aug 22, 2016
-
-
TGIshib authored
-
- Aug 14, 2016
-
-
TGIshib authored
-
- Aug 03, 2016
-
-
TGIshib authored
-
- Jun 15, 2016
-
-
Wouter van Oortmerssen authored
Bug: 29337887, 29336299 Change-Id: Iad8b3b2263f6cea7ee7e45994369194960df293b Tested: on Linux.
-
- May 26, 2016
-
-
lakedaemon authored
-
- Apr 20, 2016
-
-
Wouter van Oortmerssen authored
Change-Id: I8dcbb5e93836356511d411ef86452babd3dd3c0b Tested: on Linux.
-
- Apr 18, 2016
-
-
Wouter van Oortmerssen authored
A previous commit that added "f" for C++/Java/C# would break on gcc of constants like 3f, which are now output as 3.0f Tested: on Linux Change-Id: If9cabbe3c6d6948a5050b8b123bda9c06e181f52
-
- Apr 14, 2016
-
-
Wouter van Oortmerssen authored
Bug: 28145201 Change-Id: I5a1818c40c2f4fbd00cfec3362040407976f7a39 Tested: on Linux.
-
- Jan 18, 2016
-
-
Oli Wilkinson authored
-
- Dec 04, 2015
-
-
Michael Collins authored
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.
-
- Nov 23, 2015
-
-
Donnell authored
Fixes a bug where the logic to determine when to use a C# enum flags both enums and vectors of enums. This causes the C# generator to generate code that doesn't compile for tables that contain vectors of enums. The fix also consolidates type generation functions a bit and adds some additional casting functions for clarity.
-
- Oct 29, 2015
-
-
Wouter van Oortmerssen authored
Also simplified the code and made it faster. Change-Id: I1d83b1165a4a9a4380d1bfb5538769c012d2d367 Tested: on Linux.
-
- Aug 19, 2015
-
-
Maxim Zaks authored
Change-Id: I3cdd801b641bf180222203a37634598350d340e3
-
- Aug 15, 2015
-
-
Maor Itzkovitch authored
-
- Aug 07, 2015
-
-
Maor Itzkovitch authored
-
- Aug 01, 2015
-
-
Maor Itzkovitch authored
-
Maor Itzkovitch authored
-
- Jul 28, 2015
-
-
RevenantX authored
-
- May 08, 2015
-
-
Mormegil authored
When accessing a union field, we should return the same object type as was given to the method, i.e. the parameter should have a generic type for any Table-derived type. This way, we do not need to make superfluous casts (which also reduce type safety) like var myUnionType = (MyUnionType)buff.GetUnionField(new MyUnionType()); when we can do just var myUnionType = buff.GetUnionField(new MyUnionType()); Change-Id: Idac1b638e46cc50b1f2dc19f10741481202b1515
-
- May 06, 2015
-
-
Mormegil authored
In C#, plain field accessors should not be nonparametric methods but should be standard property getters. The accessor methods with parameters were renamed to `GetXxx` because a method cannot be named identically to a property. Also, `ByteBuffer.Position`, `FlatBufferBuilder.Offset` and `FlatBufferBuilder.DataBuffer` are now properties instead of nonparametric accessor methods, for more idiomatic C# style. This is a breaking change, all client C# code accessing these fields needs to be changed (i.e. remove those `()` or add the `Get` prefix). Issue: #77 Change-Id: Iaabe9ada076e5ea2c69911cf6170fdda2df3487e
-
- Apr 13, 2015
-
-
Mormegil authored
Enums should not be (badly) emulated with classes in C# but should use native C# enums instead. Java implementation made an explicit choice not to use the (more complex) Java enums, but C# enums are just light-weight syntactic coating over integral types. Fixes issue #171. Change-Id: I9f4d6ba5324400a1e52982e49b58603cb7d7cca7
-
- Apr 10, 2015
-
-
Advay Mengle authored
Makes enums/structs/tables unsubclassable (final or sealed) and prevents instantiation of enum classes (which are solely static constants). Tested (Mac OS 10.10.2): 1. run flattests 2. cd tests && ../flatc -c monster_test.fbs && ../flatc -j monster_test.fbs && ../flatc -g monster_test.fbs && ../flatc -n monster_test.fbs # Note deltas for C# and Java. 3. ./JavaTest.sh **Breaking api change** Change-Id: Ie008c941c36d212690da58ddc72c9b228eb7a093
-
- Mar 13, 2015
-
-
Wouter van Oortmerssen authored
Change-Id: Ifa6d9459c53ae60b9bf936d9468ec971ee282f14 Tested: on Linux and Windows.
-
- Feb 04, 2015
-
-
Florian Enner authored
getRootAs..() function now has a second implementation that accepts an existing object to allow object reuse, much like all other methods that refer to objects. Change-Id: Iffef567c903a130761ef7de98867e5465d29a04d
-
- Jan 26, 2015
-
-
Wouter van Oortmerssen authored
Change-Id: I72e92183a7b5f4145ea51fcec29257dc9553a461
-
- Sep 25, 2014
-
-
Wouter van Oortmerssen authored
Also fixed Go unit tests not being up to date with recent schema changes. Change-Id: I42e619f9c5ea05f6f937c68a5c8a92462c46bce3 Tested: on Linux and Windows.
-
Gabriel Martinez authored
Tested: on Linux Bug: 15779934 Change-Id: I6f822f1705e443d8721ea208dcb021aad3c8715c
-
- Sep 22, 2014
-
-
Wouter van Oortmerssen authored
Change-Id: I560c7ca11b3d665eecafb528f3737b7e139ca9b0 Tested: on Linux and Windows.
-
- Sep 18, 2014
-
-
Wouter van Oortmerssen authored
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.
-
- Sep 15, 2014
-
-
evolutional authored
Include C# codegen in flatc and .NET FlatBuffer access via the FlatBufferBuilder class Tested: on Windows. Change-Id: If5228a8df60a10e0751b245c6c64530264ea2d8a
-