Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 330 for chunkOf (0.41 sec)

  1. tensorflow/cc/saved_model/fingerprinting_utils_test.cc

        TF_ASSERT_OK(read_metadata.status());
      }
      ChunkMetadata chunk_metadata = read_metadata.value();
    
      std::vector<ChunkInfo> chunks_info = std::vector<ChunkInfo>(
          chunk_metadata.chunks().begin(), chunk_metadata.chunks().end());
    
      FieldIndex field_one_field_tag;
      field_one_field_tag.set_field(1);
      FieldIndex repeated_field_field_tag;
      repeated_field_field_tag.set_field(2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. src/net/http/cgi/host_test.go

    }
    
    func chunk(s string) string {
    	return fmt.Sprintf("%x\r\n%s\r\n", len(s), s)
    }
    
    // The CGI spec doesn't allow chunked requests.
    func TestCGIPostChunked(t *testing.T) {
    	testenv.MustHaveExec(t)
    	postReq := `POST /test.cgi?a=b HTTP/1.1
    Host: example.com
    Content-Type: application/x-www-form-urlencoded
    Transfer-Encoding: chunked
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 18:29:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/runtime/mpagealloc_64bit.go

    	summaryLevels = 5
    
    	// Constants for testing.
    	pageAlloc32Bit = 0
    	pageAlloc64Bit = 1
    
    	// Number of bits needed to represent all indices into the L1 of the
    	// chunks map.
    	//
    	// See (*pageAlloc).chunks for more details. Update the documentation
    	// there should this number change.
    	pallocChunksL1Bits = 13
    )
    
    // levelBits is the number of bits in the radix for a given level in the super summary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/internal/diff/diff.go

    	// and then printing diff chunks.
    	// To avoid setup/teardown cases outside the loop,
    	// tgs returns a leading {0,0} and trailing {len(x), len(y)} pair
    	// in the sequence of matches.
    	var (
    		done  pair     // printed up to x[:done.x] and y[:done.y]
    		chunk pair     // start lines of current chunk
    		count pair     // number of lines from each side in current chunk
    		ctext []string // lines for current chunk
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go

    	r [2]uint64
    	s [2]uint64
    }
    
    type macGeneric struct {
    	macState
    
    	buffer [TagSize]byte
    	offset int
    }
    
    // Write splits the incoming message into TagSize chunks, and passes them to
    // update. It buffers incomplete chunks.
    func (h *macGeneric) Write(p []byte) (int, error) {
    	nn := len(p)
    	if h.offset > 0 {
    		n := copy(h.buffer[h.offset:], p)
    		if h.offset+n < TagSize {
    			h.offset += n
    			return nn, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. src/net/http/transfer.go

    	case *Request:
    		rr.Body = t.Body
    		rr.ContentLength = t.ContentLength
    		if t.Chunked {
    			rr.TransferEncoding = []string{"chunked"}
    		}
    		rr.Close = t.Close
    		rr.Trailer = t.Trailer
    	case *Response:
    		rr.Body = t.Body
    		rr.ContentLength = t.ContentLength
    		if t.Chunked {
    			rr.TransferEncoding = []string{"chunked"}
    		}
    		rr.Close = t.Close
    		rr.Trailer = t.Trailer
    	}
    
    	return nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. src/internal/fuzz/mutators_byteslice.go

    	}
    	return b
    }
    
    // byteSliceSwapBytes swaps two chunks of bytes in b.
    func byteSliceSwapBytes(m *mutator, b []byte) []byte {
    	if len(b) <= 1 {
    		return nil
    	}
    	src := m.rand(len(b))
    	dst := m.rand(len(b))
    	for dst == src {
    		dst = m.rand(len(b))
    	}
    	// Choose the random length as len(b) - max(src, dst)
    	// so that we don't attempt to swap a chunk that extends
    	// beyond the end of the slice
    	max := dst
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 18:23:43 UTC 2021
    - 7.7K bytes
    - Viewed (0)
  8. src/internal/bytealg/count_amd64.s

    	// Create mask to ignore overlap between previous 16 byte block
    	// and the next.
    	MOVQ $16,CX
    	SUBQ BX, CX
    	MOVQ $0xFFFF, R10
    	SARQ CL, R10
    	SALQ CL, R10
    
    	// Process the last 16-byte chunk. This chunk may overlap with the
    	// chunks we've already searched so we need to mask part of it.
    	MOVOU	(AX), X1
    	PCMPEQB	X0, X1
    	PMOVMSKB X1, DX
    	// Apply mask
    	ANDQ R10, DX
    	POPCNTL DX, DX
    	ADDQ DX, R12
    end:
    	MOVQ R12, (R8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:54:43 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. src/encoding/base32/base32_test.go

    			{"MZXW", "6YTB"},
    			{"MZXW", "6Y", "TB"},
    		}, nil},
    	}
    
    	for _, testcase := range testcases {
    		for _, chunks := range testcase.chunkCombinations {
    			pr, pw := io.Pipe()
    
    			// Write the encoded chunks into the pipe
    			go func() {
    				for _, chunk := range chunks {
    					pw.Write([]byte(chunk))
    				}
    				pw.Close()
    			}()
    
    			decoder := NewDecoder(StdEncoding, pr)
    			_, err := io.ReadAll(decoder)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  10. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy

            out.write(TEST_STRING_BYTES)
    
            then:
            byteBuffer.readAsString("UTF-8") == TEST_STRING
    
            where:
            // make sure that multi-byte unicode characters get split in different chunks
            [chunkSize, preUseBuffer] << [(1..(TEST_STRING_BYTES.length * 3)).toList() + [100, 1000], [false, true]].combinations()
        }
    
        def "empty buffer to String returns empty String"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 13:06:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top