3 import "github.com/anacrolix/torrent/metainfo"
5 type requiredLength struct {
10 func extentCompleteRequiredLengths(info *metainfo.Info, off, n int64) (ret []requiredLength) {
14 for i, fi := range info.UpvertedFiles() {
20 if off+n1 > fi.Length {
23 ret = append(ret, requiredLength{
33 panic("extent exceeds torrent bounds")