mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-12 14:10:53 +08:00
feat(pbuf): add api CountItems
This commit is contained in:
@@ -26,3 +26,7 @@ func (bufferPool BufferPool[USRDAT]) ParseBuffer(
|
|||||||
) *orbyte.Item[UserBuffer[USRDAT]] {
|
) *orbyte.Item[UserBuffer[USRDAT]] {
|
||||||
return bufferPool.p.Parse(buf.Len(), buf)
|
return bufferPool.p.Parse(buf.Len(), buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (bufferPool BufferPool[USRDAT]) CountItems() (outside int32, inside int32) {
|
||||||
|
return bufferPool.p.CountItems()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user