[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Peeking and unreading
- From: Paul K <paul@...>
- Date: Sat, 16 Jul 2016 23:13:41 -0700
Hi Dirk,
> Or alternatively, is there a way to unread a line when you realize
> it's not meant for the current group?
You can use fh:seek() to get the position before reading and then set
to that position after reading, so the next reading operation starts
there.
Using your own buffer is likely to be noticeably faster if you need to
read and seek many times.
Paul.