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

Method is_empty

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

Check if the buffer holds any data that hasn't yet been flushed out.

(&self)

Source from the content-addressed store, hash-verified

137 /// Check if the buffer holds any data that hasn't yet been flushed out.
138 ///
139 pub fn is_empty(&self) -> bool {
140 self.len() == 0
141 }
142}
143
144#[cfg(test)]

Callers 7

flush_toMethod · 0.45
send_pktMethod · 0.45
has_pending_rxMethod · 0.45
get_polled_evsetMethod · 0.45
notifyMethod · 0.45
send_bytesMethod · 0.45
readMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected