Writes up to count bytes to the socket from the buffer. Returns the number of bytes written.
count
socket
int writeToSocket(RawSocket socket, int start, int count) { return socket.write(_list, start, count); }