How string are stored

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Aug 8 16:24:01 CDT 2003


on 8/8/03 10:56, Francois Van Lerberghe at fvanlerberghe at freegates.be wrote:

>>>> In fact each data file has flag in the first byte.
>>> 
>>> Can I store data in MacOS, copy the .dat file in Windows, open it (using the
>>> Windows .vdb file) and continue to store data in this platform, copy again
>>> the .dat file on MacOS, open it (with he MacOS.vdb file) and read all these
>>> data on MacOS ? Is it allowed ?
>>> Are you able to interpret correctly the data ?
>> 
>> Yes this can works.
> 
> I don't understand how this can work.
> Has each record a flag saying this record was encoded in Windows or MacOS
> format ?

No Just each data file .vdb .dat .ind .blb
Have header.
First byte of this header show its native platform.


> Or do you convert all records in one unique format, that is not platform
> dependant ?

> You have said that strings are stored in the platform specific format. Thus
> when I'm on Windows and add my first record, it is stored in Windows format.

> Next I go to the Mac and add a second record, stored in Mac format.

NO!  it is also stored in Windows format.
Because your db already is in Windows format.

> Next I
> go to Windows and read both record. How can you know that the first is in
> Windows format and the second is in Mac format ?

> Or do you mean that if the .dat file is created in Windows, it is "marked"
> as a Windows format file and all records are stored in Windows format, when
> I add records in Mac or Windows ?

YES !

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list