forked from quic-go/quic-go
rename the KeyPhase to KeyPhaseBit
This commit is contained in:
@@ -34,27 +34,6 @@ func (t PacketType) String() string {
|
||||
}
|
||||
}
|
||||
|
||||
// KeyPhase is the key phase
|
||||
type KeyPhase bool
|
||||
|
||||
const (
|
||||
// KeyPhaseZero is key phase 0
|
||||
KeyPhaseZero KeyPhase = false
|
||||
// KeyPhaseOne is key phase 1
|
||||
KeyPhaseOne KeyPhase = true
|
||||
)
|
||||
|
||||
func (p KeyPhase) String() string {
|
||||
if p == KeyPhaseZero {
|
||||
return "0"
|
||||
}
|
||||
return "1"
|
||||
}
|
||||
|
||||
func (p KeyPhase) Next() KeyPhase {
|
||||
return !p
|
||||
}
|
||||
|
||||
// A ByteCount in QUIC
|
||||
type ByteCount uint64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user