Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConstSerializer<T>

Serializes a fixed value as an empty Uint8Array.

Type Parameters

  • T

Hierarchy

  • ConstSerializer

Implements

Index

Constructors

Properties

Methods

Constructors

Properties

value: T

Methods

  • deserialize(_message: Uint8Array): T
  • Inverse of serialize.

    Typically, this returns a deep clone of the original value, not the same literal reference. Indeed, it is impossible to return the original reference on a different replica.

    Parameters

    • _message: Uint8Array

    Returns T

  • serialize(_value: T): Uint8Array

Generated using TypeDoc