Esempio n. 1
0
void
OVT_MemList_FreeNBAMemory ( byte * name, uint32 moreThan, int32 always )
{
    NamedByteArray *nba = _OVT_Find_NBA ( name ) ;
    if ( always || ( nba->MemAllocated > ( nba->MemInitial + moreThan ) ) ) // this logic is fuzzy ?? what is wanted is a way to fine tune mem allocation 
    {
        NBAsMemList_FreeExactType ( nba->NBA_AProperty ) ;
        nba->MemAllocated = 0 ;
        nba->MemRemaining = 0 ;
        _NamedByteArray_AddNewByteArray ( nba, nba->NBA_Size ) ;
    }
}
Esempio n. 2
0
void
OVT_MemList_FreeNBAMemory ( byte * name, uint32 moreThan, int32 always )
{
#if 1 // ?!? how much do we need this at all ?!?
    NamedByteArray *nba = _OVT_Find_NBA ( name ) ;
    if ( always || ( nba->MemAllocated > ( nba->MemInitial + moreThan ) ) )
    {
        NBAsMemList_FreeExactType ( nba->NBA_AType ) ;
        nba->MemAllocated = 0 ;
        nba->MemRemaining = 0 ;
        _NamedByteArray_AddNewByteArray ( nba, nba->NBA_Size ) ;
    }
#endif    
}
Esempio n. 3
0
void
CfrTil_MemorySpaceAllocated ( byte * name )
{
    NamedByteArray *nba = _OVT_Find_NBA ( name ) ;
    _CfrTil_MemorySpaceAllocated ( nba ) ;
}