Classes | |
| struct | Range |
Functions | |
| bool | overlaps (const std::vector< Range > &ranges, uint64_t start, uint64_t end) |
| bool | is_ntfs (const std::array< unsigned char, 512 > &b) |
| bool | is_fat32 (const std::array< unsigned char, 512 > &b) |
| bool | is_exfat (const std::array< unsigned char, 512 > &b) |
| bool | looks_ext4 (DiskReader &reader, uint64_t offset) |
| bool | looks_btrfs (DiskReader &reader, uint64_t offset) |
| bool | looks_xfs (DiskReader &reader, uint64_t offset) |
| uint64_t | xfs_size_bytes (DiskReader &reader, uint64_t offset) |
| bool | looks_hfs (DiskReader &reader, uint64_t offset) |
| uint64_t | hfs_size_bytes (DiskReader &reader, uint64_t offset) |
| uint64_t | le64 (const unsigned char *p) |
| uint32_t | le32 (const unsigned char *p) |
| uint64_t | ntfs_size_bytes (const std::array< unsigned char, 512 > &b) |
| uint64_t | fat32_size_bytes (const std::array< unsigned char, 512 > &b) |
| uint64_t | exfat_size_bytes (const std::array< unsigned char, 512 > &b) |
| uint64_t | ext4_size_bytes (DiskReader &reader, uint64_t offset) |
| uint64_t | btrfs_size_bytes (DiskReader &reader, uint64_t offset) |
Variables | |
| constexpr uint64_t | MiB = 1024ull * 1024ull |
| constexpr uint64_t | GiB = 1024ull * 1024ull * 1024ull |
| constexpr uint64_t | SECTOR_SIZE = 512ull |
| constexpr uint64_t | SCAN_STRIDE = 1ull * MiB |
| constexpr uint64_t | DEFAULT_MAX_SCAN = 4ull * 1024ull * GiB |
| constexpr uint64_t | HARD_MAX_SCAN = 64ull * 1024ull * GiB |
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::btrfs_size_bytes | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 151 of file lost_partition_finder.cpp.
References btrfs_size_bytes(), le64(), and DiskReader::read_at().
Referenced by btrfs_size_bytes().
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::exfat_size_bytes | ( | const std::array< unsigned char, 512 > & | b | ) |
Definition at line 135 of file lost_partition_finder.cpp.
References exfat_size_bytes(), le64(), and SECTOR_SIZE.
Referenced by exfat_size_bytes().
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::ext4_size_bytes | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 140 of file lost_partition_finder.cpp.
References ext4_size_bytes(), le32(), and DiskReader::read_at().
Referenced by ext4_size_bytes().
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::fat32_size_bytes | ( | const std::array< unsigned char, 512 > & | b | ) |
Definition at line 130 of file lost_partition_finder.cpp.
References fat32_size_bytes(), le32(), and SECTOR_SIZE.
Referenced by fat32_size_bytes().
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::hfs_size_bytes | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 97 of file lost_partition_finder.cpp.
References hfs_size_bytes(), hfs::HFSPLUS_VOLUME_HEADER_OFFSET, hfs::parse_volume_header(), DiskReader::read_at(), and hfs::VolumeHeader::volume_size_bytes().
Referenced by hfs_size_bytes().
| bool anonymous_namespace{lost_partition_finder.cpp}::is_exfat | ( | const std::array< unsigned char, 512 > & | b | ) |
Definition at line 52 of file lost_partition_finder.cpp.
References is_exfat().
Referenced by is_exfat().
| bool anonymous_namespace{lost_partition_finder.cpp}::is_fat32 | ( | const std::array< unsigned char, 512 > & | b | ) |
Definition at line 47 of file lost_partition_finder.cpp.
References is_fat32().
Referenced by is_fat32().
| bool anonymous_namespace{lost_partition_finder.cpp}::is_ntfs | ( | const std::array< unsigned char, 512 > & | b | ) |
Definition at line 42 of file lost_partition_finder.cpp.
References is_ntfs().
Referenced by is_ntfs().
| uint32_t anonymous_namespace{lost_partition_finder.cpp}::le32 | ( | const unsigned char * | p | ) |
Definition at line 119 of file lost_partition_finder.cpp.
References le32().
Referenced by ext4_size_bytes(), fat32_size_bytes(), and le32().
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::le64 | ( | const unsigned char * | p | ) |
Definition at line 108 of file lost_partition_finder.cpp.
References le64().
Referenced by btrfs_size_bytes(), exfat_size_bytes(), le64(), and ntfs_size_bytes().
| bool anonymous_namespace{lost_partition_finder.cpp}::looks_btrfs | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 62 of file lost_partition_finder.cpp.
References looks_btrfs(), and DiskReader::read_at().
Referenced by looks_btrfs().
| bool anonymous_namespace{lost_partition_finder.cpp}::looks_ext4 | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 57 of file lost_partition_finder.cpp.
References looks_ext4(), and DiskReader::read_at().
Referenced by looks_ext4().
| bool anonymous_namespace{lost_partition_finder.cpp}::looks_hfs | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 87 of file lost_partition_finder.cpp.
References hfs::HFSPLUS_SIGNATURE, hfs::HFSPLUS_VOLUME_HEADER_OFFSET, hfs::HFSX_SIGNATURE, looks_hfs(), and DiskReader::read_at().
Referenced by looks_hfs().
| bool anonymous_namespace{lost_partition_finder.cpp}::looks_xfs | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 69 of file lost_partition_finder.cpp.
References looks_xfs(), and DiskReader::read_at().
Referenced by looks_xfs().
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::ntfs_size_bytes | ( | const std::array< unsigned char, 512 > & | b | ) |
Definition at line 126 of file lost_partition_finder.cpp.
References le64(), ntfs_size_bytes(), and SECTOR_SIZE.
Referenced by ntfs_size_bytes().
| bool anonymous_namespace{lost_partition_finder.cpp}::overlaps | ( | const std::vector< Range > & | ranges, |
| uint64_t | start, | ||
| uint64_t | end ) |
Definition at line 33 of file lost_partition_finder.cpp.
References overlaps().
Referenced by overlaps().
| uint64_t anonymous_namespace{lost_partition_finder.cpp}::xfs_size_bytes | ( | DiskReader & | reader, |
| uint64_t | offset ) |
Definition at line 77 of file lost_partition_finder.cpp.
References xfs::parse_superblock(), DiskReader::read_at(), xfs::Superblock::volume_size_bytes(), and xfs_size_bytes().
Referenced by xfs_size_bytes().
|
constexpr |
Definition at line 25 of file lost_partition_finder.cpp.
|
constexpr |
Definition at line 13 of file lost_partition_finder.cpp.
|
constexpr |
Definition at line 26 of file lost_partition_finder.cpp.
|
constexpr |
Definition at line 12 of file lost_partition_finder.cpp.
|
constexpr |
Definition at line 20 of file lost_partition_finder.cpp.
|
constexpr |
Definition at line 14 of file lost_partition_finder.cpp.
Referenced by exfat_size_bytes(), fat32_size_bytes(), and ntfs_size_bytes().