Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for to_bytes (1.78 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        val source = response.body.source()
        source.timeout().timeout(1000, TimeUnit.MILLISECONDS)
        assertThat(source.readByte()).isEqualTo('A'.code.toByte())
        assertThat(source.readByte()).isEqualTo('B'.code.toByte())
        assertThat(source.readByte()).isEqualTo('C'.code.toByte())
        assertFailsWith<SocketTimeoutException> {
          source.readByte() // If Content-Length was accurate, this would return -1 immediately.
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        assertThat(actual).isEqualTo(expected)
      }
    
      private fun intArrayToByteArray(bytes: IntArray): ByteString {
        val data = ByteArray(bytes.size)
        for (i in bytes.indices) {
          data[i] = bytes[i].toByte()
        }
        return ByteString.of(*data)
      }
    
      private fun readerHeaderTableLength(): Int = hpackReader!!.dynamicTable.size
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  3. cmd/server_test.go

    	c.Assert(err, nil)
    	// assert the http response status code.
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	invalidBucket := "Invalid\\Bucket"
    	tooByte := bytes.Repeat([]byte("a"), 1025)
    	tooBigPrefix := string(tooByte)
    	validEvents := []string{"s3:ObjectCreated:*", "s3:ObjectRemoved:*"}
    	invalidEvents := []string{"invalidEvent"}
    
    	req, err = newTestSignedRequest(http.MethodGet,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        val request = Request.Builder().url(server.url("/b")).build()
        val response = client.newCall(request).execute()
        val bodySource = response.body.source()
        assertThat(bodySource.readByte()).isEqualTo('d'.code.toByte())
    
        // The second byte of this request will be delayed by 750ms so we should time out after 250ms.
        val startNanos = System.nanoTime()
        bodySource.use {
          assertFailsWith<IOException> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    	// C string to Go string
    	func C.GoString(*C.char) string
    
    	// C data with explicit length to Go string
    	func C.GoStringN(*C.char, C.int) string
    
    	// C data with explicit length to Go []byte
    	func C.GoBytes(unsafe.Pointer, C.int) []byte
    
    As a special case, C.malloc does not call the C library malloc directly
    but instead calls a Go helper function that wraps the C library malloc
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Dec 11 23:57:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(peer.frameCount()).isEqualTo(5)
      }
    
      @Test fun maxFrameSizeHonored() {
        val buff = ByteArray(peer.maxOutboundDataLength() + 1)
        buff.fill('*'.code.toByte())
    
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // ACK
        peer.acceptFrame() // SYN_STREAM
        peer.sendFrame().headers(false, 3, headerEntries("a", "android"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  7. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), type IfData struct, Mtu uint32
    pkg syscall (freebsd-386-cgo), type IfData struct, Noproto uint32
    pkg syscall (freebsd-386-cgo), type IfData struct, Obytes uint32
    pkg syscall (freebsd-386-cgo), type IfData struct, Oerrors uint32
    pkg syscall (freebsd-386-cgo), type IfData struct, Omcasts uint32
    pkg syscall (freebsd-386-cgo), type IfData struct, Opackets uint32
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
  8. api/go1.14.txt

    pkg syscall (freebsd-arm64), type IfData struct, Mtu uint64
    pkg syscall (freebsd-arm64), type IfData struct, Noproto uint64
    pkg syscall (freebsd-arm64), type IfData struct, Obytes uint64
    pkg syscall (freebsd-arm64), type IfData struct, Oerrors uint64
    pkg syscall (freebsd-arm64), type IfData struct, Omcasts uint64
    pkg syscall (freebsd-arm64), type IfData struct, Opackets uint64
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  9. api/go1.16.txt

    pkg syscall (darwin-arm64), type IfData struct, Metric uint32
    pkg syscall (darwin-arm64), type IfData struct, Mtu uint32
    pkg syscall (darwin-arm64), type IfData struct, Noproto uint32
    pkg syscall (darwin-arm64), type IfData struct, Obytes uint32
    pkg syscall (darwin-arm64), type IfData struct, Oerrors uint32
    pkg syscall (darwin-arm64), type IfData struct, Omcasts uint32
    pkg syscall (darwin-arm64), type IfData struct, Opackets uint32
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  10. api/go1.20.txt

    pkg crypto/ed25519, type Options struct, Context string #31804
    pkg crypto/ed25519, type Options struct, Hash crypto.Hash #31804
    pkg crypto/rsa, type OAEPOptions struct, MGFHash crypto.Hash #19974
    pkg crypto/subtle, func XORBytes([]uint8, []uint8, []uint8) int #53021
    pkg crypto/tls, method (*CertificateVerificationError) Error() string #48152
    pkg crypto/tls, method (*CertificateVerificationError) Unwrap() error #48152
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
Back to top