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 filesystem. Once created, you
can feed data through it without touching the disk.
Thanks Vladimir,
My librsvg is 2.36, but rsvg-handle-new-from-data pre-dates that,
so it should be good. Thanks for the link - I had clearly been
looking at some crap documentation.
Thanks for the pipe idea too - it will come in handy one day, and
I'd completely forgotten about pipes.
Steve