MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getCorrectIndex

Method getCorrectIndex

src/main/java/History/HistoryLoader.java:145–152  ·  view source on GitHub ↗
(long pos)

Source from the content-addressed store, hash-verified

143 }
144
145 private long getCorrectIndex(long pos) {
146 if (pos < 0) {
147 return 0;
148 } else if (pos > (fileSize - BLOCK_SIZE)) {
149 return (fileSize - BLOCK_SIZE);
150 }
151 return pos;
152 }
153
154 public boolean inBegin() {
155 return (current_index <= 0)?true:false;

Callers 1

readBlockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected