docs: public static final long write(WritableByteChannel channel, ByteBuffer[] srcs, int offset, int length) throws IOException
      {
          long res = 0;
          for  (int ii=0;ii<length;ii++)
          {
              ByteBuffer bb = srcs[ii+offset];
              if (bb.hasRemaining())
              {
                  res += channel.write(bb);
                  if (bb.hasRemaining())
                  {
                      break;
                  }
              }
          }
          return res;
      }