add slice equivalent to CSharp ByteBuffer

This commit is contained in:
Robert Schmidtke
2017-10-02 10:44:44 +02:00
parent 9b8bb2e8a3
commit 058e5a037c

View File

@@ -63,6 +63,11 @@ namespace FlatBuffers
_pos = 0;
}
public ByteBuffer Slice()
{
return new ByteBuffer(_buffer, 0);
}
// Pre-allocated helper arrays for convertion.
private float[] floathelper = new[] { 0.0f };
private int[] inthelper = new[] { 0 };