[fpc-pascal] buffered filestream

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Jun 10 18:47:34 CEST 2012


On Sun, 10 Jun 2012 18:24:14 +0200
Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Sun, 10 Jun 2012 16:54:30 +0200 (CEST)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>[...]
> > It is even documented on
> > 
> > http://www.freepascal.org/docs-html/fcl/bufstream/index.html
> > 
> > Amazing, don't you think  ? ;-)
> 
> The fpc sources are always amazing.

Maybe I miss something:

TReadBufStream.Seek calls FakeSeekForward, which calls Discard, which
reads everything up to the position.
This is the right solution for pipes and small files, but for big files
I need a real Seek.

Can TReadBufStream be extended with a property or should I create a new
class?

Mattias



More information about the fpc-pascal mailing list