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

Method prefix

core/src/main/java/io/questdb/std/str/Path.java:289–301  ·  view source on GitHub ↗
(@Nullable Utf8Sequence prefix, int prefixLen)

Source from the content-addressed store, hash-verified

287 }
288
289 public Path prefix(@Nullable Utf8Sequence prefix, int prefixLen) {
290 if (prefix != null) {
291 if (prefixLen > 0) {
292 ascii &= prefix.isAscii();
293 int thisSize = size();
294 checkExtend(thisSize + prefixLen);
295 Vect.memmove(headPtr + prefixLen, headPtr, thisSize);
296 Vect.memcpy(headPtr, prefix.ptr(), prefixLen);
297 tailPtr += prefixLen;
298 }
299 }
300 return this;
301 }
302
303 @Override
304 public long ptr() {

Callers 4

testSoftLinkReadMethod · 0.80
testPrefixMethod · 0.80
testPrefixNonAsciiMethod · 0.80
readLinkMethod · 0.80

Calls 6

sizeMethod · 0.95
checkExtendMethod · 0.95
memmoveMethod · 0.95
memcpyMethod · 0.95
isAsciiMethod · 0.65
ptrMethod · 0.65

Tested by 3

testSoftLinkReadMethod · 0.64
testPrefixMethod · 0.64
testPrefixNonAsciiMethod · 0.64