mirror of https://github.com/ceph/go-ceph
0130c60281
This change adds a new pointer alias CPtr, that should always only contains pointers to C allocated memory and should always used for such pointers in order to keep them separate from Go pointers more easily. This is helpful, since only CPtr are allowed to be stored in C allocated memory, and Go pointers can only be passed to C functions if they don't point to memory not containing Go pointers again, that is all pointers in such memory must be CPtr. The change also adds aliases for C.malloc and C.free that return and accept the CPtr type as a little safety measure. Additionally there are some useful constants defined. Signed-off-by: Sven Anderson <sven@redhat.com> |
||
---|---|---|
.. | ||
aliases.go | ||
command_input.go | ||
command_input_test.go | ||
command_output.go | ||
command_output_test.go | ||
iovec.go | ||
iovec_test.go | ||
splitbuf.go | ||
splitbuf_test.go |