294 }
295 /**
296▶ * Helper function used when constructing bitmaps from lists.
297 * Returns an array container with at least two free byte slots
298 * and bumps `this.cardinalities`.
· · ·
1036 * @returns {number}
1037 */
1038▶function bitCount(n) {
1039 n = (~~n) - ((n >> 1) & 0x55555555);
1040 n = (n & 0x33333333) + ((n >> 2) & 0x33333333);
· · ·
1087 * @returns {Promise<stringdex.Database>}
1088 */
1089▶function loadDatabase(hooks) {
1090 /** @type {stringdex.Callbacks} */
1091 const callbacks = {
· · ·
1092▶ rr_: function(data) {
1093 const dataObj = JSON.parse(data);
1094 for (const colName of Object.keys(dataObj)) {
· · ·
1126 }
1127 },
1128▶ err_rr_: function(err) {
1129 const cb = registry.searchTreeRootCallback;
1130 if (cb) {
+ 28 more matches in this file