Re: Implementing cairo_read_func_t/cairo_write_func_t properly

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
On Sat, 2 Jan 2016 15:05:04 +0100, Enrico Weigelt, metux IT consult
wrote:

> On 02.01.2016 12:35, Behdad Esfahbod wrote:
>
>> On Sat, 2 Jan 2016 12:27:40 +0100, Enrico Weigelt, metux IT consult
>> 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 ?

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.
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.