MCPcopy
hub / github.com/wavetermdev/waveterm / getPartIdxsFromMap

Function getPartIdxsFromMap

pkg/filestore/blockstore.go:447–453  ·  view source on GitHub ↗
(partMap map[int]int)

Source from the content-addressed store, hash-verified

445}
446
447func getPartIdxsFromMap(partMap map[int]int) []int {
448 var partIdxs []int
449 for partIdx := range partMap {
450 partIdxs = append(partIdxs, partIdx)
451 }
452 return partIdxs
453}
454
455// returns a map of partIdx to amount of data to write to that part
456func (file *WaveFile) computePartMap(startOffset int64, size int64) map[int]int {

Callers 1

readAtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected