MCPcopy Create free account
hub / github.com/cschanck/single-file-java / writeFully

Method writeFully

src/main/java/org/sfj/ChiseledMap.java:346–351  ·  view source on GitHub ↗
(ByteBuffer b, long pos)

Source from the content-addressed store, hash-verified

344 }
345
346 private void writeFully(ByteBuffer b, long pos) throws IOException {
347 while (b.hasRemaining()) {
348 int wrote = fc.write(b, pos);
349 pos = pos + wrote;
350 }
351 }
352
353 /**
354 * Number of entries actually on the disk, even if invalid.

Callers 2

writeHeaderMethod · 0.95
flushBufferMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected