tinygo
tinygo copied to clipboard
Missing C.CBytes
C.CString is present but C.CBytes is not.
Workaround is unsafe.Pointer(C.CString(string(data))) but that's ugly.
Looks like someone almost got it added here https://github.com/tinygo-org/tinygo/pull/3318
Probably we just need to rebase that PR?
I rebased PR #3318 since the original author was not really responsive anymore in their PR. Here is the rebased version, all tests pass https://github.com/tinygo-org/tinygo/pull/4470.
@deadprogram would you mind giving this a review?
@deadprogram I think this can be closed then?
@leongross it has been labeled to be closed on the next release.
Now closing. Thanks everyone!