brutal/Brutal.Core/Interfaces/ISpanLike.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

22 lines
420 B
C#

using Brutal.Pointers;
namespace Brutal;
public interface ISpanLike : INullable
{
public Ptr Ptr { get; }
public ElementCount Length { get; }
public ByteSize Stride { get; }
public bool IsEmpty { get; }
public Span<T> AsSpan<T>()
where T : unmanaged;
}
public interface ISpanLike<T> : ISpanLike
where T : unmanaged
{
public new Ptr<T> Ptr { get; }
public Span<T> AsSpan();
}