mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-06 05:15:47 +00:00
Move solution and projects to src
This commit is contained in:
19
src/Ryujinx.HLE/HOS/Kernel/Memory/KMemoryBlockSlabManager.cs
Normal file
19
src/Ryujinx.HLE/HOS/Kernel/Memory/KMemoryBlockSlabManager.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Ryujinx.HLE.HOS.Kernel.Memory
|
||||
{
|
||||
class KMemoryBlockSlabManager
|
||||
{
|
||||
private ulong _capacityElements;
|
||||
|
||||
public int Count { get; set; }
|
||||
|
||||
public KMemoryBlockSlabManager(ulong capacityElements)
|
||||
{
|
||||
_capacityElements = capacityElements;
|
||||
}
|
||||
|
||||
public bool CanAllocate(int count)
|
||||
{
|
||||
return (ulong)(Count + count) <= _capacityElements;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user