rust/zerocopy/benches/as_bytes_dynamic_size.rs

Source file repositories/reference/linux-study-clean/rust/zerocopy/benches/as_bytes_dynamic_size.rs

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/as_bytes_dynamic_size.rs
Extension
.rs
Size
188 bytes
Lines
10
Domain
Rust Kernel Layer
Bucket
Rust API Membrane
Inferred role
Rust Kernel Layer: implementation source
Status
source implementation candidate

Why This File Exists

Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.

Dependency Surface

Detected Declarations

Annotated Snippet

use zerocopy::*;

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

#[unsafe(no_mangle)]
fn bench_as_bytes_dynamic_size(source: &format::CocoPacket) -> &[u8] {
    source.as_bytes()
}

Annotation

Implementation Notes