Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 296 for chunkOf (0.17 sec)

  1. 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)
  2. 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)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

            bytesOut.write(body, chunkSize)
            bytesOut.writeUtf8("\r\n")
          }
          bytesOut.writeUtf8("0\r\n") // Last chunk. Trailers follow!
          this.body = bytesOut.toMockResponseBody()
        }
    
        /**
         * Sets the response body to the UTF-8 encoded bytes of [body],
         * chunked every [maxChunkSize] bytes.
         */
        fun chunkedBody(
          body: String,
          maxChunkSize: Int,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/fingerprinting_utils.h

    // Returns the hash of the checkpoint .index file, 0 if there is none.
    uint64_t HashCheckpointIndexFile(absl::string_view model_dir);
    
    // Creates a FingerprintDef proto from a chunked SavedModel and the checkpoint
    // meta file (.index) in `export_dir`.
    absl::StatusOr<FingerprintDef> CreateFingerprintDefCpb(
        absl::string_view export_dir, std::string cpb_file);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/net/http/transfer_test.go

    		},
    		{
    			hdr:     Header{"Transfer-Encoding": {"chunked, chunked", "identity", "chunked"}},
    			wantErr: &unsupportedTEError{`too many transfer encodings: ["chunked, chunked" "identity" "chunked"]`},
    		},
    		{
    			hdr:     Header{"Transfer-Encoding": {""}},
    			wantErr: &unsupportedTEError{`unsupported transfer encoding: ""`},
    		},
    		{
    			hdr:     Header{"Transfer-Encoding": {"chunked, identity"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:16:28 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

          body = null
          webSocketListener = listener
        }
    
      override fun toString(): String = status
    
      companion object {
        private const val CHUNKED_BODY_HEADER = "Transfer-encoding: chunked"
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. src/net/http/responsewrite_test.go

    		// setting chunked.
    		{
    			Response{
    				StatusCode:       200,
    				ProtoMajor:       1,
    				ProtoMinor:       1,
    				Request:          dummyReq11("GET"),
    				Header:           Header{},
    				Body:             io.NopCloser(strings.NewReader("abcdef")),
    				ContentLength:    -1,
    				TransferEncoding: []string{"chunked"},
    				Close:            false,
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedCodecTest.groovy

                    nested.writeSmallInt(12)
                    nested.writeString("chunked")
                }
                encoder.writeString("done")
            }
    
            then:
            decode(bytes) { Decoder decoder ->
                decoder.decodeChunked { Decoder nested ->
                    assert nested.readSmallInt() == 12
                    assert nested.readString() == "chunked"
                }
                assert decoder.readString() == "done"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/runtime/malloc.go

    //
    //go:nosplit
    func inPersistentAlloc(p uintptr) bool {
    	chunk := atomic.Loaduintptr((*uintptr)(unsafe.Pointer(&persistentChunks)))
    	for chunk != 0 {
    		if p >= chunk && p < chunk+persistentChunkSize {
    			return true
    		}
    		chunk = *(*uintptr)(unsafe.Pointer(chunk))
    	}
    	return false
    }
    
    // linearAlloc is a simple linear allocator that pre-reserves a region
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    		if end > len(sources) {
    			end = len(sources)
    		}
    		chunkP, chunkMsrc, chunkSave, chunkCount, chunkErr := concurrentGrab(sources[start:end], fetch, obj, ui, tr)
    		switch {
    		case chunkErr != nil:
    			return nil, nil, false, 0, chunkErr
    		case chunkP == nil:
    			continue
    		case p == nil:
    			p, msrc, save, count = chunkP, chunkMsrc, chunkSave, chunkCount
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top