zerocopy 0.8.48

Zerocopy makes zero-cost memory manipulation effortless. We write "unsafe" so you don't have to.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use zerocopy::*;

#[path = "formats/coco_static_size.rs"]
mod format;

#[unsafe(no_mangle)]
fn bench_insert_vec_zeroed(
    v: &mut Vec<format::LocoPacket>,
    position: usize,
    additional: usize,
) -> Option<()> {
    FromZeros::insert_vec_zeroed(v, position, additional).ok()
}