Skip to main content
Version: Unreleased

Memory

Copy values between runtimes or share state that more than one runtime needs to access. Start with Sharing memory to choose a memory primitive, or follow Synchronizing data for practical examples.

Choose a memory primitive​

  • Serializable — Transfer a value as an independent copy. Changes to the copy do not update the original.
  • Synchronizable — Keep shared state in native memory so multiple runtimes can read and write it.
  • Shareable — Keep a value on a host runtime and access it from guest runtimes.

Create a value​

Inspect a value​

Customize serialization​

Deprecated APIs​

These older APIs use different terminology. Follow their replacement guidance when updating existing code.