Home
last modified time | relevance | path

Searched refs:nrClusters (Results 1 – 2 of 2) sorted by relevance

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DClusterChain.java128 final long nrClusters = ((size + clusterSize - 1) / clusterSize); in setSize() local
129 if (nrClusters > Integer.MAX_VALUE) in setSize()
132 setChainLength((int) nrClusters); in setSize()
134 return clusterSize * nrClusters; in setSize()
157 public void setChainLength(int nrClusters) throws IOException { in setChainLength() argument
158 if (nrClusters < 0) throw new IllegalArgumentException( in setChainLength()
161 if ((this.startCluster == 0) && (nrClusters == 0)) { in setChainLength()
163 } else if ((this.startCluster == 0) && (nrClusters > 0)) { in setChainLength()
164 final long[] chain = fat.allocNew(nrClusters); in setChainLength()
169 if (nrClusters != chain.length) { in setChainLength()
[all …]
DFat.java348 public long[] allocNew(int nrClusters) throws IOException { in allocNew() argument
349 final long rc[] = new long[nrClusters]; in allocNew()
352 for (int i = 1; i < nrClusters; i++) { in allocNew()