Last updated: 2026-11-17
Vulkan Runtime
Host Io
Process I/O shared by host orchestration and the standalone tools.
Production entrypoints install the process's standard I/O implementation; unit tests use the test runner's implementation.
22 exports shown
variable
io
pub var io: std.Io = if (builtin.is_test) std.testing.io else fallback.io() No public doc comment yet.
function
init
pub fn init(process: std.process.Init) void No public doc comment yet.
function
argsAlloc
pub fn argsAlloc(allocator: std.mem.Allocator) ![][:0]u8 No public doc comment yet.
function
argsFree
pub fn argsFree(allocator: std.mem.Allocator, args: []const [:0]u8) void No public doc comment yet.
function
argsWithAllocator
pub fn argsWithAllocator(allocator: std.mem.Allocator) !std.process.Args.Iterator No public doc comment yet.
function
getenv
pub fn getenv(name: []const u8) ?[:0]const u8 Read the live process environment, including changes made after startup.
function
repeatText
pub fn repeatText(comptime text: []const u8, comptime count: usize) [text.len * count]u8 No public doc comment yet.
function
timestamp
pub fn timestamp() i64 No public doc comment yet.
function
getEnvVarOwned
pub fn getEnvVarOwned(allocator: std.mem.Allocator, name: []const u8) ![]u8 No public doc comment yet.
struct
Mutex
pub const Mutex = struct No public doc comment yet.
struct
Condition
pub const Condition = struct No public doc comment yet.
struct
Pool
pub const Pool = struct Bounded CPU executor for the reference runtime's optional general pool.
The dedicated allocation-free decode pool remains its preferred hot path.
Methods
4method
Pool.init
pub fn init(self: *Pool, options: Options) !void No public doc comment yet.
method
Pool.deinit
pub fn deinit(self: *Pool) void No public doc comment yet.
method
Pool.spawnWg
pub fn spawnWg(self: *Pool, group: *std.Io.Group, comptime function: anytype, args: anytype) void No public doc comment yet.
method
Pool.waitAndWork
pub fn waitAndWork(self: *Pool, group: *std.Io.Group) void No public doc comment yet.
function
readToEndAlloc
pub fn readToEndAlloc(file: std.Io.File, allocator: std.mem.Allocator, limit: usize) ![]u8 No public doc comment yet.
function
readAll
pub fn readAll(file: std.Io.File, buffer: []u8) !usize No public doc comment yet.
function
read
pub fn read(file: std.Io.File, buffer: []u8) !usize No public doc comment yet.
function
writeSocketAll
pub fn writeSocketAll(stream: std.Io.net.Stream, bytes: []const u8) !void No public doc comment yet.
function
writeSocketVecAll
pub fn writeSocketVecAll(stream: std.Io.net.Stream, buffers: [][]const u8) !void Send a frame without copying its payload or issuing one write per fragment.
The writer handles short writes and restores the supplied slice descriptors.
function
readSocket
pub fn readSocket(stream: std.Io.net.Stream, bytes: []u8) !usize No public doc comment yet.
function
nanoTimestamp
pub fn nanoTimestamp() i128 No public doc comment yet.
function
milliTimestamp
pub fn milliTimestamp() i64 No public doc comment yet.
function
sleep
pub fn sleep(nanoseconds: u64) void No public doc comment yet.
struct
Timer
pub const Timer = struct No public doc comment yet.
Methods
4method
Timer.start
pub fn start() !Timer No public doc comment yet.
method
Timer.read
pub fn read(self: *const Timer) u64 No public doc comment yet.
method
Timer.reset
pub fn reset(self: *Timer) void No public doc comment yet.
method
Timer.lap
pub fn lap(self: *Timer) u64 No public doc comment yet.