Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 366 for chunkOf (0.17 sec)

  1. okhttp/src/test/java/okhttp3/HeadersTest.kt

        val headers1 =
          Headers.Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        val headers2 =
          Headers.Builder()
            .add("Connection", "close")
            .add("Transfer-Encoding", "chunked")
            .build()
        assertThat(headers2).isEqualTo(headers1)
        assertThat(headers2.hashCode()).isEqualTo(headers1.hashCode())
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyDownloadBuildOperationsIntegrationTest.groovy

        def buildOperations = new BuildOperationsFixture(executer, temporaryFolder)
    
        def "emits events for dependency resolution downloads - chunked: #chunked"() {
            given:
            def m = mavenHttpRepo.module("org.utils", "impl", '1.3')
                .allowAll()
                .publish()
    
            buildFile << """
                repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jan 14 00:59:27 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. src/internal/poll/writev.go

    	var err error
    	for len(*v) > 0 {
    		iovecs = iovecs[:0]
    		for _, chunk := range *v {
    			if len(chunk) == 0 {
    				continue
    			}
    			iovecs = append(iovecs, newIovecWithBase(&chunk[0]))
    			if fd.IsStream && len(chunk) > 1<<30 {
    				iovecs[len(iovecs)-1].SetLen(1 << 30)
    				break // continue chunk on next writev
    			}
    			iovecs[len(iovecs)-1].SetLen(len(chunk))
    			if len(iovecs) == maxVec {
    				break
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbCopyUtil.java

                                wsize = byteLimit;
                            }
    
                            int chunks = (int) ( wsize / maxChunkSize );
                            int lastChunkSize;
                            if ( chunks + 1 > maxChunks ) {
                                chunks = maxChunks;
                                lastChunkSize = maxChunkSize;
                            }
                            else {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 17.1K bytes
    - Viewed (0)
  5. src/cmd/go/internal/lockedfile/transform_test.go

    			offset := rand.Intn(chunkWords)
    
    			err := lockedfile.Transform(path, func(data []byte) (chunk []byte, err error) {
    				chunk = buf[offset*8 : (offset+chunkWords)*8]
    
    				if len(data)&^7 != len(data) {
    					t.Errorf("read %d bytes, but each write is an integer multiple of 8 bytes", len(data))
    					return chunk, nil
    				}
    
    				words := len(data) / 8
    				if !isPowerOf2(words) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

      while (offset < size && rc > 0) {
        size_t chunk = size - offset;
        if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize;
    
        rc = read(src_fd, buffer.get(), chunk);
        if (rc < 0) return -1;
    
        int total_write = 0;
        int total_read = rc;
        while (total_write < total_read && rc > 0) {
          rc = write(dst_fd, buffer.get() + total_write, chunk - total_write);
          if (rc < 0) return -1;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 22 21:23:55 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  7. src/internal/chacha8rand/chacha8.go

    	}
    	used := byteorder.BeUint64(data[1*8:])
    	if used > (ctrMax/ctrInc)*chunk-reseed {
    		return new(errUnmarshalChaCha8)
    	}
    	for i := range s.seed {
    		s.seed[i] = byteorder.LeUint64(data[(2+i)*8:])
    	}
    	s.c = ctrInc * (uint32(used) / chunk)
    	block(&s.seed, &s.buf, s.c)
    	s.i = uint32(used) % chunk
    	s.n = chunk
    	if s.c == ctrMax-ctrInc {
    		s.n = chunk - reseed
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. src/crypto/sha256/sha256.go

    	boring.Unreachable()
    	nn = len(p)
    	d.len += uint64(nn)
    	if d.nx > 0 {
    		n := copy(d.x[d.nx:], p)
    		d.nx += n
    		if d.nx == chunk {
    			block(d, d.x[:])
    			d.nx = 0
    		}
    		p = p[n:]
    	}
    	if len(p) >= chunk {
    		n := len(p) &^ (chunk - 1)
    		block(d, p[:n])
    		p = p[n:]
    	}
    	if len(p) > 0 {
    		d.nx = copy(d.x[:], p)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/internal/saferio/io_test.go

    		}
    	})
    
    	t.Run("small-EOF", func(t *testing.T) {
    		_, err := ReadData(bytes.NewReader(nil), chunk-1)
    		if err != io.EOF {
    			t.Errorf("ReadData = %v, want io.EOF", err)
    		}
    	})
    
    	t.Run("large-EOF", func(t *testing.T) {
    		_, err := ReadData(bytes.NewReader(nil), chunk+1)
    		if err != io.EOF {
    			t.Errorf("ReadData = %v, want io.EOF", err)
    		}
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. src/slices/iter.go

    	SortStableFunc(s, cmp)
    	return s
    }
    
    // Chunk returns an iterator over consecutive sub-slices of up to n elements of s.
    // All but the last sub-slice will have size n.
    // All sub-slices are clipped to have no capacity beyond the length.
    // If s is empty, the sequence is empty: there is no empty slice in the sequence.
    // Chunk panics if n is less than 1.
    func Chunk[Slice ~[]E, E any](s Slice, n int) iter.Seq[Slice] {
    	if n < 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top