implemented method clear for struct MoveBuffer

This commit is contained in:
Varga Dávid Lajos
2025-11-19 15:56:57 +01:00
parent f64ebfa47f
commit 5340744abe

View File

@@ -20,6 +20,10 @@ impl MoveBuffer {
self.buffer[self.count] = bitmove;
self.count += 1;
}
#[inline]
pub fn clear(&mut self) {
self.count = 0;
}
#[inline(always)]
pub fn count(&self) -> usize{
return self.count;