Lines Matching refs:first_cluster

52     pub first_cluster: Cluster,  field
95 fs.get_cluster_by_relative(self.first_cluster, start_cluster_number as usize) in read()
170 fs.get_cluster_by_relative(self.first_cluster, start_cluster_num as usize) in write()
254 assert_eq!(self.first_cluster, Cluster::default()); in ensure_len()
255 self.first_cluster = fs.allocate_cluster(None)?; in ensure_len()
256 self.short_dir_entry.set_first_cluster(self.first_cluster); in ensure_len()
265 let last_cluster = if let Some(c) = fs.get_last_cluster(self.first_cluster) { in ensure_len()
283 .get_cluster_by_relative(self.first_cluster, start_cluster as usize) in ensure_len()
294 .get_cluster_by_relative(self.first_cluster, cluster_offset_start as usize) in ensure_len()
350 fs.get_cluster_by_relative(self.first_cluster, new_last_cluster as usize) in truncate()
358 self.first_cluster = Cluster::new(0); in truncate()
374 pub first_cluster: Cluster, field
390 current_cluster: self.first_cluster, in to_iter()
405 return fs.num_clusters_chain(self.first_cluster) * fs.bytes_per_cluster(); in size()
421 let mut current_cluster: Cluster = self.first_cluster; in find_free_entries()
475 let mut first_cluster = Cluster::default(); in find_free_entries() localVariable
484 first_cluster = c; in find_free_entries()
495 return Ok(Some((first_cluster, 0))); in find_free_entries()
616 let first_cluster: Cluster = fs.allocate_cluster(None)?; in create_dir() localVariable
617 short_entry.set_first_cluster(first_cluster); in create_dir()
626 dot_entry.set_first_cluster(first_cluster); in create_dir()
629 dot_entry.flush(&fs, fs.cluster_bytes_offset(first_cluster) + offset)?; in create_dir()
640 dot_dot_entry.set_first_cluster(self.first_cluster); in create_dir()
643 dot_dot_entry.flush(&fs, fs.cluster_bytes_offset(first_cluster) + offset)?; in create_dir()
804 if e.first_cluster().cluster_num >= 2 && remove_clusters { in remove()
806 fs.deallocate_cluster_chain(e.first_cluster())?; in remove()
1207 let first_cluster = in to_dir_entry() localVariable
1215 file.first_cluster = first_cluster; in to_dir_entry()
1229 dir.first_cluster = first_cluster; in to_dir_entry()
1250 let first_cluster = in to_dir_entry_with_long_name() localVariable
1256 file.first_cluster = first_cluster; in to_dir_entry_with_long_name()
1269 dir.first_cluster = first_cluster; in to_dir_entry_with_long_name()
1665 pub fn first_cluster(&self) -> Cluster { in first_cluster() method
1668 return f.first_cluster; in first_cluster()
1671 return d.first_cluster; in first_cluster()
1674 return s.first_cluster; in first_cluster()