Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "serialize"

Index

Variables

Const ident

ident: SerializerPair<Vec> = <SerializerPair<Vec>>{decode: (x) => x,encode: (x) => x,}

Identity serializer pair (no op).

Const scalar

scalar: SerializerPair<number> = <SerializerPair<number>>{decode: (v) => v[0],encode: (x) => [x],}

Serializer pair for scalars.

Const toUTF8

toUTF8: Transducer<number, string> = utf8Decode()

Functions

Const serializer

Const utf8z

  • Zero-terminated UTF-8 string serializer pair for given max length (incl. final \0 char).

    SerializerPair.encode throws error if resulting byte sequence is larger than configured maxLen.

    Parameters

    • maxLen: number

      -

    Returns SerializerPair<string>

Generated using TypeDoc