| Contents | Index |
cdflib.setCacheSize(cdfId,numBuffers)
cdflib.setCacheSize(cdfId,numBuffers) specifies the number of cache buffers the CDF library uses for an open dotCDF file. A dotCDF file is a file with the .cdf file extension.
cdfId identifies an open CDF file. numBuffers is a numeric value that specifies the number of buffers.
For information about cache schemes, see the CDF User's Guide.
Create a CDF file and set the cache size. To run this example, you must have write permission in your current folder.
cdfId = cdflib.create('your_file.cdf');
% Get the default cache size
numBuf = cdflib.getCacheSize(cdfid)
numBuf =
300
% Specify a cache size
cdflib.setCacheSize(cdfid,150)
% Check the cache size again
numBuf = cdflib.getCacheSize(cdfid)
numBuf =
150
% Clean up
cdflib.delete(cdfId)
clear cdfIdThis function corresponds to the CDF library C API routine CDFsetCacheSize. To use this function, 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.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |