message-size-increase #3
36
tape/tag.go
36
tape/tag.go
@ -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 {
|
||||||