Added a max_size function to all AZStd container style allocator functions (#4106)
* Added a max_size function to all AZStd container style allocator functions The max_size functions returns the maximum value that a single contiguous allocation value returns Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> * Updated the BestFitExternalMapSchema and MallocSchema GetMaxContiguousAllocationSize function Those functions now return a Max allocation size of AZ_CORE_MAX_ALLOCATOR size to indicate the maximum size for a single allocation Changed the IAllocatorAllocator::GetMaxContiguousAllocationSize function from a pure virtual function to regular virtual function Removed the left over String.cpp test to validate that the issue with the allocator::max_size() function was occuring Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2382b5cbd3
commit
4e8d4c0c51
@@ -39,7 +39,7 @@ namespace MCore
|
||||
return 0;
|
||||
}
|
||||
|
||||
StaticAllocator::size_type StaticAllocator::get_max_size() const
|
||||
StaticAllocator::size_type StaticAllocator::max_size() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace MCore
|
||||
|
||||
StaticAllocator::size_type resize(pointer_type ptr, size_type newSize);
|
||||
|
||||
StaticAllocator::size_type get_max_size() const;
|
||||
StaticAllocator::size_type max_size() const;
|
||||
|
||||
StaticAllocator::size_type get_allocated_size() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user