ChunkManager Class
Extends EventEmitter
Module: opcua.miscellaneous
Constructor
ChunkManager
(
-
options
Parameters:
-
options
Object-
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:
-
listOfBytes
Object
Returns:
Buffer:
Example:
var buffer = makeBuffer("BE EF");
write
(
-
buffer
-
length
Parameters:
-
buffer
Buffer -
length
Number
Events
chunk
Event Payload:
-
chunk
Buffer -
isLast
Boolean, true if final chunk