Skip to content

wrap

wrap(instance, unwrapped): Promise<Uint8Array<ArrayBufferLike>>

Defined in: astrobase/src/wraps/wraps.ts:13

Creates a serialized Wrap buffer.

Instance

The Instance config.

Unwrapped

The Wrap type, value to wrap, and metadata;

Promise<Uint8Array<ArrayBufferLike>>

The serialized Wrap buffer as a Promise.