go-ceph/internal/cutil
Sven Anderson 430dea5b7f cutil: add SyncBuffer abstraction layer to PtrGuard
In order to be able to swich on and off PtrGuard usage, SyncBuffer
implements a typical usage pattern of PtrGuard, that is a data buffer
referenced from inside a C allocated struct, in two ways: 1) using a
PtrGuard to dierctly store a pointer to the Go buffer in C memory, or
2) allocating a C buffer of same size and syncing data back with
C.memcpy().  The implementation can be chosen with the with_ptrguard
build tag.

Signed-off-by: Sven Anderson <sven@redhat.com>
2021-02-08 11:09:25 -05:00
..
aliases.go cutil: add some useful function aliases 2021-02-08 11:09:25 -05:00
command_input_test.go cutil: add a new internal package for c+go utility functions 2020-05-12 17:18:08 -04:00
command_input.go cutil: add a new internal package for c+go utility functions 2020-05-12 17:18:08 -04:00
command_output_test.go cutil: allow passing free functions to command output type 2020-05-12 17:18:08 -04:00
command_output.go cutil: allow passing free functions to command output type 2020-05-12 17:18:08 -04:00
iovec_test.go cutil: add Iovec type wrapping C struct iovec arrays 2020-08-28 10:07:34 -04:00
iovec.go cutil: add Iovec type wrapping C struct iovec arrays 2020-08-28 10:07:34 -04:00
ptrguard_test.go cutil: add test for PtrGuard 2021-02-08 14:50:56 +00:00
ptrguard.go cutil: add PtrGuard for storing Go pointers in C memory 2021-02-08 14:50:56 +00:00
splitbuf_test.go cutil: add SplitBuffer and SplitSparseBuffer helper functions 2020-07-23 16:38:39 -04:00
splitbuf.go cutil: add SplitBuffer and SplitSparseBuffer helper functions 2020-07-23 16:38:39 -04:00
sync_buffer_memcpy.go cutil: add SyncBuffer abstraction layer to PtrGuard 2021-02-08 11:09:25 -05:00
sync_buffer.go cutil: add SyncBuffer abstraction layer to PtrGuard 2021-02-08 11:09:25 -05:00