[*] im a smort boi

This commit is contained in:
Reece Wilson 2024-06-19 22:14:50 +01:00
parent 5b19341186
commit 114976a71d

View File

@ -317,7 +317,7 @@ namespace Aurora::Memory
flagCircular(circular), flagExpandable(expandable), flagReadError(0), flagWriteError(0) flagCircular(circular), flagExpandable(expandable), flagReadError(0), flagWriteError(0)
{ {
this->scaleSize = kBufferInitialPower; this->scaleSize = kBufferInitialPower;
if (!length) if (!(this->length = readView.length))
{ {
Reset(); Reset();
return; return;
@ -329,8 +329,7 @@ namespace Aurora::Memory
Reset(); Reset();
return; return;
} }
this->length = length; this->allocSize = this->length;
this->allocSize = length;
this->readPtr = this->base; this->readPtr = this->base;
this->writePtr = this->readPtr + this->length; this->writePtr = this->readPtr + this->length;
AuMemcpy(this->base, readView.Begin(), length); AuMemcpy(this->base, readView.Begin(), length);