Lines Matching refs:cursor

380         let mut cursor = VecCursor::new(v);  in get_fat_entry()  localVariable
381 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry()
385 let mut entry = cursor.read_u16()?; in get_fat_entry()
407 let entry = cursor.read_u16()?; in get_fat_entry()
423 let entry = cursor.read_u32()? & 0x0fffffff; in get_fat_entry()
474 let mut cursor = VecCursor::new(v); in get_fat_entry_raw() localVariable
475 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry_raw()
479 let mut entry = cursor.read_u16()?; in get_fat_entry_raw()
488 let entry = (cursor.read_u16()?) as u64; in get_fat_entry_raw()
492 let entry = cursor.read_u32()? & 0x0fff_ffff; in get_fat_entry_raw()
940 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster() localVariable
941 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
943 let mut packed_val: u16 = cursor.read_u16()?; in get_free_cluster()
962 0 => cursor.read_u16()?, in get_free_cluster()
964 let next_byte = cursor.read_u8()? as u16; in get_free_cluster()
988 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster() localVariable
989 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
991 let val = cursor.read_u16()?; in get_free_cluster()
1020 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster() localVariable
1021 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
1023 let val = cursor.read_u32()? & 0x0fffffff; in get_free_cluster()
1067 let mut cursor: VecCursor = VecCursor::new(v); in set_entry() localVariable
1068 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1070 let old_val: u16 = cursor.read_u16()?; in set_entry()
1078 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1079 cursor.write_u16(new_val)?; in set_entry()
1080 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1100 let mut cursor: VecCursor = VecCursor::new(v); in set_entry() localVariable
1101 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1103 cursor.write_u16(raw_val)?; in set_entry()
1104 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1127 let mut cursor: VecCursor = VecCursor::new(v); in set_entry() localVariable
1128 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1131 let old_bits = cursor.read_u32()? & 0xf0000000; in set_entry()
1157 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1158 cursor.write_u32(raw_val)?; in set_entry()
1160 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1218 let mut cursor = VecCursor::new(v); in new() localVariable
1222 fsinfo.lead_sig = cursor.read_u32()?; in new()
1223 cursor.seek(SeekFrom::SeekCurrent(480))?; in new()
1224 fsinfo.struc_sig = cursor.read_u32()?; in new()
1225 fsinfo.free_count = cursor.read_u32()?; in new()
1226 fsinfo.next_free = cursor.read_u32()?; in new()
1228 cursor.seek(SeekFrom::SeekCurrent(12))?; in new()
1230 fsinfo.trail_sig = cursor.read_u32()?; in new()
1311 let mut cursor: VecCursor = VecCursor::new(v); in flush() localVariable
1312 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in flush()
1314 cursor.write_u32(self.lead_sig)?; in flush()
1315 cursor.seek(SeekFrom::SeekCurrent(480))?; in flush()
1316 cursor.write_u32(self.struc_sig)?; in flush()
1317 cursor.write_u32(self.free_count)?; in flush()
1318 cursor.write_u32(self.next_free)?; in flush()
1319 cursor.seek(SeekFrom::SeekCurrent(12))?; in flush()
1320 cursor.write_u32(self.trail_sig)?; in flush()
1322 partition.disk().write_at(lba, 1, cursor.as_slice())?; in flush()
1339 let mut cursor: VecCursor = VecCursor::new(v); in update() localVariable
1340 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in update()
1341 self.lead_sig = cursor.read_u32()?; in update()
1343 cursor.seek(SeekFrom::SeekCurrent(480))?; in update()
1344 self.struc_sig = cursor.read_u32()?; in update()
1345 self.free_count = cursor.read_u32()?; in update()
1346 self.next_free = cursor.read_u32()?; in update()
1347 cursor.seek(SeekFrom::SeekCurrent(12))?; in update()
1348 self.trail_sig = cursor.read_u32()?; in update()