diff --git a/engine/src/bitboard/movebuffer.rs b/engine/src/bitboard/movebuffer.rs index b21a45b..7b2c2cb 100644 --- a/engine/src/bitboard/movebuffer.rs +++ b/engine/src/bitboard/movebuffer.rs @@ -14,9 +14,14 @@ impl MoveBuffer { count: 0 }; } + #[inline] pub fn add(&mut self, bitmove: BitMove) { self.buffer[self.count] = bitmove; self.count += 1; } + #[inline(always)] + pub fn count(&self) -> usize{ + return self.count; + } } \ No newline at end of file