ChunkManager Class
Extends EventEmitter
Module: opcua.miscellaneous
Constructor
ChunkManager
(
-
options
Parameters:
-
optionsObject-
chunkSize -
padding_size -
[headerSize= 0]optional -
[signatureLength= 0]optional -
[sequenceHeaderSize= 8]optionalsize of the sequence header
-
Item Index
Events
Methods
_write_signature
()
private
compute the signature of the chunk and append it at the end of the data block.
end
()
makeBuffer
turn a string make of hexadecimal bytes into a buffer
(
Buffer
-
listOfBytes
Parameters:
-
listOfBytesObject
Returns:
Buffer:
Example:
var buffer = makeBuffer("BE EF");
write
(
-
buffer -
length
Parameters:
-
bufferBuffer -
lengthNumber
Events
chunk
Event Payload:
-
chunkBuffer -
isLastBoolean, true if final chunk
The NodeOPCUA API