mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 17:22:03 +00:00
add slice equivalent to CSharp ByteBuffer
This commit is contained in:
@@ -63,6 +63,11 @@ namespace FlatBuffers
|
|||||||
_pos = 0;
|
_pos = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ByteBuffer Slice()
|
||||||
|
{
|
||||||
|
return new ByteBuffer(_buffer, 0);
|
||||||
|
}
|
||||||
|
|
||||||
// Pre-allocated helper arrays for convertion.
|
// Pre-allocated helper arrays for convertion.
|
||||||
private float[] floathelper = new[] { 0.0f };
|
private float[] floathelper = new[] { 0.0f };
|
||||||
private int[] inthelper = new[] { 0 };
|
private int[] inthelper = new[] { 0 };
|
||||||
|
|||||||
Reference in New Issue
Block a user