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 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 ?


--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.