MCPcopy Create free account
hub / github.com/diffusionstudio/vits-web / hashAddNode

Function hashAddNode

src/piper.js:1987–1991  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1985 return ((parentid + hash) >>> 0) % FS.nameTable.length;
1986 },
1987 hashAddNode(node) {
1988 var hash = FS.hashName(node.parent.id, node.name);
1989 node.name_next = FS.nameTable[hash];
1990 FS.nameTable[hash] = node;
1991 },
1992 hashRemoveNode(node) {
1993 var hash = FS.hashName(node.parent.id, node.name);
1994 if (FS.nameTable[hash] === node) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected