Trait risc0_zkvm::serde::WordWrite
source · pub trait WordWrite {
// Required methods
fn write_words(&mut self, words: &[u32]) -> Result<()>;
fn write_padded_bytes(&mut self, bytes: &[u8]) -> Result<()>;
}
Expand description
A writer for writing streams preferring word-based data.
Required Methods§
sourcefn write_words(&mut self, words: &[u32]) -> Result<()>
fn write_words(&mut self, words: &[u32]) -> Result<()>
Write the given words to the stream.
sourcefn write_padded_bytes(&mut self, bytes: &[u8]) -> Result<()>
fn write_padded_bytes(&mut self, bytes: &[u8]) -> Result<()>
Write the given bytes to the stream, padding up to the next word boundary.