Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Serialize lua objects into a binary block
branch: master

This branch is 7 commits behind cloudwu:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Makefile
README.md
serialize.c
test.lua
test2.lua

README.md

    serialize = require "serialize"

    -- pack serialize lua objects into a lightuserdata (use malloc internal) 
    -- It support type : nil , number , boolean, lightuserdata , string , table (without recursion)
    bin = serialize.pack (...) 

    -- You can append some objects end of the binary block packed before
    serialize.append(bin, ...)

    -- unpack extract ... from bin, and free the memory. 
    -- You can only unpack binary block once.
    serialize.unpack(bin)
Something went wrong with that request. Please try again.