Replies: 1 comment 6 replies
-
Hi! Example: #include "bit7z.hpp"
#include "bitarchivereader.hpp"
int main () {
try {
bit7z::Bit7zLibrary lib{ "C:/Program Files/7-Zip/7z.dll" };
bit7z::BitArchiveReader archive{ lib, "myfile.7z", bit7z::BitFormat::SevenZip };
bit7z::buffer_t outBuffer{}; // buffer_t is just an alias for std::vector<unsigned char>
archive.extractTo(outBuffer);
} catch ( const bit7z::BitException& ex ) { /* do something with ex.what() */ }
} |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to extract a single file, which I know the name of, to memory. How would I do that?
Beta Was this translation helpful? Give feedback.
All reactions