[cairo] Implementing cairo_read_func_t/cairo_write_func_t properly

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Mon Jan 4 15:12:14 PST 2016

On 04.01.2016 08:52, Bernhard Fischer wrote:
>> Images usually are only useful when already downloaded completely. At
>> that you dont need streaming anymore, as you already have everything
>> in memory or on-disk.
> *) Assume you are doing something on a file within your program and you  have 
> it already opened somewhere else...

Well, just dup() the already opened fd ?

> *) You have an open stream in your software but no file name, e.g. a tcp 
> stream, an unlinked file, a pipe to another process,...

You'll have an fd then ...

Anyways, you can still load it from a memory block.

By the way: is that stuff used anywhere outside the png loader at all ?


Enrico Weigelt,
metux IT consulting

More information about the cairo mailing list