Re: Treat memory as a file with a name.

2014-02-22 Thread Steve Teale
If it's the same librsvg as below, then it looks like it has an API function which can also load a SVG from memory: https://developer.gnome.org/rsvg/2.40/RsvgHandle.html#rsvg-handle-new-from-data To answer your original question, I think the best way to do this is to create a pipe on the files

Re: Treat memory as a file with a name.

2014-02-21 Thread Vladimir Panteleev
On Saturday, 22 February 2014 at 07:26:26 UTC, Steve Teale wrote: This is probably not exactly a D question. The library librsvg expects to get an SVG file filename. I have the data of such a file in memory. If it's the same librsvg as below, then it looks like it has an API function which c

Treat memory as a file with a name.

2014-02-21 Thread Steve Teale
This is probably not exactly a D question. The library librsvg expects to get an SVG file filename. I have the data of such a file in memory. How do I dress up that memory as a file with a name so that I can pass the name to the librsvg open function. I've looked at std.mmfile, and played w