← All docs

buffer_len()

Lowers `buffer_len()` through the direct buffer opcode helper.

buffer_len()

function buffer_len(buffer $buffer): int

Lowers buffer_len() through the direct buffer opcode helper.

Parameters:

  • $buffer (buffer)

Returns: int

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

Internals

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