0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00
caddy/vendor/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go

15 lines
344 B
Go
Raw Normal View History

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
}
2018-03-25 23:37:41 -05:00
// Len returns the number of packets contained in this ACK range
func (r AckRange) Len() protocol.PacketNumber {
return r.Largest - r.Smallest + 1
2018-03-25 23:37:41 -05:00
}