My main purpose is to have a generic data buffer that I can use for transfers.
I'm thinking of something along the lines of what XCopy did.
Is there something already made out there or a good example one can follow?
My main purpose is to have a generic data buffer that I can use for transfers.
I'm thinking of something along the lines of what XCopy did.
Is there something already made out there or a good example one can follow?
The Tomes of Delphi by Julian Bucknall describes code for circular buffers, the code of which is freely available as a download. I haven't got the book to hand at the moment, so I can't tell you exactly where to look (though I think it might have had something to do with carrying out data compression with a sliding window).
This is not meant to be a JFGI-response, but I usually find Google CodeSearch very useful when I'm looking for code examples:
http://www.google.com/codesearch?as_q=circular+buffer&as_lang=pascal
It came up with the following:
A search through my lib folder came up with the following: