Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opcua-chunkmanager

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opcua-chunkmanager - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

test/test_chunk_manager.js

0

index.js

@@ -0,0 +0,0 @@

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc