Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for toBytes (0.11 sec)

  1. src/cmd/cgo/internal/test/test.go

    	Name      string
    	Got, Want interface{}
    }
    
    var testPairs = []testPair{
    	{"GoString", C.GoString(C.greeting), greeting},
    	{"GoStringN", C.GoStringN(C.greeting, 5), greeting[:5]},
    	{"GoBytes", C.GoBytes(unsafe.Pointer(C.greeting), 5), []byte(greeting[:5])},
    }
    
    func testHelpers(t *testing.T) {
    	for _, pair := range testPairs {
    		if !reflect.DeepEqual(pair.Got, pair.Want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  2. 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: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/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: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  4. ChangeLog.md

    - [`KT-65012`](https://youtrack.jetbrains.com/issue/KT-65012) IR Evaluator: `NoSuchFieldException` when evaluating protected/private fields of superclasses
    - [`KT-66953`](https://youtrack.jetbrains.com/issue/KT-66953) K2: toByte() call on Char leads to ClassCastException for klib backends
    - [`KT-60096`](https://youtrack.jetbrains.com/issue/KT-60096) K2: Introduced API_NOT_AVAILABLE
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:14:23 UTC 2024
    - 292.1K bytes
    - Viewed (0)
Back to top