Struct parity_wasm::elements::CountedWriter [] [src]

pub struct CountedWriter<'a, W: 'a + Write> { /* fields omitted */ }

Helper struct to write payload which is preceded by it's own length in bytes.

Methods

impl<'a, W: 'a + Write> CountedWriter<'a, W>
[src]

New counted writer on top of the given serial writer

Finish counted writer routing, which writes accumulated length and actual payload.

Trait Implementations

impl<'a, W: 'a + Write> Write for CountedWriter<'a, W>
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more