lundi 29 août 2016

How to get the size of memory pointed by a pointer?

I am currently working on a NUMA machine. I am using numa_free to free my allocated memory. However, unlike free, numa_free needs to know how many bytes are to be freed. Is there any way to know that how many bytes are pointed to by a pointer without tracing it out?

Aucun commentaire:

Enregistrer un commentaire