FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
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.

Parameters
storageStorage object.
filePathSource file path.
streamDestination stream.
progressOptional progress callback (can be kNULL).
contextCallback context.
Returns
Operation status.