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

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: 217
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: Mon May 25 00:12:15 GMT+2 2026

Total time taken to generate the page: 0.00557 seconds