node-opcua-chunkmanager
Advanced tools
Comparing version 2.72.1 to 2.73.0
@@ -43,2 +43,6 @@ /// <reference types="node" /> | ||
constructor(options: IChunkManagerOptions); | ||
evaluateTotalLengthAndChunks(bodySize: number): { | ||
totalLength: number; | ||
chunkCount: number; | ||
}; | ||
write(buffer: Buffer, length?: number): void; | ||
@@ -45,0 +49,0 @@ end(): void; |
@@ -73,2 +73,7 @@ "use strict"; | ||
} | ||
evaluateTotalLengthAndChunks(bodySize) { | ||
const chunkCount = Math.ceil(bodySize / this.maxBodySize); | ||
const totalLength = this.chunkSize + chunkCount; | ||
return { totalLength, chunkCount }; | ||
} | ||
write(buffer, length) { | ||
@@ -75,0 +80,0 @@ length = length || buffer.length; |
@@ -6,11 +6,15 @@ /*** | ||
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { BaseUAObject, StructuredTypeSchema } from "node-opcua-factory"; | ||
import { BaseUAObject, IStructuredTypeSchema } from "node-opcua-factory"; | ||
export interface SequenceHeaderOptions { | ||
sequenceNumber?: UInt32; | ||
requestId?: UInt32; | ||
} | ||
export declare class SequenceHeader extends BaseUAObject { | ||
static possibleFields: string[]; | ||
static schema: StructuredTypeSchema; | ||
static schema: IStructuredTypeSchema; | ||
sequenceNumber: UInt32; | ||
requestId: UInt32; | ||
constructor(options?: any); | ||
constructor(options?: SequenceHeaderOptions); | ||
encode(stream: OutputBinaryStream): void; | ||
decode(stream: BinaryStream): void; | ||
} |
{ | ||
"name": "node-opcua-chunkmanager", | ||
"version": "2.72.1", | ||
"version": "2.73.0", | ||
"description": "pure nodejs OPCUA SDK - module -chunkmanager", | ||
@@ -16,6 +16,6 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "2.66.0", | ||
"node-opcua-basic-types": "2.72.1", | ||
"node-opcua-binary-stream": "2.71.0", | ||
"node-opcua-basic-types": "2.73.0", | ||
"node-opcua-binary-stream": "2.73.0", | ||
"node-opcua-buffer-utils": "2.71.0", | ||
"node-opcua-factory": "2.72.1", | ||
"node-opcua-factory": "2.73.0", | ||
"node-opcua-packet-assembler": "2.71.0" | ||
@@ -44,3 +44,3 @@ }, | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "ba98dd91a9eada9815268c66c98ca5391bc884e7" | ||
"gitHead": "b23a87c1ef777c0d8b680f45ee77e2a319feb092" | ||
} |
@@ -157,2 +157,8 @@ /*** | ||
public evaluateTotalLengthAndChunks(bodySize: number): { totalLength: number; chunkCount: number } { | ||
const chunkCount = Math.ceil(bodySize / this.maxBodySize); | ||
const totalLength = this.chunkSize + chunkCount; | ||
return { totalLength, chunkCount }; | ||
} | ||
public write(buffer: Buffer, length?: number) { | ||
@@ -159,0 +165,0 @@ length = length || buffer.length; |
@@ -12,6 +12,6 @@ /*** | ||
parameters, | ||
StructuredTypeSchema | ||
IStructuredTypeSchema | ||
} from "node-opcua-factory"; | ||
const schemaSequenceHeader: StructuredTypeSchema = buildStructuredType({ | ||
const schemaSequenceHeader: IStructuredTypeSchema = buildStructuredType({ | ||
baseType: "BaseUAObject", | ||
@@ -29,2 +29,6 @@ fields: [ | ||
export interface SequenceHeaderOptions { | ||
sequenceNumber?: UInt32; | ||
requestId?: UInt32; | ||
} | ||
export class SequenceHeader extends BaseUAObject { | ||
@@ -36,3 +40,3 @@ public static possibleFields: string[] = ["sequenceNumber", "requestId"]; | ||
constructor(options?: any) { | ||
constructor(options?: SequenceHeaderOptions) { | ||
options = options || {}; | ||
@@ -39,0 +43,0 @@ super(); |
Sorry, the diff of this file is not supported yet
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
47572
745
+ Addednode-opcua-basic-types@2.73.0(transitive)
+ Addednode-opcua-binary-stream@2.73.0(transitive)
+ Addednode-opcua-date-time@2.73.0(transitive)
+ Addednode-opcua-factory@2.73.0(transitive)
+ Addednode-opcua-status-code@2.73.0(transitive)
- Removednode-opcua-basic-types@2.72.1(transitive)
- Removednode-opcua-binary-stream@2.71.0(transitive)
- Removednode-opcua-date-time@2.71.0(transitive)
- Removednode-opcua-factory@2.72.1(transitive)
- Removednode-opcua-status-code@2.71.0(transitive)
Updatednode-opcua-factory@2.73.0