my $next_byte_index = process_record (\$data, $start_byte_index);