4 releases

0.2.0 Aug 27, 2022
0.1.2 Jun 29, 2020
0.1.1 Mar 9, 2020
0.1.0 Sep 9, 2018

#10 in #bitstream

Download history 33/week @ 2024-01-01 64/week @ 2024-01-08 44/week @ 2024-01-15 47/week @ 2024-01-22 34/week @ 2024-01-29 48/week @ 2024-02-05 88/week @ 2024-02-12 113/week @ 2024-02-19 80/week @ 2024-02-26 78/week @ 2024-03-04 59/week @ 2024-03-11 70/week @ 2024-03-18 97/week @ 2024-03-25 145/week @ 2024-04-01 61/week @ 2024-04-08 47/week @ 2024-04-15

361 downloads per month
Used in 4 crates (via av-ivf)

MIT license

51KB
1.5K SLoC

Bitstream utilities

Read/Write values from/to a stream of bits

Implementation status

  • Fixed-size bitreader
  • Fixed-size bitwriter
  • Codebook-style variable-size bits-to-symbol reader
  • Codebook-style variable-size symbol-to-bits writer
  • Numeric-type to-bytes reader
  • Numeric-type to-bytes writer

Todo

  • Documentation
  • Basic tests
  • Benchmarks

License

MIT


lib.rs:

Bytes and bitstream reading/writing functionality.

Dependencies

~0.4–1MB
~21K SLoC