This commit is contained in:
EternityDev 2024-03-24 16:36:31 +07:00
parent 5b0d4ee690
commit 5cf44bd21f
2 changed files with 3 additions and 2 deletions

BIN
Warp.rbxm

Binary file not shown.

View file

@ -35,6 +35,7 @@ function DedicatedBuffer.alloc(self: any, byte: number)
local size: number = self.size local size: number = self.size
local b: buffer = self.buffer local b: buffer = self.buffer
while self.point + byte >= size do while self.point + byte >= size do
size = math.floor(size * 1.5) size = math.floor(size * 1.5)
end end
@ -49,7 +50,7 @@ function DedicatedBuffer.alloc(self: any, byte: number)
end end
function DedicatedBuffer.build(self: any): buffer function DedicatedBuffer.build(self: any): buffer
local p: number = self.point local p: number = self.next > self.point and self.next or self.point
local build: buffer = create(p) local build: buffer = create(p)
copy(build, 0, self.buffer, 0, p) copy(build, 0, self.buffer, 0, p)