Allow creation of a machine from string

This commit is contained in:
2018-05-23 16:06:22 +02:00
parent 133291a6d4
commit 1dcea9c05f
2 changed files with 18 additions and 2 deletions

View File

@@ -20,6 +20,13 @@ impl IJVMReader {
source: abc
})
}
pub fn new_from_string(source: String) -> IJVMReader {
IJVMReader {
pointer: 0,
source: source.into_bytes(),
}
}
}
impl BinReadable for IJVMReader {