[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] PEEK method?
From:       Benoit Minisini <gambas () users ! sourceforge ! net>
Date:       2003-11-14 20:46:56
[Download RAW message or body]

Le Vendredi 14 Novembre 2003 21:25, Daniel Campos a écrit :
> Hi benoît (and company):
>
>  May be a new PEEK method for standard streams?
>
>  Now we have a READ #file,[str].[length], which moves
> stream pointer to the next character to the last read
> character, so PEEK #file,[str],[length], would be the
> same but keeping the pointer in the same place it
> started.
>
>  It would be quite useful to integrate Peek() method
> from Socket class into standard stream programming.
>
> Regards,
>
> Daniel Campos

Why not ? 

On block devices, this only a matter of seeking the file pointer.
The problem is that on character device peeking needs a buffer, and so that 
the size of the peeked data cannot be greater than the size of the buffer. 

If I have time, I will add it in the 1.0. Else, it will be in a next version.

Regards,

-- 
Benoit Minisini
mailto:gambas@users.sourceforge.net



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic