Fix RawDataAsset memory usage to use capacity of the bytes array instead of just size
This commit is contained in:
@@ -69,7 +69,7 @@ uint64 RawDataAsset::GetMemoryUsage() const
|
|||||||
Locker.Lock();
|
Locker.Lock();
|
||||||
uint64 result = BinaryAsset::GetMemoryUsage();
|
uint64 result = BinaryAsset::GetMemoryUsage();
|
||||||
result += sizeof(RawDataAsset) - sizeof(BinaryAsset);
|
result += sizeof(RawDataAsset) - sizeof(BinaryAsset);
|
||||||
result += Data.Count();
|
result += Data.Capacity();
|
||||||
Locker.Unlock();
|
Locker.Unlock();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user