|
FireSync API
|
| kStatus kStorage_DownloadToStream | ( | kStorage | storage, |
| const kChar * | filePath, | ||
| kStream | stream, | ||
| kCallbackFx | progress, | ||
| kPointer | context | ||
| ) |
Reads the contents of a storage file into a local stream.
If the remote node supports progress feedback, the specified callback will be invoked to provide updates on the progress of the operation. The callback 'args' parameter will receive a k32u value representing the percentage completed.
| storage | Storage object. |
| filePath | Source file path. |
| stream | Destination stream. |
| progress | Optional progress callback (can be kNULL). |
| context | Callback context. |