Sometimes the users might need to receive or send bytes with specified length in a big buffer. I think read(dest, length, timeout) and write(src, length, timeout) are very helpful for this case because they don't need to do extra trim/copy work, which saves the time and memory.
Sometimes the users might need to receive or send bytes with specified length in a big buffer. I think
read(dest, length, timeout)
andwrite(src, length, timeout)
are very helpful for this case because they don't need to do extra trim/copy work, which saves the time and memory.