From 89153dd7bd6c15d75e00c6b7fd0b18f2830a3258 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 21 Jun 2025 19:27:58 -0400 Subject: [PATCH] tape: Add Tag.WithoutCN for easier comparison --- tape/tag.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tape/tag.go b/tape/tag.go index a2a9fd4..4e9db37 100644 --- a/tape/tag.go +++ b/tape/tag.go @@ -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() }