mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-12 22:16:05 +09:00
faster sys.memcpy impl
This commit is contained in:
@@ -49,7 +49,7 @@ function readBytes(length, ptrToDecode) {
|
||||
let ptr = (ptrToDecode === undefined) ? sys.malloc(length) : ptrToDecode
|
||||
let requiredBlocks = Math.floor((readCount + length) / 4096) - Math.floor(readCount / 4096)
|
||||
|
||||
let destVector = (ptrToDecode >= 0) ? 1 : -1
|
||||
let destVector = (ptr >= 0) ? 1 : -1
|
||||
|
||||
let completedReads = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user