Class: RandomAccessStream

RandomAccessStream()

Base class for read-write seekable streams.

Constructor

new RandomAccessStream()

Source:

Members

(static) DEFAULT_BUFFER_SIZE

Default buffer size
Source:

Methods

(async) asReadStream()

Wrap to a JavaScript ReadableStream to use with 3rd party libraries.
Source:
Returns:
The ReadableStream

(async) copyTo(stream, bufferSize, onProgressChanged)

Write stream contents to another stream.
Parameters:
Name Type Default Description
stream RandomAccessStream The target stream.
bufferSize number 0 The buffer size to be used when copying.
onProgressChanged OnProgressChanged The listener to notify when progress changes.
Source:
Throws:
IOException Thrown if there is an IO error.

getAlignSize()

The preferred align size
Source:
Returns:
The align size