Skip to content

Commit 59e6e88

Browse files
committed
feat(pbuf): add api CountItems
1 parent 7df56b0 commit 59e6e88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pbuf/pbuf.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,8 @@ func InvolveBytes(b ...byte) Bytes {
5555
func ParseBytes(b ...byte) Bytes {
5656
return bufferPool.ParseBytes(b...)
5757
}
58+
59+
// CountItems see Pool.CountItems
60+
func CountItems() (outside int32, inside int32) {
61+
return bufferPool.CountItems()
62+
}

0 commit comments

Comments
 (0)