1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00
Files
WireGold/gold/head/pool.go
2025-03-12 22:24:16 +09:00

13 lines
233 B
Go

package head
import (
"github.com/fumiama/orbyte/pbuf"
)
var packetPool = pbuf.NewBufferPool[Packet]()
// selectPacket 从池中取出一个 Packet
func selectPacket(buf ...byte) *PacketItem {
return packetPool.NewBuffer(buf)
}