Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

file size stored inside file?

Featured Replies

  • Author
  • Localization

garan, posted Thu Mar 10, 2022 1:20 pm (70417)


how come lots of file formats include the size of the file inside the file? why not just seek to the end and ftell()? it seems like a waste of bytes
  • Author
  • Localization

rabatini, posted Thu Mar 10, 2022 1:33 pm (70418)


garan wrote:
how come lots of file formats include the size of the file inside the file? why not just seek to the end and ftell()? it seems like a waste of bytes

Because games works with TOC/LBA.
it cannot just seektoend because the game works with many files with in loadeded into ram and need pointers because its not an individual file.
So generally have a table pointing the files begin and end.
or some kind of math to do the same job.

I strongly suggest you read some document of asmromhacking.
Because its seems you are very newbie in this subject.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.