mirror of
https://github.com/gchq/CyberChef
synced 2025-12-18 09:13:43 +00:00
Updated a range of operations to use ArrayBuffers instead of byteArrays to improve performance with large files.
This commit is contained in:
@@ -23,7 +23,7 @@ class Untar extends Operation {
|
||||
this.module = "Compression";
|
||||
this.description = "Unpacks a tarball and displays it per file.";
|
||||
this.infoURL = "https://wikipedia.org/wiki/Tar_(computing)";
|
||||
this.inputType = "byteArray";
|
||||
this.inputType = "ArrayBuffer";
|
||||
this.outputType = "List<File>";
|
||||
this.presentType = "html";
|
||||
this.args = [];
|
||||
@@ -37,11 +37,12 @@ class Untar extends Operation {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {byteArray} input
|
||||
* @param {ArrayBuffer} input
|
||||
* @param {Object[]} args
|
||||
* @returns {List<File>}
|
||||
*/
|
||||
run(input, args) {
|
||||
input = new Uint8Array(input);
|
||||
const stream = new Stream(input),
|
||||
files = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user