summaryrefslogtreecommitdiff
path: root/rust/zerocopy/benches/try_ref_from_bytes_static_size.rs
blob: 521557146324538acf992a4a7c2e9ef74ffc1929 (plain)
1
2
3
4
5
6
7
#[path = "formats/coco_static_size.rs"]
mod format;

#[unsafe(no_mangle)]
fn bench_try_ref_from_bytes_static_size(source: &[u8]) -> Option<&format::CocoPacket> {
    zerocopy::TryFromBytes::try_ref_from_bytes(source).ok()
}