Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for nb (0.14 sec)

  1. src/archive/tar/reader.go

    // special headers that contain no data section.
    func (tr *Reader) handleRegularFile(hdr *Header) error {
    	nb := hdr.Size
    	if isHeaderOnlyType(hdr.Typeflag) {
    		nb = 0
    	}
    	if nb < 0 {
    		return ErrHeader
    	}
    
    	tr.pad = blockPadding(nb)
    	tr.curr = &regFileReader{r: tr.r, nb: nb}
    	return nil
    }
    
    // handleSparseFile checks if the current file is a sparse format of any type
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertEquals("4", "a234a", StringUtil.replace("12341", "1", "a"));
            assertEquals("5", "ab234abab234ab", StringUtil.replace("1234112341", "1", "ab"));
            assertEquals("6", "a\\nb", StringUtil.replace("a\nb", "\n", "\\n"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSplit() throws Exception {
            final String[] array = StringUtil.split("aaa\nbbb", "\n");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. src/bytes/bytes.go

    		chunkMax = chunkLimit / len(b) * len(b)
    		if chunkMax == 0 {
    			chunkMax = len(b)
    		}
    	}
    	nb := bytealg.MakeNoZero(n)[:n:n]
    	bp := copy(nb, b)
    	for bp < n {
    		chunk := bp
    		if chunk > chunkMax {
    			chunk = chunkMax
    		}
    		bp += copy(nb[bp:], nb[:chunk])
    	}
    	return nb
    }
    
    // ToUpper returns a copy of the byte slice s with all Unicode letters mapped to
    // their upper case.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

            function: FirSimpleFunction,
            other: FirLiteralExpression<*>
        ): FirLiteralExpression<*>? {
            if (value == null || other.value == null) return null
            // NB: some utils accept very general types, and due to the way operation map works, we should up-cast rhs type.
            val rightType = when {
                function.symbol.callableId.isStringEquals -> CompileTimeType.ANY
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 20 14:53:27 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  5. cmd/admin-handlers-pools.go

    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.RebalanceAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	// NB rebalance-start admin API is always coordinated from first pool's
    	// first node. The following is required to serialize (the effects of)
    	// concurrent rebalance-start commands.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils.go

    			dataDir = ddir
    		}
    	}
    
    	if max >= writeQuorum {
    		return dataDir
    	}
    
    	return ""
    }
    
    // Returns number of errors that occurred the most (incl. nil) and the
    // corresponding error value. NB When there is more than one error value that
    // occurs maximum number of times, the error value returned depends on how
    // golang's map orders keys. This doesn't affect correctness as long as quorum
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(parse(url, "a= ")!!.value).isEqualTo("")
        assertThat(parse(url, "a= b")!!.value).isEqualTo("b")
        assertThat(parse(url, "a=b ")!!.value).isEqualTo("b")
        assertThat(parse(url, "a=\r\t \nb\n\t \n")!!.value).isEqualTo("b")
      }
    
      @Test fun invalidCharacters() {
        assertThat(parse(url, "a\u0000b=cd")).isNull()
        assertThat(parse(url, "ab=c\u0000d")).isNull()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/lifecycle.go

    func (lc Lifecycle) eval(obj ObjectOpts, now time.Time) Event {
    	var events []Event
    	if obj.ModTime.IsZero() {
    		return Event{}
    	}
    
    	// Handle expiry of restored object; NB Restored Objects have expiry set on
    	// them as part of RestoreObject API. They aren't governed by lifecycle
    	// rules.
    	if !obj.RestoreExpires.IsZero() && now.After(obj.RestoreExpires) {
    		action := DeleteRestoredAction
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            symbolBuilder: KtSymbolByFirBuilder
        ): List<KtSymbol> {
            // Handle situation when we're in the middle/beginning of qualifier
            // <caret>A.B.C.foo() or A.<caret>B.C.foo()
            // NB: in this case we get some parent FIR, like FirBlock, FirProperty, FirFunction or the like
            var parent = expression.parent as? KtDotQualifiedExpression
            var unresolvedCounter = 1
            while (parent != null) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSet.java

         * wrapper around j.u.HashSet, which has built-in flooding protection. MAX_RUN_MULTIPLIER was
         * determined experimentally to match our desired probability of false positives.
         */
        // NB: yes, this is surprisingly high, but that's what the experiments said was necessary
        // Raising this number slows the worst-case contains behavior, speeds up hashFloodingDetected,
        // and reduces the false-positive probability.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
Back to top