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