Skip to main content

Module codec

Module codec 

Source
Expand description

Data encoding and decoding abstractions.
codec::{crypto, hash}

Extends: std::{hash}


Structured, algorithmic transformations of data representations.

Modules§

crypto
Cryptographic primitives for encryption, authentication, and hashing.
hash
Hash functions and hashers for compact data fingerprints.

Macros§

bitfield
🏗️ ▫️ 🫗 Defines a compact packed-field wrapper backed by an unsigned integer.
set
🏗️ ▫️ Defines a compact set backed by an integer bit mask.

Structs§

Adler32
🔀 Adler-32 checksum.
Base
🥡 A compile-time configurable radix-based encoding scheme.
BinTag4
🪪 🥡 A fixed four-byte binary tag.
BitfieldExample_docs_examples and (_docs_examples)
▫️ 🫗 🗃️ A compact packet header.
Crockford
🥡 The Crockford Base32 encoding, case-insensitive, remaps certain characters.
Rfc4648
🥡 The RFC 4648 standard encoding, used in Base16, Base32, and Base64.
Rfc4648Hex
🥡 The RFC 4648 hexadecimal-variant encoding, used in Base32.
Riff
🪪 🥡 RIFF tagged binary container operations.
RiffChunk
🪪 🥡 A borrowed RIFF chunk.
RiffChunkIter
🪪 🥡 🔄 An iterator over borrowed RIFF chunks.

Enums§

CompressionMode
🥡 The type of compression applied to data.
EncodingMode
🥡 The primary mode for data encoding.
RiffError
🪪 🥡 🚩 RIFF parsing error.

Type Aliases§

Base16
🥡 Base16 standard encoding (hex), with linear search. Case-insensitive.
Base32
🥡 Base32 standard encoding, using LUT decoding. Case-sensitive.
Base64
🥡 Base64 standard encoding, using LUT decoding. Case-sensitive.
Base32Crockford
🥡 Base32 Crockford encoding. Case-insensitive, remaps O → 0, I/L → 1.
Base32Hex
🥡 Base32Hex uses RFC 4648 hex-encoding (0-9 A-V instead of A-Z 2-7).
Base32Padded
🥡 Base32 encoding with padding (=) enabled, using LUT decoding.
Base64Padded
🥡 Base64 encoding with padding (=) enabled, using LUT decoding.