Writes length bytes of buffer from offset to the descriptor and returns how many were written, which may be fewer. Throws on failure.
length
buffer
offset
Writes
lengthbytes ofbufferfromoffsetto the descriptor and returns how many were written, which may be fewer. Throws on failure.