MCPcopy Create free account
hub / github.com/badvision/jace / readFile

Method readFile

src/main/java/jace/hardware/massStorage/FileNode.java:208–213  ·  view source on GitHub ↗
(byte[] buffer, int start)

Source from the content-addressed store, hash-verified

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++) {

Callers 1

readBlockMethod · 0.95

Calls 1

readMethod · 0.45

Tested by

no test coverage detected