From 14777566792bfd0c3d1facaf6e13632accca4b3a Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Mon, 16 Feb 2026 11:52:43 +0100 Subject: Minor cleanup --- descriptor.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'descriptor.go') 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] +} -- cgit v1.3.1