File: io.md

package info (click to toggle)
rust-bitvec 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,780 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Bit-Field I/O Protocols

This module defines the standard-library `io::{Read, Write}` byte-oriented
protocols on `bitvec` structures that are capable of operating on bytes through
the `BitField` trait.

Note that calling [`BitField`] methods in a loop imposes a non-trivial, and
irremovable, performance penalty on each invocation. The `.read()` and
`.write()` methods implemented in this module are going to suffer this cost, and
you should prefer to operate directly on the underlying buffer if possible.