-
-
Notifications
You must be signed in to change notification settings - Fork 119
BitMemCompressor
Oz edited this page Aug 29, 2018
·
18 revisions
The BitMemCompressor class allows to compress memory buffers to the filesystem or to other memory buffers. It let decide various properties of the produced archive file, such as the password protection and the compression level desired.
#include "bitmemcompressor.hpp"
inherits from BitArchiveCreator.
Return type | Name |
---|---|
BitMemCompressor( Bit7zLibrary const &lib, BitInOutFormat const &format ) | |
void | compress( const vector< byte_t > &in_buffer, const wstring &out_archive, wstring in_buffer_name=L"" ) const |
void | compress( const vector< byte_t > &in_buffer, vector< byte_t > &out_buffer, const wstring &in_buffer_name=L"" ) const |
BitMemCompressor( Bit7zLibrary const &lib, BitInOutFormat const &format )
Constructs a BitMemCompressor object.
The Bit7zLibrary parameter is needed in order to have access to the functionalities of the 7z DLLs. On the other hand, the BitInOutFormat is required in order to know the format of the output archive.
void compress( const vector< byte_t > &in_buffer, const wstring &out_archive, wstring in_buffer_name=L"" ) const
Compresses the given buffer to an archive on the filesystem.
void compress( const vector< byte_t > &in_buffer, vector< byte_t > &out_buffer, const wstring &in_buffer_name=L"" ) const
Compresses the given input buffer to the output buffer.
Note: If the format of the output doesn't support in memory compression, a BitException is thrown.
Documentation for bit7z v4.0.8
Copyright © 2014 - 2024 Riccardo Ostani (@rikyoz)
Copyright © 2014 - 2024 Riccardo Ostani (@rikyoz)
- Bit7zLibrary
- BitArchiveEditor
- BitArchiveReader
- BitArchiveWriter
- BitException
- BitFileCompressor
- BitFileExtractor
- BitMemCompressor
- BitMemExtractor
- BitStreamCompressor
- BitStreamExtractor
- BitInFormat