import "github.com/anacrolix/missinggo"
type Piece struct {
- Info *InfoEx
+ Info *Info
i int
}
func (p Piece) Index() int {
return p.i
}
-
-func (p Piece) Key() PieceKey {
- return PieceKey{p.Info.Hash(), p.i}
-}
-
-type PieceKey struct {
- Hash Hash
- Index int
-}