Commit Graph

6 Commits

Author SHA1 Message Date
Sebastien Binet 9344250d9b bind/_cpy: reduce verbosity 2016-01-12 16:44:30 +01:00
Sebastien Binet 855cc6b845 bind/seq: fix C99-ism 2016-01-06 09:20:08 +01:00
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 f32f1337d2 bind/seq: implement write uintXXX 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 aace95d243 bind/_cpy: more flesh to the cpy-seq support library
Change-Id: I8cb6810530a708e578b900f64b3be000924f746f
2016-01-06 09:20:08 +01:00