evmjit output data

This commit is contained in:
debris
2016-01-09 18:25:18 +01:00
parent 130b2fc46a
commit 300a9506ed
5 changed files with 36 additions and 39 deletions

View File

@@ -110,6 +110,11 @@ impl ContextHandle {
pub fn exec(&mut self) -> JitReturnCode {
unsafe { evmjit_exec(self.context) }
}
/// Returns output data.
pub fn output_data(&self) -> &[u8] {
unsafe { std::slice::from_raw_parts(self.data_handle.call_data, self.data_handle.call_data_size as usize) }
}
}
impl Drop for ContextHandle {