From 59e6e88dbb0e5fa5031968e37dfcf53a0a58be6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 4 Apr 2025 02:23:04 +0900 Subject: [PATCH] feat(pbuf): add api CountItems --- pbuf/pbuf.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pbuf/pbuf.go b/pbuf/pbuf.go index 71d296c..f4dc15d 100644 --- a/pbuf/pbuf.go +++ b/pbuf/pbuf.go @@ -55,3 +55,8 @@ func InvolveBytes(b ...byte) Bytes { func ParseBytes(b ...byte) Bytes { return bufferPool.ParseBytes(b...) } + +// CountItems see Pool.CountItems +func CountItems() (outside int32, inside int32) { + return bufferPool.CountItems() +}