(a, b)
| 153 | } |
| 154 | |
| 155 | function isPartialUint8Array(a, b) { |
| 156 | const lenA = getByteLength(a); |
| 157 | const lenB = getByteLength(b); |
| 158 | if (lenA < lenB) { |
| 159 | return false; |
| 160 | } |
| 161 | let offsetA = 0; |
| 162 | for (let offsetB = 0; offsetB < lenB; offsetB++) { |
| 163 | while (a[offsetA] !== b[offsetB]) { |
| 164 | offsetA++; |
| 165 | if (offsetA > lenA - lenB + offsetB) { |
| 166 | return false; |
| 167 | } |
| 168 | } |
| 169 | offsetA++; |
| 170 | } |
| 171 | return true; |
| 172 | } |
| 173 | |
| 174 | function isPartialArrayBufferView(a, b) { |
| 175 | if (a.byteLength < b.byteLength) { |
no test coverage detected