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 » Adding GetCount/NumBytes to Buffer?
Adding GetCount/NumBytes to Buffer? [message #61670] Sun, 04 May 2025 14:49 Go to previous message
luoganda is currently offline  luoganda
Messages: 214
Registered: November 2016
Experienced Member
Since Buffer always has an info of NumItems allocated
and that NumItems(allocated) info is always needed by the app,
could be somthing like this added to Buffer?

Buffer buff;
...allocating it..
buff.GetCount() //<=sinceIt'sATemplate

and maybe
buff.NumBytes() //<=sinceIt'sNeededSometimes
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stable Sort algorithm
Next Topic: How do I override the Button class Tip handling function
Goto Forum:
  


Current Time: Fri Jun 06 07:59:28 CEST 2025

Total time taken to generate the page: 0.05124 seconds