docs: public synchronized static void write(int fd, ByteBuffer ... data) throws IOException{
  
          // write each byte buffer to the serial port
          for(ByteBuffer single : data) {
  
              // read the byte buffer from the current position up to the limit
              byte[] payload = new byte[single.remaining()];
              single.get(payload);
  
              // write the data contents to the serial port via JNI native method
              write(fd, payload, payload.length);
          }
      }