If it were a Mac OS disk for example, then the HFS+ filesystem would be interpreted by the software, and an analysis would be made to try to determine what data was previously present before the deletion was performed.
Browsing deleted files in Mac Data Recovery Guruĭeleted file recovery used to be done by reading the filesystem of the disk.