go-ceph/internal/cutil
Sven Anderson 014a3f6308 ptrguard: assert pointer and uintptr have same size
Uintptr are guaranteed to be at least of the size of a pointer.  However, in
theory it could be larger.  Since the code of PtrGuard assumes both have the
same size and to be on the safe side, this change adds a compile-time check,
that the sizes of uintptr and pointers are the same.

Signed-off-by: Sven Anderson <sven@anderson.de>
2021-03-26 11:41:14 +00:00
..
aliases.go cutil: add some useful function aliases 2021-02-08 11:09:25 -05:00
command_input.go cutil: add a new internal package for c+go utility functions 2020-05-12 17:18:08 -04: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_output.go cutil: allow passing free functions to command output type 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
iovec.go cutil: use SyncBuffer for iovec type 2021-02-08 11:09:25 -05:00
iovec_test.go cutil: use SyncBuffer for iovec type 2021-02-08 11:09:25 -05:00
ptrguard.go ptrguard: assert pointer and uintptr have same size 2021-03-26 11:41:14 +00:00
ptrguard_test.go ptrguard: assert that //go:uintptrescapes actually works 2021-03-19 09:47:19 -04:00
splitbuf.go cutil: add SplitBuffer and SplitSparseBuffer helper functions 2020-07-23 16:38:39 -04:00
splitbuf_test.go cutil: add SplitBuffer and SplitSparseBuffer helper functions 2020-07-23 16:38:39 -04:00
sync_buffer.go cutil: add SyncBuffer abstraction layer to PtrGuard 2021-02-08 11:09:25 -05:00
sync_buffer_memcpy.go cutil: add SyncBuffer abstraction layer to PtrGuard 2021-02-08 11:09:25 -05:00