[comp.lang.pascal] TCollection Stream Particulars...

trodgers@nmsu.edu (Thomas Rodgers) (05/23/91)

I need to know the PRECISE order in which TCOLLECTION.STORE places its
fields on the stream.  It is my assumption that it doesn't write the
items field, since this a pointer to something that would be 
reconstructed at LOAD time anyway.  It is also my assumption, that it
writes all of the object's data fields prior to putting any of the
actual ITEMS on (via PutItem).  Is this the case? if so, how much offset
is there from the end of the object ID (where the file pointer is left
when Load is called) to the word sized fields containing Count and
Delta?  Would it be reasonable to assume that they are stored in 
the same order as the manual shows them defined?

I need to construct some other items based on these fields prior to 
actually loading the stream, and if I know where to find the Count and
Delta fields, I could just maintain one copy of them rather than
separate counts for my derived object.