MCPcopy Create free account
hub / github.com/livekit/livekit / FrameIntegrity

Method FrameIntegrity

pkg/sfu/buffer/frameintegrity.go:219–225  ·  view source on GitHub ↗
(extFrameNum uint64)

Source from the content-addressed store, hash-verified

217}
218
219func (fc *FrameIntegrityChecker) FrameIntegrity(extFrameNum uint64) bool {
220 if extFrameNum < fc.base || extFrameNum > fc.last || fc.last-extFrameNum >= uint64(fc.frameCount) {
221 return false
222 }
223
224 return fc.frames[int(extFrameNum-fc.base)%fc.frameCount].Integrity()
225}

Callers 2

ParseMethod · 0.80

Calls 1

IntegrityMethod · 0.80

Tested by 1