1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 02:00:30 +08:00

feat(pbuf): add api CountItems

This commit is contained in:
源文雨
2025-04-04 02:20:14 +09:00
parent da8338096f
commit 7df56b0917

View File

@@ -26,3 +26,7 @@ func (bufferPool BufferPool[USRDAT]) ParseBuffer(
) *orbyte.Item[UserBuffer[USRDAT]] {
return bufferPool.p.Parse(buf.Len(), buf)
}
func (bufferPool BufferPool[USRDAT]) CountItems() (outside int32, inside int32) {
return bufferPool.p.CountItems()
}