How do file pointers point to the of data on the disk?

58 views Asked by At

I'm reading the Microsoft documentation that says:

"

PointerToRawData is a file pointer to the first page within the COFF file.

"

PointerToRawData is a variable in the PE section headers. Question is, how can a file pointer point a page (which is a chunk of data that is in MEMORY, as far as I know), meanwhile it is supposed to point to the first block of the file on the disk? (which is on the disk not the memory, obviously)

Also do file pointers also work the same way as pointers that point to a location in the memory? are they also displayed as hex numbers like 0xfff2ab23 or something when you print them out? does the system also reference the locations on the disk the same way it does with the memory? (using hex values).

My knowledge is very limited in this regard, excuse me for that. I'm trying to improve and hopefully I will by your help.

0

There are 0 answers