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

Method flushBuffer

src/main/java/org/sfj/ChiseledMap.java:283–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281 }
282
283 private synchronized void flushBuffer() throws IOException {
284 // flush defautl buffer, reset pending count
285 flushBuffer(writeBuffer);
286 pendingWrites = 0;
287 }
288
289 private void flushBuffer(ByteBuffer b) throws IOException {
290 // flush arbitrary buffer to disk, update next write pos

Callers 5

fetchMethod · 0.95
writeMethod · 0.95
bytesOnDiskMethod · 0.95
closeMethod · 0.95
flushMethod · 0.95

Calls 2

writeFullyMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected