Added UnsafeQueue;

This commit is contained in:
Misaki
2025-03-25 15:54:48 +09:00
parent 7bcd699eb9
commit cb69add265
5 changed files with 152 additions and 92 deletions

View File

@@ -1,22 +1,15 @@
namespace Misaki.HighPerformance.Unsafe.Collections.Contracts;
public unsafe interface IUnsafeCollection<T> : IDisposable where T : unmanaged
public unsafe interface IUnsafeCollection<T> : IDisposable
where T : unmanaged
{
public T* Buffer
{
get;
}
public T* Buffer { get; }
public int Size
{
get;
}
public int Size { get; }
public ref T this[int index]
{
get;
}
public T this[int index] { get; }
public void Clear();
public void ReAlloc(int newSize);
}
}