mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
patch
This commit is contained in:
parent
5b0d4ee690
commit
5cf44bd21f
2 changed files with 3 additions and 2 deletions
BIN
Warp.rbxm
BIN
Warp.rbxm
Binary file not shown.
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue