(byte[] buffer, int start)
| 206 | } |
| 207 | |
| 208 | private void readFile(byte[] buffer, int start) throws IOException { |
| 209 | try (FileInputStream f = new FileInputStream(physicalFile)) { |
| 210 | f.skip(start * ProdosVirtualDisk.BLOCK_SIZE); |
| 211 | f.read(buffer, 0, ProdosVirtualDisk.BLOCK_SIZE); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | private void generateIndex(byte[] buffer, int indexStart, int indexLimit) { |
| 216 | for (int i = indexStart, count = 0; count < 256 && i < indexLimit && i <= additionalNodes.size(); i++, count++) { |