mirror of
https://github.com/ceph/go-ceph
synced 2025-01-30 01:52:48 +00:00
430dea5b7f
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> |
||
---|---|---|
.. | ||
aliases.go | ||
command_input_test.go | ||
command_input.go | ||
command_output_test.go | ||
command_output.go | ||
iovec_test.go | ||
iovec.go | ||
ptrguard_test.go | ||
ptrguard.go | ||
splitbuf_test.go | ||
splitbuf.go | ||
sync_buffer_memcpy.go | ||
sync_buffer.go |