0.1.5 |
|
---|---|
0.1.4 |
|
0.1.2 |
|
0.1.1 |
|
#27 in #align
14KB
326 代码行
aligned-bytes
具有指定对齐方式的连续固定长度字节数组。
示例
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;