We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48e6c4 commit fa76318Copy full SHA for fa76318
lualib/skynet/datasheet/builder.lua
@@ -12,7 +12,7 @@ local address
12
local unique_id = 0
13
local function unique_string(str)
14
unique_id = unique_id + 1
15
- return str .. ("\0" .. tostring(unique_id))
+ return str .. tostring(unique_id)
16
end
17
18
local function monitor(pointer)
lualib/skynet/datasheet/dump.lua
@@ -124,7 +124,8 @@ function ctd.dump(root)
124
string.pack("<I4", doc.table_n),
125
table.concat(index),
126
table.concat(doc.table),
127
- table.concat(doc.strings, "\0")
+ table.concat(doc.strings, "\0"),
128
+ "\0",
129
}
130
return table.concat(tmp)
131
0 commit comments