mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-12 22:41:40 +00:00
builders intial
This commit is contained in:
@ -251,6 +251,14 @@ impl Serialize for ImportSection {
|
||||
pub struct FunctionsSection(Vec<Func>);
|
||||
|
||||
impl FunctionsSection {
|
||||
pub fn new() -> FunctionsSection {
|
||||
FunctionsSection(Vec::new())
|
||||
}
|
||||
|
||||
pub fn entries_mut(&mut self) -> &mut Vec<Func> {
|
||||
&mut self.0
|
||||
}
|
||||
|
||||
pub fn entries(&self) -> &[Func] {
|
||||
&self.0
|
||||
}
|
||||
|
Reference in New Issue
Block a user