← All docs

buffer_new() — internals

Compiler internals for buffer_new(): lowering path, type checks, and runtime helpers.

buffer_new() — internals

Where it lives

Lowering notes

  • Lowered through a dedicated AST/EIR syntax node.

Semantic descriptor

Shared contract lowered through dedicated compiler syntax.

EIR and runtime boundary

Lowered through a dedicated AST/EIR syntax node.

Signature summary

function buffer_new(int $length): mixed

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references