Struct minicbor_io::Writer [−][src]
pub struct Writer<W> { /* fields omitted */ }
Expand description
Wraps a std::io::Write
and writes length-delimited CBOR values.
Implementations
Create a new writer with a max. buffer size of 512KiB.
Set the max. buffer size in bytes.
If length values greater than this are encoded, an
Error::InvalidLen
will be returned.
Get a mutable reference to the inner writer.