[cairo] Implementing cairo_read_func_t/cairo_write_func_t properly

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Sat Jan 2 06:05:04 PST 2016


On 02.01.2016 12:35, Behdad Esfahbod wrote:

>> Actually, I really wonder what that stream API is really for.
>> Why not just let everything operate on an fd or directly mmap()
>> the whole file ?
> 
> A very simple reason is language binding, or in general, hooking up to other
> IO libraries (gio, etc).

hmm, what for, exactly ?

The application has to provide its own implementation for the callback
anyways, so why doesn't it just load/mmap the file as it is and call
the cairo's image loader then ?


--mtx

--
Enrico Weigelt,
metux IT consulting
+49-151-27565287


More information about the cairo mailing list