node-opcua-variant
Advanced tools
Comparing version 2.0.0-alpha.11 to 2.0.0-alpha.12
@@ -5,3 +5,3 @@ /** | ||
import { BaseUAObject, StructuredTypeSchema } from "node-opcua-factory"; | ||
import { BinaryStream } from "node-opcua-binary-stream"; | ||
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { DataType } from "./DataType_enum"; | ||
@@ -26,3 +26,3 @@ import { VariantArrayType } from "./VariantArrayType_enum"; | ||
setArrayType(value: any): void; | ||
encode(stream: BinaryStream): void; | ||
encode(stream: OutputBinaryStream): void; | ||
decode(stream: BinaryStream): void; | ||
@@ -50,3 +50,3 @@ decodeDebug(stream: BinaryStream, options: any): void; | ||
*/ | ||
export declare function encodeVariant(variant: Variant, stream: BinaryStream): void; | ||
export declare function encodeVariant(variant: Variant, stream: OutputBinaryStream): void; | ||
/*** | ||
@@ -62,3 +62,3 @@ * @private | ||
export declare function isValidVariant(arrayType: VariantArrayType, dataType: DataType, value: any, dimensions: number[] | null): boolean; | ||
export declare function buildVariantArray(dataType: DataType, nbElements: number, defaultValue: any): any[] | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array; | ||
export declare function buildVariantArray(dataType: DataType, nbElements: number, defaultValue: any): any[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; | ||
/*** | ||
@@ -65,0 +65,0 @@ * returns true if the two variant represent the same value |
{ | ||
"name": "node-opcua-variant", | ||
"version": "2.0.0-alpha.11", | ||
"version": "2.0.0-alpha.12", | ||
"description": "pure nodejs OPCUA SDK - module -variant", | ||
@@ -14,8 +14,8 @@ "main": "./dist/index.js", | ||
"node-opcua-assert": "^2.0.0-alpha.10", | ||
"node-opcua-basic-types": "^2.0.0-alpha.11", | ||
"node-opcua-data-model": "^2.0.0-alpha.11", | ||
"node-opcua-basic-types": "^2.0.0-alpha.12", | ||
"node-opcua-data-model": "^2.0.0-alpha.12", | ||
"node-opcua-enum": "^2.0.0-alpha.10", | ||
"node-opcua-factory": "^2.0.0-alpha.11", | ||
"node-opcua-factory": "^2.0.0-alpha.12", | ||
"node-opcua-nodeid": "^2.0.0-alpha.11", | ||
"node-opcua-utils": "^2.0.0-alpha.10", | ||
"node-opcua-utils": "^2.0.0-alpha.12", | ||
"underscore": "^1.9.1" | ||
@@ -25,8 +25,8 @@ }, | ||
"node-opcua-benchmarker": "^2.0.0-alpha.10", | ||
"node-opcua-binary-stream": "^2.0.0-alpha.10", | ||
"node-opcua-binary-stream": "^2.0.0-alpha.12", | ||
"node-opcua-debug": "^2.0.0-alpha.10", | ||
"node-opcua-generator": "^2.0.0-alpha.11", | ||
"node-opcua-numeric-range": "^2.0.0-alpha.11", | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.11", | ||
"node-opcua-status-code": "^2.0.0-alpha.10", | ||
"node-opcua-generator": "^2.0.0-alpha.12", | ||
"node-opcua-numeric-range": "^2.0.0-alpha.12", | ||
"node-opcua-packet-analyzer": "^2.0.0-alpha.12", | ||
"node-opcua-status-code": "^2.0.0-alpha.12", | ||
"should": "13.2.3", | ||
@@ -50,3 +50,3 @@ "source-map-support": "^0.5.10" | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "bf7ea24732637e662af9b5b63941388e89fd3427" | ||
"gitHead": "61699a99c75c631388f2e8d8e33eb209649c5eac" | ||
} |
@@ -34,3 +34,3 @@ /** | ||
import { BinaryStream } from "node-opcua-binary-stream"; | ||
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { _enumerationDataType, DataType } from "./DataType_enum"; | ||
@@ -150,3 +150,3 @@ import { _enumerationVariantArrayType, VariantArrayType } from "./VariantArrayType_enum"; | ||
public encode(stream: BinaryStream) { | ||
public encode(stream: OutputBinaryStream) { | ||
encodeVariant(this, stream); | ||
@@ -249,3 +249,3 @@ } | ||
*/ | ||
export function encodeVariant(variant: Variant, stream: BinaryStream): void { | ||
export function encodeVariant(variant: Variant, stream: OutputBinaryStream): void { | ||
@@ -562,3 +562,3 @@ let encodingByte = variant.dataType; | ||
coerce: (value: any) => any; | ||
encode: (stream: BinaryStream, value: any) => void; | ||
encode: (stream: OutputBinaryStream, value: any) => void; | ||
decode: (stream: BinaryStream) => any; | ||
@@ -583,3 +583,3 @@ } | ||
function encodeTypedArray(arrayTypeConstructor: BufferedArrayConstructor, stream: BinaryStream, value: any) { | ||
function encodeTypedArray(arrayTypeConstructor: BufferedArrayConstructor, stream: OutputBinaryStream, value: any) { | ||
@@ -593,3 +593,3 @@ assert(value instanceof arrayTypeConstructor); | ||
function encodeGeneralArray(dataType: DataType, stream: BinaryStream, value: any) { | ||
function encodeGeneralArray(dataType: DataType, stream: OutputBinaryStream, value: any) { | ||
const arr = value || []; | ||
@@ -607,3 +607,3 @@ assert(arr instanceof Array); | ||
function encodeVariantArray(dataType: DataType, stream: BinaryStream, value: any) { | ||
function encodeVariantArray(dataType: DataType, stream: OutputBinaryStream, value: any) { | ||
@@ -713,3 +713,3 @@ if (value.buffer) { | ||
function encodeDimension(dimensions: number[], stream: BinaryStream) { | ||
function encodeDimension(dimensions: number[], stream: OutputBinaryStream) { | ||
return encodeGeneralArray(DataType.UInt32, stream, dimensions); | ||
@@ -716,0 +716,0 @@ } |
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
108957