mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-17 17:01:52 +00:00
opcodes stub & data segment
This commit is contained in:
@ -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(())
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user