Tidied up CBOR operations

This commit is contained in:
n1474335 2021-03-26 14:07:02 +00:00
parent 88e3c2ccb2
commit ff88d30d2f
4 changed files with 8 additions and 11 deletions

View file

@ -19,13 +19,12 @@ class CBORDecode extends Operation {
super(); super();
this.name = "CBOR Decode"; this.name = "CBOR Decode";
this.module = "Default"; this.module = "Serialise";
this.description = "Decode Concise Binary Object Representation (CBOR) data format (RFC7049) to JSON."; this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain namevalue pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949.";
this.infoURL = "https://cbor.io"; this.infoURL = "https://wikipedia.org/wiki/CBOR";
this.inputType = "ArrayBuffer"; this.inputType = "ArrayBuffer";
this.outputType = "JSON"; this.outputType = "JSON";
this.args = [ this.args = [];
];
} }
/** /**

View file

@ -19,9 +19,9 @@ class CBOREncode extends Operation {
super(); super();
this.name = "CBOR Encode"; this.name = "CBOR Encode";
this.module = "Default"; this.module = "Serialise";
this.description = "2"; this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain namevalue pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949.";
this.infoURL = "https://cbor.io"; this.infoURL = "https://wikipedia.org/wiki/CBOR";
this.inputType = "JSON"; this.inputType = "JSON";
this.outputType = "ArrayBuffer"; this.outputType = "ArrayBuffer";
this.args = []; this.args = [];

View file

@ -1,8 +1,7 @@
/** /**
* From Hex Tests. * CBOR Decode Tests
* *
* @author Danh4 [dan.h4@ncsc.gov.uk] * @author Danh4 [dan.h4@ncsc.gov.uk]
*
* @copyright Crown Copyright 2019 * @copyright Crown Copyright 2019
* @license Apache-2.0 * @license Apache-2.0
*/ */

View file

@ -2,7 +2,6 @@
* CBOR Encode Tests. * CBOR Encode Tests.
* *
* @author Danh4 [dan.h4@ncsc.gov.uk] * @author Danh4 [dan.h4@ncsc.gov.uk]
*
* @copyright Crown Copyright 2019 * @copyright Crown Copyright 2019
* @license Apache-2.0 * @license Apache-2.0
*/ */