mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-17 10:15:17 +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
|
end
|
||||||
|
|
||||||
function Protocols.{}:protocolName()
|
function Protocols.{}:protocolName()
|
||||||
return {}
|
return Protocols.{}
|
||||||
end
|
end
|
||||||
|
|
||||||
function Protocols.{}:__tostring()
|
function Protocols.{}:__tostring()
|
||||||
@@ -26,7 +26,7 @@ function Protocols.{}:read(buffer)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
local beforeReadIndex = buffer:getReadOffset()
|
local beforeReadIndex = buffer:getReadOffset()
|
||||||
local packet = {}:new()
|
local packet = Protocols.{}:new()
|
||||||
{}
|
{}
|
||||||
if length > 0 then
|
if length > 0 then
|
||||||
buffer:setReadOffset(beforeReadIndex + length)
|
buffer:setReadOffset(beforeReadIndex + length)
|
||||||
|
|||||||
Reference in new issue
Block a user