Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ABCDE (0.13 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        val relay = edit(file, upstream, metadata, 5)
        val source1 = relay.newSource()!!.buffer()
        val source2 = relay.newSource()!!.buffer()
        assertThat(source1.readUtf8(5)).isEqualTo("abcde")
        assertThat(source2.readUtf8(5)).isEqualTo("abcde")
        assertThat(source2.readUtf8(5)).isEqualTo("fghij")
        assertThat(source1.readUtf8(5)).isEqualTo("fghij")
        assertThat(source1.exhausted()).isTrue()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{5, "abcde"}, sparseHoles{{2, 3}}, 8},
    		tests: []testFnc{
    			testRemaining{8, 5},
    			testWrite{"ab\x00\x00\x00cde", 8, nil},
    			testWrite{"a", 0, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{5, "abcde"}, sparseHoles{{2, 3}}, 8},
    		tests: []testFnc{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(MockResponse(body = "ABCDE"))
        val call = client.newCall(Request(server.url("/foo")))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("ABCDE")
        assertThat(response.code).isEqualTo(200)
        assertThat(response.message).isEqualTo("")
        assertThat(response.protocol).isEqualTo(protocol)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  4. src/bytes/example_test.go

    	// Output: "64 bytes or fewer"
    }
    
    func ExampleBuffer_Len() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%d", b.Len())
    	// Output: 5
    }
    
    func ExampleBuffer_Next() {
    	var b bytes.Buffer
    	b.Grow(64)
    	b.Write([]byte("abcde"))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s\n", b.Next(2))
    	fmt.Printf("%s", b.Next(2))
    	// Output:
    	// ab
    	// cd
    	// e
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  5. cmd/object-api-utils_test.go

    			keys:     []string{"etag", "md5"},
    			want:     map[string]string{"content-type": "application/octet-stream", "x-amz-storage-class": "STANDARD"},
    		},
    		{
    			name:     "2",
    			metadata: map[string]string{"content-type": "application/octet-stream", "etag": "de75a98baf2c6aef435b57dd0fc33c86", "x-amz-storage-class": "REDUCED_REDUNDANCY", "md5sum": "abcde"},
    			keys:     []string{"etag", "md5sum"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.acceptFrame() // PING
        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0)
        peer.acceptFrame() // HEADERS STREAM 3
        peer.sendFrame().windowUpdate(3, 5)
        peer.acceptFrame() // DATA STREAM 3 "abcde"
        peer.sendFrame().windowUpdate(3, 5)
        peer.acceptFrame() // DATA STREAM 3 "fghi"
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CacheTest.kt

        transferKind.setBody(mockResponse, "ABCDE\nFGHIJKLMNOPQRSTUVWXYZ", 16)
        server.enqueue(truncateViolently(mockResponse, 16).build())
        server.enqueue(
          MockResponse.Builder()
            .body("Request #2")
            .build(),
        )
        val bodySource = get(server.url("/")).body.source()
        assertThat(bodySource.readUtf8Line()).isEqualTo("ABCDE")
        bodySource.use {
          assertFailsWith<IOException> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  8. src/archive/tar/common.go

    //		{Offset: 21, Length: 4},  // Hole fragment for 21..24
    //	}
    //
    // Then the content of the resulting sparse file with a Header.Size of 25 is:
    //
    //	var sparseFile = "\x00"*2 + "abcde" + "\x00"*11 + "fgh" + "\x00"*4
    type (
    	sparseDatas []sparseEntry
    	sparseHoles []sparseEntry
    )
    
    // validateSparseEntries reports whether sp is a valid sparse map.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
Back to top