MCPcopy Index your code
hub / github.com/questdb/questdb / removeIndex

Method removeIndex

core/src/main/java/io/questdb/std/ByteList.java:158–168  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

156 }
157
158 public void removeIndex(int index) {
159 if (pos < 1 || index >= pos) {
160 return;
161 }
162 int move = pos - index - 1;
163 if (move > 0) {
164 System.arraycopy(data, index + 1, data, index, move);
165 }
166 int index1 = --pos;
167 data[index1] = NO_ENTRY_VALUE;
168 }
169
170 public void restoreInitialCapacity() {
171 data = new byte[initialCapacity];

Callers 1

removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected