mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 23:40:57 +00:00
This reverts commit cbbbaa61b3.
This commit is contained in:
@@ -112,7 +112,7 @@ namespace FlatBuffers
|
||||
// Get the data of a vector whoses offset is stored at "offset" in this object as an
|
||||
// ArraySegment<byte>. If the vector is not present in the ByteBuffer,
|
||||
// then a null value will be returned.
|
||||
public ArraySegment<byte>? __vector_as_arraysegment(int offset, int elementSize)
|
||||
public ArraySegment<byte>? __vector_as_arraysegment(int offset)
|
||||
{
|
||||
var o = this.__offset(offset);
|
||||
if (0 == o)
|
||||
@@ -122,7 +122,7 @@ namespace FlatBuffers
|
||||
|
||||
var pos = this.__vector(o);
|
||||
var len = this.__vector_len(o);
|
||||
return bb.ToArraySegment(pos, len * elementSize);
|
||||
return bb.ToArraySegment(pos, len);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user