|
Botan 3.14.1
Crypto and TLS for C&
|
#include <ffi_util.h>
Public Member Functions | |
| bool | appears_to_be_valid_ffi_handle () const |
| botan_ffi_obj_base (botan_ffi_obj_base &&other)=delete | |
| botan_ffi_obj_base (const botan_ffi_obj_base &other)=delete | |
| virtual bool | is_shared () const =0 |
| botan_ffi_obj_base & | operator= (botan_ffi_obj_base &&other)=delete |
| botan_ffi_obj_base & | operator= (const botan_ffi_obj_base &other)=delete |
| virtual size_t | use_count () const =0 |
Protected Member Functions | |
| constexpr | botan_ffi_obj_base (uint32_t magic) |
| void | invalidate_magic () |
| uint32_t | magic () const |
| ~botan_ffi_obj_base ()=default | |
Base class of all FFI object handles. This allows dealing with arbitrary handles generically, e.g. when the downstream consumer passes them as void*.
Definition at line 59 of file ffi_util.h.
|
inlineexplicitconstexprprotected |
Definition at line 61 of file ffi_util.h.
References magic().
Referenced by Botan_FFI::botan_ffi_obj< T, MAGIC, PtrType >::botan_ffi_obj(), botan_ffi_obj_base(), botan_ffi_obj_base(), operator=(), and operator=().
|
protecteddefault |
Protected destructor to ensure that this class is never destroyed via this base type.
|
delete |
References botan_ffi_obj_base().
|
delete |
References botan_ffi_obj_base().
|
inline |
Heuristic, type-agnostic check whether some casted void* pointer plausibly points to a live FFI object handle. This deliberately does not use virtual dispatch, so that the check works without relying on a potentially bogus vtable.
Definition at line 97 of file ffi_util.h.
|
inlineprotected |
Definition at line 100 of file ffi_util.h.
Referenced by Botan_FFI::botan_ffi_obj< T, MAGIC, PtrType >::~botan_ffi_obj().
|
pure virtual |
Implemented in Botan_FFI::botan_ffi_obj< T, MAGIC, PtrType >, and Botan_FFI::botan_ffi_obj< Botan::Cipher_Mode, 0xB4A2BF9C, std::unique_ptr >.
Referenced by botan_is_shared().
|
inlineprotected |
Definition at line 102 of file ffi_util.h.
Referenced by botan_ffi_obj_base(), and Botan_FFI::botan_ffi_obj< T, MAGIC, PtrType >::magic_ok().
|
delete |
References botan_ffi_obj_base().
|
delete |
References botan_ffi_obj_base().
|
pure virtual |
Implemented in Botan_FFI::botan_ffi_obj< T, MAGIC, PtrType >, and Botan_FFI::botan_ffi_obj< Botan::Cipher_Mode, 0xB4A2BF9C, std::unique_ptr >.
Referenced by botan_use_count().