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 #27961 is a reply to message #27953] Thu, 12 August 2010 08:36 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
the use case of this is the following:

when coding or especially decoding some nontrivial protocols from a Stream (beeing serialized by another device actually, coming in serially) one needs to 'interpret' the data being made available in the stream, instead of consuming it. only if the paket is 'valid' in total, it may be consumed. if not, one may drop one byte and start 'interprete' again. if not all data is available yet one may postpone processing..without copying over and over again..

all this is not possible without accessing the data directly. otherwise a rebuffering would be nesseccary, which is not very well.

trying to avoid copying / reallocating stuff..(will probably run on an embedded system, whithout MPU / MMU (blackfin), which doesnt like a lot of new / delete)
 
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: Wed Aug 27 00:54:17 CEST 2025

Total time taken to generate the page: 0.00707 seconds