For buffers of any significant size this looks like far too much work! Can't you fix your code that uses these buffers to access them through pointers and then you just swap the pointers?
In reply to Re: [OT] Swapping buffers in place.
by RichardK
in thread [OT] Swapping buffers in place.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |