gopy/bind/seq
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
..
buffer.go bind/seq: copy bytearrays 2016-01-06 09:20:08 +01:00
ref.go bind/seq: import from golang.org/x/mobile/bind/seq 2016-01-06 09:20:08 +01:00
seq.go bind/seq: adapt for go-python/gopy 2016-01-06 09:20:08 +01:00
seq_test.go bind/seq: import from golang.org/x/mobile/bind/seq 2016-01-06 09:20:08 +01:00
string.go bind/seq: import from golang.org/x/mobile/bind/seq 2016-01-06 09:20:08 +01:00
string_test.go bind/seq: import from golang.org/x/mobile/bind/seq 2016-01-06 09:20:08 +01:00