xtob converts hex characters x1 and x2 into a byte.
(x1, x2 byte)
| 38 | |
| 39 | // xtob converts hex characters x1 and x2 into a byte. |
| 40 | func xtob(x1, x2 byte) (byte, bool) { |
| 41 | b1 := xvalues[x1] |
| 42 | b2 := xvalues[x2] |
| 43 | return (b1 << 4) | b2, b1 != 255 && b2 != 255 |
| 44 | } |
| 45 | |
| 46 | // Compare returns an integer comparing two uuids lexicographically. The result will be 0 if a == b, -1 if a < b, and +1 if a > b. |
| 47 | func Compare(a, b UUID) int { |
no outgoing calls
no test coverage detected