Re: [Waba-spec] The registry, etc.
Status: Abandoned
Brought to you by:
bornet
From: Christian G. <chr...@sm...> - 2001-10-25 16:33:34
|
Hello, On Wed, Oct 17, 2001 at 03:59:58PM -0400, Sean Luke wrote: > Here are my initial thoughts on the final Registry description. Thank you for the feedback! > 1. There is no reason why you shouldn't be able to skip negative bytes. > If you back up to position X, and then start writing, the Registry > should assume that everything after X is automatically deleted. I modified 'skipBytes' accordingly. I am assuming that no platform will have a problem with this (reel tapes are not that common on PDA's :-) ). > 2. What happens if you delete the registry while it's open? Can you > continue to write? Would that recreate the registry (I assume not)? Or > do you have to call getRegistry() again? Reading/writing after having deleted the Registry is undefined; one should re-obtain it. I modified the documentation accordingly. > 3. There should be a function indicating the maximum feasible number of > bytes that the registry can hold. I added a 'spaceAvailable()' method, which would return the amount of registry space available at that moment. Is that what you had in mind? > 4. I presume that the registry does not take locking into consideration: > if you have multiple instances of your application open, I presume the > result is undefined? Which is fine, just as long as we state this. Another good point. The result would indeed be undefined, and I modified the documentation accordingly. Let me know what you think. Thanks, -Christian |