Some extra comments explaining the lengths and offsets would be nice, maybe moving them to consts if you think it makes sense.