Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for pathBuf (0.16 sec)

  1. internal/lock/lock_windows.go

    			// /../ is currently unhandled
    			return path
    		default:
    			pathbuf[w] = '\\'
    			w++
    			for ; r < n && !os.IsPathSeparator(path[r]); r++ {
    				pathbuf[w] = path[r]
    				w++
    			}
    		}
    	}
    	// A drive's root directory needs a trailing \
    	if w == len(`\\?\c:`) {
    		pathbuf[w] = '\\'
    		w++
    	}
    	return string(pathbuf[:w])
    }
    
    // Open - perm param is ignored, on windows file perms/NT acls
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. src/os/os_windows_test.go

    type reparseData struct {
    	substituteName namePosition
    	printName      namePosition
    	pathBuf        []uint16
    }
    
    type namePosition struct {
    	offset uint16
    	length uint16
    }
    
    func (rd *reparseData) addUTF16s(s []uint16) (offset uint16) {
    	off := len(rd.pathBuf) * 2
    	rd.pathBuf = append(rd.pathBuf, s...)
    	return uint16(off)
    }
    
    func (rd *reparseData) addString(s string) (offset, length uint16) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/SingleProjectTaskReportModelTest.groovy

            then:
            model.groups == ['group', ''] as Set
            def tasks = model.getTasksForGroup('') as List
            tasks*.path == [pathOf(task1), pathOf(task3), pathOf(task4), pathOf(task5)]
            def t = tasks.first()
            t.path == pathOf(task1)
        }
    
        def addsAGroupWhenThereAreNoTasksWithAGroup() {
            def task1 = task('task1')
            def task2 = task('task2', task1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 10 17:20:29 UTC 2020
    - 4K bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/repository/UserLocalArtifactRepository.java

            return localRepository.pathOfLocalRepositoryMetadata(metadata, repository);
        }
    
        @Override
        public String pathOf(Artifact artifact) {
            return localRepository.pathOf(artifact);
        }
    
        @Override
        public boolean hasLocalMetadata() {
            return true;
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/dist/buildtool.go

    		home := os.Getenv("HOME")
    		goroot_bootstrap = pathf("%s/go1.4", home)
    		for _, d := range tryDirs {
    			if p := pathf("%s/%s", home, d); isdir(p) {
    				goroot_bootstrap = p
    			}
    		}
    	}
    	xprintf("Building Go toolchain1 using %s.\n", goroot_bootstrap)
    
    	mkbuildcfg(pathf("%s/src/internal/buildcfg/zbootstrap.go", goroot))
    	mkobjabi(pathf("%s/src/cmd/internal/objabi/zbootstrap.go", goroot))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/ingress/conversion_test.go

    		}
    		if ingressName != c.ingressName || ruleNum != c.ruleNum || pathNum != c.pathNum {
    			t.Errorf("decodeIngressRuleName(%q) => (%q, %d, %d), want (%q, %d, %d)",
    				encoded,
    				ingressName, ruleNum, pathNum,
    				c.ingressName, c.ruleNum, c.pathNum,
    			)
    		}
    	}
    }
    
    func TestEncoding(t *testing.T) {
    	if got := EncodeIngressRuleName("name", 3, 5); got != "name-3-5" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 19 18:20:34 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  7. src/cmd/dist/build.go

    	if pkg == "runtime" {
    		xmkdirall(pathf("%s/pkg/include", goroot))
    		// For use by assembly and C files.
    		copyfile(pathf("%s/pkg/include/textflag.h", goroot),
    			pathf("%s/src/runtime/textflag.h", goroot), 0)
    		copyfile(pathf("%s/pkg/include/funcdata.h", goroot),
    			pathf("%s/src/runtime/funcdata.h", goroot), 0)
    		copyfile(pathf("%s/pkg/include/asm_ppc64x.h", goroot),
    			pathf("%s/src/runtime/asm_ppc64x.h", goroot), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            wagon.addExpectedContent(repos.get(0).getLayout().pathOf(artifact), "expected");
            wagon.addExpectedContent(
                    repos.get(0).getLayout().pathOf(artifact) + ".md5", "cd26d9e10ce691cc69aa2b90dcebbdac");
            wagon.addExpectedContent(repos.get(1).getLayout().pathOf(artifact), "expected");
            wagon.addExpectedContent(
                    repos.get(1).getLayout().pathOf(artifact) + ".md5", "cd26d9e10ce691cc69aa2b90dcebbdac");
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java

            ArtifactRepository localRepository = localRepository();
    
            Artifact a = createArtifact("a", "0.0.1-SNAPSHOT");
            File file = new File(localRepository.getBasedir(), localRepository.pathOf(a));
            file.delete();
            a.setFile(file);
    
            File touchFile = updateCheckManager.getTouchfile(a);
            touchFile.delete();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/ingress/conversion.go

    // as well as the position of the rule and path specified within it, counting from 1.
    // ruleNum == pathNum == 0 indicates the default backend specified for an ingress.
    func EncodeIngressRuleName(ingressName string, ruleNum, pathNum int) string {
    	return fmt.Sprintf("%s-%d-%d", ingressName, ruleNum, pathNum)
    }
    
    // decodeIngressRuleName decodes an ingress rule name previously encoded with EncodeIngressRuleName.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top