MCPcopy Create free account
hub / github.com/jankotek/mapdb / getSlice

Method getSlice

src/main/java/org/mapdb/volume/ByteBufferVol.java:39–45  ·  view source on GitHub ↗
(long offset)

Source from the content-addressed store, hash-verified

37
38
39 protected final ByteBuffer getSlice(long offset){
40 ByteBuffer[] slices = this.slices;
41 int pos = (int)(offset >>> sliceShift);
42 if(pos>=slices.length)
43 throw new DBException.VolumeEOF("Get/Set beyond file size. Requested offset: "+offset+", volume size: "+length());
44 return slices[pos];
45 }
46
47 @Override public final void putLong(final long offset, final long value) {
48 if(CC.VOLUME_PRINT_STACK_AT_OFFSET!=0 && CC.VOLUME_PRINT_STACK_AT_OFFSET>=offset && CC.VOLUME_PRINT_STACK_AT_OFFSET <= offset+8){

Callers 15

putLongMethod · 0.95
putIntMethod · 0.95
putByteMethod · 0.95
putDataMethod · 0.95
copyToMethod · 0.95
getDataMethod · 0.95
getLongMethod · 0.95
getIntMethod · 0.95
getByteMethod · 0.95
getDataInputMethod · 0.95
putDataOverlapMethod · 0.95
getDataInputOverlapMethod · 0.95

Calls 1

lengthMethod · 0.65

Tested by

no test coverage detected