diff --git a/engine/src/bitboard/movebuffer.rs b/engine/src/bitboard/movebuffer.rs index 8c463cf..61a7844 100644 --- a/engine/src/bitboard/movebuffer.rs +++ b/engine/src/bitboard/movebuffer.rs @@ -20,6 +20,11 @@ impl MoveBuffer { self.buffer[self.count] = bitmove; self.count += 1; } + #[inline] + pub fn append(&mut self, other: &MoveBuffer) { + self.buffer[self.count..self.count + other.count()].copy_from_slice(other.contents()); + self.count += other.count(); + } #[inline(always)] pub fn clear(&mut self) { self.count = 0;