MCPcopy Index your code
hub / github.com/google/codesearch / pop

Method pop

index/write.go:402–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400}
401
402func (h *postHeap) pop() *postChunk {
403 ch := h.ch[0]
404 n := len(h.ch) - 1
405 h.ch[0] = h.ch[n]
406 h.ch = h.ch[:n]
407 if n > 1 {
408 h.siftDown(0)
409 }
410 return ch
411}
412
413func (h *postHeap) push(ch *postChunk) {
414 n := len(h.ch)

Callers 1

nextMethod · 0.95

Calls 1

siftDownMethod · 0.95

Tested by

no test coverage detected