(shard: BufferShard)
| 168 | // shard. That means we need a function to check where the byteIndex lies |
| 169 | // relative to a given shard. |
| 170 | function check(shard: BufferShard) { |
| 171 | if (byteIndex < shard.start) { |
| 172 | return -1; |
| 173 | } |
| 174 | if (byteIndex >= shard.end) { |
| 175 | return 1; |
| 176 | } |
| 177 | return 0; |
| 178 | } |
| 179 | |
| 180 | // For efficiency, try the previous shard first. |
| 181 | if (check(this.shards[this.previousShardIndex]) === 0) { |
nothing calls this directly
no outgoing calls
no test coverage detected