However, slicing strings is a little easier syntax-wise than in Perl.
Honest note: AI-assisted throughout — I steered and verified every claim against the bytes. No game data committed; tests synthesise fixtures from the documented format.
The writeup and even your comment also scan as AI-written to me. Are they?