builders intial

This commit is contained in:
NikVolf
2017-04-06 11:34:31 +03:00
parent 1f09d620e8
commit 74b310113e
9 changed files with 276 additions and 2 deletions

View File

@ -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
}