Skip to documentation
SLOP

tiny.machine.InstanceStorage

Reference tiny.machine InstanceStorage

Defined in tiny.machine.

Holds the bytes a caller sets aside for one running instance, so the caller supplies the storage and holds it still.

API (2)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.machineInstanceStorage
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/machine/src/instance/owner.zig:135

zig
/// Holds the bytes a caller sets aside for one running instance, so the caller/// supplies the storage and holds it still. The address has to stay put from/// the moment it is built until `deinit`. Once a lifecycle closes, the same/// bytes serve the next one.pub const Storage = struct {    bytes: [storage_bytes]u8 align(storage_alignment),    /// Hands back closed storage waiting for a first start or restore, so a    /// caller starts storage setup here. The call invokes no allocator.    pub fn init() Storage {        var result: Storage = undefined;        ownerState(&result).* = .{};        return result;    }};

Source: lib/machine/src/root.zig:102

zig
pub const InstanceStorage = instance.Storage;
Called byCallsNo direct callersprivate sourcelib.machine.src.instance.ownerownerStateInstanceStorageinit
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

instance.Storage.

Audit

Definitions2
Public names4
Members1
Version26.7.0
Revisiondaab053ee433