MCPcopy Index your code
hub / github.com/simstudioai/sim / matchesAt

Function matchesAt

apps/sim/lib/pptx-renderer/utils/emf-parser.ts:284–289  ·  view source on GitHub ↗

* Check if buffer matches a byte sequence at a given offset.

(buf: Uint8Array, offset: number, seq: number[])

Source from the content-addressed store, hash-verified

282 * Check if buffer matches a byte sequence at a given offset.
283 */
284function 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}

Callers 2

extractPdfFromBufferFunction · 0.85
findSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected