From b102e0a8cf3fe711448a6e0fbff738bf620e14b0 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: Tue, 13 May 2025 00:03:32 +0900 Subject: [PATCH] feat: add Ignore to Item --- pbuf/pbuf.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pbuf/pbuf.go b/pbuf/pbuf.go index 4661426..b409ed3 100644 --- a/pbuf/pbuf.go +++ b/pbuf/pbuf.go @@ -45,6 +45,11 @@ func NewBytes(sz int) Bytes { return bufferPool.NewBytes(sz) } +// NewBytes alloc sz bytes without involving. +func NewLargeBytes(sz int) Bytes { + return bufferPool.NewLargeBytes(sz) +} + // InvolveBytes involve outside buf into pool. func InvolveBytes(b ...byte) Bytes { return bufferPool.InvolveBytes(b...)