Next: , Previous: hdrf_all_delete, Up: Internal Functions


A.5.41 hdrf_channel_read

Read data from an input channel to memory.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
static int hdrf_channel_read( void *udata, size_t src, size_t dst, size_t nbytes );

Parameters

void *udata
Not Documented.
size_t src
Not Documented.
size_t dst
Not Documented.
size_t nbytes
Not Documented.

Description

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.

Returns

It returns zero upon success, non-zero upon failure