Function isEmpty [src]
Returns true if the ring buffer is empty and false otherwise.
Prototype
pub fn isEmpty(self: RingBuffer) bool
Parameters
self: RingBuffer
Source
pub fn isEmpty(self: RingBuffer) bool {
return self.write_index == self.read_index;
}