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

Method insert

core/src/main/java/io/questdb/std/BoolList.java:126–130  ·  view source on GitHub ↗
(int index, boolean element)

Source from the content-addressed store, hash-verified

124 }
125
126 public void insert(int index, boolean element) {
127 checkCapacity(++pos);
128 System.arraycopy(buffer, index, buffer, index + 1, pos - index - 1);
129 buffer[index] = element;
130 }
131
132 public void removeIndex(int index) {
133 if (pos < 1 || index >= pos) {

Callers 1

testInsertMethod · 0.95

Calls 1

checkCapacityMethod · 0.95

Tested by 1

testInsertMethod · 0.76