src/littlesugar/reinterpretPtr

Search:
Group by:

Procs

func reinterpretPtr[T: ptr](src: ptr or pointer): T {.inline.}

Reinterpret the given pointer to a different pointer type.

This is same to cast, but only accepts a pointer type for safer type convertion. But it still can be unsafe.