Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » PROPOSAL: small / usefull Stream iface extension
Re: PROPOSAL: small / usefull Stream iface extension [message #28008 is a reply to message #28004] Fri, 13 August 2010 10:29 Go to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
kohait00 wrote on Fri, 13 August 2010 04:07

Quote:


Sorry, but this is poorly defined...


thats why i'm asking people who know better Smile

would Peek return the underlying buffer? at ptr position?
then i'm fine with it and can tweak around with Seek ofcorse. indeed, Peek is quite a usefull function, anyway. in fact i prefer it, it keeps the API understandable, not too implementation bound, but usage bound. good idea.

SkipRead / SkipWrite are only helpers, and are not that much nessesary actually, neither my second post. one could would workaround it sth like
Seek(GetPos() + count);




Which is in the interface as SeekCur.

Quote:


Peek would need to deferentiate wrlim and rdlim right?
why const btw?
const byte * Peek(int size);




Sure, only read variant.
 
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: Mon Jun 10 09:48:58 CEST 2024

Total time taken to generate the page: 0.02109 seconds