Interface

Serializable

Serializable

Methods

# delete()

Delete the underlying WASM instance. Should be called before dereferencing this object to prevent the WASM heap from growing indefinitely.

View Source serializable.ts, line 37

# save(compressionopt) → {string}

Save to a base64 string
Parameters:
Name Type Attributes Default Description
compression ComprModeType <optional>
ComprModeType.zstd The compression mode to use

View Source serializable.ts, line 51

Base64 encoded string
string

# saveArray(compressionopt) → {Uint8Array}

Save as a binary Uint8Array
Parameters:
Name Type Attributes Default Description
compression ComprModeType <optional>
ComprModeType.zstd The compression mode to use

View Source serializable.ts, line 67

A byte array containing the Serializable object in binary form
Uint8Array