[cairo] Implementing cairo_read_func_t/cairo_write_func_t properly
ldo at geek-central.gen.nz
Sat Jan 2 11:45:00 PST 2016
On Sat, 2 Jan 2016 15:05:04 +0100, Enrico Weigelt, metux IT consult
> On 02.01.2016 12:35, Behdad Esfahbod wrote:
>> On Sat, 2 Jan 2016 12:27:40 +0100, Enrico Weigelt, metux IT consult
>>> 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 ?
As stated, for allowing I/O to/from other sources than files.
For example, I output to PNG streams here
<https://github.com/ldo/qahirah_notebooks> so that I can display the
resulting graphics in the notebook.
More information about the cairo