Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 81 for chunkOf (0.13 sec)

  1. src/cmd/link/internal/ld/data.go

    	writeBlocks(ctxt, out, ctxt.outSem, ctxt.loader, ctxt.Textp, addr, size, pad)
    }
    
    const blockSize = 1 << 20 // 1MB chunks written at a time.
    
    // writeBlocks writes a specified chunk of symbols to the output buffer. It
    // breaks the write up into ≥blockSize chunks to write them out, and schedules
    // as many goroutines as necessary to accomplish this task. This call then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  2. src/os/os_windows_test.go

    						*read = uint32(n)
    						t.Logf("read %d -> %d", toread, *read)
    						return nil
    					}
    
    					var all []string
    					var buf []byte
    					chunk := make([]byte, readSize)
    					for {
    						n, err := testConsole.Read(chunk)
    						buf = append(buf, chunk[:n]...)
    						if err == io.EOF {
    							all = append(all, string(buf))
    							if len(all) >= 5 {
    								break
    							}
    							buf = buf[:0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. src/time/format_test.go

    	// the exact detection of format chunk boundaries in the
    	// helper function nextStdChunk (here called as NextStdChunk).
    	// This test checks nextStdChunk's behavior directly,
    	// instead of needing to test it only indirectly through Parse/Format.
    
    	// markChunks returns format with each detected
    	// 'format chunk' parenthesized.
    	// For example showChunks("2006-01-02") == "(2006)-(01)-(02)".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. src/net/http/request_test.go

    	// Body:
    	clientReq := *req
    	clientReq.Body = nil
    
    	var out strings.Builder
    	if err := clientReq.Write(&out); err != nil {
    		t.Fatal(err)
    	}
    
    	if strings.Contains(out.String(), "chunked") {
    		t.Error("wrote chunked request; want no body")
    	}
    	back, err := ReadRequest(bufio.NewReader(strings.NewReader(out.String())))
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/builtin.go

    // Code generated by mkbuiltin.go. DO NOT EDIT.
    
    package typecheck
    
    import (
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // Not inlining this function removes a significant chunk of init code.
    //
    //go:noinline
    func newSig(params, results []*types.Field) *types.Type {
    	return types.NewSignature(nil, params, results)
    }
    
    func params(tlist ...*types.Type) []*types.Field {
    	flist := make([]*types.Field, len(tlist))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/crypto/tls/tls_test.go

    	clientConfig.MaxVersion = version
    
    	buf := make([]byte, bufsize)
    	chunks := int(math.Ceil(float64(totalBytes) / float64(len(buf))))
    	for i := 0; i < N; i++ {
    		conn, err := Dial("tcp", ln.Addr().String(), clientConfig)
    		if err != nil {
    			b.Fatal(err)
    		}
    		for j := 0; j < chunks; j++ {
    			_, err := conn.Write(buf)
    			if err != nil {
    				b.Fatal(err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	"k8s.io/component-base/tracing"
    	"k8s.io/klog/v2"
    	"k8s.io/utils/clock"
    	"k8s.io/utils/ptr"
    )
    
    var (
    	emptyFunc = func(bool) {}
    )
    
    const (
    	// storageWatchListPageSize is the cacher's request chunk size of
    	// initial and resync watch lists to storage.
    	storageWatchListPageSize = int64(10000)
    	// defaultBookmarkFrequency defines how frequently watch bookmarks should be send
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server.go

    		return
    	}
    	fw := flushwriter.Wrap(response.ResponseWriter)
    	response.Header().Set("Transfer-Encoding", "chunked")
    	if err := s.host.GetKubeletContainerLogs(ctx, kubecontainer.GetPodFullName(pod), containerName, logOptions, fw, fw); err != nil {
    		response.WriteError(http.StatusBadRequest, err)
    		return
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  9. src/net/net.go

    }
    
    func releaseThread() {
    	<-threadLimit
    }
    
    // buffersWriter is the interface implemented by Conns that support a
    // "writev"-like batch write optimization.
    // writeBuffers should fully consume and write all chunks from the
    // provided Buffers, else it should report a non-nil error.
    type buffersWriter interface {
    	writeBuffers(*Buffers) (int64, error)
    }
    
    // Buffers contains zero or more runs of bytes to write.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. src/net/http/fs.go

    	ctypes, haveType := w.Header()["Content-Type"]
    	var ctype string
    	if !haveType {
    		ctype = mime.TypeByExtension(filepath.Ext(name))
    		if ctype == "" {
    			// read a chunk to decide between utf-8 text and binary
    			var buf [sniffLen]byte
    			n, _ := io.ReadFull(content, buf[:])
    			ctype = DetectContentType(buf[:n])
    			_, err := content.Seek(0, io.SeekStart) // rewind to output whole file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top