diff options
| author | James Bardin <j.bardin@gmail.com> | 2016-03-16 13:53:53 -0400 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2016-03-16 23:22:10 +0000 |
| commit | 5a34472d74637c84752d2c13ace78e4e6ab756b7 (patch) | |
| tree | 293131d3c10cfec05a33d75b4ef2a767a4f5a885 /src/cmd/internal/obj/data.go | |
| parent | 3e54ca9a4624fda0bcd76192aa529e826ef12b4f (diff) | |
| download | go-5a34472d74637c84752d2c13ace78e4e6ab756b7.tar.xz | |
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>
Diffstat (limited to 'src/cmd/internal/obj/data.go')
0 files changed, 0 insertions, 0 deletions
