mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-12 22:41:40 +00:00
mutable for code/data sections themselves
This commit is contained in:
@ -538,6 +538,11 @@ impl ElementSection {
|
||||
pub fn entries(&self) -> &[ElementSegment] {
|
||||
&self.0
|
||||
}
|
||||
|
||||
/// List of all data entries in the section (mutable)
|
||||
pub fn entries_mut(&mut self) -> &mut Vec<ElementSegment> {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl Deserialize for ElementSection {
|
||||
@ -581,6 +586,11 @@ impl DataSection {
|
||||
pub fn entries(&self) -> &[DataSegment] {
|
||||
&self.0
|
||||
}
|
||||
|
||||
/// List of all data entries in the section (mutable)
|
||||
pub fn entries_mut(&mut self) -> &mut Vec<DataSegment> {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl Deserialize for DataSection {
|
||||
|
Reference in New Issue
Block a user