From 18dbe62959ab55623de28f8be7619966f3d98105 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Mon, 23 Oct 2023 09:58:17 +0100 Subject: [PATCH] [-] Bytebuf: Drop final references to fast/zeroless allocation --- Include/Aurora/Memory/ByteBuffer.hpp | 6 +++--- Include/Aurora/Memory/ByteBuffer_Memory.inl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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) {