Expand description
Recursive decode pipeline (base64, hex, url, unicode) with region management.
Re-exports§
pub use codec::decoder::decode_base64;pub use codec::decoder::decode_bytes;pub use codec::decoder::decode_file;pub use codec::decoder::decode_file_with_rules;pub use codec::decoder::decode_hex;pub use codec::decoder::decode_regions;pub use codec::decoder::decode_unicode;pub use codec::decoder::decode_url;pub use codec::decoder::GpuDecoder;pub use codec::format::DecodeFormat;
Modules§
Structs§
- Decode
Rules - TOML-configurable decode thresholds and recursion limits.
- Decoded
Region - A decoded region produced by one decode pass.
- Frontier
State FrontierStatestruct.
Enums§
- Decode
Error - Error type for decode rule validation.
- Entropy
Error - Error type for entropy computation.
Constants§
- DEFAULT_
REGION_ EXPANSION DEFAULT_REGION_EXPANSIONconstant.- MAX_
INPUT_ BYTES MAX_INPUT_BYTESconstant.- MAX_
WINDOW_ SIZE MAX_WINDOW_SIZEconstant.
Functions§
- decode_
frontier decode_frontierfunction.- entropy_
map_ cpu - Compute Shannon entropy for each sliding window on CPU.
- find_
high_ entropy_ regions - Convert entropy values to contiguous high-entropy regions.
- find_
high_ entropy_ regions_ with_ window find_high_entropy_regions_with_windowfunction.- push_
region push_regionfunction.- shannon_
entropy - Uses f64 for the size division: f32 mantissa loses precision on files > 16 MB and the entropy estimate drifts.
- stable_
hash stable_hashfunction.