Lines Matching refs:u64

58     pub loc: ((Cluster, u64), (Cluster, u64)),
64 pub fn size(&self) -> u64 { in size() argument
65 return self.short_dir_entry.file_size as u64; in size()
85 offset: u64, in read() argument
92 let start_cluster_number: u64 = offset / fs.bytes_per_cluster(); in read()
102 let bytes_remain: u64 = self.size() - offset; in read()
105 let mut in_cluster_offset: u64 = offset % fs.bytes_per_cluster(); in read()
142 in_cluster_offset += r as u64; in read()
162 offset: u64, in write() argument
164 self.ensure_len(fs, offset, buf.len() as u64)?; in write()
177 let mut in_cluster_bytes_offset: u64 = offset % fs.bytes_per_cluster(); in write()
210 in_cluster_bytes_offset += w as u64; in write()
232 offset: u64, in ensure_len() argument
233 len: u64, in ensure_len() argument
281 let start_cluster: u64 = self.size() / fs.bytes_per_cluster(); in ensure_len()
286 let start_offset: u64 = in ensure_len()
289 let bytes_remain: u64 = fs.bytes_per_cluster() - (self.size() % fs.bytes_per_cluster()); in ensure_len()
321 range_start: u64, in zero_range() argument
322 range_end: u64, in zero_range() argument
343 pub fn truncate(&mut self, fs: &Arc<FATFileSystem>, new_size: u64) -> Result<(), SystemError> { in truncate()
376 pub root_offset: Option<u64>,
381 pub loc: Option<((Cluster, u64), (Cluster, u64))>,
404 pub fn size(&self, fs: &Arc<FATFileSystem>) -> u64 { in size() argument
417 num_free: u64, in find_free_entries() argument
419 ) -> Result<Option<(Cluster, u64)>, SystemError> { in find_free_entries() argument
424 let mut first_free: Option<(Cluster, u64)> = None; in find_free_entries()
736 let num_entries = long_name_gen.num_entries() as u64;
739 let free_entries: Option<(Cluster, u64)> =
742 let start_loc: (Cluster, u64) = match free_entries {
746 let offsets: Vec<(Cluster, u64)> =
758 let start: (Cluster, u64) = offsets[0];
759 let end: (Cluster, u64) = *offsets.last().unwrap();
823 cluster_range: ((Cluster, u64), (Cluster, u64)), in remove_dir_entries() argument
826 let offsets: Vec<(Cluster, u64)> = in remove_dir_entries()
1086 pub fn flush(&self, fs: Arc<FATFileSystem>, disk_bytes_offset: u64) -> Result<(), SystemError> { in flush()
1205 pub fn to_dir_entry(&self, loc: (Cluster, u64)) -> FATDirEntry { in to_dir_entry()
1208 Cluster::new(((self.fst_clus_hi as u64) << 16) | (self.fst_clus_lo as u64)); in to_dir_entry()
1247 loc: ((Cluster, u64), (Cluster, u64)), in to_dir_entry_with_long_name() argument
1251 Cluster::new(((self.fst_clus_hi as u64) << 16) | (self.fst_clus_lo as u64)); in to_dir_entry_with_long_name()
1299 disk_bytes_offset: u64, in flush() argument
1359 pub const DIR_ENTRY_LEN: u64 = 32;
1401 offset: u64,
1416 fn get_dir_entry(&mut self) -> Result<(Cluster, u64, Option<FATDirEntry>), SystemError> { in get_dir_entry() argument
1445 let offset: u64 = self.fs.cluster_bytes_offset(self.current_cluster) + self.offset; in get_dir_entry()
1471 let start_offset: u64 = self.offset; in get_dir_entry()
1504 let offset: u64 = in get_dir_entry()
1590 loc: ((Cluster, u64), (Cluster, u64)), in new() argument
1683 pub fn get_dir_range(&self) -> Option<((Cluster, u64), (Cluster, u64))> { in get_dir_range() argument
2277 current_offset: (Cluster, u64),
2279 end_offset: Option<(Cluster, u64)>,
2283 index: u64,
2285 len: u64,
2301 start: (Cluster, u64), in new() argument
2302 len: u64, in new() argument
2303 end_offset: Option<(Cluster, u64)>, in new() argument
2317 type Item = (Cluster, u64);
2324 let r: (Cluster, u64) = self.current_offset; in next()
2358 in_disk_bytes_offset: u64, in get_raw_dir_entry() argument
2361 let blk_offset: u64 = fs.get_in_block_offset(in_disk_bytes_offset); in get_raw_dir_entry()