Pudu programming language
Menu
API reference

Std.Html.Buffer.renderToBytes

1 declaration

fn

renderToBytes: &Std.Html.Buffer.BytePlan -> &Map[Str, Bytes] -> Bytes

This is a callable function.

What it does

Assembles the byte plan and runtime slot values directly into a contiguous unboxed buffer.

Pre-computes exact capacity to perform a single contiguous allocation followed by

vectorized memory block copies (Buffer.copy), avoiding string reallocations.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.
  • Names inside [ ] are type arguments, such as the item type held by a collection.

Back to Std.Html.BufferSearch related declarations