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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user