Re: Implementing cairo_read_func_t/cairo_write_func_t properly

"Enrico Weigelt, metux IT consult" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
-- 
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.