serialization stubs

This commit is contained in:
NikVolf
2017-04-03 15:56:37 +03:00
parent 5adcae761c
commit ce0c1551fa
4 changed files with 34 additions and 8 deletions

View File

@ -1,5 +1,5 @@
use std::io;
use super::{Deserialize, Error, VarUint32, CountedList, InitExpr};
use super::{Deserialize, Serialize, Error, VarUint32, CountedList, InitExpr};
pub struct ElementSegment {
index: u32,
@ -62,4 +62,12 @@ impl Deserialize for DataSegment {
value: value_buf,
})
}
}
impl Serialize for DataSegment {
type Error = Error;
fn serialize<W: io::Write>(self, writer: &mut W) -> Result<(), Self::Error> {
Ok(())
}
}