mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-10 21:24:50 +08:00
feat: add Ignore to Item
This commit is contained in:
@@ -75,6 +75,12 @@ func (bufferPool BufferPool[USRDAT]) ParseBytes(p ...byte) (b UserBytes[USRDAT])
|
|||||||
return
|
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
|
// HasInit whether this Bytes is made by pool or
|
||||||
// just declared.
|
// just declared.
|
||||||
func (b UserBytes[USRDAT]) HasInit() bool {
|
func (b UserBytes[USRDAT]) HasInit() bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user