YTSFlix_Go/vendor/github.com/anacrolix/torrent/peer_protocol/reqspec.go
2018-11-04 15:58:15 +01:00

12 lines
203 B
Go

package peer_protocol
import "fmt"
type RequestSpec struct {
Index, Begin, Length Integer
}
func (me RequestSpec) String() string {
return fmt.Sprintf("{%d %d %d}", me.Index, me.Begin, me.Length)
}