[-] Bytebuf: Drop final references to fast/zeroless allocation

This commit is contained in:
Reece Wilson 2023-10-23 09:58:17 +01:00
parent 3dee15a0f6
commit 18dbe62959
2 changed files with 5 additions and 5 deletions

View File

@ -188,7 +188,7 @@ namespace Aurora::Memory
return;
}
this->length = vector.size();
this->allocSize = vector.size();
this->allocSize = this->length;
this->readPtr = this->base;
this->writePtr = this->readPtr + this->length;
AuMemcpy(this->base, vector.data(), this->length);
@ -433,8 +433,8 @@ namespace Aurora::Memory
// Memory operations
inline auline bool Allocate(AuUInt length, bool fast = true);
inline auline bool Allocate(AuUInt length, AuUInt alignment, bool fast = true);
inline auline bool Allocate(AuUInt length);
inline auline bool Allocate(AuUInt length, AuUInt alignment);
inline auline bool SetBuffer(MemoryViewRead readView, bool bMoveWriteHeadForReaders = true);
/**

View File

@ -9,7 +9,7 @@
namespace Aurora::Memory
{
bool ByteBuffer::Allocate(AuUInt length, bool fast)
bool ByteBuffer::Allocate(AuUInt length)
{
if (this->flagNoFree)
{
@ -43,7 +43,7 @@ namespace Aurora::Memory
return true;
}
bool ByteBuffer::Allocate(AuUInt length, AuUInt alignment, bool fast)
bool ByteBuffer::Allocate(AuUInt length, AuUInt alignment)
{
if (this->flagNoFree)
{