MCPcopy Index your code
hub / github.com/nodejs/node / search

Method search

deps/undici/undici.js:1518–1539  ·  view source on GitHub ↗

* @param {Uint8Array} key * @returns {TstNode | null}

(key)

Source from the content-addressed store, hash-verified

1516 * @returns {TstNode | null}
1517 */
1518 search(key) {
1519 const keylength = key.length;
1520 let index = 0;
1521 let node = this;
1522 while (node !== null && index < keylength) {
1523 let code = key[index];
1524 if (code <= 90 && code >= 65) {
1525 code |= 32;
1526 }
1527 while (node !== null) {
1528 if (code === node.code) {
1529 if (keylength === ++index) {
1530 return node;
1531 }
1532 node = node.middle;
1533 break;
1534 }
1535 node = node.code < code ? node.left : node.right;
1536 }
1537 }
1538 return null;
1539 }
1540 };
1541 var TernarySearchTree = class {
1542 static {

Callers 15

__init__Method · 0.45
search.jsFile · 0.45
_CheckBannedCppFunction · 0.45
dump-cpp.pyFile · 0.45
add_recursivelyFunction · 0.45
parse_ninja_depsFunction · 0.45
parseFunction · 0.45
ConsumeOutputMethod · 0.45
pad_tablesFunction · 0.45
skip_lineFunction · 0.45

Calls

no outgoing calls

Tested by 10

CheckVersionCommitMethod · 0.36
VerifyLandMethod · 0.36
clean_up_feature_flagsFunction · 0.36
_parse_exceptionMethod · 0.36
_parse_source_envMethod · 0.36
_parse_source_filesMethod · 0.36
__init__Method · 0.36
_parse_source_envMethod · 0.36
_parse_source_filesMethod · 0.36