docs: @Override
      public int encode ( byte[] dst, int dstIndex ) {
          int start = dstIndex;
  
          SMBUtil.writeInt4(this.capabilities, dst, dstIndex);
          dstIndex += 4;
  
          System.arraycopy(this.clientGuid, 0, dst, dstIndex, 16);
          dstIndex += 16;
  
          SMBUtil.writeInt2(this.securityMode, dst, dstIndex);
          dstIndex += 2;
          SMBUtil.writeInt2(this.dialects.length, dst, dstIndex);
          dstIndex += 2;
  
          for ( int dialect : this.dialects ) {
              SMBUtil.writeInt2(dialect, dst, dstIndex);
              dstIndex += 2;
          }
  
          return dstIndex - start;
      }