Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for makeTag (0.26 sec)

  1. src/archive/tar/writer_test.go

    	)
    
    	type (
    		makeReg struct {
    			size    int64
    			wantStr string
    		}
    		makeSparse struct {
    			makeReg makeReg
    			sph     sparseHoles
    			size    int64
    		}
    		fileMaker any // makeReg | makeSparse
    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{0, ""},
    		tests: []testFnc{
    			testRemaining{0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/term/term_plan9.go

    func isTerminal(fd int) bool {
    	path, err := plan9.Fd2path(fd)
    	if err != nil {
    		return false
    	}
    	return path == "/dev/cons" || path == "/mnt/term/dev/cons"
    }
    
    func makeRaw(fd int) (*State, error) {
    	return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
    }
    
    func getState(fd int) (*State, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    	)
    
    	type (
    		makeReg struct {
    			str  string
    			size int64
    		}
    		makeSparse struct {
    			makeReg makeReg
    			spd     sparseDatas
    			size    int64
    		}
    		fileMaker any // makeReg | makeSparse
    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{"", 0},
    		tests: []testFnc{
    			testRemaining{0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  4. src/go/constant/value.go

    		}
    	case unknownVal:
    		break
    	default:
    		panic(fmt.Sprintf("%v not Int or Float", x))
    	}
    	return unknownVal{}
    }
    
    // MakeImag returns the [Complex] value x*i;
    // x must be [Int], [Float], or [Unknown].
    // If x is [Unknown], the result is [Unknown].
    func MakeImag(x Value) Value {
    	switch x.(type) {
    	case unknownVal:
    		return x
    	case int64Val, intVal, ratVal, floatVal:
    		return makeComplex(int64Val(0), x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  5. src/cmd/pprof/readlineui.go

    	if v := strings.ToLower(os.Getenv("TERM")); v == "" || v == "dumb" {
    		return nil
    	}
    	// test if we can use term.ReadLine
    	// that assumes operation in the raw mode.
    	oldState, err := term.MakeRaw(0)
    	if err != nil {
    		return nil
    	}
    	term.Restore(0, oldState)
    
    	rw := struct {
    		io.Reader
    		io.Writer
    	}{os.Stdin, os.Stderr}
    	return &readlineUI{term: term.NewTerminal(rw, "")}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/CachingClassLoader.java

        private static final Object MISSING = new Object();
        private final ConcurrentMap<String, Object> loadedClasses = new MapMaker().weakValues().makeMap();
        private final ConcurrentMap<String, Object> resources = new MapMaker().makeMap();
        private final ClassLoader parent;
    
        static {
            try {
                ClassLoader.registerAsParallelCapable();
            } catch (NoSuchMethodError ignore) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/ResolvedArtifactCaches.java

        private final Map<String, Map<ComponentArtifactIdentifier, ResolvableArtifact>> cachePerRepo = new MapMaker().makeMap();
        private final Map<String, Map<ComponentArtifactIdentifier, ResolvableArtifact>> cachePerRepoWithVerification = new MapMaker().makeMap();
    
        /**
         * For a remote repository, the only thing required is a resolved artifact cache.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. src/go/constant/example_test.go

    import (
    	"fmt"
    	"go/constant"
    	"go/token"
    	"math"
    	"slices"
    )
    
    func Example_complexNumbers() {
    	// Create the complex number 2.3 + 5i.
    	ar := constant.MakeFloat64(2.3)
    	ai := constant.MakeImag(constant.MakeInt64(5))
    	a := constant.BinaryOp(ar, token.ADD, ai)
    
    	// Compute (2.3 + 5i) * 11.
    	b := constant.MakeUint64(11)
    	c := constant.BinaryOp(a, token.MUL, b)
    
    	// Convert c into a complex128.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. test/fixedbugs/issue37716.go

    type K struct {
    	a, b int32 // these get merged by the compiler into a single field, something typehash doesn't do
    	c    float64
    }
    
    func main() {
    	k := K{a: 1, b: 2, c: 3}
    
    	// Make a reflect map.
    	m := reflect.MakeMap(reflect.MapOf(reflect.TypeOf(K{}), reflect.TypeOf(true)))
    	m.SetMapIndex(reflect.ValueOf(k), reflect.ValueOf(true))
    
    	// The binary must not contain the type map[K]bool anywhere, or reflect.MapOf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 10 16:26:59 UTC 2020
    - 872 bytes
    - Viewed (0)
  10. src/runtime/race/testdata/regression_test.go

    	c := make(chan bool)
    	go func() {
    		_ = l
    		c <- true
    	}()
    	l = LogImpl{}
    	<-c
    	return
    }
    
    var _ LogImpl = NewLog()
    
    func MakeMap() map[int]int {
    	return make(map[int]int)
    }
    
    func InstrumentMapLen() {
    	_ = len(MakeMap())
    }
    
    func InstrumentMapLen2() {
    	m := make(map[int]map[int]int)
    	_ = len(m[0])
    }
    
    func InstrumentMapLen3() {
    	m := make(map[int]*map[int]int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 02:01:34 UTC 2015
    - 2.7K bytes
    - Viewed (0)
Back to top