xtob converts hex characters x1 and x2 into a byte.
(x1, x2 byte)
| 37 | |
| 38 | // xtob converts hex characters x1 and x2 into a byte. |
| 39 | func xtob(x1, x2 byte) (byte, bool) { |
| 40 | b1 := xvalues[x1] |
| 41 | b2 := xvalues[x2] |
| 42 | return (b1 << 4) | b2, b1 != 255 && b2 != 255 |
| 43 | } |
no outgoing calls
no test coverage detected