uint16 plz6 plz6 plz6 plz6 plz6 plz
parent
53793b695c
commit
f1c4db00fb
@ -0,0 +1,16 @@
|
||||
package ent
|
||||
|
||||
import (
|
||||
"github.com/jordanorelli/hyperstone/bit"
|
||||
)
|
||||
|
||||
var atom_types = map[string]tÿpe{
|
||||
"uint16": {"uint16", func(...interface{}) value { return new(uint16_v) }},
|
||||
}
|
||||
|
||||
type uint16_v uint16
|
||||
|
||||
func (u *uint16_v) read(r bit.Reader) error {
|
||||
*u = uint16_v(bit.ReadVarInt(r))
|
||||
return r.Err()
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
package ent
|
||||
|
||||
type tÿpe interface {
|
||||
type tÿpe struct {
|
||||
name string
|
||||
alloc func(...interface{}) value
|
||||
}
|
||||
|
Loading…
Reference in New Issue