Difference between revisions of "binser"

(Save and load games or any Lua data quickly and in a very compact format.)
 
m (Added: Other Languages)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#set:LOVE Version=Any}}
 
{{#set:Description=Customizable Lua Serializer - Great for Saving Games}}
 
 
 
'''binser - Customizable Lua Serializer'''
 
'''binser - Customizable Lua Serializer'''
  
Line 32: Line 29:
 
</ul>
 
</ul>
  
 +
{{#set:LOVE Version=Any}}
 +
{{#set:Description=Customizable Lua Serializer - Great for Saving Games}}
 +
{{#set:Keyword=Serializing}}
 
[[Category:Libraries]]
 
[[Category:Libraries]]
 +
== Other Languages ==
 +
{{i18n|binser}}

Latest revision as of 15:55, 15 December 2019

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!


Other Languages