Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 330 for chunkOf (0.28 sec)

  1. pilot/pkg/config/file/store.go

    			scope.Debugf("Failed to parse yamlText chunk: %v", yamlText)
    			errs = multierror.Append(errs, e)
    			break
    		}
    
    		chunk := bytes.TrimSpace(doc)
    		if len(chunk) == 0 {
    			continue
    		}
    		chunkResources, err := s.parseChunk(r, name, lineNum, chunk)
    		if err != nil {
    			var uerr *unknownSchemaError
    			if errors.As(err, &uerr) {
    				scope.Debugf("skipping unknown yaml chunk %s: %s", name, uerr.Error())
    			} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. src/image/png/reader.go

    	if len(p) == 0 {
    		return 0, nil
    	}
    	for d.idatLength == 0 {
    		// We have exhausted an IDAT chunk. Verify the checksum of that chunk.
    		if err := d.verifyChecksum(); err != nil {
    			return 0, err
    		}
    		// Read the length and chunk type of the next chunk, and check that
    		// it is an IDAT chunk.
    		if _, err := io.ReadFull(d.r, d.tmp[:8]); err != nil {
    			return 0, err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 26K bytes
    - Viewed (0)
  3. src/net/http/httputil/dump_test.go

    			"Host: www.google.com\r\n" +
    			"Transfer-Encoding: chunked\r\n\r\n" +
    			chunk("abcdef") + chunk(""),
    	},
    
    	// Verify that DumpRequest preserves the HTTP version number, doesn't add a Host,
    	// and doesn't add a User-Agent.
    	{
    		Req: &http.Request{
    			Method:     "GET",
    			URL:        mustParseURL("/foo"),
    			ProtoMajor: 1,
    			ProtoMinor: 0,
    			Header: http.Header{
    				"X-Foo": []string{"X-Bar"},
    			},
    		},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  4. src/internal/bytealg/indexbyte_amd64.s

    	JB	sseloop
    
    	// Search the last 16-byte chunk. This chunk may overlap with the
    	// chunks we've already searched, but that's ok.
    	MOVQ	AX, DI
    	MOVOU	(AX), X1
    	PCMPEQB	X0, X1
    	PMOVMSKB X1, DX
    	BSFL	DX, DX
    	JNZ	ssesuccess
    
    failure:
    	MOVQ $-1, (R8)
    	RET
    
    // We've found a chunk containing the byte.
    // The chunk was loaded from DI.
    // The index of the matching byte in the chunk is DX.
    // The start of the data is SI.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 19:06:01 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. cmd/streaming-v4-unsigned.go

    	"fmt"
    	"io"
    	"net/http"
    	"strings"
    )
    
    // newUnsignedV4ChunkedReader returns a new s3UnsignedChunkedReader that translates the data read from r
    // out of HTTP "chunked" format before returning it.
    // The s3ChunkedReader returns io.EOF when the final 0-length chunk is read.
    func newUnsignedV4ChunkedReader(req *http.Request, trailer bool) (io.ReadCloser, APIErrorCode) {
    	if trailer {
    		// Discard anything unsigned.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 06 02:53:12 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. src/net/http/response_test.go

    			Header:           Header{},
    			Close:            false,
    			ContentLength:    -1,
    			TransferEncoding: []string{"chunked"},
    		},
    
    		"Body here\n",
    	},
    
    	// Chunked response in response to a HEAD request
    	{
    		"HTTP/1.1 200 OK\r\n" +
    			"Transfer-Encoding: chunked\r\n" +
    			"\r\n",
    
    		Response{
    			Status:           "200 OK",
    			StatusCode:       200,
    			Proto:            "HTTP/1.1",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 19:01:29 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  7. src/runtime/mpagealloc_32bit.go

    		mappedReady = scavIndexSize
    	} else {
    		// Set up the scavenge index.
    		s.chunks = scavengeIndexArray[:]
    	}
    	s.min.Store(1) // The 0th chunk is never going to be mapped for the heap.
    	s.max.Store(uintptr(len(s.chunks)))
    	return
    }
    
    // sysGrow is a no-op on 32-bit platforms.
    func (s *scavengeIndex) sysGrow(base, limit uintptr, sysStat *sysMemStat) uintptr {
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 20:08:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. src/runtime/map_benchmark_test.go

    			idx = 0
    		}
    	}
    }
    
    type chunk [17]byte
    
    func BenchmarkHashBytesSpeed(b *testing.B) {
    	// a bunch of chunks, each with a different alignment mod 16
    	var chunks [size]chunk
    	// initialize each to a different value
    	for i := 0; i < size; i++ {
    		chunks[i][0] = byte(i)
    	}
    	// put into a map
    	m := make(map[chunk]int, size)
    	for i, c := range chunks {
    		m[c] = i
    	}
    	idx := 0
    	b.ResetTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. src/image/png/reader_test.go

    	// These bytes come from https://go.dev/issue/54325
    	//
    	// Per the PNG spec, a PLTE chunk contains 3 (not 4) bytes per palette
    	// entry: RGB (not RGBA). The alpha value comes from the optional tRNS
    	// chunk. Here, the PLTE chunk (0x50, 0x4c, 0x54, 0x45, etc) has 16 entries
    	// (0x30 = 48 bytes) and the tRNS chunk (0x74, 0x52, 0x4e, 0x53, etc) has 1
    	// entry (0x01 = 1 byte) that sets the first palette entry's alpha to zero.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 24 12:12:12 UTC 2022
    - 28.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go

    	return err
    }
    
    // YAMLDecoder reads chunks of objects and returns ErrShortBuffer if
    // the data is not sufficient.
    type YAMLDecoder struct {
    	r         io.ReadCloser
    	scanner   *bufio.Scanner
    	remaining []byte
    }
    
    // NewDocumentDecoder decodes YAML documents from the provided
    // stream in chunks by converting each document (as defined by
    // the YAML spec) into its own chunk. io.ErrShortBuffer will be
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 10.2K bytes
    - Viewed (0)
Back to top