← All docs

ptr_read8()

Reads one unsigned byte through a raw pointer and returns it as an integer.

ptr_read8()

function ptr_read8(pointer $pointer): int

Reads one unsigned byte through a raw pointer and returns it as an integer.

Parameters:

  • $pointer (pointer)

Returns: int

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how ptr_read8 is implemented in the compiler, see the internals page.