MCPcopy Create free account
hub / github.com/getagentseal/codeburn / bufferKeyEquals

Function bufferKeyEquals

src/parser.ts:546–549  ·  view source on GitHub ↗
(source: Buffer, keyStart: number, keyEnd: number, field: string)

Source from the content-addressed store, hash-verified

544}
545
546function bufferKeyEquals(source: Buffer, keyStart: number, keyEnd: number, field: string): boolean {
547 if (keyEnd - keyStart !== field.length) return false
548 return source.subarray(keyStart, keyEnd).equals(Buffer.from(field))
549}
550
551function findObjectFieldValueBuffer(source: Buffer, objectStart: number, objectEnd: number, field: string): BufferJsonValueBounds | null {
552 if (source[objectStart] !== 0x7b) return null

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected