scuffle_bytes_util/
lib.rs

1//! Adds some helpful utilities for working with bits and bytes.
2//!
3//! ## License
4//!
5//! This project is licensed under the [MIT](./LICENSE.MIT) or [Apache-2.0](./LICENSE.Apache-2.0) license.
6//! You can choose between one of them if you use this work.
7//!
8//! `SPDX-License-Identifier: MIT OR Apache-2.0`
9#![cfg_attr(docsrs, feature(doc_cfg))]
10#![cfg_attr(all(coverage_nightly, test), feature(coverage_attribute))]
11#![deny(missing_docs)]
12#![deny(unsafe_code)]
13#![deny(unreachable_pub)]
14
15mod bit_read;
16mod bit_write;
17mod bytes_cursor;
18mod cow;
19mod nal_emulation_prevention;
20pub mod range_check;
21pub mod zero_copy;
22
23pub use bit_read::BitReader;
24pub use bit_write::BitWriter;
25pub use bytes_cursor::{BytesCursor, BytesCursorExt};
26pub use cow::bytes::BytesCow;
27pub use cow::string::StringCow;
28#[cfg(feature = "serde")]
29#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
30pub use cow::string::serde::StringCowDeserializer;
31pub use nal_emulation_prevention::EmulationPreventionIo;