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

Method set_len

virtio-devices/src/vsock/packet.rs:466–469  ·  view source on GitHub ↗
(&mut self, len: u32)

Source from the content-addressed store, hash-verified

464 }
465
466 pub fn set_len(&mut self, len: u32) -> &mut Self {
467 LittleEndian::write_u32(&mut self.hdr_mut()[HDROFF_LEN..], len);
468 self
469 }
470
471 pub fn type_(&self) -> u16 {
472 LittleEndian::read_u16(&self.hdr()[HDROFF_TYPE..])

Callers 11

create_anonymous_fileMethod · 0.45
sendMethod · 0.45
make_memfdFunction · 0.45
sparse_layoutFunction · 0.45
recv_pktMethod · 0.45
init_data_pktMethod · 0.45
recv_pktMethod · 0.45
init_pktFunction · 0.45
update_log_baseMethod · 0.45

Calls 1

hdr_mutMethod · 0.80

Tested by 1