close

open override fun close()

Frees the native DustLocalState memory.

Important:

  • Must be called exactly once per instance

  • After calling, this instance becomes invalid

  • Calling any method after close() will throw IllegalStateException

Idempotent: Calling close() multiple times is safe (no-op after first call).