| Crates.io | aligned-bytes |
| lib.rs | aligned-bytes |
| version | 0.1.5 |
| created_at | 2020-07-16 14:17:11.950051+00 |
| updated_at | 2020-10-18 11:32:34.466071+00 |
| description | A continuous fixed-length byte array with a specified alignment. |
| homepage | |
| repository | https://github.com/datenlord/aligned-bytes |
| max_upload_size | |
| id | 265768 |
| size | 18,268 |
A continuous fixed-length byte array with a specified alignment.
use aligned_bytes::AlignedBytes;
let mut bytes = AlignedBytes::new_zeroed(1024, 8);
let buf: &mut [u8] = &mut *bytes;