add sharemap , an example of stm

This commit is contained in:
Cloud Wu
2015-02-28 16:42:47 +08:00
parent 688cc843ce
commit 9a6e26db96
5 changed files with 150 additions and 7 deletions

View File

@@ -53,9 +53,9 @@ function sproto:encode(typename, tbl)
return core.encode(st, tbl)
end
function sproto:decode(typename, bin)
function sproto:decode(typename, ...)
local st = querytype(self, typename)
return core.decode(st, bin)
return core.decode(st, ...)
end
function sproto:pencode(typename, tbl)