Home
last modified time | relevance | path

Searched refs:sectorSize (Results 1 – 3 of 3) sorted by relevance

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DRamDisk.java41 private final int sectorSize; field in RamDisk
76 private RamDisk(ByteBuffer buffer, int sectorSize) { in RamDisk() argument
78 this.sectorSize = sectorSize; in RamDisk()
100 public RamDisk(int size, int sectorSize) { in RamDisk() argument
101 if (sectorSize < 1) throw new IllegalArgumentException( in RamDisk()
104 this.sectorSize = sectorSize; in RamDisk()
170 return this.sectorSize; in getSectorSize()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DSuperFloppyFormatter.java189 final int sectorSize = device.getSectorSize(); in format() local
190 final int totalSectors = (int)(device.getSize() / sectorSize); in format()
312 public static int clusterSizeFromSize(long sizeInBytes, int sectorSize){ in clusterSizeFromSize() argument
315 return sectorsPerCluster12(sizeInBytes, sectorSize); in clusterSizeFromSize()
317 return sectorsPerCluster16FromSize(sizeInBytes, sectorSize); in clusterSizeFromSize()
319 return sectorsPerCluster32FromSize(sizeInBytes, sectorSize); in clusterSizeFromSize()
376 static private int sectorsPerCluster32FromSize(long size, int sectorSize) { in sectorsPerCluster32FromSize() argument
377 final long sectors = size / sectorSize; in sectorsPerCluster32FromSize()
406 static private int sectorsPerCluster16FromSize(long size, int sectorSize) { in sectorsPerCluster16FromSize() argument
407 final long sectors = size / sectorSize; in sectorsPerCluster16FromSize()
[all …]
DFat.java43 private final int sectorSize; field in Fat
121 this.sectorSize = bs.getBytesPerSector(); in Fat()
134 entries = new long[(int) ((sectorCount * sectorSize) / in Fat()
178 final byte[] data = new byte[sectorCount * sectorSize]; in read()
196 final byte[] data = new byte[sectorCount * sectorSize]; in writeCopy()
399 if (this.sectorSize != other.sectorSize) return false; in equals()
414 hash = 23 * hash + this.sectorSize; in hashCode()
469 sb.append(sectorSize); in toString()