[Gc] Determine the requested size of a memory block

Christian Gudrian christian at gudrian.org
Wed Apr 21 23:58:48 PDT 2010


Hello!

I would like to implement a length() function for an array.  GC_size 
seemed perfect to do the job, however, it may return a larger size than 
originally requested.  Is there a way to determine that size once the 
memory has been allocated?  Or should I implement a dedicated array 
allocation function which adds some meta data to the memory?

Christian


More information about the Gc mailing list