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

Method dst_cid

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

Source from the content-addressed store, hash-verified

429 }
430
431 pub fn dst_cid(&self) -> u64 {
432 LittleEndian::read_u64(&self.hdr()[HDROFF_DST_CID..])
433 }
434
435 pub fn set_dst_cid(&mut self, cid: u64) -> &mut Self {
436 LittleEndian::write_u64(&mut self.hdr_mut()[HDROFF_DST_CID..], cid);

Callers 1

send_pktMethod · 0.80

Calls 2

hdrMethod · 0.80
read_u64Function · 0.50

Tested by

no test coverage detected