Lines Matching refs:cursor

1098         let mut cursor: VecCursor = VecCursor::new(v);  in flush()  localVariable
1100 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush()
1103 cursor.write_u8(self.ord)?; in flush()
1105 cursor.write_u16(*b)?; in flush()
1108 cursor.write_u8(self.file_attrs.value)?; in flush()
1109 cursor.write_u8(self.dirent_type)?; in flush()
1110 cursor.write_u8(self.checksum)?; in flush()
1113 cursor.write_u16(*b)?; in flush()
1116 cursor.write_u16(self.first_clus_low)?; in flush()
1119 cursor.write_u16(*b)?; in flush()
1125 .write_at(lba, 1 * fs.lba_per_sector(), cursor.as_slice())?; in flush()
1312 let mut cursor: VecCursor = VecCursor::new(v); in flush() localVariable
1314 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush()
1315 cursor.write_exact(&self.name)?; in flush()
1316 cursor.write_u8(self.attributes.value)?; in flush()
1317 cursor.write_u8(self.nt_res)?; in flush()
1318 cursor.write_u8(self.crt_time_tenth)?; in flush()
1319 cursor.write_u16(self.crt_time)?; in flush()
1320 cursor.write_u16(self.crt_date)?; in flush()
1321 cursor.write_u16(self.lst_acc_date)?; in flush()
1322 cursor.write_u16(self.fst_clus_hi)?; in flush()
1323 cursor.write_u16(self.wrt_time)?; in flush()
1324 cursor.write_u16(self.wrt_date)?; in flush()
1325 cursor.write_u16(self.fst_clus_lo)?; in flush()
1326 cursor.write_u32(self.file_size)?; in flush()
1331 .write_at(lba, 1 * fs.lba_per_sector(), cursor.as_slice())?; in flush()
2375 let mut cursor: VecCursor = VecCursor::new(v); in get_raw_dir_entry() localVariable
2377 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry()
2379 let dir_0 = cursor.read_u8()?; in get_raw_dir_entry()
2389 cursor.seek(SeekFrom::SeekCurrent(10))?; in get_raw_dir_entry()
2390 let file_attr: FileAttributes = FileAttributes::new(cursor.read_u8()?); in get_raw_dir_entry()
2393 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry()
2399 long_dentry.ord = cursor.read_u8()?; in get_raw_dir_entry()
2400 cursor.read_u16_into(&mut long_dentry.name1)?; in get_raw_dir_entry()
2401 long_dentry.file_attrs = FileAttributes::new(cursor.read_u8()?); in get_raw_dir_entry()
2402 long_dentry.dirent_type = cursor.read_u8()?; in get_raw_dir_entry()
2403 long_dentry.checksum = cursor.read_u8()?; in get_raw_dir_entry()
2405 cursor.read_u16_into(&mut long_dentry.name2)?; in get_raw_dir_entry()
2406 long_dentry.first_clus_low = cursor.read_u16()?; in get_raw_dir_entry()
2407 cursor.read_u16_into(&mut long_dentry.name3)?; in get_raw_dir_entry()
2413 cursor.read_exact(&mut short_dentry.name)?; in get_raw_dir_entry()
2415 short_dentry.attributes = FileAttributes::new(cursor.read_u8()?); in get_raw_dir_entry()
2417 short_dentry.nt_res = cursor.read_u8()?; in get_raw_dir_entry()
2418 short_dentry.crt_time_tenth = cursor.read_u8()?; in get_raw_dir_entry()
2419 short_dentry.crt_time = cursor.read_u16()?; in get_raw_dir_entry()
2420 short_dentry.crt_date = cursor.read_u16()?; in get_raw_dir_entry()
2421 short_dentry.lst_acc_date = cursor.read_u16()?; in get_raw_dir_entry()
2422 short_dentry.fst_clus_hi = cursor.read_u16()?; in get_raw_dir_entry()
2423 short_dentry.wrt_time = cursor.read_u16()?; in get_raw_dir_entry()
2424 short_dentry.wrt_date = cursor.read_u16()?; in get_raw_dir_entry()
2425 short_dentry.fst_clus_lo = cursor.read_u16()?; in get_raw_dir_entry()
2426 short_dentry.file_size = cursor.read_u32()?; in get_raw_dir_entry()