Difference between sceIoLseek32 and sceIoLseek

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Difference between sceIoLseek32 and sceIoLseek

Post by sakya »

Hi! :)

Can someone explain me the difference between sceIoLseek32 and sceIoLseek?
What does it mean to seek in 32 bit mode?
Are there performance differences between the two functions?
When should I use one instead of the other?

Many thanks.

Ciaooo
Sakya
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

32 bit seeking only allows for +/- 2GB seeking. With sticks out that are greater than 4GB, it's quite likely 32 bit seeking won't hack it for some things (videos, databases, etc). That's when you go to 64 bit seeking. However, for most apps, +/- 2GB is WAAAAAAAY more than they need, so 32 bit seeking is fine. For example, music players, or loading art for a game.

And that's the difference: sceIoLseek32() takes an int as the offset, where sceIoLseek() takes an sceOff, which is a 64 bit int.
sakya
Posts: 190
Joined: Fri Apr 28, 2006 5:48 pm
Contact:

Post by sakya »

Hi! :)

Many thanks. ;)

Ciaooo
Sakya
Post Reply