diff options
| author | babenko <[email protected]> | 2026-06-24 11:20:18 +0300 |
|---|---|---|
| committer | babenko <[email protected]> | 2026-06-24 12:39:10 +0300 |
| commit | 7493b7938546308fc8ead81e411e05c73b1ce9e4 (patch) | |
| tree | 7182fc3d6e3949c93eed98f683b74aa64602bb5f /contrib/python/pyOpenSSL/py3/OpenSSL/debug.py | |
| parent | 4b6fbadea674c9fceb3141a202568458f6b9ab86 (diff) | |
Add ExactRefCountedCast and TRef::Contains
Some handy helpers.
`ExactRefCountedCast<T>(p)`: exact-type downcast for `New<T>()`-allocated objects. `New<T>(`) builds a final `TRefCountedWrapper<T>`, so this casts to the wrapper and upcasts back to `T*`; being final, the `dynamic_cast` lowers to a single `type_info` compare (~2ns vs ~20ns for the is-a path).
`TRef::Contains(other)`: true iff other's range lies within this range.
commit_hash:138e8719b8ecbd953437b81380e54f736db029ef
Diffstat (limited to 'contrib/python/pyOpenSSL/py3/OpenSSL/debug.py')
0 files changed, 0 insertions, 0 deletions
