status-go/vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go

15 lines
344 B
Go
Raw Normal View History

2022-04-01 16:16:46 +00:00
package wire
import "github.com/lucas-clemente/quic-go/internal/protocol"
// AckRange is an ACK range
type AckRange struct {
Smallest protocol.PacketNumber
Largest protocol.PacketNumber
}
// Len returns the number of packets contained in this ACK range
func (r AckRange) Len() protocol.PacketNumber {
return r.Largest - r.Smallest + 1
}