mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-10-03 11:25:51 -05:00
19 lines
432 B
C#
19 lines
432 B
C#
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;
|
|
}
|
|
}
|
|
} |