#align #alloc #byte-array #alignment #no-std

已删除 aligned-bytes

具有指定对齐方式的连续固定长度字节数组

0.1.5 2020年10月18日
0.1.4 2020年9月5日
0.1.2 2020年8月24日
0.1.1 2020年7月16日

#27 in #align

MIT 许可证

14KB
326 代码行

aligned-bytes

Crates.io MIT licensed Docs CI

具有指定对齐方式的连续固定长度字节数组。

示例

use aligned_bytes::AlignedBytes;
let mut bytes = AlignedBytes::new_zeroed(1024, 8);
let buf: &mut [u8] = &mut *bytes;

lib.rs:

具有指定对齐方式的连续固定长度字节数组。

示例

use aligned_bytes::AlignedBytes;
let mut bytes = AlignedBytes::new_zeroed(1024, 8);
let buf: &mut [u8] = &mut *bytes;

无运行时依赖

特性