How to use the node-opcua-basic-types.encodeUInt32 function in node-opcua-basic-types

To help you get started, we’ve selected a few node-opcua-basic-types 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-variant / schemas / Variant_schema.js View on Github external
function encodeGeneralArray(dataType, stream, value) {
    const arr = value || [];
    assert(arr instanceof Array);
    assert(_.isFinite(arr.length));
    ec.encodeUInt32(arr.length, stream);
    const encode = get_encoder(dataType);
    let i;
    const n = arr.length;
    for (i = 0; i < n; i++) {
        encode(arr[i], stream);
    }
}
github node-opcua / node-opcua / packages / node-opcua-transport / source / HelloMessage.ts View on Github external
public encode(stream: OutputBinaryStream): void {
        super.encode(stream);
        encodeUInt32(this.protocolVersion, stream);
        encodeUInt32(this.receiveBufferSize, stream);
        encodeUInt32(this.sendBufferSize, stream);
        encodeUInt32(this.maxMessageSize, stream);
        encodeUInt32(this.maxChunkCount, stream);
        encodeUAString(this.endpointUrl, stream);
    }
github node-opcua / node-opcua / packages / node-opcua-variant / source / variant.ts View on Github external
function encodeGeneralArray(dataType: DataType, stream: OutputBinaryStream, value: any) {
  const arr = value || [];
  assert(arr instanceof Array);
  assert(_.isFinite(arr.length));
  encodeUInt32(arr.length, stream);
  const encode = get_encoder(dataType);
  let i;
  const n = arr.length;
  for (i = 0; i < n; i++) {
    encode(arr[i], stream);
  }
}
github node-opcua / node-opcua / packages / node-opcua-transport / source / AcknowledgeMessage.ts View on Github external
public encode(stream: OutputBinaryStream): void {

        super.encode(stream);
        encodeUInt32(this.protocolVersion, stream);
        encodeUInt32(this.receiveBufferSize, stream);
        encodeUInt32(this.sendBufferSize, stream);
        encodeUInt32(this.maxMessageSize, stream);
        encodeUInt32(this.maxChunkCount, stream);
    }
github node-opcua / node-opcua / packages / node-opcua-transport / source / AcknowledgeMessage.ts View on Github external
public encode(stream: OutputBinaryStream): void {

        super.encode(stream);
        encodeUInt32(this.protocolVersion, stream);
        encodeUInt32(this.receiveBufferSize, stream);
        encodeUInt32(this.sendBufferSize, stream);
        encodeUInt32(this.maxMessageSize, stream);
        encodeUInt32(this.maxChunkCount, stream);
    }
github node-opcua / node-opcua / packages / node-opcua-transport / source / AcknowledgeMessage.ts View on Github external
public encode(stream: OutputBinaryStream): void {

        super.encode(stream);
        encodeUInt32(this.protocolVersion, stream);
        encodeUInt32(this.receiveBufferSize, stream);
        encodeUInt32(this.sendBufferSize, stream);
        encodeUInt32(this.maxMessageSize, stream);
        encodeUInt32(this.maxChunkCount, stream);
    }
github node-opcua / node-opcua / packages / node-opcua-chunkmanager / source / SequenceHeader.ts View on Github external
public encode(stream: OutputBinaryStream): void {
        super.encode(stream);
        encodeUInt32(this.sequenceNumber, stream);
        encodeUInt32(this.requestId, stream);
    }