Function glib::subclass::types::offset_ptr_by_bytes_mut
source · fn offset_ptr_by_bytes_mut<T, U>(ptr: *mut T, offset: isize) -> *mut U
Expand description
Offset ptr
by offset
bytes and cast the result to *mut U
.
The result must be a correctly aligned pointer to a valid value of type U
.
§Panics:
This function panics if debug assertions are enabled if adding offset
causes ptr
to
overflow or if the resulting pointer is not correctly aligned.