Refactor `mrb_str_to_cstr` and `mrb_string_value_cstr`
- Extract null byte check to function. - Avoid string allocation if null byte is included. - Use `str_new` instead of `mrb_str_dup` + `mrb_str_modify`
Showing
Please register or sign in to comment