[haiku-development] Peek function in BPositionIO or BDataIO?

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 21 Jun 2016 02:44:44 +0200

Hello,
I'm considering adding a function that work just like a Read but without
changing the current position of the file. Reading data and then seeking
back is a common situation so that having a function that just reads the
current data without altering the position makes sense. It's of interest
for codecs but will come handy also when using it in a multithread
environment making less trickier to synchronize the calls.

Comments welcome.

-- 
Best Regards,
Dario

Other related posts: