docs: @Override
      public void write(byte[] data, int offset, int length) throws IllegalStateException, IOException{
          // validate state
          if (isClosed()) {
              throw new IllegalStateException("Serial connection is not open; cannot 'write()'.");
          }
  
          // write serial data to transmit buffer
          com.pi4j.jni.Serial.write(fileDescriptor, data, offset, length);
      }