Table of Contents

Method Slice

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

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 int

Starting index for the slice [default = 0]

length int

Length 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