Sign in

    Milky2018/wasmoon_runtime/native/layout does not have a README file

    ContextLayout

    pub struct ContextLayout {
    // private fields
    }

    Immutable layout retained by a loaded module and shared by its instances.

    ContextLayout::field

    fn ContextLayout::field(self : ContextLayout, index : Int) -> Int

    ContextLayout::new

    ContextLayout::words

    fn ContextLayout::words(self : ContextLayout) -> Bytes

    Immutable packed descriptor at the native FFI boundary; retaining it keeps the descriptor valid independently of the loaded artifact's lifetime.

    ContextShape

    pub(all) enum ContextShape {
    Legacy
    Module(Int, Int, Int)
    } derive(Eq,
    Debug
    )

    Resource counts defining an instance's native storage. Legacy contexts allow resources to be configured after allocation and retain the fixed public ABI.

    ContextShape::descriptor

    fn ContextShape::descriptor(self : ContextShape) -> ReadOnlyArray[Int]?

    Includes the trailing pointer arrays, with checked arithmetic before native allocation. The descriptor itself is shared immutable module metadata.

    ContextShape::equal

    ContextShape::from_module

    ContextShape::not_equal

    fn ContextShape::not_equal(x : ContextShape, y : ContextShape) -> Bool

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io