MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / is_buffer_empty

Method is_buffer_empty

src/fs/inotify.rs:216–218  ·  view source on GitHub ↗

Returns true if the internal buffer is empty and will be refilled when calling [`next`]. This is useful to avoid further blocking reads. [`next`]: Self::next

(&self)

Source from the content-addressed store, hash-verified

214 ///
215 /// [`next`]: Self::next
216 pub fn is_buffer_empty(&self) -> bool {
217 self.offset >= self.initialized
218 }
219}

Callers 1

nextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected