MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / fat_sectors

Function fat_sectors

src/fat_common.c:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57unsigned int fat_sectors(const struct fat_boot_sector *fat_header)
58{
59 const unsigned int hi=fat_header->sectors[1];
60 const unsigned int lo=fat_header->sectors[0];
61 /*@ assert 0 <= hi < 1<<8; */
62 /*@ assert 0 <= hi<<8 < 1<<16; */
63 /*@ assert 0 <= lo < 1<<8; */
64 const unsigned int res=(hi<<8)|lo;
65 /*@ assert res <= 65535; */
66 return res;
67}
68
69unsigned int fat_get_cluster_from_entry(const struct msdos_dir_entry *entry)
70{

Callers 13

recover_HPFSFunction · 0.85
header_check_fatFunction · 0.85
fat_remove_used_spaceFunction · 0.85
repair_FAT_tableFunction · 0.85
set_FAT_infoFunction · 0.85
log_fat_infoFunction · 0.85
log_fat2_infoFunction · 0.85
test_FATFunction · 0.85
recover_FATFunction · 0.85
dump_fat_info_ncursesFunction · 0.85
dump_2fat_info_ncursesFunction · 0.85
fat_dirFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_FATFunction · 0.68