Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 366 for chunkOf (0.17 sec)

  1. src/internal/poll/sendfile_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package poll
    
    import "syscall"
    
    // maxSendfileSize is the largest chunk size we ask the kernel to copy
    // at a time.
    const maxSendfileSize int = 4 << 20
    
    // SendFile wraps the sendfile system call.
    func SendFile(dstFD *FD, src int, remain int64) (written int64, err error, handled bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/gc.go

    	// and to reduce the chance that the background scavenger gets scheduled.
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1))
    
    	// Allocate allocTotal bytes of memory in allocChunk byte chunks.
    	// Alternate between whether the chunk will be held live or will be
    	// condemned to GC to create holes in the heap.
    	saved := make([][]byte, allocs/2+1)
    	condemned := make([][]byte, allocs/2)
    	for i := 0; i < allocs; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/msan6.go

    // confuse the msan data structures.
    //
    //go:noinline
    func allocateStack(i int) int {
    	if i == 0 {
    		return i
    	}
    	return allocateStack(i - 1)
    }
    
    // F1 marks a chunk of stack as uninitialized.
    // C.f returns an uninitialized struct on the stack, so msan will mark
    // the stack as uninitialized.
    //
    //go:noinline
    func F1() uintptr {
    	s := C.f()
    	return uintptr(s.a[0])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. 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)
  5. src/net/http/cgi/host.go

    		}
    	}
    	return
    }
    
    func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
    	if len(req.TransferEncoding) > 0 && req.TransferEncoding[0] == "chunked" {
    		rw.WriteHeader(http.StatusBadRequest)
    		rw.Write([]byte("Chunked request bodies are not supported by CGI."))
    		return
    	}
    
    	root := strings.TrimRight(h.Root, "/")
    	pathInfo := strings.TrimPrefix(req.URL.Path, root)
    
    	port := "80"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. api/openapi-spec/v3/apis__discovery.k8s.io__v1_openapi.json

              "in": "query",
              "name": "limit",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 146.6K bytes
    - Viewed (0)
  7. src/encoding/ascii85/ascii85.go

    	"io"
    	"strconv"
    )
    
    /*
     * Encoder
     */
    
    // Encode encodes src into at most [MaxEncodedLen](len(src))
    // bytes of dst, returning the actual number of bytes written.
    //
    // The encoding handles 4-byte chunks, using a special encoding
    // for the last fragment, so Encode is not appropriate for use on
    // individual blocks of a large data stream. Use [NewEncoder] instead.
    //
    // Often, ascii85-encoded data is wrapped in <~ and ~> symbols.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. api/openapi-spec/v3/apis__autoscaling__v1_openapi.json

              "in": "query",
              "name": "limit",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 152.9K bytes
    - Viewed (0)
  9. api/openapi-spec/v3/apis__events.k8s.io__v1_openapi.json

              "in": "query",
              "name": "limit",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 142.7K bytes
    - Viewed (0)
  10. src/internal/poll/sendfile_solaris.go

    import "syscall"
    
    // Not strictly needed, but very helpful for debugging, see issue #10221.
    //
    //go:cgo_import_dynamic _ _ "libsendfile.so"
    //go:cgo_import_dynamic _ _ "libsocket.so"
    
    // maxSendfileSize is the largest chunk size we ask the kernel to copy
    // at a time.
    const maxSendfileSize int = 4 << 20
    
    // SendFile wraps the sendfile system call.
    func SendFile(dstFD *FD, src int, pos, remain int64) (written int64, err error, handled bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top