.pointer32 Property
Function: |
Sets/returns the current pointer position in the resource (ROM) file. |
Type: |
Dword |
Value Range: |
See the explanation below. |
See Also: |
Details
When the file is (re)opened with the romfile.open method, the pointer is reset to the first character of the file (position 1). If the file is not found or contains no data, the pointer is set to 0.
Pointer position cannot exceed romfile.size + 1. When you read from the file with romfile.getdata, the pointer is automatically moved forward by the number of bytes that have been read out.
To navigate within files that do not exceed 65,535 bytes, use romfile.pointer instead — this will speed up your application.