[-] Bytebuf: Drop final references to fast/zeroless allocation
This commit is contained in:
parent
3dee15a0f6
commit
18dbe62959
@ -188,7 +188,7 @@ namespace Aurora::Memory
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->length = vector.size();
|
this->length = vector.size();
|
||||||
this->allocSize = vector.size();
|
this->allocSize = this->length;
|
||||||
this->readPtr = this->base;
|
this->readPtr = this->base;
|
||||||
this->writePtr = this->readPtr + this->length;
|
this->writePtr = this->readPtr + this->length;
|
||||||
AuMemcpy(this->base, vector.data(), this->length);
|
AuMemcpy(this->base, vector.data(), this->length);
|
||||||
@ -433,8 +433,8 @@ namespace Aurora::Memory
|
|||||||
|
|
||||||
// Memory operations
|
// Memory operations
|
||||||
|
|
||||||
inline auline bool Allocate(AuUInt length, bool fast = true);
|
inline auline bool Allocate(AuUInt length);
|
||||||
inline auline bool Allocate(AuUInt length, AuUInt alignment, bool fast = true);
|
inline auline bool Allocate(AuUInt length, AuUInt alignment);
|
||||||
inline auline bool SetBuffer(MemoryViewRead readView, bool bMoveWriteHeadForReaders = true);
|
inline auline bool SetBuffer(MemoryViewRead readView, bool bMoveWriteHeadForReaders = true);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
namespace Aurora::Memory
|
namespace Aurora::Memory
|
||||||
{
|
{
|
||||||
bool ByteBuffer::Allocate(AuUInt length, bool fast)
|
bool ByteBuffer::Allocate(AuUInt length)
|
||||||
{
|
{
|
||||||
if (this->flagNoFree)
|
if (this->flagNoFree)
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ namespace Aurora::Memory
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ByteBuffer::Allocate(AuUInt length, AuUInt alignment, bool fast)
|
bool ByteBuffer::Allocate(AuUInt length, AuUInt alignment)
|
||||||
{
|
{
|
||||||
if (this->flagNoFree)
|
if (this->flagNoFree)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user