diff options
Diffstat (limited to 'descriptor.go')
| -rw-r--r-- | descriptor.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/descriptor.go b/descriptor.go index 746bec1..3c79a93 100644 --- a/descriptor.go +++ b/descriptor.go @@ -108,3 +108,10 @@ func skipDescriptorLength(data []byte, ptr, end int) int { } return -1 } + +const hexChars = "0123456789abcdef" + +// hexDigit returns the lowercase hex character for a 4-bit nibble. +func hexDigit(b byte) byte { + return hexChars[b&0x0f] +} |
