Function extract

Summary

#include <include/bitstreamextractor.hpp>

(1) void extract(istream &in_stream, const wstring &out_dir=L"") const

(2) void extract(istream &in_stream, vector< byte_t > &out_buffer, unsigned int index=0) const

(3) void extract(istream &in_stream, ostream &out_stream, unsigned int index=0) const

(4) void extract(istream &in_stream, map< wstring, vector< byte_t > > &out_map) const

Function overload

Synopsis

#include <include/bitstreamextractor.hpp>

void extract(istream &in_stream, const wstring &out_dir=L"") const

Description

Extracts the given stream archive into the choosen directory.

Parameters

in_stream - the (binary) stream containing the archive to be extracted.

out_dir - the output directory where to put the file extracted.

Source

Lines 33-36 in src/bitstreamextractor.cpp. Line 56 in include/bitstreamextractor.hpp.

void BitStreamExtractor::extract( istream& in_stream, const wstring& out_dir ) const {
    BitInputArchive in_archive( *this, in_stream );
    extractToFileSystem( in_archive, L"", out_dir, vector< uint32_t >() );
}

Synopsis

#include <include/bitstreamextractor.hpp>

void extract(istream &in_stream, vector< byte_t > &out_buffer, unsigned int index=0) const

Description

Extracts the given stream archive into the output buffer.

Parameters

in_stream - the (binary) stream containing the archive to be extracted.

out_buffer - the output buffer where the content of the archive will be put.

index - the index of the file to be extracted from in_buffer.

Source

Lines 38-41 in src/bitstreamextractor.cpp. Line 65 in include/bitstreamextractor.hpp.

void BitStreamExtractor::extract( istream& in_stream, vector< byte_t >& out_buffer, unsigned int index ) const {
    BitInputArchive in_archive( *this, in_stream );
    extractToBuffer( in_archive, out_buffer, index );
}

Synopsis

#include <include/bitstreamextractor.hpp>

void extract(istream &in_stream, ostream &out_stream, unsigned int index=0) const

Description

Extracts the given stream archive into the output standard stream.

Parameters

in_stream - the (binary) stream containing the archive to be extracted.

out_stream - the (binary) output stream where the content of the archive will be put.

index - the index of the file to be extracted from in_buffer.

Source

Lines 43-46 in src/bitstreamextractor.cpp. Line 74 in include/bitstreamextractor.hpp.

void BitStreamExtractor::extract( istream& in_stream, std::ostream& out_stream, unsigned int index ) const {
    BitInputArchive in_archive( *this, in_stream );
    extractToStream( in_archive, out_stream, index );
}

Synopsis

#include <include/bitstreamextractor.hpp>

void extract(istream &in_stream, map< wstring, vector< byte_t > > &out_map) const

Description

Extracts the given stream archive into a map of memory buffers, where keys are the paths of the files (inside the archive) and values are the corresponding decompressed contents.

Parameters

in_stream - the (binary) stream containing the archive to be extracted.

out_map - the output map.

Source

Lines 48-51 in src/bitstreamextractor.cpp. Line 83 in include/bitstreamextractor.hpp.

void BitStreamExtractor::extract( istream& in_stream, map< wstring, vector< byte_t > >& out_map ) const {
    BitInputArchive in_archive( *this, in_stream );
    extractToBufferMap( in_archive, out_map );
}





Add Discussion as Guest

Log in