MCPcopy
hub / github.com/livekit/livekit / Len

Method Len

pkg/sfu/streamallocator/track.go:209–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207type TrackSorter []*Track
208
209func (t TrackSorter) Len() int {
210 return len(t)
211}
212
213func (t TrackSorter) Swap(i, j int) {
214 t[i], t[j] = t[j], t[i]

Callers 15

EnqueueMethod · 0.45
processMethod · 0.45
TestDecompressGzipFunction · 0.45
TestEgressStoreFunction · 0.45
TestSIPStoreDispatchFunction · 0.45
TestSIPStoreTrunkFunction · 0.45
TestRoomJoinFunction · 0.45
TestRoomClosureFunction · 0.45
TestActiveSpeakersFunction · 0.45
TestHiddenParticipantsFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestDecompressGzipFunction · 0.36
TestEgressStoreFunction · 0.36
TestSIPStoreDispatchFunction · 0.36
TestSIPStoreTrunkFunction · 0.36
TestRoomJoinFunction · 0.36
TestRoomClosureFunction · 0.36
TestActiveSpeakersFunction · 0.36
TestHiddenParticipantsFunction · 0.36