message-size-increase #3

Merged
sashakoshka merged 227 commits from message-size-increase into main 2025-09-07 19:27:38 -06:00
Showing only changes of commit 477e56d359 - Show all commits

View File

@ -1,16 +1,18 @@
package tape package tape
import "fmt"
type Tag byte; const ( type Tag byte; const (
SI Tag = 0 << 5 // Small integer SI Tag = 0 << 5 // Small integer
LI Tag = 1 << 5 // Large integer LI Tag = 1 << 5 // Large integer
FP Tag = 2 << 5 // Floating point FP Tag = 2 << 5 // Floating point
SBA Tag = 3 << 5 // Small byte array SBA Tag = 3 << 5 // Small byte array
LBA Tag = 4 << 5 // Large byte array LBA Tag = 4 << 5 // Large byte array
OTA Tag = 5 << 5 // One-tag array OTA Tag = 5 << 5 // One-tag array
KTV Tag = 6 << 5 // Key-tag-value table KTV Tag = 6 << 5 // Key-tag-value table
TNMask Tag = 0xE0 // The entire TN bitfield TNMask Tag = 0xE0 // The entire TN bitfield
CNMask Tag = 0x20 // The entire CN bitfield CNMask Tag = 0x1F // The entire CN bitfield
CNLimit Tag = 32 // All valid CNs are < CNLimit CNLimit Tag = 32 // All valid CNs are < CNLimit
) )
func (tag Tag) TN() int { func (tag Tag) TN() int {