| Contents | Index |
cdflib.setCompressionCacheSize(cdfId,numBuffers)
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.
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 cdfIdThis function corresponds to the CDF library C API routine CDFsetCompressionCacheSize. To use these functions, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site. For copyright information, see the cdfcopyright.txt file.
cdflib.getCompressionCacheSize
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |