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

Go to the source code of this file.

Classes

struct  anonymous_namespace{lost_partition_finder.cpp}::Range

Namespaces

namespace  anonymous_namespace{lost_partition_finder.cpp}

Functions

bool anonymous_namespace{lost_partition_finder.cpp}::overlaps (const std::vector< Range > &ranges, uint64_t start, uint64_t end)
bool anonymous_namespace{lost_partition_finder.cpp}::is_ntfs (const std::array< unsigned char, 512 > &b)
bool anonymous_namespace{lost_partition_finder.cpp}::is_fat32 (const std::array< unsigned char, 512 > &b)
bool anonymous_namespace{lost_partition_finder.cpp}::is_exfat (const std::array< unsigned char, 512 > &b)
bool anonymous_namespace{lost_partition_finder.cpp}::looks_ext4 (DiskReader &reader, uint64_t offset)
bool anonymous_namespace{lost_partition_finder.cpp}::looks_btrfs (DiskReader &reader, uint64_t offset)
bool anonymous_namespace{lost_partition_finder.cpp}::looks_xfs (DiskReader &reader, uint64_t offset)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::xfs_size_bytes (DiskReader &reader, uint64_t offset)
bool anonymous_namespace{lost_partition_finder.cpp}::looks_hfs (DiskReader &reader, uint64_t offset)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::hfs_size_bytes (DiskReader &reader, uint64_t offset)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::le64 (const unsigned char *p)
uint32_t anonymous_namespace{lost_partition_finder.cpp}::le32 (const unsigned char *p)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::ntfs_size_bytes (const std::array< unsigned char, 512 > &b)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::fat32_size_bytes (const std::array< unsigned char, 512 > &b)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::exfat_size_bytes (const std::array< unsigned char, 512 > &b)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::ext4_size_bytes (DiskReader &reader, uint64_t offset)
uint64_t anonymous_namespace{lost_partition_finder.cpp}::btrfs_size_bytes (DiskReader &reader, uint64_t offset)

Variables

constexpr uint64_t anonymous_namespace{lost_partition_finder.cpp}::MiB = 1024ull * 1024ull
constexpr uint64_t anonymous_namespace{lost_partition_finder.cpp}::GiB = 1024ull * 1024ull * 1024ull
constexpr uint64_t anonymous_namespace{lost_partition_finder.cpp}::SECTOR_SIZE = 512ull
constexpr uint64_t anonymous_namespace{lost_partition_finder.cpp}::SCAN_STRIDE = 1ull * MiB
constexpr uint64_t anonymous_namespace{lost_partition_finder.cpp}::DEFAULT_MAX_SCAN = 4ull * 1024ull * GiB
constexpr uint64_t anonymous_namespace{lost_partition_finder.cpp}::HARD_MAX_SCAN = 64ull * 1024ull * GiB