Re: GSeekable and GBuffered{In,Out}putStream, GDataOutputStream

On Thu, 2012-03-29 at 11:11 +0200, Alexander Larsson wrote:
> On Wed, 2012-03-28 at 14:32 +0200, Maciej Marcin Piechotka wrote:
> > Hello,
> > 
> > During discussion on bug #659781[1] a user stated that he cannot use
> > GDataInputStream as it does not support seeks. After quick look it seems
> > that adding support for it is relatively easy - the basic patch for
> > GBufferedInputStream is +117/-4[2].
> > 
> > I can fill a full bug, test etc. but I would like to check first if it
> > wasn't a deliberate choice. 
> There is no conceptual reason for it to no support seek (although it has
> to handle the case where the base stream can't seek), only laziness. So
> please do file a full bug!

I have filled the bug[1] and attached untested patches (my C/GObject is
very rusty so I don't know if, for example, casting macros are used

I'll try to add tests today.

Best regards


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]