Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 296 for chunkOf (0.14 sec)

  1. 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)
  2. src/crypto/sha1/sha1.go

    const BlockSize = 64
    
    const (
    	chunk = 64
    	init0 = 0x67452301
    	init1 = 0xEFCDAB89
    	init2 = 0x98BADCFE
    	init3 = 0x10325476
    	init4 = 0xC3D2E1F0
    )
    
    // digest represents the partial evaluation of a checksum.
    type digest struct {
    	h   [5]uint32
    	x   [chunk]byte
    	nx  int
    	len uint64
    }
    
    const (
    	magic         = "sha\x01"
    	marshaledSize = len(magic) + 5*4 + chunk + 8
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/internal/coverage/calloc/batchcounteralloc.go

    // allocation.
    
    type BatchCounterAlloc struct {
    	pool []uint32
    }
    
    func (ca *BatchCounterAlloc) AllocateCounters(n int) []uint32 {
    	const chunk = 8192
    	if n > cap(ca.pool) {
    		siz := chunk
    		if n > chunk {
    			siz = n
    		}
    		ca.pool = make([]uint32, siz)
    	}
    	rv := ca.pool[:n]
    	ca.pool = ca.pool[n:]
    	return rv
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:47:16 UTC 2022
    - 754 bytes
    - Viewed (0)
  4. src/net/http/httputil/dump.go

    		host := req.Host
    		if host == "" && req.URL != nil {
    			host = req.URL.Host
    		}
    		if host != "" {
    			fmt.Fprintf(&b, "Host: %s\r\n", host)
    		}
    	}
    
    	chunked := len(req.TransferEncoding) > 0 && req.TransferEncoding[0] == "chunked"
    	if len(req.TransferEncoding) > 0 {
    		fmt.Fprintf(&b, "Transfer-Encoding: %s\r\n", strings.Join(req.TransferEncoding, ","))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/runtime/mpallocbits.go

    // whether or not a given page is scavenged in a single
    // structure. It's effectively a pallocBits with
    // additional functionality.
    //
    // Update the comment on (*pageAlloc).chunks should this
    // structure change.
    type pallocData struct {
    	pallocBits
    	scavenged pageBits
    }
    
    // allocRange sets bits [i, i+n) in the bitmap to 1 and
    // updates the scavenged bits appropriately.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/unicode/norm/readwriter.go

    func (w *normWriter) Write(data []byte) (n int, err error) {
    	// Process data in pieces to keep w.buf size bounded.
    	const chunk = 4000
    
    	for len(data) > 0 {
    		// Normalize into w.buf.
    		m := len(data)
    		if m > chunk {
    			m = chunk
    		}
    		w.rb.src = inputBytes(data[:m])
    		w.rb.nsrc = m
    		w.buf = doAppend(&w.rb, w.buf, 0)
    		data = data[m:]
    		n += m
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      }
    
      @Test
      fun chunkedUpload_byteByByte() {
        doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE)
      }
    
      @Test
      fun chunkedUpload_smallBuffers() {
        doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS)
      }
    
      @Test
      fun chunkedUpload_largeBuffers() {
        doUpload(TransferKind.CHUNKED, WriteKind.LARGE_BUFFERS)
      }
    
      @Test
      fun fixedLengthUpload_byteByByte() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  8. cmd/handler-utils.go

    			// to a custom value for example: "aws-chunked,gzip".
    			metadata[strings.ToLower(xhttp.ContentEncoding)] = contentEncoding
    		} else {
    			// Trimmed content encoding is empty when the header
    			// value is set to "aws-chunked" only.
    
    			// Make sure to delete the content-encoding parameter
    			// for a streaming signature which is set to value
    			// for example: "aws-chunked"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. api/openapi-spec/v3/apis__resource.k8s.io__v1alpha2_openapi.json

                "in": "query",
                "name": "limit",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 656.6K bytes
    - Viewed (0)
  10. src/runtime/cpuprof.go

    			abi.FuncPCABIInternal(_System) + sys.PCQuantum,
    		}
    		p.log.write(nil, 0, hdr[:], lostStk[:])
    		p.lostAtomic = 0
    	}
    
    }
    
    // CPUProfile panics.
    // It formerly provided raw access to chunks of
    // a pprof-format profile generated by the runtime.
    // The details of generating that format have changed,
    // so this functionality has been removed.
    //
    // Deprecated: Use the [runtime/pprof] package,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top