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.
init: Hands back closed storage waiting for a first start or restore, so a caller starts storage setup here.
Fields and members
Public fields and members.
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;Also reachable as
Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |