node-opcua-chunkmanager
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -0,0 +0,0 @@ |
{ | ||
"name": "node-opcua-chunkmanager", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "pure nodejs OPCUA SDK - module -chunkmanager", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"node-opcua-assert": "^0.2.0", | ||
"node-opcua-binary-stream": "^0.2.1", | ||
"node-opcua-binary-stream": "^0.2.2", | ||
"node-opcua-buffer-utils": "^0.2.0", | ||
@@ -17,3 +17,3 @@ "underscore": "^1.8.3" | ||
"devDependencies": { | ||
"node-opcua-debug": "^0.2.0", | ||
"node-opcua-debug": "^0.2.2", | ||
"should": "13.2.1" | ||
@@ -20,0 +20,0 @@ }, |
@@ -80,5 +80,12 @@ "use strict"; | ||
var ChunkManager_options = [ | ||
"chunkSize", "headerSize", "signatureLength", | ||
"sequenceHeaderSize", "cipherBlockSize", "plainBlockSize", | ||
"compute_signature", "encrypt_buffer", "writeSequenceHeaderFunc", "writeHeaderFunc" | ||
"chunkSize", | ||
"headerSize", | ||
"signatureLength", | ||
"sequenceHeaderSize", | ||
"cipherBlockSize", | ||
"plainBlockSize", | ||
"compute_signature", | ||
"encrypt_buffer", | ||
"writeSequenceHeaderFunc", | ||
"writeHeaderFunc" | ||
]; | ||
@@ -88,7 +95,12 @@ /** | ||
* @param options {Object} | ||
* @param options.chunkSize | ||
* @param options.padding_size | ||
* @param [options.headerSize = 0 ] | ||
* @param [options.signatureLength = 0] | ||
* @param [options.sequenceHeaderSize = 8] size of the sequence header | ||
* @param options.chunkSize {number} | ||
* @param [options.headerSize = 0 ] {number} | ||
* @param [options.signatureLength = 0] {number} | ||
* @param [options.sequenceHeaderSize = 8] {number}size of the sequence header | ||
* @param [options.cipherBlockSize=0] {number} | ||
* @param [options.plainBlockSize=0] {number} | ||
* @param [options.compute_signature=null] {Function} | ||
* @param [options.encrypt_buffer] {Function} | ||
* @param [options.writeSequenceHeaderFunc=null] {Function} | ||
* @param [options.writeHeaderFunc] {Function} | ||
* @extends EventEmitter | ||
@@ -153,4 +165,3 @@ * @constructor | ||
this.chunk = createFastUninitializedBuffer(this.chunkSize); | ||
this.chunk = null; | ||
this.cursor = 0; | ||
@@ -271,2 +282,4 @@ this.pending_chunk = null; | ||
this.chunk = this.chunk || createFastUninitializedBuffer(this.chunkSize); | ||
if (buffer) { | ||
@@ -351,2 +364,3 @@ buffer.copy(this.chunk, this.cursor + this.dataOffset, input_cursor, input_cursor + nb_to_write); | ||
// - as a result, | ||
this.chunk = null; | ||
this.cursor = 0; | ||
@@ -353,0 +367,0 @@ }; |
@@ -0,0 +0,0 @@ "use strict"; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34715
6
702