Feltzkrone
13 November 2004, 12:16
As some of us sometimes work on Amiga-related programs running in Windows or gerneally on PCs I thought about opening this thread for code snippet requests, questions, answers and general discussion about C, Java, Delphi, QBasic and etc. programming. :D
To give it a good start: I'm currently in a programming mood and want to make another attempt at implementing the Amiga filesystem (OFS/FFS) in Delphi. I want to base everything on TStream (an image file opened in a TFileStream or TMemoryStream or whatever stream) and leave structures open so that other filesystems like those from the C64 can be implemented later, too.
Now I'm in search for a cached TStream wrapper, i.e. it should be connectable to an existent TStream and should be derived from TStream itself. It would be useful to have such a component handy when using TFileStream for HDF handling as those files may be too large to fit in memory so preloading the whole HDF file would be pretty senseless. The component should cache frequently accessed blocks of data and not just the last read blocks. The blocksize and whole cache size should be definable. If such a thing is not available I'll do it myself and post the sourcecode here later if wanted. :)
To give it a good start: I'm currently in a programming mood and want to make another attempt at implementing the Amiga filesystem (OFS/FFS) in Delphi. I want to base everything on TStream (an image file opened in a TFileStream or TMemoryStream or whatever stream) and leave structures open so that other filesystems like those from the C64 can be implemented later, too.
Now I'm in search for a cached TStream wrapper, i.e. it should be connectable to an existent TStream and should be derived from TStream itself. It would be useful to have such a component handy when using TFileStream for HDF handling as those files may be too large to fit in memory so preloading the whole HDF file would be pretty senseless. The component should cache frequently accessed blocks of data and not just the last read blocks. The blocksize and whole cache size should be definable. If such a thing is not available I'll do it myself and post the sourcecode here later if wanted. :)