mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Updated a range of operations to use ArrayBuffers instead of byteArrays to improve performance with large files.
This commit is contained in:
parent
3a8b362dfd
commit
0e95ad8ed6
37 changed files with 112 additions and 84 deletions
|
@ -22,7 +22,7 @@ class Tar extends Operation {
|
|||
this.module = "Compression";
|
||||
this.description = "Packs the input into a tarball.<br><br>No support for multiple files at this time.";
|
||||
this.infoURL = "https://wikipedia.org/wiki/Tar_(computing)";
|
||||
this.inputType = "byteArray";
|
||||
this.inputType = "ArrayBuffer";
|
||||
this.outputType = "File";
|
||||
this.args = [
|
||||
{
|
||||
|
@ -34,11 +34,13 @@ class Tar extends Operation {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {byteArray} input
|
||||
* @param {ArrayBuffer} input
|
||||
* @param {Object[]} args
|
||||
* @returns {byteArray}
|
||||
*/
|
||||
run(input, args) {
|
||||
input = new Uint8Array(input);
|
||||
|
||||
const Tarball = function() {
|
||||
this.bytes = new Array(512);
|
||||
this.position = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue