Merge codec and tape packages
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user