docs: public synchronized static void write(int fd, byte[] data, int offset, int length) throws IOException {
  
          // we make a copy of the data argument because we don't want to modify the original source data
          byte[] buffer = new byte[length];
          System.arraycopy(data, offset, buffer, 0, length);
  
          // write the buffer contents to the serial port via JNI native method
          write(fd, buffer, length);
      }