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

Method writeHeader

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

Source from the content-addressed store, hash-verified

206 }
207
208 private void writeHeader() throws IOException {
209 // write at the beginning, then leave position alone
210 fc.position(0);
211 writeFully(ByteBuffer.wrap(HDR), 0);
212 }
213
214 private void rebuild(FileChannel fc) throws IOException {
215 // scan the entire file, loading each entry where crc matches.

Callers 1

ChiseledMapMethod · 0.95

Calls 1

writeFullyMethod · 0.95

Tested by

no test coverage detected