|
FireSync API
|
| kStatus kStorage_UploadFromBuffer | ( | kStorage | storage, |
| const kChar * | filePath, | ||
| const void * | buffer, | ||
| kSize | size, | ||
| kCallbackFx | progress, | ||
| kPointer | context | ||
| ) |
Write the contents of a memory buffer to a storage module file.
The destination file will be overwritten if it already exists.
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. |
| buffer | Data buffer to write. |
| size | Buffer capacity. |
| progress | Optional progress callback (can be kNULL). |
| context | Callback context. |