← All docs

buffer_ptr()

Returns the payload address of a buffer<T>, valid until the buffer is freed.

buffer_ptr()

function buffer_ptr(buffer $buffer): pointer

Returns the payload address of a buffer, valid until the buffer is freed.

Parameters:

  • $buffer (buffer)

Returns: pointer

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

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