mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-06 10:40:29 +08:00
fix(pbuf): reset user data on small pool size
This commit is contained in:
@@ -72,6 +72,8 @@ func (bufpooler[USRDAT]) Reset(item *UserBuffer[USRDAT]) {
|
||||
return
|
||||
}
|
||||
item.Reset()
|
||||
var dat USRDAT
|
||||
item.DAT = dat
|
||||
}
|
||||
|
||||
func (bufpooler[USRDAT]) Copy(dst, src *UserBuffer[USRDAT]) {
|
||||
|
||||
Reference in New Issue
Block a user