Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Uint8ArraySerializer

Serializer for Uint8Array that is the identity function.

This is a singleton class; use instance instead of the constructor.

Hierarchy

  • Uint8ArraySerializer

Implements

Index

Properties

instance: Uint8ArraySerializer = ...

Methods

  • deserialize(message: Uint8Array): Uint8Array
  • 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 Uint8Array

  • serialize(value: Uint8Array): Uint8Array

Generated using TypeDoc