callindirect_1

This commit is contained in:
Svyatoslav Nikolsky
2017-05-02 08:01:57 +03:00
parent 36662f24a6
commit a2ef2378ea
5 changed files with 152 additions and 0 deletions

View File

@ -323,6 +323,11 @@ impl TableSection {
pub fn entries(&self) -> &[TableType] {
&self.0
}
/// Mutable table entries.
pub fn entries_mut(&mut self) -> &mut Vec<TableType> {
&mut self.0
}
}
impl Deserialize for TableSection {
@ -538,6 +543,11 @@ impl ElementSection {
pub fn entries(&self) -> &[ElementSegment] {
&self.0
}
/// Mutable elements entries in the section
pub fn entries_mut(&mut self) -> &mut Vec<ElementSegment> {
&mut self.0
}
}
impl Deserialize for ElementSection {