mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-05 02:00:30 +08:00
fix(pbuf): bytes slice trans
This commit is contained in:
5
item.go
5
item.go
@@ -41,6 +41,11 @@ func (b *Item[T]) Trans() (tb *Item[T]) {
|
||||
return tb
|
||||
}
|
||||
|
||||
// IsTrans whether this item has been marked as trans.
|
||||
func (b *Item[T]) IsTrans() bool {
|
||||
return b.stat.isintrans()
|
||||
}
|
||||
|
||||
// Unwrap use value of the item
|
||||
func (b *Item[T]) Unwrap() T {
|
||||
if b.stat.hasdestroyed() {
|
||||
|
||||
Reference in New Issue
Block a user