Table of Contents

Interface IReadonlyAllocation<T>

Namespace
ReFuel.Memory
Assembly
ReFuel.dll

An allocation with const semantics.

public interface IReadonlyAllocation<T> : IAllocationBase, IDisposable, IEnumerable<T>, IEnumerable where T : struct

Type Parameters

T

The contained type.

Inherited Members

Properties

this[int]

Access item.

ref readonly T this[int i] { get; }

Parameters

i int

The item index. Must be less than count.

Property Value

T

Reference to the item.

Methods

AsSpan()

This allocation as span.

ReadOnlySpan<T> AsSpan()

Returns

ReadOnlySpan<T>

Span to this allocation.

Remarks

The data pointed to by the span might be volatile. Watch out for implementation details.