Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 101 for SetMode (0.17 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestWorkspaceBuilder.groovy

        }
    
        TestFile file(String name) {
            baseDir.file(name).createFile()
        }
    
        TestFile link(String name, String target) {
            baseDir.file(name).createLink(target)
        }
    
        def setMode(int mode) {
            baseDir.mode = mode
        }
    
        def methodMissing(String name, Object args) {
            if (args.length == 1 && args[0] instanceof Closure) {
                baseDir.file(name).create(args[0])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/math/big/floatexample_test.go

    			// sample operands above require 2 bits to represent mantissa
    			// set binary precision to 2 to round them to integer values
    			f := new(big.Float).SetPrec(2).SetMode(mode).SetFloat64(f64)
    			fmt.Printf("  %*g", len(mode.String()), f)
    		}
    		fmt.Println()
    	}
    
    	// Output:
    	//    x  ToNearestEven  ToNearestAway  ToZero  AwayFromZero  ToNegativeInf  ToPositiveInf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComSeek.java

         *            the fid to set
         */
        public void setFid ( int fid ) {
            this.fid = fid;
        }
    
    
        /**
         * @param mode
         *            the mode to set
         */
        public final void setMode ( int mode ) {
            this.mode = mode;
        }
    
    
        /**
         * @param offset
         *            the offset to set
         */
        public final void setOffset ( long offset ) {
            this.offset = offset;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/telemetrycmd/telemetry.go

    		cmd.Usage()
    	}
    
    	mode := args[0]
    	if mode != "local" && mode != "off" && mode != "on" {
    		cmd.Usage()
    	}
    	if old := telemetry.Mode(); old == mode {
    		return
    	}
    
    	if err := telemetry.SetMode(mode); err != nil {
    		base.Fatalf("go: failed to set the telemetry mode to %s: %v", mode, err)
    	}
    	if mode == "on" {
    		fmt.Fprintln(os.Stderr, telemetryOnMessage())
    	}
    }
    
    func telemetryOnMessage() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 20:16:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. src/cmd/distpack/archive.go

    	files := a.Files[:0]
    	for _, f := range a.Files {
    		if keep(f.Name) {
    			files = append(files, f)
    		}
    	}
    	a.Files = files
    }
    
    // SetMode changes the mode of every file in the archive
    // to be mode(name, m), where m is the file's current mode.
    func (a *Archive) SetMode(mode func(name string, m fs.FileMode) fs.FileMode) {
    	for i := range a.Files {
    		a.Files[i].Mode = mode(a.Files[i].Name, a.Files[i].Mode)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 17:37:52 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/file/FileCopyDetails.java

         *
         * @param mode the Unix permissions, e.g. {@code 0644}.
         *
         * @deprecated Use {@link #permissions(Action)} instead. This method is scheduled for removal in Gradle 9.0.
         */
        @Deprecated
        void setMode(int mode);
    
        /**
         * Configuration action for specifying file and directory access permissions.
         * For details see {@link ConfigurableFilePermissions}.
         *
         * @since 8.3
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 12:31:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/NormalizingCopyActionDecorator.java

            @Override
            public void setRelativePath(RelativePath path) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            @Deprecated
            public void setMode(int mode) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public void permissions(Action<? super ConfigurableFilePermissions> configureAction) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. src/math/big/bits_test.go

    	if mode == ToNearestAway {
    		panic("not yet implemented")
    	}
    	if mode == ToNearestEven && rbit == 1 && (sbit == 1 || sbit == 0 && bit0 != 0) || mode == AwayFromZero {
    		// round away from zero
    		f.SetMode(ToZero).SetPrec(prec)
    		f.Add(f, Bits{int(r) + 1}.Float())
    	}
    	return f
    }
    
    // Float returns the *Float z of the smallest possible precision such that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. src/math/big/floatconv.go

    // ParseFloat is like f.Parse(s, base) with f set to the given precision
    // and rounding mode.
    func ParseFloat(s string, base int, prec uint, mode RoundingMode) (f *Float, b int, err error) {
    	return new(Float).SetPrec(prec).SetMode(mode).Parse(s, base)
    }
    
    var _ fmt.Scanner = (*Float)(nil) // *Float must implement fmt.Scanner
    
    // Scan is a support routine for [fmt.Scanner]; it sets z to the value of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/StatementReplacingVisitorSupport.java

        stat.getExpression().visit(this);
        stat.setCode(replace(stat.getCode()));
      }
    
      @Override
      public void visitSynchronizedStatement(SynchronizedStatement stat) {
        stat.getExpression().visit(this);
        stat.setCode(replace(stat.getCode()));
      }
    
      @Override
      public void visitCatchStatement(CatchStatement stat) {
        stat.setCode(replace(stat.getCode()));
      }
    
      @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top