From 30bc8dfbe974928c05d1872fdf335fa009e17cfa Mon Sep 17 00:00:00 2001 From: n1073645 Date: Fri, 13 Mar 2020 10:37:13 +0000 Subject: [PATCH] UNIX Format Added for ToHexdump --- src/core/operations/ToHexdump.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/operations/ToHexdump.mjs b/src/core/operations/ToHexdump.mjs index a602ae2c..d5ca663c 100644 --- a/src/core/operations/ToHexdump.mjs +++ b/src/core/operations/ToHexdump.mjs @@ -39,6 +39,11 @@ class ToHexdump extends Operation { "name": "Include final length", "type": "boolean", "value": false + }, + { + "name": "UNIX Format", + "type": "boolean", + "value": false } ]; } @@ -70,7 +75,7 @@ class ToHexdump extends Operation { output += lineNo + " " + hexa.padEnd(length*(padding+1), " ") + - " |" + Utils.printable(Utils.byteArrayToChars(buff), false, true).padEnd(buff.length, " ") + "|\n"; + " |" + Utils.printable(Utils.byteArrayToChars(buff), false, args[3]).padEnd(buff.length, " ") + "|\n"; if (includeFinalLength && i+buff.length === data.length) { output += Utils.hex(i+buff.length, 8) + "\n";