=category I/O Layers
Returns a new io_glue object that has the source defined as reading
-from specified file descriptor. Note that the the interface to receiving
+from specified file descriptor. Note that the interface to receiving
data from the io_glue callbacks hasn't been done yet.
ctx - and Imager context object
size_t
io_slurp(io_glue *ig, unsigned char **c) {
ssize_t rc;
- off_t orgoff;
io_ex_bchain *ieb;
unsigned char *cc;
io_type inn = ig->type;
ieb = ig->exdata;
cc = *c = mymalloc( ieb->length );
- orgoff = ieb->gpos;
-
bufchain_seek(ig, 0, SEEK_SET);
rc = bufchain_read(ig, cc, ieb->length);