Debian Codegraph @

debian/rust-vendor/bitvec/doc/field/io/Read_BitVec.md

raw
1 # Reading From a Bit-Vector
2
3 The implementation loads bytes out of the reference bit-vector until either the
4 destination buffer is filled or the source has no more bytes to provide. When
5 `.read()` returns, the provided bit-vector will have its contents shifted down
6 so that it begins at the first bit *after* the last byte copied out into `buf`.
7
8 Note that the return value of `.read()` is always the number of *bytes* of `buf`
9 filled!
10
11 ## API Differences
12
13 The standard library does not `impl Read for Vec<u8>`. It is provided here as a
14 courtesy.