Header menu logo XParsec

ReadableResizeArray<'T> Type

A ResizeArray slice that can be read as input by the parser.

Constructors

Constructor Description

ReadableResizeArray(arr)

Full Usage: ReadableResizeArray(arr)

Parameters:
    arr : ResizeArray<'T>

Returns: ReadableResizeArray<'T>

Construct a view over the whole ResizeArray.

arr : ResizeArray<'T>
Returns: ReadableResizeArray<'T>

ReadableResizeArray(arr, start, length)

Full Usage: ReadableResizeArray(arr, start, length)

Parameters:
    arr : ResizeArray<'T>
    start : int
    length : int

Returns: ReadableResizeArray<'T>
arr : ResizeArray<'T>
start : int
length : int
Returns: ReadableResizeArray<'T>

Instance members

Instance member Description

this.AsSpan

Full Usage: this.AsSpan

Parameters:
    viewStart : int
    viewLength : int

Returns: ReadOnlySpan<'T>
viewStart : int
viewLength : int
Returns: ReadOnlySpan<'T>

this.AsSpan

Full Usage: this.AsSpan

Parameters:
    viewStart : int

Returns: ReadOnlySpan<'T>
viewStart : int
Returns: ReadOnlySpan<'T>

this.AsSpan

Full Usage: this.AsSpan

Returns: ReadOnlySpan<'T>
Returns: ReadOnlySpan<'T>

this.IsEmpty

Full Usage: this.IsEmpty

Returns: bool
Returns: bool

this[index]

Full Usage: this[index]

Parameters:
    index : int

Returns: 'T
index : int
Returns: 'T

this.Length

Full Usage: this.Length

Returns: int
Returns: int

this.Slice

Full Usage: this.Slice

Parameters:
    newStart : int
    newLength : int

Returns: ReadableResizeArray<'T>
newStart : int
newLength : int
Returns: ReadableResizeArray<'T>

this.ToImmutableArray

Full Usage: this.ToImmutableArray

Returns: ImmutableArray<'T>

Materialises this view into an ImmutableArray. Allocates a fresh copy.

Returns: ImmutableArray<'T>

this.TryItem

Full Usage: this.TryItem

Parameters:
    index : int

Returns: 'T voption
index : int
Returns: 'T voption

Static members

Static member Description

ReadableResizeArray.Empty

Full Usage: ReadableResizeArray.Empty

Returns: ReadableResizeArray<'T>
Returns: ReadableResizeArray<'T>

Type something to start searching.