Type alias Serializable<T>

Serializable<T>: {
    deserialize(data, offset): DeserializedResult<T>;
    serialize(): Uint8Array;
}

Interface for serializable objects

Type Parameters

  • T

Type declaration

See

  • serialize - serialize object to Uint8Array
  • deserialize - deserialize Uint8Array to object