Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MarshalEvents

An optional interface that allows a shared object to take part in the Marshalling process.

Hierarchy

  • MarshalEvents

Implemented by

Index

Methods

  • [InitializeFromMemorySymbol](memory: Memory): void
  • Invoked on a shared object once it has created from shared memory.

    remarks

    This method will be invoked when memory is marshalled into a particular type of shared object using the SharedMemoryMarshal.as(...) method. The constructor of the shared object type will not be invoked when initialization occurs directly from memory. Shared object implementations can implement this method to initialize any additional internal state once the shared object has been created from memory.

    Parameters

    • memory: Memory

      The Memory that was used to create the shared object.

    Returns void

Generated using TypeDoc