Interface IReadonlyAllocation<T>
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
intThe 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.