🚧 Test decompression
This commit is contained in:
parent
285078fbe6
commit
695ee74e72
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ export default async function getPatch(product: Product, from: number, to: numbe
|
|||
fileEntries.filter((file) => file.diffType === SsnDiffType.NewFile).forEach(async (file) => {
|
||||
try {
|
||||
const fileStream = await getFileFromDisks(diskFilenames, { diskStart: file.diskNumberStart, offset: file.offset, length: file.compressedSize });
|
||||
const fileContents = extractFileStream(file, fileStream, true);
|
||||
const fileContents = extractFileStream(file, fileStream);
|
||||
console.debug(file.name, file.compressedSize, await streamToArrayBuffer(fileContents));
|
||||
//TODO: need to write to disk
|
||||
} catch (error) {
|
||||
|
@ -52,7 +52,7 @@ export default async function getPatch(product: Product, from: number, to: numbe
|
|||
fileEntries.filter((file) => file.diffType === SsnDiffType.Changed).forEach(async (file) => {
|
||||
try {
|
||||
const fileStream = await getFileFromDisks(diskFilenames, { diskStart: file.diskNumberStart, offset: file.offset, length: file.compressedSize });
|
||||
const fileContents = extractFileStream(file, fileStream, true);
|
||||
const fileContents = extractFileStream(file, fileStream);
|
||||
console.debug(file.name, file.compressedSize, await streamToArrayBuffer(fileContents));
|
||||
//TODO: need to apply diffing, then write to disk
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue