Common_3/ThirdParty/OpenSource/FluidStudios/MemoryManager/mmgr.c
unsigned int mmgrCalcUnused(const sAllocUnit* allocUnit)
{
	const uint32_t* ptr = (const uint32_t*)(allocUnit->reportedAddress);
	unsigned int    count = 0;

	for (unsigned int i = 0; i < allocUnit->reportedSize; i += sizeof(uint32_t), ptr++)
	{
		if (*ptr == unusedPattern)
			count += sizeof(uint32_t);
	}

	return count;
}
// ---------------------------------------------------------------------------------------------------------------------------------
// -DOC- Unused RAM calculation routines. Use these to determine how much of your RAM is unused (in bytes)
// ---------------------------------------------------------------------------------------------------------------------------------
DOC- Unused RAM calculation routines. Use these to determine how much of your RAM is unused (in bytes)
DOC - Unused RAM calculation routines . Use these to determine how much of your RAM is unused ( in bytes )
unsigned int mmgrCalcUnused(const sAllocUnit* allocUnit)
{
	const uint32_t* ptr = (const uint32_t*)(allocUnit->reportedAddress);
	unsigned int    count = 0;
	for (unsigned int i = 0; i < allocUnit->reportedSize; i += sizeof(uint32_t), ptr++)
	{
		if (*ptr == unusedPattern)
			count += sizeof(uint32_t);
	}
	return count;
}
unsigned int mmgrCalcUnused ( const sAllocUnit * allocUnit ) { const uint32_t * ptr = ( const uint32_t * ) ( allocUnit -> reportedAddress ) ; unsigned int count = 0 ; for ( unsigned int i = 0 ; i < allocUnit -> reportedSize ; i += sizeof ( uint32_t ) , ptr ++ ) { if ( * ptr == unusedPattern ) count += sizeof ( uint32_t ) ; } return count ; }
DOC- Unused RAM calculation routines.
DOC - Unused RAM calculation routines .