MCPcopy Create free account
hub / github.com/questdb/questdb / insert

Method insert

core/src/main/java/io/questdb/std/ObjList.java:245–252  ·  view source on GitHub ↗
(int index, int length, T defaultValue)

Source from the content-addressed store, hash-verified

243 }
244
245 public void insert(int index, int length, T defaultValue) {
246 checkCapacity(pos + length);
247 if (pos > index) {
248 System.arraycopy(buffer, index, buffer, index + length, pos - index);
249 }
250 Arrays.fill(buffer, index, index + length, defaultValue);
251 pos += length;
252 }
253
254 public T popLast() {
255 assert pos > 0 : "index out of bounds, " + pos;

Callers

nothing calls this directly

Calls 2

checkCapacityMethod · 0.95
fillMethod · 0.45

Tested by

no test coverage detected