Module losc.serializer

Serializer functions.

Lua >= 5.3 will use string.pack/string.unpack

Lua < 5.3 and luajit will use struct if available, otherwise lua-struct (which is bundled as a fallback).

Info:

  • Copyright: David Granström 2021
  • License: MIT
  • Author: David Granström

Functions

Serializer.pack () Require a function for packing.
Serializer.unpack () Require a function for unpacking.


Functions

Serializer.pack ()
Require a function for packing.

Returns:

    A suitable packing function as explained in the header of this file.
Serializer.unpack ()
Require a function for unpacking.

Returns:

    A suitable unpacking function as explained in the header of this file.
generated by LDoc 1.4.6 Last updated 2021-02-01 17:13:04