tape: Add Tag.WithoutCN for easier comparison
This commit is contained in:
parent
65e8d51590
commit
89153dd7bd
@ -25,6 +25,10 @@ func (tag Tag) WithCN(cn int) Tag {
|
|||||||
return (tag & TNMask) | Tag(cn % 32)
|
return (tag & TNMask) | Tag(cn % 32)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (tag Tag) WithoutCN() Tag {
|
||||||
|
return tag.WithCN(0)
|
||||||
|
}
|
||||||
|
|
||||||
func (tag Tag) Is(other Tag) bool {
|
func (tag Tag) Is(other Tag) bool {
|
||||||
return tag.TN() == other.TN()
|
return tag.TN() == other.TN()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user