#leb128 #no-std

no-std leb128-u64

极简且简单的LEB128 u64编码/解码

2个版本

0.1.1 2023年5月8日
0.1.0 2023年5月8日

#2278编码

Download history · Rust 包仓库 58/week @ 2024-03-14 · Rust 包仓库 56/week @ 2024-03-21 · Rust 包仓库 87/week @ 2024-03-28 · Rust 包仓库 34/week @ 2024-04-04 · Rust 包仓库 85/week @ 2024-04-11 · Rust 包仓库 159/week @ 2024-04-18 · Rust 包仓库 43/week @ 2024-04-25 · Rust 包仓库 24/week @ 2024-05-02 · Rust 包仓库 58/week @ 2024-05-09 · Rust 包仓库 102/week @ 2024-05-16 · Rust 包仓库 101/week @ 2024-05-23 · Rust 包仓库 117/week @ 2024-05-30 · Rust 包仓库 99/week @ 2024-06-06 · Rust 包仓库 103/week @ 2024-06-13 · Rust 包仓库 69/week @ 2024-06-20 · Rust 包仓库 27/week @ 2024-06-27 · Rust 包仓库

每月319次下载

MIT许可证

5KB
66

leb128-u64

极简且简单的LEB128 u64编码/解码。

Cargo Documentation License

示例

let input: u64 = 42;
let mut buf = Vec::new();
leb128_u64::encode(input, &mut buf);
assert_eq!(leb128_u64::encoded_len(input), buf.len());

let output = leb128_u64::decode(&buf[..]);
assert_eq!(input, output);

依赖项

~170KB