Searched refs:cursor (Results 1 – 4 of 4) sorted by relevance
232 let mut cursor = VecCursor::new(v); in new() localVariable236 cursor.read_exact(&mut bpb.jmp_boot)?; in new()237 cursor.read_exact(&mut bpb.oem_name)?; in new()238 bpb.bytes_per_sector = cursor.read_u16()?; in new()239 bpb.sector_per_cluster = cursor.read_u8()?; in new()240 bpb.rsvd_sec_cnt = cursor.read_u16()?; in new()241 bpb.num_fats = cursor.read_u8()?; in new()242 bpb.root_entries_cnt = cursor.read_u16()?; in new()243 bpb.total_sectors_16 = cursor.read_u16()?; in new()244 bpb.media = cursor.read_u8()?; in new()[all …]
380 let mut cursor = VecCursor::new(v); in get_fat_entry() localVariable381 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() localVariable475 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()[all …]
1098 let mut cursor: VecCursor = VecCursor::new(v); in flush() localVariable1100 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()[all …]
412 let mut cursor = VecCursor::new(buf); in read_mbr_table() localVariable413 cursor.seek(SeekFrom::SeekCurrent(446))?; in read_mbr_table()418 table.dpte[i].flags = cursor.read_u8()?; in read_mbr_table()419 table.dpte[i].starting_head = cursor.read_u8()?; in read_mbr_table()420 table.dpte[i].starting_sector_cylinder = cursor.read_u16()?; in read_mbr_table()421 table.dpte[i].part_type = cursor.read_u8()?; in read_mbr_table()422 table.dpte[i].ending_head = cursor.read_u8()?; in read_mbr_table()423 table.dpte[i].ending_sector_cylingder = cursor.read_u16()?; in read_mbr_table()424 table.dpte[i].starting_lba = cursor.read_u32()?; in read_mbr_table()425 table.dpte[i].total_sectors = cursor.read_u32()?; in read_mbr_table()[all …]