func (n *Number) AsInt(i int64) {
	if i == 0 {
		n.typ = InvalidType
		n.bits = 0
		return
	}
	n.typ = IntType
	n.bits = uint64(i)
}
AsInt sets the number to an int64.
package msgp
import (
	"math"
	"strconv"
)
type Number struct {
	bits uint64
	typ  Type
}