Writes NumberOfBytes data bytes from Buffer to the serial device. \r
The number of bytes actually written to the serial device is returned.\r
If the return value is less than NumberOfBytes, then the write operation failed.\r
Writes NumberOfBytes data bytes from Buffer to the serial device. \r
The number of bytes actually written to the serial device is returned.\r
If the return value is less than NumberOfBytes, then the write operation failed.\r