Method Slice
Slice(int, int)
Create a ReadOnlySpan<T> for a slice of the buffer
public ReadOnlySpan<byte> Slice(int start = 0, int length = -1)
Parameters
start
intStarting index for the slice [default = 0]
length
intLength of the slice or -1 to include up to the end of the buffer [default = -1]
Returns
- ReadOnlySpan<byte>
New Span
Remarks
Creates an efficient means of accessing the raw data of a buffer