Lines Matching refs:cursor

438         let mut cursor = VecCursor::new(v);  in get_fat_entry()  localVariable
439 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry()
443 let mut entry = cursor.read_u16()?; in get_fat_entry()
465 let entry = cursor.read_u16()?; in get_fat_entry()
481 let entry = cursor.read_u32()? & 0x0fffffff; in get_fat_entry()
529 let mut cursor = VecCursor::new(v); in get_fat_entry_raw() localVariable
530 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry_raw()
534 let mut entry = cursor.read_u16()?; in get_fat_entry_raw()
543 let entry = (cursor.read_u16()?) as u64; in get_fat_entry_raw()
547 let entry = cursor.read_u32()? & 0x0fff_ffff; in get_fat_entry_raw()
985 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster() localVariable
986 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
988 let mut packed_val: u16 = cursor.read_u16()?; in get_free_cluster()
1007 0 => cursor.read_u16()?, in get_free_cluster()
1009 let next_byte = cursor.read_u8()? as u16; in get_free_cluster()
1030 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster() localVariable
1031 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
1033 let val = cursor.read_u16()?; in get_free_cluster()
1059 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster() localVariable
1060 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
1062 let val = cursor.read_u32()? & 0x0fffffff; in get_free_cluster()
1105 let mut cursor: VecCursor = VecCursor::new(v); in set_entry() localVariable
1106 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1108 let old_val: u16 = cursor.read_u16()?; in set_entry()
1116 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1117 cursor.write_u16(new_val)?; in set_entry()
1118 self.gendisk.write_at(cursor.as_slice(), lba)?; in set_entry()
1137 let mut cursor: VecCursor = VecCursor::new(v); in set_entry() localVariable
1138 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1140 cursor.write_u16(raw_val)?; in set_entry()
1141 self.gendisk.write_at(cursor.as_slice(), lba)?; in set_entry()
1163 let mut cursor: VecCursor = VecCursor::new(v); in set_entry() localVariable
1164 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1167 let old_bits = cursor.read_u32()? & 0xf0000000; in set_entry()
1193 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1194 cursor.write_u32(raw_val)?; in set_entry()
1196 self.gendisk.write_at(cursor.as_slice(), lba)?; in set_entry()
1251 let mut cursor = VecCursor::new(v); in new() localVariable
1254 lead_sig: cursor.read_u32()?, in new()
1257 cursor.seek(SeekFrom::SeekCurrent(480))?; in new()
1258 fsinfo.struc_sig = cursor.read_u32()?; in new()
1259 fsinfo.free_count = cursor.read_u32()?; in new()
1260 fsinfo.next_free = cursor.read_u32()?; in new()
1262 cursor.seek(SeekFrom::SeekCurrent(12))?; in new()
1264 fsinfo.trail_sig = cursor.read_u32()?; in new()
1344 let mut cursor: VecCursor = VecCursor::new(v); in flush() localVariable
1345 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in flush()
1347 cursor.write_u32(self.lead_sig)?; in flush()
1348 cursor.seek(SeekFrom::SeekCurrent(480))?; in flush()
1349 cursor.write_u32(self.struc_sig)?; in flush()
1350 cursor.write_u32(self.free_count)?; in flush()
1351 cursor.write_u32(self.next_free)?; in flush()
1352 cursor.seek(SeekFrom::SeekCurrent(12))?; in flush()
1353 cursor.write_u32(self.trail_sig)?; in flush()
1355 gendisk.write_at(cursor.as_slice(), lba)?; in flush()
1371 let mut cursor: VecCursor = VecCursor::new(v); in update() localVariable
1372 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in update()
1373 self.lead_sig = cursor.read_u32()?; in update()
1375 cursor.seek(SeekFrom::SeekCurrent(480))?; in update()
1376 self.struc_sig = cursor.read_u32()?; in update()
1377 self.free_count = cursor.read_u32()?; in update()
1378 self.next_free = cursor.read_u32()?; in update()
1379 cursor.seek(SeekFrom::SeekCurrent(12))?; in update()
1380 self.trail_sig = cursor.read_u32()?; in update()