Provides an interface for setting the cache related properties of DataDisc.
More...
#include <PrimoBurnerAPI.h>
Provides an interface for setting the cache related properties of DataDisc.
- See Also
- DataDisc::cachePolicy
virtual bool_t cacheSmallFiles |
( |
| ) |
const |
|
pure virtual |
Gets the setting for caching of small files.
- Returns
- TRUE if small files will be cached before writing with DataDisc, FALSE otherwise.
virtual void setCacheSmallFiles |
( |
bool_t |
cacheSmallFiles | ) |
|
|
pure virtual |
Sets the caching of small files.
This is useful when you burn on-the-fly with the writeToDisc method. When burning DVDs caching should be turned off. By default if you do not call this method, files are not cached before burning.
- Parameters
-
cacheSmallFiles | Indicates whether the small files should be cached before burning. If this parameter is TRUE, the caching is on. If this parameter is FALSE, the caching is turned off. The default value is FALSE. |
NOTE: Caching is not done if the data source is not a file. See the DataFile class and the DataSource enumeration for more details.
virtual void setSmallFilesCacheSize |
( |
int32_t |
blocks | ) |
|
|
pure virtual |
Sets the size of the in-memory cache.
Cache is useful when you burn on-the-fly with the writeToDisc method and you want to minimize the disc activity. The default cache size is 20000 blocks (~ 40MB).
- Parameters
-
blocks | The size of the cache in blocks. The size of one block is 2048 bytes. |
- See Also
- setSmallFilesCache
virtual void setSmallFileSizeThreshold |
( |
int32_t |
blocks | ) |
|
|
pure virtual |
Sets the threshold size used to determine if a given file is a small file.
- Parameters
-
blocks | The size of the threshold in blocks. The size of one block is 2048 bytes. Every file with a size smaller than blocks will be considered a small file and will be placed in the DataDisc memory cache. The default threshold size is 10 blocks (~ 20KB). |
- See Also
- setSmallFilesCache
virtual int32_t smallFilesCacheSize |
( |
| ) |
const |
|
pure virtual |
Gets the size of the in-memory cache in blocks.
- Returns
- number of blocks
virtual int32_t smallFileSizeThreshold |
( |
| ) |
const |
|
pure virtual |
Gets the threshold size used to determine if a given file is a small file.
- Returns
- threshold size in blocks