Merge codec and tape packages

This commit is contained in:
2025-06-20 15:55:37 -04:00
parent ce503c4689
commit 285e83d995
7 changed files with 27 additions and 17 deletions

View File

@@ -1,7 +1,5 @@
package tape
import "git.tebibyte.media/sashakoshka/hopp/codec"
type Tag byte; const (
SI Tag = 0 << 5 // Small integer
LI Tag = 1 << 5 // Large integer
@@ -40,6 +38,6 @@ func bufferLenTag(length int) Tag {
if length < int(CNLimit) {
return SBA.WithCN(length)
} else {
return LBA.WithCN(codec.IntBytes(uint64(length)))
return LBA.WithCN(IntBytes(uint64(length)))
}
}