1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-12 06:00:32 +08:00

fix(pbuf): involve or parse judgement on slice

This commit is contained in:
源文雨
2025-02-26 00:05:52 +09:00
parent 717b07486e
commit 190281785c
2 changed files with 17 additions and 3 deletions

View File

@@ -58,6 +58,11 @@ func (b *Item[T]) Trans() (tb *Item[T]) {
return tb
}
// HasInvolved whether this item is buffered.
func (b *Item[T]) HasInvolved() bool {
return b.stat.isbuffered()
}
// IsTrans whether this item has been marked as trans.
func (b *Item[T]) IsTrans() bool {
return b.stat.isintrans()