This commit is contained in:
Svyatoslav Nikolsky
2017-04-28 13:34:58 +03:00
parent 51c42b653c
commit e14e3e055a
10 changed files with 183 additions and 11 deletions

View File

@ -361,6 +361,11 @@ impl MemorySection {
pub fn entries(&self) -> &[MemoryType] {
&self.0
}
/// Mutable list of all memory entries in the section
pub fn entries_mut(&mut self) -> &mut Vec<MemoryType> {
&mut self.0
}
}
impl Deserialize for MemorySection {