swapBuffers method

dynamic swapBuffers()

Implementation

swapBuffers() {
  var tmp = readBuffer;
  readBuffer = writeBuffer;
  writeBuffer = tmp;
}