API Docs for: 0.0.57
Show:

ChunkManager Class

Extends EventEmitter
Module: opcua.miscellaneous

Constructor

ChunkManager

(
  • options
)

Parameters:

  • options Object
    • chunkSize
    • padding_size
    • [headerSize= 0] optional
    • [signatureLength= 0] optional
    • [sequenceHeaderSize= 8] optional

      size of the sequence header

Methods

_extra_encryption_bytes

() Number private

Returns:

Number:

returns the number of extra bytes that will be added to the buffer during the encryption phase , or 0 if no encryption is envisaged.

_write_signature

() private

compute the signature of the chunk and append it at the end of the data block.

end

()

write

(
  • buffer
  • length
)

Parameters:

  • buffer Buffer
  • length Number

Events

chunk

Event Payload:

  • chunk Buffer
  • isLast Boolean

    , true if final chunk