mirror of https://git.sr.ht/~stygianentity/bincode
readme: deserializer/decoder actually accepts `&[u8]`, not `Vec<u8>`
This commit is contained in:
parent
18b9225ab1
commit
07b2514737
|
|
@ -10,8 +10,9 @@ A compact encoder / decoder pair that uses a binary zero-fluff encoding scheme.
|
|||
The size of the encoded object will be the same or smaller than the size that
|
||||
the object takes up in memory in a running Rust program.
|
||||
|
||||
In addition to exposing two simple functions that encode to Vec<u8> and decode
|
||||
from Vec<u8>, binary-encode exposes a Reader/Writer API that makes it work
|
||||
In addition to exposing two simple functions
|
||||
(one that encodes to `Vec<u8>`, and one that decodes from `&[u8]`),
|
||||
binary-encode exposes a Reader/Writer API that makes it work
|
||||
perfectly with other stream-based apis such as rust files, network streams,
|
||||
and the [flate2-rs](https://github.com/alexcrichton/flate2-rs) compression
|
||||
library.
|
||||
|
|
|
|||
Loading…
Reference in New Issue