Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for newNames (0.32 sec)

  1. pkg/config/host/names.go

    				}
    			} else if oHost.SubsetOf(hHost) {
    				if !result.Contains(oHost) {
    					result = append(result, oHost)
    				}
    			}
    		}
    	}
    	return result
    }
    
    // NewNames converts a slice of host name strings to type Names.
    func NewNames(hosts []string) Names {
    	result := make(Names, 0, len(hosts))
    	for _, host := range hosts {
    		result = append(result, Name(host))
    	}
    	return result
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 01 19:19:22 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  2. src/syscall/dirent.go

    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/mod/example.com_retract_rename_v1.9.0-new.txt

    is added for the first time with a custom module path.
    -- .info --
    {"Version":"v1.9.0-new"}
    -- .mod --
    module example.com/retract/newname
    
    go 1.16
    
    // bad
    retract v1.0.0-bad
    -- go.mod --
    module example.com/retract/newname
    
    go 1.16
    
    // bad
    retract v1.0.0-bad
    -- newname.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 22 17:59:55 UTC 2020
    - 429 bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
              }
            };
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
              }
            };
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. pkg/kube/krt/index_test.go

    	tt.WaitUnordered("add/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    	pc.UpdateStatus(pod)
    	tt.WaitUnordered("update/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{})
    	assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}})
    
    	pod2 := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    	fdate = fdate[len(fdate)-len("2006-01-02"):]
    
    	newname := filepath.Join(u.dir.UploadDir(), fdate+".json")
    	if _, err := os.Stat(newname); err == nil {
    		// Another process uploaded but failed to clean up (or hasn't yet cleaned
    		// up). Ensure that cleanup occurs.
    		_ = os.Remove(fname)
    		return false
    	}
    
    	// Lock the upload, to prevent duplicate uploads.
    	{
    		lockname := newname + ".lock"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
    
        val newCases = mutableListOf<Case>()
        for (case in story.cases) {
          hpackWriter.writeHeaders(case.headersList)
          newCases += case.copy(wire = bytesOut.readByteString())
        }
    
        testDecoder(story.copy(cases = newCases))
      }
    
      companion object {
        private val RAW_DATA = arrayOf("raw-data")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/RenamingCopyAction.java

        }
    
        @Override
        public void execute(FileCopyDetails fileCopyDetails) {
            RelativePath path = fileCopyDetails.getRelativePath();
            String newName = transformer.transform(path.getLastName());
            if (newName != null) {
                path = path.replaceLastName(newName);
                fileCopyDetails.setRelativePath(path);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 1.4K bytes
    - Viewed (0)
Back to top