Skip to content

peete-q/lua-binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#lua-binary

A lua library for serializing lua value to a binary string, like MessagePack

##feature

  • supported type : nil, number, boolean, string, table.
  • extendable type : lightuserdata, userdata, closure. convert to string, first.
  • compression : yes
  • nested table: ok

##example

local binary = require 'binary'
local tb = {
    [1] = 1,
    [2] = false,
    s = 'string',
}
tb.ref = tb
local s = binary.pack(nil, 1, true, false, 'string', tb)
local a, b, c, d, e, f = binary.unpack(s)

About

A lua library for serializing lua value to a binary string, like MessagePack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages