lua serialize support

This commit is contained in:
云风
2012-08-09 11:36:39 +08:00
parent 0f5fa26052
commit b33b5fab39
16 changed files with 894 additions and 49 deletions

15
lua-serialize/test2.lua Normal file
View File

@@ -0,0 +1,15 @@
local s = require "luaseri"
addressbook = {
name = "Alice",
id = 12345,
phone = {
{ number = "1301234567" },
{ number = "87654321", type = "WORK" },
}
}
for i=1,100000 do
local u = s.pack (addressbook)
local t = s.unpack(u)
end