API reference Dodo 0.1.4

std/platform

Public declarations, types, methods, and source contracts for std/platform.

On this page

Library guide · API index and notation

This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.

import "std/platform"

Names used in signatures

Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.

Alias Package Source file
error std/platform/error platform.dodo
mem core/mem platform.dodo
native std/platform/native platform.dodo

TextPolicy

Enum · Source

pub enum TextPolicy {
    Strict, Replace
}

workspace

Function · Source

4096 native units, including NUL: bytes on Linux, UTF-16 units on Windows.

pub fn workspace() -> native.Workspace

list_workspace

Function · Source

32768 native units, one NUL per element. No hidden growth or allocation.

pub fn list_workspace() -> native.ListWorkspace

decode

Function · Source

Strict rejects malformed native text; Replace emits U+FFFD per malformed byte (Linux) or unpaired surrogate (Windows). Output excludes NUL. On error output may contain a converted prefix, but no valid string is returned.

pub fn decode(value: &native.NativeString, output: &mut[u8], policy: &TextPolicy) -> &str!error.Error from(output)

Type to search all documentation.

Keyboard shortcuts

Search documentation
Ctrl K or /
Move through results
↑ ↓
Open selected result
Enter
Close a dialog
Esc
Show these shortcuts
?