Function serialize

  • Serializes a struct into a Uint8Array

    Parameters

    • instance: unknown

    Returns Uint8Array