C#: Allow ByteBuffer to use faster unsafe mode
authorJon Simantov <jsimantov@google.com>
Thu, 11 Dec 2014 22:23:10 +0000 (14:23 -0800)
committerJon Simantov <jsimantov@google.com>
Tue, 6 Jan 2015 20:39:17 +0000 (12:39 -0800)
commit4390254e6a85bfd280829d0c2d2eb21654aca04f
tree7937372bff637ea34d50255471c78ba8e2d5eed2
parent3a270137320d790cca59cc336227db8bc9172363
C#: Allow ByteBuffer to use faster unsafe mode

If your C# runtime environment supports unsafe mode, you can use
the #define UNSAFE_BYTEBUFFER setting and build the FlatBuffers assembly
in unsafe mode for greatly increased performance.

Tested: Tested FlatBuffersTest on Windows using VS2010 with both safe
and unsafe versions. Added ByteBufferTest to test the byte reversing
functions.

Change-Id: I21334468b339334f9abf4317e6291b648b97f57b
net/FlatBuffers/ByteBuffer.cs [changed mode: 0644->0755]
tests/FlatBuffers.Test/ByteBufferTests.cs