Expand description
Adds some helpful utilities for working with bits and bytes.
See the changelog for a full release history.
§Feature flags
serde
— Enables serde supportdocs
— Enables changelog and documentation of feature flags
§License
This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.
SPDX-License-Identifier: MIT OR Apache-2.0
Modules§
- range_
check - A helper macro to ensure that a number is within the specified [$lower, $upper] bounds.
- zero_
copy - Zero-copy reader types.
- changelog
- Changelogs generated by [scuffle_changelog]
Structs§
- BitReader
- A reader that reads individual bits from a stream
- BitWriter
- A writer that allows you to write bits to a stream
Type Aliases§
- Bytes
Cursor - A cursor for reading bytes.
Traits§
- Bytes
Cursor Ext - A helper trait to implement zero copy reads on a
BytesCursor
type.
Enums§
Structs§
- String
CowDeserializer serde
- A deserializer for
StringCow
. - Emulation
Prevention Io - A wrapper around a
std::io::Read
orstd::io::Write
that automatically inserts or removes NAL emulation prevention bytes, when reading or writing respectively.
Macros§
- range_
check - Enforces that a number is within the specified [LOWER, UPPER] bounds.