read bytes in a buffer
C / C++ / MFC
5
Posts
5
Posters
0
Views
1
Watching
-
not in general. if it was allocated with GlobalAlloc/HeapAlloc, you can get the size with GlobalSize/HeapSize.
image processing toolkits | batch image processing | blogging
-
kani98 wrote:
Is there a C/C++ function that will tell how many bytes are valid in a buffer?
Of course not. That can only be determined by the code that placed those bytes in the buffer to begin with.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne