mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-07 10:47:48 -05:00
15 lines
368 B
Go
15 lines
368 B
Go
package wire
|
|
|
|
import "v2ray.com/core/external/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
|
|
}
|