From c3d5c449894783263b2018751ea283733d9493f0 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 31 Jan 2017 18:45:20 +0000 Subject: [PATCH] Updated Adding a new operation (markdown) --- Adding-a-new-operation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adding-a-new-operation.md b/Adding-a-new-operation.md index 9bdc3cb..b043e8c 100644 --- a/Adding-a-new-operation.md +++ b/Adding-a-new-operation.md @@ -20,7 +20,7 @@ ```javascript "The name of your operation": { description: "A short description if necessary, optionally containing HTML code (e.g. lists and paragraphs)", - run: MyOperation.run_my_operation, // a reference to the function that runs your operation + run: MyOperation.runMyOperation, // a reference to the function that runs your operation inputType: "byteArray", // the input type for your operation, see the next section for valid types outputType: "byteArray", // the output type for your operation, see the next section for valid types highlight: true, // [optional] true if the operation does not change the position of bytes in the output (so that highlighting can be calculated) @@ -41,7 +41,7 @@ ```javascript "XOR": { description: "XOR the input with the given key, provided as either a hex or ASCII string.
e.g. fe023da5

Options
Null preserving: If the current byte is 0x00 or the same as the key, skip it.

Differential: Set the key to the value of the previously decoded byte.", - run: BitwiseOp.run_xor, + run: BitwiseOp.runXor, inputType: "byteArray", outputType: "byteArray", args: [