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

Function fat_get_cluster_from_entry

src/fat_common.c:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69unsigned int fat_get_cluster_from_entry(const struct msdos_dir_entry *entry)
70{
71 const unsigned int hi=le16(entry->starthi);
72 const unsigned int lo=le16(entry->start);
73 /*@ assert 0 <= hi < 1<<16; */
74 /*@ assert 0 <= hi<<16 < 1<<32; */
75 /*@ assert 0 <= lo < 1<<16; */
76 return (hi<<16) | lo;
77}
78
79int is_fat_directory(const unsigned char *buffer)
80{

Callers 6

find_sectors_per_clusterFunction · 0.85
file_rename_fatdirFunction · 0.85
get_subdirectoryFunction · 0.85
fat32_find_root_clusterFunction · 0.85
analyse_dir_entries2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected