Zen API

- Home
- Topics
- Types
- Files

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

  stream | Destination stream.
  source | Source stream.
  size | Count of bytes to be copied.
  progress | Optional progress callback (can be kNULL).
  context | Callback context.

Returns
  Operation status.