Skip to content

Commit bbc4388

Browse files
committed
refactor(network): use getPackedByteCount() in NetPacket.cpp
Refactor NetPacket.cpp to use the new getPackedByteCount() polymorphic interface instead of manual size calculations. Changes: - Replace large switch statement in GetGameCommandSize() with single call to msg->getPackedByteCount() - Simplify size calculations throughout by using getPackedByteCount() - Replace C-style casts with static_cast for type safety - Remove redundant manual size computations
1 parent d0faa20 commit bbc4388

File tree

1 file changed

+66
-584
lines changed

1 file changed

+66
-584
lines changed

0 commit comments

Comments
 (0)