While using zlib 1.2.7 and minizip to read zip archives, I found that its only possible for me to read into a byte buffer. I’m passing this data over to another library for processing, but this library requires that the data be in the form of a FILE*.
Is it possible for me to create a FILE* using a byte buffer in memory?
Why is this question using a C++ tag? C’s isn’t extensible with respect to its sources and destinations. Thus, you’d need to rely on platform specific extensions. In C++ you can create a suitable stream buffer to plug things into IOStreams. However, a .zip archive is an archive not a flat file, i.e., you’d need to think about how to specific the objects you actually want to extract. This is still doable, though.