Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 87 for chunkOf (0.26 sec)

  1. doc/next/6-stdlib/3-iter.md

    - [SortedFunc](/pkg/slices#SortedFunc) is like `Sorted` but with a
      comparison function.
    - [SortedStableFunc](/pkg/slices#SortedStableFunc) is like `SortFunc`
      but uses a stable sort algorithm.
    - [Chunk](/pkg/slices#Chunk) returns an iterator over consecutive
      sub-slices of up to n elements of a slice.
    
    The [maps] package adds several functions that work with iterators:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:13 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

            while (matcher.find()) {
                String chunk = string.subSequence(pos, matcher.start()).toString();
                pos = matcher.end();
                if (chunk.isEmpty()) {
                    continue;
                }
                if (lower && first) {
                    chunk = StringUtils.uncapitalize(chunk);
                    first = false;
                } else {
                    chunk = StringUtils.capitalize(chunk);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. src/net/http/h2_bundle.go

    		p = p[n:]
    		ntotal += n
    		b.r += n
    		b.size -= n
    		// If the first chunk has been consumed, advance to the next chunk.
    		if b.r == len(b.chunks[0]) {
    			http2putDataBufferChunk(b.chunks[0])
    			end := len(b.chunks) - 1
    			copy(b.chunks[:end], b.chunks[1:])
    			b.chunks[end] = nil
    			b.chunks = b.chunks[:end]
    			b.r = 0
    		}
    	}
    	return ntotal, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

            while (matcher.find()) {
                String chunk = string.subSequence(pos, matcher.start()).toString();
                pos = matcher.end();
                if (chunk.isEmpty()) {
                    continue;
                }
                if (lower && first) {
                    chunk = StringUtils.uncapitalize(chunk);
                    first = false;
                } else {
                    chunk = StringUtils.capitalize(chunk);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    	}
    	got := string(bs)
    	if got != "" {
    		t.Errorf("read %q from server; want nothing", got)
    	}
    }
    
    // Tests that chunked server responses that write 1 byte at a time are
    // buffered before chunk headers are added, not after chunk headers.
    func TestServerBufferedChunking(t *testing.T) {
    	conn := new(testConn)
    	conn.readBuf.Write([]byte("GET / HTTP/1.1\r\nHost: foo\r\n\r\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  6. src/internal/bytealg/compare_loong64.s

    	MOVV	R5, R14
    	JMP	entry
    r2_lt_r1:
    	MOVV	R7, R14	// R14 is min(R4, R5)
    entry:
    	ADDV	R4, R14, R12	// R6 start of a, R14 end of a
    	BEQ	R4, R12, samebytes // length is 0
    
    	SRLV	$4, R14		// R14 is number of chunks
    	BEQ	R0, R14, byte_loop
    
    	// make sure both a and b are aligned.
    	OR	R4, R6, R15
    	AND	$7, R15
    	BNE	R0, R15, byte_loop
    
    	PCALIGN	$16
    chunk16_loop:
    	BEQ	R0, R14, byte_loop
    	MOVV	(R4), R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. api/openapi-spec/v3/api__v1_openapi.json

              "in": "query",
              "name": "limit",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
  8. src/encoding/base32/base32.go

    		if e.nbuf < 5 {
    			return
    		}
    		e.enc.Encode(e.out[0:], e.buf[0:])
    		if _, e.err = e.w.Write(e.out[0:8]); e.err != nil {
    			return n, e.err
    		}
    		e.nbuf = 0
    	}
    
    	// Large interior chunks.
    	for len(p) >= 5 {
    		nn := len(e.out) / 8 * 5
    		if nn > len(p) {
    			nn = len(p)
    			nn -= nn % 5
    		}
    		e.enc.Encode(e.out[0:], p[0:nn])
    		if _, e.err = e.w.Write(e.out[0 : nn/5*8]); e.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. src/net/http/server.go

    		} else {
    			// HTTP/1.1 or greater: use chunked transfer encoding
    			// to avoid closing the connection at EOF.
    			cw.chunking = true
    			setHeader.transferEncoding = "chunked"
    			if hasTE && te == "chunked" {
    				// We will send the chunked Transfer-Encoding header later.
    				delHeader("Transfer-Encoding")
    			}
    		}
    	} else {
    		// HTTP version < 1.1: cannot do chunked transfer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    			in:   hex("a27f626865636c6c6fff017f616864656c6c6fff02"), // {(_ "he", "llo"): 1, (_ "h", "ello"): 2}
    			into: struct {
    				Hello int `json:"hello"`
    			}{},
    			assertOnError: assertIdenticalError(&cbor.DupMapKeyError{Key: string("hello"), Index: 1}),
    		},
    		{
    			name:          "reject two identical indefinite-length text string keys split into chunks differently into map",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
Back to top