cptr::nonnull_ptr::from_bits

The pointer whose bits() are bits, which must not be 0 (that is null in a ptr) and must come from a pointer into the same cage; see basic_ptr::from_bits.

Synopsis

Declared in <cptr/ptr.hpp>

constexpr
static
nonnull_ptr
from_bits(uint32_t bits) noexcept;

Return Value

Like ptr, but never null, which makes decompression a single add.