Rename writeBytes to numWriteBytes, the same with readBytes