* Check if buffer matches a byte sequence at a given offset.
(buf: Uint8Array, offset: number, seq: number[])
| 282 | * Check if buffer matches a byte sequence at a given offset. |
| 283 | */ |
| 284 | function matchesAt(buf: Uint8Array, offset: number, seq: number[]): boolean { |
| 285 | for (let j = 0; j < seq.length; j++) { |
| 286 | if (buf[offset + j] !== seq[j]) return false |
| 287 | } |
| 288 | return true |
| 289 | } |
no outgoing calls
no test coverage detected