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:
5
item.go
5
item.go
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user