scuffle_bytes_util/
lib.rs

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