Template Function CE::Memory::Pointers::add_offset
Defined in File pointers.h
Function Documentation
-
template<class T>
T *CE::Memory::Pointers::add_offset(void *ptr, const std::size_t offset_bytes) Forms a typed pointer by address arithmetic; constructs no object.
- Template Parameters:
T – Result pointee type; this does not multiply the offset by sizeof(T).
- Parameters:
ptr – Borrowed starting storage address.
offset_bytes – Forward byte displacement within valid backing storage.
- Returns:
Borrowed pointer. The caller ensures address range, alignment, object lifetime and representability before dereferencing it.