code: func NewDB(ss []*ble.Service, base uint16) *DB {
  	h := base
  	var attrs []*attr
  	var aa []*attr
  	for i, s := range ss {
  		h, aa = genSvcAttr(s, h)
  		if i == len(ss)-1 {
  			aa[0].endh = 0xFFFF
  		}
  		attrs = append(attrs, aa...)
  	}
  	DumpAttributes(attrs)
  	return &DB{attrs: attrs, base: base}
  }
docs: // NewDB ...