We would like to add a `emit_varint` function, however doing so requires that we can get access to the length of a slice when we are encoding it so we can use `emit_slice` to implement `emit_varint`. It would be easier to do so if `emit_slice` returned the length of the slice. In preparation for adding `emit_varint` (and removing the `VarInt` type) return the encoded length of a slice from `WriteExt::emit_slice`. (Patch originally written by Steven, cherry-pick and patch description written by Tobin.) Co-developed-by: Tobin C. Harding <me@tobin.cc> |
||
---|---|---|
.. | ||
contrib | ||
embedded | ||
examples | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml |