Inherits IUnknown.
Public Member Functions | |
| HRESULT | QueryCache ([in] IUnknown *pSource,[in] GUID gStreamId,[out, retval] IRsCachedStream **ppStream) |
| HRESULT | ReleaseStream ([in] IRsCachedStream *ppStream) |
| HRESULT | AddStream ([in] IRsCachedStream *ppStream) |
| HRESULT | Destroy () |
Base class for cacheable streams for caching provided by Space3D package.
| HRESULT IRsStreamCache::QueryCache | ( | [in] IUnknown * | pSource, | |
| [in] GUID | gStreamId, | |||
| [out, retval] IRsCachedStream ** | ppStream | |||
| ) |
Query cache for stream. Stream LRU is updated.
| pSource | [in] Cache source that is associated with the stream. It is used for validation control. | |
| gStreamId | [in] Stream GUID to retrieve. |
| HRESULT IRsStreamCache::ReleaseStream | ( | [in] IRsCachedStream * | ppStream | ) |
Release stream from stream cache. Call this method, if you know that stream will no longer be used. This is just a hint to save some intermediate memory. If stream is not in stream cache, call is ignored.
| pStream | [in] Stream interface to release/remove. |
| HRESULT IRsStreamCache::AddStream | ( | [in] IRsCachedStream * | ppStream | ) |
Add stream to stream cache. When added, stream will be set to read-only mode by issuing read lock.
| pStream | [in] Stream interface to add. |
| HRESULT IRsStreamCache::Destroy | ( | ) |
Destroy & release whole stream cache.
1.5.5