oops iso was gitignored
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
		
							parent
							
								
									1ca57fdcdd
								
							
						
					
					
						commit
						96e7b1cd8e
					
				
							
								
								
									
										25
									
								
								src/fs/iso/iso9660.rs
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										25
									
								
								src/fs/iso/iso9660.rs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
#[repr(C, packed)]
 | 
			
		||||
pub struct IsoPathTable {
 | 
			
		||||
    idf_len: u8, // Identifier name length
 | 
			
		||||
    ext_size: u8, // Extended attribute record length
 | 
			
		||||
    data_blk: u8, // File data block index
 | 
			
		||||
    parent_dir: u16, // Number of the parent dir
 | 
			
		||||
    // idf: [char] // Directory name, of size Self::idf_len
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl IsoPathTable {
 | 
			
		||||
    pub fn from(mapping: &u8) -> &Self {
 | 
			
		||||
        let ptr: *const u8 = mapping;
 | 
			
		||||
        let path_table_ptr: *const IsoPathTable = ptr as *const IsoPathTable;
 | 
			
		||||
        unsafe {
 | 
			
		||||
            &*path_table_ptr
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub fn get_idf(&self) -> *const char {
 | 
			
		||||
        let ptr: *const IsoPathTable = self;
 | 
			
		||||
        unsafe {
 | 
			
		||||
            ptr.offset(1) as *const char
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1
									
								
								src/fs/iso/mod.rs
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										1
									
								
								src/fs/iso/mod.rs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
mod iso9660;
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user