Skip to content
API Documentation
BastionGuard™
file_carver.cpp File Reference

Go to the source code of this file.

Classes

struct  anonymous_namespace{file_carver.cpp}::Pattern

Namespaces

namespace  anonymous_namespace{file_carver.cpp}

Functions

std::vector< Pattern > anonymous_namespace{file_carver.cpp}::patterns ()
bool anonymous_namespace{file_carver.cpp}::starts_with_at (const std::vector< unsigned char > &buf, size_t pos, const std::vector< unsigned char > &pat)
bool anonymous_namespace{file_carver.cpp}::looks_like_mp4 (const std::vector< unsigned char > &buf, size_t pos)
bool anonymous_namespace{file_carver.cpp}::copy_range (DiskReader &reader, uint64_t offset, uint64_t size, const fs::path &out_path, std::string &error)
bool anonymous_namespace{file_carver.cpp}::carve_one_range (DiskReader &reader, uint64_t range_offset, uint64_t range_size, const std::vector< Pattern > &pats, const std::string &output_dir, std::vector< CarvedFile > &carved, std::vector< std::string > &logs, std::string &error)

Variables

constexpr uint64_t anonymous_namespace{file_carver.cpp}::MiB = 1024ull * 1024ull
constexpr size_t anonymous_namespace{file_carver.cpp}::WINDOW = 2 * 1024 * 1024
constexpr uint64_t anonymous_namespace{file_carver.cpp}::MAX_FILE_SIZE = 128ull * 1024ull * 1024ull