How to use the node-opcua-binary-stream.BinaryStreamSizeCalculator function in node-opcua-binary-stream

To help you get started, we’ve selected a few node-opcua-binary-stream examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-address-space / src / argument_list.js View on Github external
const binaryStoreSize_ArgumentList = function (description, args) {

    assert(_.isArray(description));
    assert(_.isArray(args));
    assert(args.length === description.length);

    const stream = new BinaryStreamSizeCalculator();
    encode_ArgumentList(description, args, stream);
    return stream.length;
};
exports.binaryStoreSize_ArgumentList = binaryStoreSize_ArgumentList;
github node-opcua / node-opcua / packages / node-opcua-factory / src / factories_baseobject.js View on Github external
BaseUAObject.prototype.binaryStoreSize = function () {
    const stream = new BinaryStreamSizeCalculator();
    this.encode(stream);
    return stream.length;
};
github node-opcua / node-opcua / packages / node-opcua-factory / source / factories_baseobject.ts View on Github external
public binaryStoreSize(): number {
        const stream = new BinaryStreamSizeCalculator();
        this.encode(stream as OutputBinaryStream);
        return stream.length;
    }
github node-opcua / node-opcua / packages / node-opcua-address-space / source / helpers / argument_list.ts View on Github external
export function binaryStoreSize_ArgumentList(description: any, args: any) {

    assert(_.isArray(description));
    assert(_.isArray(args));
    assert(args.length === description.length);

    const stream = new BinaryStreamSizeCalculator();
    encode_ArgumentList(description, args, stream);
    return stream.length;
}

node-opcua-binary-stream

pure nodejs OPCUA SDK - module binary-stream

MIT
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis