oops iso was gitignored
continuous-integration/drone/push Build is passing

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2022-12-17 19:59:29 +01:00
1 parent 1ca57fdcdd
commit 96e7b1cd8e
2 files changed
+26

No files matched your search

+25
View 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
View File
@@ -0,0 +1 @@
mod iso9660;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.