server icon indicating copy to clipboard operation
server copied to clipboard

Incorrect Byte Size Calculation in MiniUserInfo Class

Open coderabbitai[bot] opened this issue 1 year ago • 0 comments
trafficstars

The byte size calculation in the getByteSize method of the MiniUserInfo class in packages/nps/messageStructs/MiniUserList.ts is incorrect. The current calculation includes an extra 4 bytes. The correct calculation should be 4 + this.userName.length + 1.

Please refer to the pull request for more details: https://github.com/rustymotors/server/pull/2037

Comment URL: https://github.com/rustymotors/server/pull/2037#discussion_r1724152041

coderabbitai[bot] avatar Aug 22 '24 08:08 coderabbitai[bot]