[cairo] Implementing cairo_read_func_t/cairo_write_func_t properly
bf at abenteuerland.at
Sun Jan 3 23:52:23 PST 2016
On Sunday 03 January 2016 18:37:25 Enrico Weigelt, metux IT consult wrote:
> On 02.01.2016 20:16, Bernhard Fischer wrote:
> > Memory mapping (mmap()) and streaming (independently if buffered or on a
> > file descriptor) are two completely different approaches.
> Yeah, but I wonder, what's the benefit of streaming here at all.
> The only benefit I see would be scenarios with quite large files /
> streams where we already can do something useful with just parts of it.
> 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...
*) 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,...
More information about the cairo