1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Generic base-N encoding/decoding with compile-time dictionaries.
//!
//! Provides a unified interface for binary-to-text encodings (hex, base64,
//! base32) with optimized runtime implementations and const-friendly fallbacks.
//!
//! # Features
//!
//! - **Const evaluation**: All encoding/decoding logic works in const contexts
//! - **Zero-copy iterators**: Streaming encoders and decoders with exact size
//! hints
//! - **Optimized paths**: Hand-tuned implementations for Base64/Base32
//! - **Flexible dictionaries**: Support for custom alphabets and padding
//! schemes
//! - **Stack allocation**: Fixed-size [`ArrayStr`] and [`Array`] wrappers
//!
//! # Submodules
//!
//! - [`hex`]: Hexadecimal encoding with upper/lowercase support
//! - [`base64`]: Standard and URL-safe Base64 encodings
//! - [`base64_url`]: URL-safe Base64 encodings
//! - [`base32`]: RFC 4648 Base32, Base32-Hex, and Base32-DNS variants
//! - [`base32_hex`]: RFC 4648 Base32-Hex
//! - [`base32_dns`]: RFC 4648 Base32-DNS
//!
//! # Examples
//! ```
//! use omp_core::{base64, hex};
//!
//! // Hex encoding
//! let encoded = hex::encode(b"Hello").into_string();
//! assert_eq!(encoded, "48656c6c6f");
//!
//! // Base64 encoding
//! let encoded = base64::encode(b"Hello").into_string();
//! assert_eq!(encoded, "SGVsbG8=");
//!
//! // Const evaluation
//! const HEX: hex::ArrayStr<5> = hex::encode_n(b"Hello");
//! assert_eq!(&*HEX, "48656c6c6f");
//! ```
pub use ;
pub use ;
pub use ;
pub use ;