MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / addStringToPool

Function addStringToPool

libraries/p5.js:5947–5958  ·  view source on GitHub ↗
(s, pool)

Source from the content-addressed store, hash-verified

5945}
5946
5947function addStringToPool(s, pool) {
5948 var offset = findSubArray(s, pool);
5949 if (offset < 0) {
5950 offset = pool.length;
5951 for (var i = 0, len = s.length; i < len; ++i) {
5952 pool.push(s[i]);
5953 }
5954
5955 }
5956
5957 return offset;
5958}
5959
5960function makeNameTable(names, ltag) {
5961 var nameID;

Callers 1

makeNameTableFunction · 0.85

Calls 1

findSubArrayFunction · 0.85

Tested by

no test coverage detected