Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Martin Schreiber
On Sunday 10 June 2012 15:00:20 Mattias Gaertner wrote: > Hi, > > Is there already a buffered file stream in the fpc sources? > Or maybe a generic buffered input stream that can be used with > TFileStream? > MSEgui has a bufstream too: tcustombufstream in lib/common/kernel/msestream.pas, I don't k

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Michael Van Canneyt
On Sun, 10 Jun 2012, Mattias Gaertner wrote: On Sun, 10 Jun 2012 18:24:14 +0200 Mattias Gaertner wrote: On Sun, 10 Jun 2012 16:54:30 +0200 (CEST) Michael Van Canneyt wrote: [...] It is even documented on http://www.freepascal.org/docs-html/fcl/bufstream/index.html Amazing, don't you thi

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Michael Van Canneyt
On Sun, 10 Jun 2012, Mattias Gaertner 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. As in: Bugs creep up at the most unexpected places... :) Michael. _

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Alexander Shishkin
10.06.2012 20:20, Mattias Gaertner пишет: On Sun, 10 Jun 2012 19:08:40 +0400 Alexander Shishkin wrote: 10.06.2012 18:40, Mattias Gaertner пишет: I want to pass the stream to a binary reader, which skips big parts of the stream. It can seek backwards and the files can be several GB, so I need

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 18:24:14 +0200 Mattias Gaertner wrote: > On Sun, 10 Jun 2012 16:54:30 +0200 (CEST) > Michael Van Canneyt wrote: >[...] > > It is even documented on > > > > http://www.freepascal.org/docs-html/fcl/bufstream/index.html > > > > Amazing, don't you think ? ;-) > > The fpc sour

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 16:54:30 +0200 (CEST) Michael Van Canneyt wrote: > > > On Sun, 10 Jun 2012, Mattias Gaertner wrote: > > > Hi, > > > > Is there already a buffered file stream in the fpc sources? > > Yes. :) I guessed so. > > Or maybe a generic buffered input stream that can be used wit

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 19:08:40 +0400 Alexander Shishkin wrote: > 10.06.2012 18:40, Mattias Gaertner пишет: > > > I want to pass the stream to a binary reader, which skips big > > parts of the stream. It can seek backwards and the files can be several > > GB, so I need the int64 read/write/seek. >

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Alexander Shishkin
10.06.2012 18:40, Mattias Gaertner пишет: I want to pass the stream to a binary reader, which skips big parts of the stream. It can seek backwards and the files can be several GB, so I need the int64 read/write/seek. Do you mean buffered random access (smth like disk access in DBMS)?

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Michael Van Canneyt
On Sun, 10 Jun 2012, Mattias Gaertner wrote: Hi, Is there already a buffered file stream in the fpc sources? Yes. Or maybe a generic buffered input stream that can be used with TFileStream? See fcl-base/src/bufstream.pp. It is even documented on http://www.freepascal.org/docs-html/fcl

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 17:13:28 +0300 Zaher Dirkey wrote: > On Sun, Jun 10, 2012 at 4:00 PM, Mattias Gaertner > wrote: > > > Hi, > > > > Is there already a buffered file stream in the fpc sources? > > Or maybe a generic buffered input stream that can be used with > > TFileStream? > > > > > > > che

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Zaher Dirkey
On Sun, Jun 10, 2012 at 4:00 PM, Mattias Gaertner wrote: > Hi, > > Is there already a buffered file stream in the fpc sources? > Or maybe a generic buffered input stream that can be used with > TFileStream? > > > check mine, http://minilib.svn.sourceforge.net/viewvc/minilib/trunk/lib/mnStreams.pa

[fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
Hi, Is there already a buffered file stream in the fpc sources? Or maybe a generic buffered input stream that can be used with TFileStream? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

[fpc-pascal] Re: [Patch] there is a small bug in fcl-image imterpolation

2012-06-10 Thread Bernd
2012/6/9 Bernd : > It makes it > impossible to scale any image with alpha channel (the colors are fine > but the alpha channel will be messed up completely. I have made a minimal demo program to demonstrate the bug and filed a bug: http://bugs.freepascal.org/view.php?id=22245 _