#codec #hex #simd #simd-accelerated

无需std hex-simd

SIMD加速的十六进制编码和解码

7个版本 (4个重大更新)

0.8.0 2022年12月28日
0.7.0 2022年7月23日
0.6.2 2022年6月29日
0.5.1 2022年6月26日
0.1.0 2021年11月23日

#1461解析器实现

Download history · Rust 包仓库 2847/week @ 2024-04-20 · Rust 包仓库 2390/week @ 2024-04-27 · Rust 包仓库 2622/week @ 2024-05-04 · Rust 包仓库 2610/week @ 2024-05-11 · Rust 包仓库 2464/week @ 2024-05-18 · Rust 包仓库 2156/week @ 2024-05-25 · Rust 包仓库 3459/week @ 2024-06-01 · Rust 包仓库 2462/week @ 2024-06-08 · Rust 包仓库 2156/week @ 2024-06-15 · Rust 包仓库 2571/week @ 2024-06-22 · Rust 包仓库 1929/week @ 2024-06-29 · Rust 包仓库 1879/week @ 2024-07-06 · Rust 包仓库 3024/week @ 2024-07-13 · Rust 包仓库 2356/week @ 2024-07-20 · Rust 包仓库 2230/week @ 2024-07-27 · Rust 包仓库 2788/week @ 2024-08-03 · Rust 包仓库

每月10,690次下载
24 个crate中使用 (13直接使用)

MIT 许可证

200KB
5.5K SLoC

hex-simd

Crates.io Docs MIT licensed

SIMD加速的十六进制编码和解码。

文档:https://docs.rs/hex-simd

仓库:https://github.com/Nugine/simd


lib.rs:

SIMD加速的十六进制编码和解码。

示例

use hex_simd::AsciiCase;

let bytes = b"Hello world!";

let encoded = hex_simd::encode_to_string(bytes, AsciiCase::Lower);
assert_eq!(encoded, "48656c6c6f20776f726c6421");

let decoded = hex_simd::decode_to_vec(encoded).unwrap();
assert_eq!(decoded, bytes);

依赖项