Lines Matching refs:head_cluster
488 def get_chain_size(self, head_cluster): argument
493 if head_cluster == 0:
497 f.seek(FAT_TABLE_START + head_cluster * 2)
501 while head_cluster <= MAX_CLUSTER_ID:
503 head_cluster = read_le_short(f)
504 f.seek(FAT_TABLE_START + head_cluster * 2)
574 def read_file(self, head_cluster, start_byte, size): argument
597 cluster_bytes_from_root = (head_cluster - 2) * \
614 f.seek(FAT_TABLE_START + head_cluster * 2)
615 assert head_cluster <= MAX_CLUSTER_ID, "Out-of-bounds read"
616 head_cluster = read_le_short(f)
617 assert head_cluster > 0, "Read free cluster"
713 def write_file(self, head_cluster, start_byte, data): argument
724 current_cluster = head_cluster