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

Method op

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

Source from the content-addressed store, hash-verified

478 }
479
480 pub fn op(&self) -> u16 {
481 LittleEndian::read_u16(&self.hdr()[HDROFF_OP..])
482 }
483
484 pub fn set_op(&mut self, op: u16) -> &mut Self {
485 LittleEndian::write_u16(&mut self.hdr_mut()[HDROFF_OP..], op);

Callers 3

recv_pktMethod · 0.80
send_pktMethod · 0.80
send_pktMethod · 0.80

Calls 1

hdrMethod · 0.80

Tested by

no test coverage detected