// if (len > 0) return len;
// }
// #endif
str = doWriteconv(context, str);
ByteList strByteList = ((RubyString)str).getByteList();
return binwrite(context, str, strByteList.unsafeBytes(), strByteList.begin(), strByteList.length(), nosync);
}
// do_writeconv
public IRubyObject doWriteconv(ThreadContext context, IRubyObject str)
{