19 lines
437 B
Rust
19 lines
437 B
Rust
// #![no_std]
|
|
|
|
use std::path::Path;
|
|
// use std::prelude::rust_2021::alloc;
|
|
extern crate alloc;
|
|
use alloc::vec::Vec;
|
|
|
|
fn main() {}
|
|
|
|
pub type File = Vec<u8>;
|
|
// TODO: implement better VFS api
|
|
pub trait FileIO {
|
|
fn read(file: &mut File, file_address: u64, read_length: u64);
|
|
fn write(file: &mut File, file_address: u64, dest_ptr: u64, src_len: usize);
|
|
fn open(path: Path);
|
|
fn close(file: &mut File);
|
|
}
|
|
pub enum FileError {}
|