Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _cgo_cmalloc (0.08 sec)

  1. src/cmd/cgo/out.go

    func _Cfunc_CBytes(b []byte) unsafe.Pointer {
    	p := _cgo_cmalloc(uint64(len(b)))
    	sliceHeader := struct {
    		p   unsafe.Pointer
    		len int
    		cap int
    	}{p, len(b), len(b)}
    	s := *(*[]byte)(unsafe.Pointer(&sliceHeader))
    	copy(s, b)
    	return p
    }
    `
    
    const cMallocDef = `
    func _Cfunc__CMalloc(n _Ctype_size_t) unsafe.Pointer {
    	return _cgo_cmalloc(uint64(n))
    }
    `
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top