- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ipComparison (0.1 sec)
-
pkg/api/v1/endpoints/util.go
// LessEndpointAddress compares IP addresses lexicographically and returns true if first argument is lesser than second func LessEndpointAddress(a, b *v1.EndpointAddress) bool { ipComparison := bytes.Compare([]byte(a.IP), []byte(b.IP)) if ipComparison != 0 { return ipComparison < 0 } if b.TargetRef == nil { return false } if a.TargetRef == nil { return true } return a.TargetRef.UID < b.TargetRef.UID }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 07 07:01:25 UTC 2018 - 8K bytes - Viewed (0) -
src/go/types/expr.go
check.overflow(x, x.Pos()) return } x.mode = value // x.typ remains unchanged } func isShift(op token.Token) bool { return op == token.SHL || op == token.SHR } func isComparison(op token.Token) bool { // Note: tokens are not ordered well to make this much easier switch op { case token.EQL, token.NEQ, token.LSS, token.LEQ, token.GTR, token.GEQ: return true } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
return } x.mode = value // x.typ remains unchanged } func isShift(op syntax.Operator) bool { return op == syntax.Shl || op == syntax.Shr } func isComparison(op syntax.Operator) bool { // Note: tokens are not ordered well to make this much easier switch op { case syntax.Eql, syntax.Neq, syntax.Lss, syntax.Leq, syntax.Gtr, syntax.Geq: return true } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)