Class: BlockStream

BlockStream

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

new BlockStream( [options])

Parameters:
Name Type Argument Description
options Object <optional>
Properties
Name Type Argument Default Description
sBucket Sbucket <optional>
The S-bucket for chunks allocation
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: