
Hi Ion, Thank you for getting back. You can define extra method which does not guaranty to fill rest of file with zeros. On POSIX it will be filled with zeros. On windows it will/or not will be filled with zeros. Who cares. Both will conform method specification. User will be able to choose required behaviour. For instance my program does not require file to be filled with zeros. Instead it requires API to be as quick as hardware allows. Looking forward to hearing from you. Thanks. Dima 2011/7/21 Ion Gaztañaga <igaztanaga@gmail.com>
El 12/07/2011 12:24, Dmytro Ovdiienko escribió:
Attached.
Also there is one more bug. You did not do set_end_of_file in the if block.
Sorry, for the delay, I was on holidays. Regarding zero-fill, I need to do that because POSIX guarantees this. I'm trying to achieve portable behaviour. Unless windows guarantees to read zeros after SetEndOfFile.
Best,
Ion ______________________________**_________________ Unsubscribe & other changes: http://lists.boost.org/** mailman/listinfo.cgi/boost<http://lists.boost.org/mailman/listinfo.cgi/boost>
-- Dmytro Ovdiienko e-mail: dmitriy.ovdienko@gmail.com skype: dmitriy.ovdienko@gmail.com mobile: +38050-1909731