Skip to main content

Mojo module

write

Establishes the contract between Writer and Writable types.

Aliases

HEAP_BUFFER_BYTES

alias HEAP_BUFFER_BYTES = env_get_int[::StringSlice[::Bool()

How much memory to pre-allocate for the heap buffer, will abort if exceeded.

STACK_BUFFER_BYTES

alias STACK_BUFFER_BYTES = env_get_int[::StringSlice[::Bool()

The size of the stack buffer for IO operations from CPU.

Traits

  • Writable: The Writable trait describes how a type is written into a Writer.
  • Writer: Describes a type that can be written to by any type that implements the write_to function.

Was this page helpful?