userspace/
file.rs

1pub mod load;
2pub use load::load;
3
4pub mod information;
5pub use information::information;
6
7pub mod print;
8pub use print::print;
9
10pub mod open;
11pub use open::open;
12
13pub mod seek;
14pub use seek::seek;
15
16pub mod format;
17
18pub mod result;
19pub use result::{Error, Ok, Result};
20
21pub mod traits;
22
23// impl traits::Bytes<Origin, Origin> for &str {
24//     const BYTES_SIZE: usize = core::mem::size_of::<&str>();
25//     fn to_bytes(&self, endianness: bool) -> [u8; Self::BYTES_SIZE] {
26//         let bytes =
27//         memory::alloc::<char>(self.len());
28//     }
29// }
30
31ample::r#struct!(
32    pub struct Information {
33        size: usize,
34    }
35);
36
37ample::r#struct!(
38    pub struct File {
39        pub descriptor: isize,
40        pub information: Information, // pub memory : Option<*const u8>
41    }
42);