diff --git a/Include/Aurora/Memory/ByteBuffer.hpp b/Include/Aurora/Memory/ByteBuffer.hpp index 520f497e..fd9f8974 100644 --- a/Include/Aurora/Memory/ByteBuffer.hpp +++ b/Include/Aurora/Memory/ByteBuffer.hpp @@ -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); /** diff --git a/Include/Aurora/Memory/ByteBuffer_Memory.inl b/Include/Aurora/Memory/ByteBuffer_Memory.inl index d1bceb4a..087a595f 100644 --- a/Include/Aurora/Memory/ByteBuffer_Memory.inl +++ b/Include/Aurora/Memory/ByteBuffer_Memory.inl @@ -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) {