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

Method src_cid

virtio-devices/src/vsock/packet.rs:422–424  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

420 }
421
422 pub fn src_cid(&self) -> u64 {
423 LittleEndian::read_u64(&self.hdr()[HDROFF_SRC_CID..])
424 }
425
426 pub fn set_src_cid(&mut self, cid: u64) -> &mut Self {
427 LittleEndian::write_u64(&mut self.hdr_mut()[HDROFF_SRC_CID..], cid);

Callers

nothing calls this directly

Calls 2

hdrMethod · 0.80
read_u64Function · 0.50

Tested by

no test coverage detected