From b4e98e1dd9f9b71be93c0437a76916490b5b05f8 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:34:12 +0900 Subject: [PATCH] feat: add Ignore to Item --- pbuf/bytes.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pbuf/bytes.go b/pbuf/bytes.go index 6a13dad..5f2091d 100644 --- a/pbuf/bytes.go +++ b/pbuf/bytes.go @@ -75,6 +75,12 @@ func (bufferPool BufferPool[USRDAT]) ParseBytes(p ...byte) (b UserBytes[USRDAT]) return } +// Ignore refer to Item.Ignore +func (b UserBytes[USRDAT]) Ignore(from int) UserBytes[USRDAT] { + b.buf.Ignore() + return b +} + // HasInit whether this Bytes is made by pool or // just declared. func (b UserBytes[USRDAT]) HasInit() bool {