| 79 | } |
| 80 | |
| 81 | static void write_string_direct(VALUE trans, VALUE str) { |
| 82 | if (TYPE(str) != T_STRING) { |
| 83 | rb_raise(rb_eStandardError, "Value should be a string"); |
| 84 | } |
| 85 | str = convert_to_utf8_byte_buffer(str); |
| 86 | write_i32_direct(trans, (int32_t)RSTRING_LEN(str)); |
| 87 | rb_funcall(trans, write_method_id, 1, str); |
| 88 | } |
| 89 | |
| 90 | //-------------------------------- |
| 91 | // interface writing methods |
no test coverage detected