You simply swap out all your memory. There's no technical difference between a hibernated page and a swapped out page - the only difference is that the OS normally prevents certain pages (e.g. kernel pages) from being swapped out to preserve performance.