pub unsafe extern "C" fn rb_io_bufwrite(
io: VALUE,
buf: *const c_void,
size: size_t,
) -> ssize_tExpand description
Buffered write to the passed IO.
ยง@param[out] io Destination IO.
@param[in] buf Contents to go to io.
@param[in] size Number of bytes of buf.
@exception rb_eFrozenError io is frozen.
@exception rb_eIOError io is not open for writing.
@exception rb_eSystemCallError writev(2) failed for some reason.
@retval -1 Write failed.
@retval otherwise Number of bytes actually written.
@post buf is written to io.
@note Partial write is a thing. It is a failure not to check the
return value.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3