file seeking
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
gannon

for FileSeekPos(int file, int pos, int mode) // 0=SEEK_SET 1=SEEK_CUR 2=SEEK_END

I assume seek_set is a offset from the begining of the file
seek_cur is a offset from the current posion and seek_end is a offset from the end

is this correct?

for my question which is faster? (or are they both the same)
FileSeekPos(file, n, SEEK_SET)
or
FileSeekPos(file, 0-1, SEEK_CUR)

if they are the same is the time constant or dependent on n (assuming they are both seeking to the same place)

Posted on 2004-06-07 07:14:09

vecna

There's no speed effect really. SET and CUR are really the only useful ones most of the time, CUR being when you just want to skip over something of known length.

Posted on 2004-06-08 01:49:30


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.