Function test


#include <include/bitmemextractor.hpp>

void test(const vector< byte_t > &in_buffer) const


Tests the given buffer archive without extracting its content.

If the input archive is not valid, a BitException is thrown.


in_buffer - the buffer containing the archive to be tested.


Lines 55-61 in src/bitmemextractor.cpp. Line 92 in include/bitmemextractor.hpp.

void BitMemExtractor::test( const vector< byte_t >& in_buffer ) const {
    BitInputArchive in_archive( *this, in_buffer );

    map< wstring, vector< byte_t > > dummy_map; //output map (not used since we are testing!)
    CMyComPtr< ExtractCallback > extract_callback = new BufferExtractCallback( *this, in_archive, dummy_map );
    in_archive.test( extract_callback );

Add Discussion as Guest

Log in