aligned-utils 1.0.2

Common utilities to work with aligned values and allocation
Documentation
  • Coverage
  • 100%
    21 out of 21 items documented3 out of 21 items with examples
  • Size
  • Source code size: 18.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 7.7 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • datenlord/aligned-utils
    5 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Nugine

aligned-utils

Crates.io MIT licensed Docs CI

Common utilities to work with aligned values and allocation.

Example

use aligned_utils::stack::Align8;
let mut arr = Align8([1, 2, 3]);
let bytes: &[u8] = &*arr;
use aligned_utils::bytes::AlignedBytes;  // with feature "alloc"
let mut bytes = AlignedBytes::new_zeroed(1024, 8);
let buf: &mut [u8] = &mut *bytes;