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

yanked aligned-bytes

A continuous fixed-length byte array with a specified alignment

0.1.5 Oct 18, 2020
0.1.4 Sep 5, 2020
0.1.2 Aug 24, 2020
0.1.1 Jul 16, 2020

#26 in #align

MIT license

14KB
326 lines

aligned-bytes

Crates.io MIT licensed Docs CI

A continuous fixed-length byte array with a specified alignment.

Example

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

lib.rs:

A continuous fixed-length byte array with a specified alignment.

Example

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

No runtime deps

Features