Interface Codec<T>

Type Parameters

  • T

Hierarchy

  • Codec

Methods

Methods

  • Decode an Uint8Array from a message payload into a T

    Parameters

    • a: Uint8Array

    Returns T

  • Encode T to an Uint8Array suitable for including in a message payload.

    Parameters

    • d: T

    Returns Uint8Array

Generated using TypeDoc