1
0
mirror of https://github.com/golang/go synced 2024-11-17 07:54:41 -07:00
go/misc/cgo
James Bardin 5a34472d74 cmd/cgo: add C.CBytes
Add a C.CBytes function to copy a Go byte slice into C memory. This
returns an unsafe.Pointer, since that is what needs to be passed to
C.free, and the data is often opaque bytes anyway.

Fixes #14838

Change-Id: Ic7bc29637eb6f1f5ee409b3898c702a59833a85a
Reviewed-on: https://go-review.googlesource.com/20762
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-03-16 23:22:10 +00:00
..
errors cmd/cgo: recognize known C typedefs as types 2016-02-27 22:51:51 +00:00
fortran misc/cgo/fortran: clean up after successful helloworld.90 build 2016-02-28 04:30:41 +00:00
gmp misc/cgo/gmp: change pi.go to use standard Go copyright header 2015-12-11 13:29:46 +00:00
life misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
nocgo
stdio misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
test cmd/cgo: add C.CBytes 2016-03-16 23:22:10 +00:00
testasan
testcarchive cmd/link: add -extar option to set ar program for c-archive 2016-01-26 18:52:36 +00:00
testcshared misc/cgo: fix wrong quote character 2016-02-26 19:39:51 +00:00
testgodefs build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
testsanitizers misc/cgo/testsanitizers: don't run tsan tests on old clang 2016-03-01 00:56:14 +00:00
testshared cmd/link: allow symbols from .a files to override those from .so files 2016-01-20 19:53:53 +00:00
testsigfwd runtime: for c-archive/c-shared, don't install unnecessary signal handlers 2015-12-18 22:27:38 +00:00
testso cmd/dist: convert testso test into Go 2015-06-12 04:33:50 +00:00
testsovar misc/cgo/testsovar: needs the extern keyword to export variables on non-windows platforms 2015-07-21 18:10:57 +00:00
testtls