MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / hdr

Method hdr

virtio-devices/src/vsock/packet.rs:362–364  ·  view source on GitHub ↗

Provides in-place, byte-slice, access to the vsock packet header.

(&self)

Source from the content-addressed store, hash-verified

360 /// Provides in-place, byte-slice, access to the vsock packet header.
361 ///
362 pub fn hdr(&self) -> &[u8] {
363 self.hdr.as_slice()
364 }
365
366 /// Provides in-place, byte-slice, mutable access to the vsock packet header.
367 ///

Callers 12

process_rxMethod · 0.80
commit_hdrMethod · 0.80
src_cidMethod · 0.80
dst_cidMethod · 0.80
src_portMethod · 0.80
dst_portMethod · 0.80
lenMethod · 0.80
type_Method · 0.80
opMethod · 0.80
flagsMethod · 0.80
buf_allocMethod · 0.80
fwd_cntMethod · 0.80

Calls 1

as_sliceMethod · 0.80

Tested by

no test coverage detected