before rewrite of HLSF
This commit is contained in:
@@ -39,7 +39,7 @@ namespace StgSharp.HighPerformance.Memory
|
||||
nuint size
|
||||
)
|
||||
{
|
||||
if (size > _maxSize) {
|
||||
if (size > _maxAllocSize) {
|
||||
throw new InvalidOperationException("Requested size exceeds maximum allocatable size.");
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace StgSharp.HighPerformance.Memory
|
||||
out HlsfHandle handle
|
||||
)
|
||||
{
|
||||
if (size > _maxSize)
|
||||
if (size > _maxAllocSize)
|
||||
{
|
||||
handle = default;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user