mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
Move solution and projects to src
This commit is contained in:
1 parent
cd124bda58
commit
cee7121058
3466 files changed
+55
-55
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace ARMeilleure.Common
|
||||
{
|
||||
unsafe abstract class Allocator : IDisposable
|
||||
{
|
||||
public T* Allocate<T>(ulong count = 1) where T : unmanaged
|
||||
{
|
||||
return (T*)Allocate(count * (uint)sizeof(T));
|
||||
}
|
||||
|
||||
public abstract void* Allocate(ulong size);
|
||||
|
||||
public abstract void Free(void* block);
|
||||
|
||||
protected virtual void Dispose(bool disposing) { }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user