Swapping two blocks of memory that reside inside a larger block, in constant memory

The title kind of says it all.