mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-23 18:45:11 +00:00
3615a70cae
This reverts commit 85dbb9559a
.
19 lines
No EOL
428 B
C#
19 lines
No EOL
428 B
C#
namespace Ryujinx.HLE.HOS.Kernel
|
|
{
|
|
class KMemoryBlockAllocator
|
|
{
|
|
private ulong CapacityElements;
|
|
|
|
public int Count { get; set; }
|
|
|
|
public KMemoryBlockAllocator(ulong CapacityElements)
|
|
{
|
|
this.CapacityElements = CapacityElements;
|
|
}
|
|
|
|
public bool CanAllocate(int Count)
|
|
{
|
|
return (ulong)(this.Count + Count) <= CapacityElements;
|
|
}
|
|
}
|
|
} |