summaryrefslogtreecommitdiff
path: root/rust/zerocopy/benches/new_box_zeroed_with_elems_dynamic_padding.rs
blob: 0afde999bff86bbf0c420e71e55fb92cfc92dcf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
use zerocopy::*;

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

#[unsafe(no_mangle)]
fn bench_new_box_zeroed_with_elems_dynamic_padding(
    count: usize,
) -> Option<Box<format::LocoPacket>> {
    FromZeros::new_box_zeroed_with_elems(count).ok()
}