Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 330 for chunkOf (0.13 sec)

  1. src/slices/iter_test.go

    				chunks = append(chunks, c)
    			}
    
    			if !chunkEqual(chunks, tc.chunks) {
    				t.Errorf("Chunk(%v, %d) = %v, want %v", tc.s, tc.n, chunks, tc.chunks)
    			}
    
    			if len(chunks) == 0 {
    				return
    			}
    
    			// Verify that appending to the end of the first chunk does not
    			// clobber the beginning of the next chunk.
    			s := Clone(tc.s)
    			chunks[0] = append(chunks[0], -1)
    			if !Equal(s, tc.s) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. cmd/streaming-signature-v4.go

    // lineTooLong is generated as chunk header is bigger than 4KiB.
    var errLineTooLong = errors.New("header line too long")
    
    // malformed encoding is generated when chunk header is wrongly formed.
    var errMalformedEncoding = errors.New("malformed chunked encoding")
    
    // chunk is considered too big if its bigger than > 16MiB.
    var errChunkTooBig = errors.New("chunk too big: choose chunk size <= 16MiB")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        ByteSource source = out.asByteSource();
        int chunk1 = Math.min(dataSize, fileThreshold);
        int chunk2 = dataSize - chunk1;
    
        // Write just enough to not trip the threshold
        if (chunk1 > 0) {
          write(out, data, 0, chunk1, singleByte);
          assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source));
        }
        File file = out.getFile();
        assertNull(file);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        ByteSource source = out.asByteSource();
        int chunk1 = Math.min(dataSize, fileThreshold);
        int chunk2 = dataSize - chunk1;
    
        // Write just enough to not trip the threshold
        if (chunk1 > 0) {
          write(out, data, 0, chunk1, singleByte);
          assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source));
        }
        File file = out.getFile();
        assertNull(file);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. src/compress/flate/inflate.go

    			for off := reverse; off < len(h.chunks); off += 1 << uint(n) {
    				// We should never need to overwrite
    				// an existing chunk. Also, 0 is
    				// never a valid chunk, because the
    				// lower 4 "count" bits should be
    				// between 1 and 15.
    				if sanity && h.chunks[off] != 0 {
    					panic("impossible: overwriting existing chunk")
    				}
    				h.chunks[off] = chunk
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  6. src/net/http/requestwrite_test.go

    			"User-Agent: Go-http-client/1.1\r\n" +
    			"Transfer-Encoding: chunked\r\n\r\n" +
    			chunk("abcdef") + chunk(""),
    
    		WantProxy: "GET http://www.google.com/search HTTP/1.1\r\n" +
    			"Host: www.google.com\r\n" +
    			"User-Agent: Go-http-client/1.1\r\n" +
    			"Transfer-Encoding: chunked\r\n\r\n" +
    			chunk("abcdef") + chunk(""),
    	},
    	// HTTP/1.1 POST => chunked coding; body; empty trailer
    	2: {
    		Req: Request{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 23.3K bytes
    - Viewed (0)
  7. src/runtime/arena.go

    //
    // In summary, there are 2 resources: arenas, and arena chunks. They exist in the
    // following lifecycle:
    //
    // (1) A new arena is created via newArena.
    // (2) Chunks are allocated to hold memory allocated into the arena with new or slice.
    //    (a) Chunks are first allocated from the reuse list of partially-used chunks.
    //    (b) If there are no such chunks, then chunks on the ready list are taken.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  8. src/net/http/httputil/httputil.go

    package httputil
    
    import (
    	"io"
    	"net/http/internal"
    )
    
    // NewChunkedReader returns a new chunkedReader that translates the data read from r
    // out of HTTP "chunked" format before returning it.
    // The chunkedReader returns [io.EOF] when the final 0-length chunk is read.
    //
    // NewChunkedReader is not needed by normal applications. The http package
    // automatically decodes chunking when reading response bodies.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Hasher.java

     * change between Java releases.
     *
     * <p><b>Warning:</b> Chunks of data that are put into the {@link Hasher} are not delimited. The
     * resulting {@link HashCode} is dependent only on the bytes inserted, and the order in which they
     * were inserted, not how those bytes were chunked into discrete put() operations. For example, the
     * following three expressions all generate colliding hash codes:
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. src/internal/bytealg/equal_arm64.s

    	CMP	$1, R2
    	// handle 1-byte special case for better performance
    	BEQ	one
    	CMP	$16, R2
    	// handle specially if length < 16
    	BLO	tail
    	BIC	$0x3f, R2, R3
    	CBZ	R3, chunk16
    	// work with 64-byte chunks
    	ADD	R3, R0, R6	// end of chunks
    chunk64_loop:
    	VLD1.P	(R0), [V0.D2, V1.D2, V2.D2, V3.D2]
    	VLD1.P	(R1), [V4.D2, V5.D2, V6.D2, V7.D2]
    	VCMEQ	V0.D2, V4.D2, V8.D2
    	VCMEQ	V1.D2, V5.D2, V9.D2
    	VCMEQ	V2.D2, V6.D2, V10.D2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 16:07:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top