Boost logo

Boost :

Subject: Re: [boost] [interprocess::file_mapping] Please add resize method
From: Dmytro Ovdiienko (dmitriy.ovdienko_at_[hidden])
Date: 2011-08-06 03:38:30


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_at_[hidden]>

> 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_at_[hidden]
skype: dmitriy.ovdienko_at_[hidden]
mobile: +38050-1909731

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk