[−][src]Trait lightning::util::ser::Writer
A trait that is similar to std::io::Write but has one extra function which can be used to size buffers being written into. An impl is provided for any type that also impls std::io::Write which simply ignores size hints.
Required methods
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Writes the given buf out. See std::io::Write::write_all for more
fn size_hint(&mut self, size: usize)
Hints that data of the given size is about the be written. This may not always be called prior to data being written and may be safely ignored.