Next: , Previous: hdrf_channel_read, Up: Internal Functions


A.5.42 hdrf_channel_write

Write data from memory to an output channel.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
static int hdrf_channel_write( 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 writes the requested number of bytes from the memory pointed to by the passed udata parameter (with the appropriate offset as given by bpipe_datatype_copy to the output channel in the file global variable hdrf_channel_output_ioc. It ignores the dst argument.

Returns

It returns zero upon success, non-zero upon failure