void CTLSStorageInstance::FreeStorageBlock(CTLSStorageBlock *psbStorageBlock) { const int iValueCount = GetValueCount(); CTLSStorageArray *psaArrayInstance = psbStorageBlock->GetHostArray(); psaArrayInstance->FreeStorageBlockOnThreadExit(psbStorageBlock, iValueCount); }
bool CTLSStorageInstance::FindFreeStorageBlockFromArray(CTLSStorageBlock *&psbOutStorageBlock, CTLSStorageArray *psaArrayInstance) { tlsindextype iValueCount = GetValueCount(); bool bIsManualCleanup = GetThreadManualCleanupFlag(); return psaArrayInstance->FindFreeStorageBlock(psbOutStorageBlock, iValueCount, bIsManualCleanup); }
const char* MP4MediaFormat::GetValueName(unsigned index) { if (index >= GetValueCount()) return nullptr; if (_core->InternalGetCore()->GetTags()->GetCount() == 0) return nullptr; return _core->InternalGetCore()->GetTags()->Get(index)->Name; }
void CTLSStorageInstance::FreeStorageArrayList(CTLSStorageArray *psaStorageArrayList) { const tlsindextype iValueCount = GetValueCount(); while (psaStorageArrayList) { CTLSStorageArray *psaStorageNextArray = psaStorageArrayList->GetNextArray(); psaStorageArrayList->FreeInstance(iValueCount); psaStorageArrayList = psaStorageNextArray; } }
inline tlsindextype RetrieveValueCount() const { return GetValueCount(); }
CTLSStorageArray *CTLSStorageInstance::AllocateStorageArray() { const tlsindextype iValueCount = GetValueCount(); return CTLSStorageArray::AllocateInstance(iValueCount); }