[Teton] Exec process in rust.
This commit is contained in:
parent
8206e671cd
commit
006f9f8ac5
11 changed files with 488 additions and 61 deletions
|
|
@ -18,7 +18,7 @@ impl File {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn slice(&self, offset: usize, len: usize) -> &[u8] {
|
||||
&self.memory.slice()[offset..offset + len]
|
||||
pub fn slice(&self) -> &[u8] {
|
||||
self.memory.slice()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue