[*] 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)
{
this->scaleSize = kBufferInitialPower;
if (!length)
if (!(this->length = readView.length))
{
Reset();
return;
@ -329,8 +329,7 @@ namespace Aurora::Memory
Reset();
return;
}
this->length = length;
this->allocSize = length;
this->allocSize = this->length;
this->readPtr = this->base;
this->writePtr = this->readPtr + this->length;
AuMemcpy(this->base, readView.Begin(), length);