You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
298 B
Go

package ent
import (
"github.com/jordanorelli/hyperstone/bit"
)
func hSeqType(spec *typeSpec, env *Env) tÿpe {
if spec.typeName != "HSequence" {
return nil
}
Debug.Printf(" hsequence type")
return typeFn(func(r bit.Reader) (value, error) {
return bit.ReadVarInt(r) - 1, r.Err()
})
}