diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-02-16 11:52:43 +0100 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-02-16 11:52:43 +0100 |
| commit | 14777566792bfd0c3d1facaf6e13632accca4b3a (patch) | |
| tree | f77ae0711a4493202f3efbb65a67ecccf6a84863 /descriptor.go | |
| parent | a241c28122c6feb47ccdd70afec58aef250bb307 (diff) | |
| download | mp4-14777566792bfd0c3d1facaf6e13632accca4b3a.tar.gz mp4-14777566792bfd0c3d1facaf6e13632accca4b3a.zip | |
Minor cleanup
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] +} |
