mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-12 22:41:40 +00:00
all opcodes
This commit is contained in:
@ -231,6 +231,11 @@ pub struct Local {
|
||||
value_type: ValueType,
|
||||
}
|
||||
|
||||
impl Local {
|
||||
pub fn count(&self) -> u32 { self.count }
|
||||
pub fn value_type(&self) -> ValueType { self.value_type }
|
||||
}
|
||||
|
||||
impl Deserialize for Local {
|
||||
type Error = Error;
|
||||
|
||||
@ -246,6 +251,11 @@ pub struct FunctionBody {
|
||||
opcodes: Opcodes,
|
||||
}
|
||||
|
||||
impl FunctionBody {
|
||||
pub fn locals(&self) -> &[Local] { &self.locals }
|
||||
pub fn code(&self) -> &Opcodes { &self.opcodes }
|
||||
}
|
||||
|
||||
impl Deserialize for FunctionBody {
|
||||
type Error = Error;
|
||||
|
||||
|
Reference in New Issue
Block a user