Constructor
new AesFileExporter()
Classes
Methods
getError(err) → {any}
Tranform an error that can be thrown from a web worker.
Parameters:
Name | Type | Description |
---|---|---|
err |
any | The original error |
Returns:
The transformed error
- Type
- any
(async) getMinimumPartSize(sourceFile, targetFile) → {Promise.<number>}
Parameters:
Name | Type | Description |
---|---|---|
sourceFile |
IVirtualFile | The source file |
targetFile |
IFile | The traget file |
Returns:
The minimum file part.
- Type
- Promise.<number>
(async) getWorkerMessage(index, sourceFile, targetFile, runningThreads, partSize, fileSize, bufferSize, integrity) → {any}
Create a message for the web worker.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The worker index |
sourceFile |
IVirtualFile | The source file |
targetFile |
IFile | The target file |
runningThreads |
number | The number of threads scheduled |
partSize |
number | The length of the file part that will be imported |
fileSize |
number | The file size |
bufferSize |
number | The buffer size |
integrity |
boolean | True if integrity is enabled. |
Returns:
The message to be sent to the worker
- Type
- any
(async) onPrepare(sourceFile, integrity)
Called during preparation of export.
Parameters:
Name | Type | Description |
---|---|---|
sourceFile |
IVirtualFile | The source file |
integrity |
boolean | True if integrity enabled |