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

#[unsafe(no_mangle)]
fn bench_read_from_bytes_static_size(source: &[u8]) -> Option<format::LocoPacket> {
    zerocopy::FromBytes::read_from_bytes(source).ok()
}