Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
0
Description
This posting says that C.GoBytes() can copy data. If so, we should use reflection instead.
https://groups.google.com/g/golang-nuts/c/R67yt3Dz3tw?pli=1
Also, https://pkg.go.dev/cmd/cgo says "A few special functions convert between Go and C types by making copies of the data". These special functions include C.GoBytes().