|
FireSync API
|
| kStatus kStorage_UploadFromStream | ( | kStorage | storage, |
| const kChar * | filePath, | ||
| kStream | stream, | ||
| kSize | size, | ||
| kCallbackFx | progress, | ||
| kPointer | context | ||
| ) |
Write the contents of a local stream to a storage file, with progress updates.
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 | Destination file path. |
| stream | Source stream. |
| size | Count of bytes to write. |
| progress | Optional progress callback (can be kNULL). |
| context | Callback context. |