Packed resource files with iostreams & zlib filter
Hello all.
I am trying to create a wrapper for a set of resources (mixed text,
image, etc files) for use in an SDL-based application.
I want to use iostreams and keep it as close to C++ as I can, but SDL
uses some functions that load data from c-type file pointers or a
location in memory using a void* and byte-count.
Is it possible to define a method of file access using iostreams and a
filter that will then let me create sub-streams of the data inside??
For instance - a zlib-compressed file called 'foobar.gz' that contains
'foo.txt' and 'bar.png'.
I want to attach an iostream to foobar.gz then use functions to get
the contents in different formats, e.g.
stream
participants (1)
-
gyrotech@freakinabox.com