During sleep nothing but the RAM is active, does any active file transfers or other running processes are halted. It is like shutting off, just that the RAM is the only active part, as it hold all active processes inside. The CPU is off, the HDD/SSD is off, the GPU is off.