Esc

Out

structextensionexperimentalsince 0.36.1Source
  • macOS: Out works on macOS
  • Linux: Out works on Linux
  • Windows: Out works on Windows
  • Wasm: Out is not available on Wasm

Declaration

Out :: struct {
    data: [..] u8;    links: [..] string;    record_links := true;    link: [..] u8;    link_start: int;    offsets: [..] Link_Offset;}

Reusable page storage. Do not copy it after use; each rendering thread owns one. Borrow link strings until the next append; the link list expires at reset. Disable record_links to skip recording.

Example
out: Out;
defer deinit(*out);
append(*out, "hello");
reset(*out);
assert(bytes(*out).count == 0);

See also