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

Method len

virtio-devices/src/vsock/csm/txbuf.rs:41–43  ·  view source on GitHub ↗

Get the used length of this buffer - number of bytes that have been pushed in, but not yet flushed out.

(&self)

Source from the content-addressed store, hash-verified

39 /// yet flushed out.
40 ///
41 pub fn len(&self) -> usize {
42 (self.head - self.tail).0 as usize
43 }
44
45 /// Push a byte slice onto the ring-buffer.
46 ///

Callers 12

pushMethod · 0.45
flush_toMethod · 0.45
is_emptyMethod · 0.45
writeMethod · 0.45
set_capacityMethod · 0.45
recv_pktMethod · 0.45
send_pktMethod · 0.45
send_bytesMethod · 0.45
readMethod · 0.45
writeMethod · 0.45
init_data_pktMethod · 0.45

Calls

no outgoing calls

Tested by 1