cdflib.setCompressionCacheSize
Specify number of compression cache buffers
Syntax
cdflib.setCompressionCacheSize(cdfId,numBuffers)
Description
cdflib.setCompressionCacheSize(cdfId,numBuffers)
specifies the number of cache buffers used for the compression scratch
CDF file. For more information about CDF cache schemes, see the CDF
User's Guide.
cdfId
identifies the CDF file. numBuffers
specifies
the number of buffers.
Examples
Create a CDF file and specify the number of compression cache buffers used. To run this example you must be in a writable folder.
cdfId = cdflib.create("your_file.cdf"); % Get the current number of compression cache buffers numBuf = cdflib.getCompressionCacheSize(cdfId)
numBuf = 80
% Set a new value cdflib.setCompressionCacheSize(cdfId,100) % Check the new value numBuf = cdflib.getCompressionCacheSize(cdfId)
numBuf = 100
% Clean up cdflib.delete(cdfId) clear cdfId
Tips
This function corresponds to the CDF library C API routine
CDFsetCompressionCacheSize
.To use this function, you must be familiar with the CDF C interface. You can access the CDF documentation at the CDF website.