binser


binser - Customizable Lua Serializer

Save and load games or any Lua data quickly and in a very compact format.

Can Serialize:

  • Tables
  • Numbers
  • Strings
  • Booleans
  • Nan
  • Nil
  • Nested and Cyclic tables
  • Userdata (with setup)
  • Functions (pure functions with no upvalues)


Example:

local binser = require "binser"

local mydata = binser.serialize(45, {4, 8, 12, 16}, "Hello, World!")

print(binser.deserialize(mydata))
-- 45   table: 0x7fa60054bdb0   Hello, World!