github.com/anacrolix/torrent@v1.61.0/peer_protocol/reqspec.go (about) 1 package peer_protocol 2 3 import "fmt" 4 5 type RequestSpec struct { 6 Index, Begin, Length Integer 7 } 8 9 func (me RequestSpec) String() string { 10 return fmt.Sprintf("{%d %d %d}", me.Index, me.Begin, me.Length) 11 }