1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-19 10:26:10 -04:00
v2fly/external/github.com/lucas-clemente/quic-go/internal/wire/ack_range.go

15 lines
368 B
Go
Raw Normal View History

2018-11-20 17:51:25 -05:00
package wire
2019-01-17 09:33:18 -05:00
import "v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol"
2018-11-20 17:51:25 -05:00
// 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
}