Method
VipsTargetread
Declaration [src]
gint64
vips_target_read (
VipsTarget* target,
void* buffer,
size_t length
)
Description [src]
Read up to length bytes from target and store the bytes in buffer.
Return the number of bytes actually read. If all bytes have been read from
the file, return 0.
Arguments exactly as read().
Reading from a target sounds weird, but libtiff needs this for multi-page writes. This method will fail for targets like pipes.