blob: 3c147d3bdd39a9d622aca7ac21bdd74c478eaf5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use zerocopy::*;
#[path = "formats/coco_dynamic_padding.rs"]
mod format;
#[unsafe(no_mangle)]
unsafe fn bench_split_at_unchecked_dynamic_padding(
source: &format::CocoPacket,
len: usize,
) -> Split<&format::CocoPacket> {
unsafe { source.split_at_unchecked(len) }
}
|