55 lines
No EOL
851 B
Rust
55 lines
No EOL
851 B
Rust
#[repr(C)]
|
|
pub struct FileSystem {
|
|
pub unknown: [u8; 32]
|
|
}
|
|
|
|
impl FileSystem {
|
|
pub fn empty() -> Self {
|
|
Self {
|
|
unknown: [0; 32]
|
|
}
|
|
}
|
|
}
|
|
|
|
#[repr(C)]
|
|
pub struct DirectoryReader {
|
|
pub unknown: [u8; 32]
|
|
}
|
|
|
|
impl DirectoryReader {
|
|
pub fn empty() -> Self {
|
|
Self {
|
|
unknown: [0; 32]
|
|
}
|
|
}
|
|
}
|
|
|
|
#[repr(C)]
|
|
pub struct FileReader {
|
|
pub unknown: [u8; 32]
|
|
}
|
|
|
|
impl FileReader {
|
|
pub fn empty() -> Self {
|
|
Self {
|
|
unknown: [0; 32]
|
|
}
|
|
}
|
|
}
|
|
|
|
#[repr(u8)]
|
|
pub enum RecordType {
|
|
None = 0,
|
|
Directory = 1,
|
|
File = 2,
|
|
Unknown = 3,
|
|
}
|
|
|
|
#[repr(C)]
|
|
pub struct Record {
|
|
pub name: [u8; 12],
|
|
pub record_type: u8,
|
|
/// this is fs implementation specific, don't trust this value outside of kernel
|
|
pub target: u32,
|
|
pub total_size_bytes: u32,
|
|
} |