()
| 124 | } |
| 125 | |
| 126 | *entries(): IterableIterator<[BitMask64Data, T]> { |
| 127 | for (const [_, bucket] of this.buckets) { |
| 128 | for (const [_secondary, value] of bucket) { |
| 129 | // 无法还原原始 key(只存二级 hash),所以 entries 返回不了 key |
| 130 | yield [undefined as any, value]; |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | *values(): IterableIterator<T> { |
| 136 | for (const bucket of this.buckets.values()) { |
no outgoing calls
no test coverage detected