![]() |
Blender V2.61 - r43446
|
#include <Cache.hpp>
Public Member Functions | |
| void | clear () |
| CacheBuffer * | allocBuffer () |
| CacheItem * | findItemOrLater (unsigned int timestamp, CacheBuffer **rBuffer) |
| CacheItem * | findItemEarlier (unsigned int timestamp, CacheBuffer **rBuffer) |
| CacheItem * | _findBlock (CacheBuffer *buffer, unsigned short timeOffset, unsigned int *highBlock) |
Public Attributes | |
| CacheItem * | initItem |
| struct CacheBuffer * | m_firstBuffer |
| struct CacheBuffer * | m_lastBuffer |
| char | m_name [32] |
| unsigned char | m_busy |
| unsigned char | m_positionToBlockShiftW |
| unsigned short | m_positionToOffsetMaskW |
| unsigned int | m_maxItemSizeB |
| unsigned int | m_bufferSizeW |
| unsigned int | m_blockSizeW |
| unsigned int | m_lastTimestamp |
| unsigned int | m_lastItemPositionW |
| CacheItem * iTaSC::CacheChannel::_findBlock | ( | CacheBuffer * | buffer, |
| unsigned short | timeOffset, | ||
| unsigned int * | highBlock | ||
| ) |
Definition at line 26 of file Cache.cpp.
References assert, CACHE_BLOCK_ITEM_ADDR, iTaSC::CacheBuffer::m_firstItem, and m_positionToBlockShiftW.
Referenced by findItemEarlier(), and findItemOrLater().
| CacheBuffer * iTaSC::CacheChannel::allocBuffer | ( | ) |
Definition at line 89 of file Cache.cpp.
References CACHE_BUFFER_HEADER_SIZE, m_bufferSizeW, m_busy, and NULL.
Referenced by iTaSC::Cache::addCacheItem().
| void iTaSC::CacheChannel::clear | ( | ) |
Definition at line 74 of file Cache.cpp.
References addon::engine::free(), initItem, m_firstBuffer, m_lastBuffer, next, and NULL.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::clearCacheFrom(), and iTaSC::Cache::deleteChannel().
| CacheItem * iTaSC::CacheChannel::findItemEarlier | ( | unsigned int | timestamp, |
| CacheBuffer ** | rBuffer | ||
| ) |
Definition at line 138 of file Cache.cpp.
References _findBlock(), assert, CACHE_BLOCK_ITEM_ADDR, CACHE_ITEM_ADDR, CACHE_NEXT_ITEM, initItem, m_busy, m_firstBuffer, m_lastTimestamp, and NULL.
Referenced by iTaSC::Cache::getPreviousCacheItem().
| CacheItem * iTaSC::CacheChannel::findItemOrLater | ( | unsigned int | timestamp, |
| CacheBuffer ** | rBuffer | ||
| ) |
Definition at line 101 of file Cache.cpp.
References _findBlock(), assert, CACHE_BLOCK_ITEM_ADDR, CACHE_NEXT_ITEM, initItem, m_busy, m_firstBuffer, iTaSC::CacheBuffer::m_firstItem, m_lastTimestamp, and NULL.
Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::Cache::clearCacheFrom().
Definition at line 154 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), clear(), findItemEarlier(), and findItemOrLater().
| unsigned int iTaSC::CacheChannel::m_blockSizeW |
Definition at line 163 of file Cache.hpp.
Referenced by iTaSC::Cache::addChannel().
| unsigned int iTaSC::CacheChannel::m_bufferSizeW |
Definition at line 162 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), and allocBuffer().
| unsigned char iTaSC::CacheChannel::m_busy |
Definition at line 158 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), allocBuffer(), iTaSC::Cache::clearCacheFrom(), iTaSC::Cache::deleteChannel(), findItemEarlier(), findItemOrLater(), and iTaSC::Cache::getPreviousCacheItem().
Definition at line 155 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), clear(), iTaSC::Cache::clearCacheFrom(), findItemEarlier(), and findItemOrLater().
Definition at line 156 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), clear(), and iTaSC::Cache::clearCacheFrom().
| unsigned int iTaSC::CacheChannel::m_lastItemPositionW |
Definition at line 165 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::Cache::clearCacheFrom().
| unsigned int iTaSC::CacheChannel::m_lastTimestamp |
Definition at line 164 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::clearCacheFrom(), findItemEarlier(), and findItemOrLater().
| unsigned int iTaSC::CacheChannel::m_maxItemSizeB |
Definition at line 161 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), and iTaSC::Cache::addChannel().
| char iTaSC::CacheChannel::m_name[32] |
Definition at line 157 of file Cache.hpp.
Referenced by iTaSC::Cache::addChannel().
| unsigned char iTaSC::CacheChannel::m_positionToBlockShiftW |
Definition at line 159 of file Cache.hpp.
Referenced by _findBlock(), iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), and iTaSC::Cache::clearCacheFrom().
| unsigned short iTaSC::CacheChannel::m_positionToOffsetMaskW |
Definition at line 160 of file Cache.hpp.
Referenced by iTaSC::Cache::addCacheItem(), iTaSC::Cache::addChannel(), and iTaSC::Cache::clearCacheFrom().