fix decompression copying out of wasm heap
This commit is contained in:
parent
1ed14d58f1
commit
57b272becf
1 changed files with 1 additions and 1 deletions
|
@ -54,5 +54,5 @@ export function compressDecompress(src: Uint8Array, dest: Uint8Array) {
|
||||||
throw new Error(`decompression failed: ${nrBytesDecompressed} != ${dest.length}`);
|
throw new Error(`decompression failed: ${nrBytesDecompressed} != ${dest.length}`);
|
||||||
|
|
||||||
// Dest will be memory[src.length..dest.length]
|
// Dest will be memory[src.length..dest.length]
|
||||||
dest.set(copyBuffer.slice(src.length, dest.length), 0);
|
dest.set(copyBuffer.slice(src.length, src.length + dest.length), 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue