U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » PROPOSAL: small / usefull Stream iface extension
Re: PROPOSAL: small / usefull Stream iface extension [message #28002 is a reply to message #27961] Fri, 13 August 2010 09:57 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Sorry, but this is poorly defined...

IMO, you should trust more to Seek. I believe that if you reimplement your code with Seek and regular stream interface, I believe it will be as effective as using proposed methods. Well, maybe just almost as effective..

Well, MAYBE we could add something like:

const byte *Peek(int size)

which would return NULL if size is not available...

In any case, SkipRead and SkipWrite do not offer any advantage over Seek IMO.
 
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NEW: Tree<T> container
Next Topic: better Stream manual....more info needed
Goto Forum:
  


Current Time: Tue Jun 23 01:05:22 GMT+2 2026

Total time taken to generate the page: 0.00696 seconds