namespaces

This commit is contained in:
NikVolf
2017-04-03 13:58:49 +03:00
parent 8a48edb6c6
commit a5fdfa57cf
5 changed files with 25 additions and 20 deletions

View File

@ -1,6 +1,16 @@
use std::io;
use super::{Deserialize, Error, ValueType, VarUint32, CountedList, Opcodes};
/// Function signature (type reference)
pub struct Func(u32);
impl Func {
pub fn new(type_ref: u32) -> Self { Func(type_ref) }
pub fn type_ref(&self) -> u32 {
self.0
}
}
pub struct Local {
count: u32,