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

Method extendAndSet

core/src/main/java/io/questdb/std/ObjList.java:137–143  ·  view source on GitHub ↗
(int index, T value)

Source from the content-addressed store, hash-verified

135 }
136
137 public void extendAndSet(int index, T value) {
138 checkCapacity(index + 1);
139 if (index >= pos) {
140 pos = index + 1;
141 }
142 buffer[index] = value;
143 }
144
145 public void extendPos(int capacity) {
146 checkCapacity(capacity);

Calls 1

checkCapacityMethod · 0.95

Tested by

no test coverage detected