Host I/O: io

io provides secure random, clocks, host filesystem, and scripting functions. Select stdlib as well. Database capability grants control access to filesystem, secure random, processes, streams, network, and terminal services separately; selecting io does not grant them. The plugin has no settings.

Dependencies

Configuration

Select this plugin explicitly when opening the database:

TRON135 B
Offset (hex)Bytes (hex)Meaning
0054 52 4F 4Emagic TRON
042C 696Ftxt "io"
0709bit true
080F 0A 04000000 0700 0000map leaf, size 10: @4 → @7
126C 7374646C6962txt "stdlib"
1909bit true
1A0F 0A 12000000 1900 0000map leaf, size 10: @12 → @19
2407 0E 04080000 0800 0000 1A000000map branch, size 14, depth 0 (root), slots 2, 11: @8 → @1A
32AC 66696C65737973 74656Dtxt "filesystem"
3D09bit true
3E0F 0A 32000000 3D00 0000map leaf, size 10: @32 → @3D
487C 706C7567696E73txt "plugins"
500F 0A 48000000 2400 0000map leaf, size 10: @48 → @24
5ACC 6361706162696C 6974696573txt "capabilities"
670F 0A 5A000000 3E00 0000map leaf, size 10: @5A → @3E
7107 0E 10010000 5000 0000 67000000map branch, size 14, depth 0 (root), slots 4, 8: @50 → @67

Usage

io also adds host-backed forms of standard library functions: crypto/sign/ed25519/generate-keypair draws entropy when called without a seed, and cli/parse reads process arguments when called without an argument list. With filesystem granted, (fs/read "input.txt" {encoding <utf8>}) reads a UTF-8 file. Other host services require their corresponding capability grants.

Contributions

Namespaces