Skip to content

Function: serialize() ​

ts
function serialize(data: Serializable): Uint8Array;

Serializes the given data into a Uint8Array.

Parameters ​

ParameterTypeDescription
dataSerializableSerializable data to be serialized

Returns ​

Uint8Array

A Uint8Array representing the serialized data