quick buffer swap (unsafe)