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["HEAP_BUFFER_BYTES", 2048]()

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

STACK_BUFFER_BYTES

alias STACK_BUFFER_BYTES = UInt(env_get_int["STACK_BUFFER_BYTES", 4096]())

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?