Class: BlockStream

BlockStream(optionsopt)

Transforms the input stream into an output stream of N-sized chunks

Constructor

new BlockStream(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>
Properties
Name Type Attributes Default Description
chunkSize Number <optional>
constants.C The bytes of each chunk
padLastChunk Boolean <optional>
false Pad last chunk with zeros
Source:

Events

data

Triggered when data is available
Parameters:
Name Type Description
chunk Buffer
Source:

end

Triggered when the stream is ended
Source: