tape: Add Tag.WithoutCN for easier comparison

This commit is contained in:
Sasha Koshka 2025-06-21 19:27:58 -04:00
parent 65e8d51590
commit 89153dd7bd

View File

@ -25,6 +25,10 @@ func (tag Tag) WithCN(cn int) Tag {
return (tag & TNMask) | Tag(cn % 32)
}
func (tag Tag) WithoutCN() Tag {
return tag.WithCN(0)
}
func (tag Tag) Is(other Tag) bool {
return tag.TN() == other.TN()
}