Commit Graph

3 Commits

Author SHA1 Message Date
Sebastien Binet 1b41f0eb59 bind/seq: copy bytearrays
Previously, byte arrays (really, []byte) where serialized as a pair
(length,ptr-to-start), but the GC was allowed to realloc the underlying buffer
before sending to C (so the pointer would be left dangling.)

Now, just do the brute force of copying the whole byte slice as:
 (length, v0, v1, ...)

update the C version.
update the Go one.
2016-01-06 09:20:08 +01:00
Sebastien Binet 8c6a6e3182 bind: use vendored bind/seq, implement r/w uintXXX
Use the vendored gopy/bind/seq package.
Implement and expose r/w values of types uint{,8,16,32,64}.
Implement and expose cgopy read/write strings.
2016-01-06 09:20:08 +01:00
Sebastien Binet b07d3da007 bind/seq: import from golang.org/x/mobile/bind/seq
vendor golang.org/x/mobile/bind/seq at 0a85ca5.
2016-01-06 09:20:08 +01:00