simple8b/encoding.go
func DecodeAll(dst, src []uint64) (value int, err error) {
	j := 0
	for _, v := range src {
		sel := v >> 60
		if sel >= 16 {
			return 0, fmt.Errorf("invalid selector value: %b", sel)
		}
		selector[sel].unpack(v, (*[240]uint64)(unsafe.Pointer(&dst[j])))
		j += selector[sel].n
	}
	return j, nil
}
func DecodeAll(dst, src []uint64) (value int, err error) {
	j := 0
	for _, v := range src {
		sel := v >> 60
		if sel >= 16 {
			return 0, fmt.Errorf("invalid selector value: %b", sel)
		}
		selector[sel].unpack(v, (*[240]uint64)(unsafe.Pointer(&dst[j])))
		j += selector[sel].n
	}
	return j, nil
}
func DecodeAll ( dst , src [ ] uint64 ) ( value int , err error ) { j := 0 for _ , v := range src { sel := v >> 60 if sel >= 16 { return 0 , fmt . Errorf ( " " , sel ) } selector [ sel ] . unpack ( v , ( * [ 240 ] uint64 ) ( unsafe . Pointer ( & dst [ j ] ) ) ) j += selector [ sel ] . n } return j , nil }
// Decode writes the uncompressed values from src to dst.  It returns the number
// of values written or an error.
Decode writes the uncompressed values from src to dst . It returns the number of values written or an error .