Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kStream_CopyEx ( kStream  stream,
kStream  source,
kSize  size,
kCallbackFx  progress,
kPointer  context 
)

Copies the specified number of bytes from one stream to another, with progress feedback.

The specified callback will be invoked to provide feedback on the progress of the operation. The callback 'args' parameter will receive a k32u value representing the percentage completed. The callback is guaranteed to be called at least once if the operation is successful, with a progress value of 100%.

Parameters
streamDestination stream.
sourceSource stream.
sizeCount of bytes to be copied.
progressOptional progress callback (can be kNULL).
contextCallback context.
Returns
Operation status.