I'm a very beginner in my self learning journey. My understanding is, that hibernation is the same as 'suspend to disk'. If that is true, memory is cleared and put in a memory on disk (eg swap). From what I found on the Arch wiki, it works with a partition and file.
Swap space can be used for [...] suspend-to-disk support. https://wiki.archlinux.org/title/Swap#Activation_by_systemd
In order to use hibernation, you must create a swap partition or file [...]. https://wiki.archlinux.org/title/Power_management/Suspend_an...