mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-10 19:14:05 +00:00
perf[protocol]: all protocol files are generated in a single protocol file
This commit is contained in:
1 parent
263536945c
commit
c00cab0e53
1 file changed
+2
-2
@@ -3,7 +3,7 @@ function Protocols.{}:protocolId()
|
||||
end
|
||||
|
||||
function Protocols.{}:protocolName()
|
||||
return {}
|
||||
return Protocols.{}
|
||||
end
|
||||
|
||||
function Protocols.{}:__tostring()
|
||||
@@ -26,7 +26,7 @@ function Protocols.{}:read(buffer)
|
||||
return nil
|
||||
end
|
||||
local beforeReadIndex = buffer:getReadOffset()
|
||||
local packet = {}:new()
|
||||
local packet = Protocols.{}:new()
|
||||
{}
|
||||
if length > 0 then
|
||||
buffer:setReadOffset(beforeReadIndex + length)
|
||||
|
||||
Reference in new issue
Block a user