mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-10-03 14:25:50 -05: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