Next: hdrf_channel_write, Previous: hdrf_all_delete, Up: Internal Functions
Read data from an input channel to memory.
#include <bpipe/bpipe.h>static int hdrf_channel_read( void *udata, size_t src, size_t dst, size_t nbytes );
void *udata
- Not Documented.
size_t src
- Not Documented.
size_t dst
- Not Documented.
size_t nbytes
- Not Documented.
This is a callback routine for bpipe_datatype_copy
which
reads the requested number of bytes from the input channel in the
file global variable hdrf_channel_read_ioc
and deposits them
in the memory pointed to by the udata
parameter (with the
appropriate offset as given by bpipe_datatype_copy
. It
ignores the src
argument.
It returns zero upon success, non-zero upon failure