- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for reverseHexTable (0.09 sec)
-
src/encoding/hex/hex.go
// of bytes decoded before the error. func Decode(dst, src []byte) (int, error) { i, j := 0, 1 for ; j < len(src); j += 2 { p := src[j-1] q := src[j] a := reverseHexTable[p] b := reverseHexTable[q] if a > 0x0f { return i, InvalidByteError(p) } if b > 0x0f { return i, InvalidByteError(q) } dst[i] = (a << 4) | b i++ } if len(src)%2 == 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:30:23 UTC 2024 - 9.5K bytes - Viewed (0)