mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 20:48:59 +00:00
add slice equivalent to CSharp ByteBuffer
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user