Searched refs:sectorSize (Results 1 – 3 of 3) sorted by relevance
41 private final int sectorSize; field in RamDisk76 private RamDisk(ByteBuffer buffer, int sectorSize) { in RamDisk() argument78 this.sectorSize = sectorSize; in RamDisk()100 public RamDisk(int size, int sectorSize) { in RamDisk() argument101 if (sectorSize < 1) throw new IllegalArgumentException( in RamDisk()104 this.sectorSize = sectorSize; in RamDisk()170 return this.sectorSize; in getSectorSize()
189 final int sectorSize = device.getSectorSize(); in format() local190 final int totalSectors = (int)(device.getSize() / sectorSize); in format()312 public static int clusterSizeFromSize(long sizeInBytes, int sectorSize){ in clusterSizeFromSize() argument315 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() argument377 final long sectors = size / sectorSize; in sectorsPerCluster32FromSize()406 static private int sectorsPerCluster16FromSize(long size, int sectorSize) { in sectorsPerCluster16FromSize() argument407 final long sectors = size / sectorSize; in sectorsPerCluster16FromSize()[all …]
43 private final int sectorSize; field in Fat121 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()