Lines Matching +full:0 +full:xfff7

36                     "status": partition[0],
38 "start_sector": partition[2] & 0x3F,
39 "start_cylinder": ((partition[2] & 0xC0) << 2)
43 "end_sector": partition[6] & 0x3F,
44 "end_cylinder": ((partition[6] & 0xC0) << 2)
77 total_sectors_16 == 0 or total_sectors_32 == 0
142 self.name = data[0:8].decode("ascii").strip()
174 + (self.cluster & 0xFFFF).to_bytes(2, "little")
245 Will stop when it encounters a 0x00 byte.
249 for i in range(0, len(data), DIRENTRY_SIZE):
255 if entry[0] == 0:
258 if entry[0] == 0xE5:
262 if entry[11] & 0xF == 0xF:
316 if fat_entry == 0:
320 if fat_entry >= 0xFFF8:
322 if fat_entry >= 0xFFF7:
332 for i in range(2, 0xFFFF):
333 if self.read_fat_entry(i) == 0:
344 for i in range(2, 0xFFFF):
345 if self.read_fat_entry(i) == 0:
346 if before and self.read_fat_entry(i + 1) == 0:
400 for i in range(0, len(data), DIRENTRY_SIZE):
402 if entry[0] == 0 or entry[0] == 0xE5:
408 assert attributes % 0x15 != 0x15, "Invalid attributes"
411 new_entry = FatDirectoryEntry(b"\0" * 32, 0, 0)
415 new_entry.reserved = 0
416 new_entry.create_time_tenth = 0
417 new_entry.create_time = 0
418 new_entry.create_date = 0
419 new_entry.last_access_date = 0
420 new_entry.last_mod_time = 0
421 new_entry.last_mod_date = 0
423 new_entry.size_bytes = 0
426 self.write_fat_entry(new_entry.cluster, 0xFFFF)
470 assert path[0] == "/", "Path must start with /"
491 if current_entry.attributes & 0x10 == 0:
506 if entry.attributes & 0x10 != 0:
527 if entry.attributes & 0x10 != 0:
542 if required_clusters == 0:
544 if current_clusters == 0:
558 assert required_clusters > 0, "No new clusters to allocate"
571 self.write_fat_entry(new_cluster, 0xFFFF)
584 self.write_fat_entry(cluster, 0xFFFF)
589 self.write_fat_entry(cluster, 0)
595 count = 0
620 if entry.attributes & 0x10 != 0:
636 if len(data) == 0:
641 len(data) == 0
648 assert path[0] == "/", "Path must start with /"
668 if current_entry.attributes & 0x10 == 0:
690 return self.add_direntry(directory_cluster, filename, ext, 0)