Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 156 for returns_ (0.55 sec)

  1. pkg/volume/testing/testing.go

    	fc := fakeCmd
    	c := cmd
    	a := args
    	return func(cmd string, args ...string) exec.Cmd {
    		command := testingexec.InitFakeCmd(fc, c, a...)
    		return command
    	}
    }
    
    func makeFakeOutput(output string, rc int) testingexec.FakeAction {
    	o := output
    	var e error
    	if rc != 0 {
    		e = testingexec.FakeExitError{Status: rc}
    	}
    	return func() ([]byte, []byte, error) {
    		return []byte(o), nil, e
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          sum += segments[i].count;
        }
        return Ints.saturatedCast(sum);
      }
    
      @CheckForNull
      @Override
      public V get(@CheckForNull Object key) {
        if (key == null) {
          return null;
        }
        int hash = hash(key);
        return segmentFor(hash).get(key, hash);
      }
    
      /**
       * Returns the internal entry for the specified key. The entry may be computing or partially
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_gen.go

    	o = msgp.AppendUint8(o, uint8(z))
    	return
    }
    
    // UnmarshalMsg implements msgp.Unmarshaler
    func (z *ChecksumAlgo) UnmarshalMsg(bts []byte) (o []byte, err error) {
    	{
    		var zb0001 uint8
    		zb0001, bts, err = msgp.ReadUint8Bytes(bts)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = ChecksumAlgo(zb0001)
    	}
    	o = bts
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  4. src/runtime/malloc.go

    	switch {
    	case userSize <= (64 - 16):
    		return 16 << 0
    	case userSize <= (128 - 32):
    		return 16 << 1
    	case userSize <= (512 - 64):
    		return 16 << 2
    	case userSize <= (4096 - 128):
    		return 16 << 3
    	case userSize <= (1<<14)-256:
    		return 16 << 4
    	case userSize <= (1<<15)-512:
    		return 16 << 5
    	case userSize <= (1<<16)-1024:
    		return 16 << 6
    	default:
    		return 16 << 7
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/load.go

    	if !ok {
    		return ""
    	}
    	return pkg.why()
    }
    
    // WhyDepth returns the number of steps in the Why listing.
    // If there is no reason for the package to be in the current build,
    // WhyDepth returns 0.
    func WhyDepth(path string) int {
    	n := 0
    	pkg, _ := loaded.pkgCache.Get(path)
    	for p := pkg; p != nil; p = p.stack {
    		n++
    	}
    	return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    	err error
    }
    
    func (t *testEnvelopeService) Decrypt(data []byte) ([]byte, error) {
    	if t.err != nil {
    		return nil, t.err
    	}
    	return base64.StdEncoding.DecodeString(string(data))
    }
    
    func (t *testEnvelopeService) Encrypt(data []byte) ([]byte, error) {
    	if t.err != nil {
    		return nil, t.err
    	}
    	return []byte(base64.StdEncoding.EncodeToString(data)), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/init.go

    		}
    		return nil
    	}
    	if mms != nil && len(mms.versions) == 1 {
    		f := mms.ModFile(mms.mustGetSingleMainModule())
    		if f == nil {
    			// Special case: we are outside a module, like 'go run x.go'.
    			return nil
    		}
    		return f.Godebug
    	}
    	return nil
    }
    
    // Toolchain returns the toolchain set on the single module, in module mode,
    // or the go.work file in workspace mode.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  8. src/runtime/mbitmap.go

    //
    //go:nowritebarrier
    //go:nosplit
    func subtractb(p *byte, n uintptr) *byte {
    	// Note: wrote out full expression instead of calling add(p, -n)
    	// to reduce the number of temporaries generated by the
    	// compiler for this trivial expression during inlining.
    	return (*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(p)) - n))
    }
    
    // add1 returns the byte pointer p+1.
    //
    //go:nowritebarrier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  9. pkg/controller/job/job_controller.go

    	for _, v := range in.Failed {
    		obj.failed.Insert(string(v))
    	}
    	return &obj
    }
    
    func (u *uncountedTerminatedPods) Succeeded() sets.Set[string] {
    	if u == nil {
    		return nil
    	}
    	return u.succeeded
    }
    
    func (u *uncountedTerminatedPods) Failed() sets.Set[string] {
    	if u == nil {
    		return nil
    	}
    	return u.failed
    }
    
    func errorFromChannel(errCh <-chan error) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    			st.subs.add(a)
    		}
    
    		return a
    	}
    }
    
    // isDigit returns whetner c is a digit for demangling purposes.
    func isDigit(c byte) bool {
    	return c >= '0' && c <= '9'
    }
    
    // isUpper returns whether c is an upper case letter for demangling purposes.
    func isUpper(c byte) bool {
    	return c >= 'A' && c <= 'Z'
    }
    
    // isLower returns whether c is a lower case letter for demangling purposes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
Back to top