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

Method checkCapacity

core/src/main/java/io/questdb/std/BoolList.java:198–206  ·  view source on GitHub ↗
(int capacity)

Source from the content-addressed store, hash-verified

196 }
197
198 private void checkCapacity(int capacity) {
199 int l = buffer.length;
200 if (capacity > l) {
201 int newCap = Math.max(l << 1, capacity);
202 boolean[] buf = new boolean[newCap];
203 System.arraycopy(buffer, 0, buf, 0, l);
204 this.buffer = buf;
205 }
206 }
207
208 private boolean equals(BoolList that) {
209 if (this.pos != that.pos) {

Callers 5

addMethod · 0.95
clearMethod · 0.95
insertMethod · 0.95
setPosMethod · 0.95
extendCapacityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected