Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 366 for chunkOf (0.17 sec)

  1. pilot/pkg/config/file/util/kubeyaml/kubeyaml.go

    	return st.String()
    }
    
    type Reader interface {
    	Read() ([]byte, error)
    }
    
    // YAMLReader adapts from Kubernetes YAMLReader(apimachinery.k8s.io/pkg/util/yaml/decoder.go).
    // It records the start line number of the chunk it reads each time.
    type YAMLReader struct {
    	reader   Reader
    	currLine int
    }
    
    func NewYAMLReader(r *bufio.Reader) *YAMLReader {
    	return &YAMLReader{
    		reader:   &LineReader{reader: r},
    		currLine: 0,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 12 02:41:40 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    	}
    	got := string(bs)
    	if got != "" {
    		t.Errorf("read %q from server; want nothing", got)
    	}
    }
    
    // Tests that chunked server responses that write 1 byte at a time are
    // buffered before chunk headers are added, not after chunk headers.
    func TestServerBufferedChunking(t *testing.T) {
    	conn := new(testConn)
    	conn.readBuf.Write([]byte("GET / HTTP/1.1\r\nHost: foo\r\n\r\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. src/internal/bytealg/compare_loong64.s

    	MOVV	R5, R14
    	JMP	entry
    r2_lt_r1:
    	MOVV	R7, R14	// R14 is min(R4, R5)
    entry:
    	ADDV	R4, R14, R12	// R6 start of a, R14 end of a
    	BEQ	R4, R12, samebytes // length is 0
    
    	SRLV	$4, R14		// R14 is number of chunks
    	BEQ	R0, R14, byte_loop
    
    	// make sure both a and b are aligned.
    	OR	R4, R6, R15
    	AND	$7, R15
    	BNE	R0, R15, byte_loop
    
    	PCALIGN	$16
    chunk16_loop:
    	BEQ	R0, R14, byte_loop
    	MOVV	(R4), R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

            requestBuilder.header("Content-Length", contentLength.toString())
            requestBuilder.removeHeader("Transfer-Encoding")
          } else {
            requestBuilder.header("Transfer-Encoding", "chunked")
            requestBuilder.removeHeader("Content-Length")
          }
        }
    
        if (userRequest.header("Host") == null) {
          requestBuilder.header("Host", userRequest.url.toHostHeader())
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/internal/zstd/zstd.go

    		r.blockOffset += int64(size)
    		return nil
    	}
    
    	var skip []byte
    	const chunk = 1 << 20 // 1M
    	for size >= chunk {
    		if len(skip) == 0 {
    			skip = make([]byte, chunk)
    		}
    		if _, err := io.ReadFull(r.r, skip); err != nil {
    			return r.wrapNonEOFError(relativeOffset, err)
    		}
    		relativeOffset += chunk
    		size -= chunk
    	}
    	if size > 0 {
    		if len(skip) == 0 {
    			skip = make([]byte, size)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml

            # Liveness probe is aimed to help in situarions where fluentd
            # silently hangs for no apparent reasons until manual restart.
            # The idea of this probe is that if fluentd is not queueing or
            # flushing chunks for 5 minutes, something is not right. If
            # you want to change the fluentd configuration, reducing amount of
            # logs fluentd collects, consider changing the threshold or turning
            # liveness probe off completely.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 27 17:54:10 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/model/bucket-extensions.kt

            // For example, how do you split [0,0,0,0,0] into 3 buckets?
            // In this case, we simply put the elements into these buckets evenly.
            return list.chunked(list.size / expectedBucketNumber, smallElementAggregateFunction)
        }
    
        val largestElement = list.removeFirst()!!
    
        val largestElementSize = toIntFunction(largestElement)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 05:17:44 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. src/strings/compare_test.go

    }{
    	{"", "", 0},
    	{"a", "", 1},
    	{"", "a", -1},
    	{"abc", "abc", 0},
    	{"ab", "abc", -1},
    	{"abc", "ab", 1},
    	{"x", "ab", 1},
    	{"ab", "x", -1},
    	{"x", "a", 1},
    	{"b", "x", -1},
    	// test runtime·memeq's chunked implementation
    	{"abcdefgh", "abcdefgh", 0},
    	{"abcdefghi", "abcdefghi", 0},
    	{"abcdefghi", "abcdefghj", -1},
    }
    
    func TestCompare(t *testing.T) {
    	for _, tt := range compareTests {
    		cmp := Compare(tt.a, tt.b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:33:55 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/TextStream.java

     * limitations under the License.
     */
    
    package org.gradle.internal.io;
    
    import javax.annotation.Nullable;
    
    public interface TextStream {
        /**
         * Called when some chunk of text is available.
         */
        void text(String text);
    
        /**
         * Called when the end of the stream is reached for some reason.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:13 UTC 2024
    - 1K bytes
    - Viewed (0)
  10. api/openapi-spec/v3/apis__coordination.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
    - 136.6K bytes
    - Viewed (0)
Back to top