opcodes stub & data segment

This commit is contained in:
NikVolf
2017-04-03 17:31:51 +03:00
parent ce0c1551fa
commit a63f31a0f7
4 changed files with 98 additions and 2 deletions

View File

@ -68,6 +68,9 @@ impl Serialize for DataSegment {
type Error = Error;
fn serialize<W: io::Write>(self, writer: &mut W) -> Result<(), Self::Error> {
VarUint32::from(self.index).serialize(writer)?;
self.offset.serialize(writer)?;
writer.write_all(&self.value[..])?;
Ok(())
}
}