[*] im a smort boi
This commit is contained in:
parent
5b19341186
commit
114976a71d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user