aligned-bytes 0.1.0

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

aligned-bytes

Crates.io MIT licensed Docs Test

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;