Home » U++ Library support » U++ Core » PROPOSAL: small / usefull Stream iface extension
Re: PROPOSAL: small / usefull Stream iface extension [message #28004 is a reply to message #28002] |
Fri, 13 August 2010 10:07   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
Quote: |
Sorry, but this is poorly defined...
|
thats why i'm asking people who know better 
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
Peek would need to deferentiate wrlim and rdlim right?
why const btw?
const byte * Peek(int size);
my point is solely driven by avoiding unwanted memcpy, thats why accessing buffer directly to perform tweaked read /write (some special communication protocol)
[Updated on: Fri, 13 August 2010 10:16] Report message to a moderator
|
|
|
 |
 |
PROPOSAL: small / usefull Stream iface extension
By: kohait00 on Wed, 11 August 2010 23:39
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: kohait00 on Thu, 12 August 2010 00:14
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: kohait00 on Thu, 12 August 2010 08:36
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: mirek on Fri, 13 August 2010 09:57
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: kohait00 on Fri, 13 August 2010 10:07
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: kohait00 on Fri, 13 August 2010 10:23
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: mirek on Fri, 13 August 2010 10:30
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: mirek on Fri, 13 August 2010 10:46
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: kohait00 on Fri, 13 August 2010 10:47
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: kohait00 on Fri, 13 August 2010 10:50
|
 |
|
Re: PROPOSAL: small / usefull Stream iface extension
By: mirek on Fri, 13 August 2010 10:29
|
Goto Forum:
Current Time: Sun Jun 15 12:34:02 CEST 2025
Total time taken to generate the page: 0.05318 seconds
|