Rename parameters (and add it)
This commit is contained in:
parent
88e2884fc5
commit
8fe0fa5c03
@ -795,6 +795,19 @@ do
|
|||||||
return old
|
return old
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function allocator.copy(memory, destination, source, length)
|
||||||
|
local destination_addr = by_offset(memory.data, destination)
|
||||||
|
local source_addr = by_offset(memory.data, source)
|
||||||
|
|
||||||
|
ffi.copy(destination_addr, source_addr, length)
|
||||||
|
end
|
||||||
|
|
||||||
|
function allocator.fill(memory, address, value, length)
|
||||||
|
local start = by_offset(memory.data, address)
|
||||||
|
|
||||||
|
ffi.fill(start, length, value)
|
||||||
|
end
|
||||||
|
|
||||||
module.load = load
|
module.load = load
|
||||||
module.store = store
|
module.store = store
|
||||||
|
Loading…
x
Reference in New Issue
Block a user