Skip to content

SegmentBuilder.ReadNextBytes(ArraySegment<byte>, int)

ReadNextBytes(ArraySegment<byte>, int)

static
View source
public static ArraySegment<byte> ReadNextBytes(ArraySegment<byte> segment, ref int readerOffset)
Reads the next item in the segment as a byte array. For performance, this is returned as a sub-segment of the original segment.

Parameters

segmentArraySegment<byte>
readerOffsetint