1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-07-01 00:00:23 +08:00

optimize(head): packet encapsuling

This commit is contained in:
源文雨
2024-07-13 00:22:20 +09:00
parent 8215abb695
commit 6ede65bf28
6 changed files with 136 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ func SelectPacket() *Packet {
// PutPacket 将 Packet 放回池中
func PutPacket(p *Packet) {
p.TeaTypeDataSZ = 0
p.idxdatsz = 0
p.Data = nil
packetPool.Put(p)
}