Re: [libtorrent] how to support selection download
Brought to you by:
arvidn
From: MooPolice <Moo...@ma...> - 2005-05-13 05:27:37
|
> I tried to remove the actual allocation of pieces (where zeroes are > written to the files) but that turned out not to work. My assert that > tell() say the same thing as I pass to seek() failed. This is on darwin > (osx). > On Windows there is a SetEndOfFile() function. Dokumentation says it will truncate or extend the file to the file pointer position and the content will be undefined. Very likely other os's will have this too. I guess you have to call this function before before tell() will work. |